|
@@ -133,6 +133,7 @@ export function handleFtDeliveryGoods() {
|
|
|
if (FtDeliveryGoods.value.length === 0) {
|
|
if (FtDeliveryGoods.value.length === 0) {
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
queryFtDeliveryGoods().then(res => {
|
|
queryFtDeliveryGoods().then(res => {
|
|
|
|
|
+ console.log('dddddddddd', res)
|
|
|
const result: TreeDataItem[] = []
|
|
const result: TreeDataItem[] = []
|
|
|
res.forEach(el => {
|
|
res.forEach(el => {
|
|
|
const { deliverygoodsid, deliverygoodsname, wdlst } = el
|
|
const { deliverygoodsid, deliverygoodsname, wdlst } = el
|
|
@@ -140,11 +141,13 @@ export function handleFtDeliveryGoods() {
|
|
|
title: deliverygoodsname,
|
|
title: deliverygoodsname,
|
|
|
key: deliverygoodsid + '--',
|
|
key: deliverygoodsid + '--',
|
|
|
value: deliverygoodsid + '--',
|
|
value: deliverygoodsid + '--',
|
|
|
|
|
+ enumdicname: '',
|
|
|
|
|
+ minivalue: 0,
|
|
|
children: []
|
|
children: []
|
|
|
}
|
|
}
|
|
|
wdlst.forEach(e => {
|
|
wdlst.forEach(e => {
|
|
|
- const { wrstandardid, wrstandardname } = e
|
|
|
|
|
- item.children?.push({ value: wrstandardid, key: wrstandardid, title: wrstandardname })
|
|
|
|
|
|
|
+ const { wrstandardid, wrstandardname, enumdicname, minivalue } = e
|
|
|
|
|
+ item.children?.push({ value: wrstandardid, key: wrstandardid, title: wrstandardname, enumdicname, minivalue })
|
|
|
})
|
|
})
|
|
|
result.push(item)
|
|
result.push(item)
|
|
|
})
|
|
})
|