From 875ec848ed6f5438038e470e56eb8c320114c3ec Mon Sep 17 00:00:00 2001 From: yejiaxing <591141169@qq.com> Date: Thu, 14 Dec 2023 10:48:32 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasePlanMain/index.vue | 22 ++++++++++++------- .../purchasePlanMain/purchasePlanMain.data.ts | 5 +---- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index f836cb410..f710dbf28 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -76,21 +76,27 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { nextTick(async () => { if (type == 'tableForm') { - // 明细查询页赋值 row[formField] = val[0][searchField] row['itemCode'] = val[0]['code'] row['poNumber'] = val[0]['number'] row['poLine'] = val[0]['lineNumber'] + await PurchaseDetailApi.getPurchaseDetailPage({ number: row['poNumber'], - poLine: row['lineNumber'], + available: 'TRUE', + // poLine: row['lineNumber'], }).then(res => { - if (res.list.length == 1) { - row['itemCode'] = res.list[0].itemCode - row['poLine'] = res.list[0].lineNumber - row['uom'] = res.list[0].uom - } + // if (formField == 'poLine') { + // row['itemCode'] = res.list[0].itemCode + // row['uom'] = res.list[0].uom + // } + if (res) tableData.value = res.list; + tableData.value.forEach(item => { + item.poNumber = item.number + item.poLine = item.lineNumber + item.planQty =item.orderQty-item.plannedQty + }) }) } else { const setV = {} @@ -112,7 +118,7 @@ lineNumber: setV['poLine'], }).then(res => { if (res.list.length == 1) { - // 叶佳兴 + // 叶佳兴 setV['itemCode'] = res.list[0].itemCode } }) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 13224b5e5..586b1d603 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -279,8 +279,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ value: 2, isMainValue: false } - - ] }, form: { @@ -478,9 +476,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ }, tableForm: { type: 'Select', - default: 'TRUE', inactiveValue: 'FALSE', - activeValue: 'TRUE' + disabled: true }, form: { component: 'Switch',