From 0e0fecb8874cbcd7e889d77eddb41c82506b4562 Mon Sep 17 00:00:00 2001 From: yejiaxing <591141169@qq.com> Date: Wed, 13 Dec 2023 14:39:22 +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/purchasePlanMain.data.ts | 16 ++++++++++++++-- .../supplierdeliverRequestMain/index.vue | 5 +++-- .../supplierdeliverRequestMain.data.ts | 5 ++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 981796a9b..13224b5e5 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -269,7 +269,19 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + },{ + key: 'supplierCode', + value: 'supplierCode', + isMainValue: true + } + ,{ + key: 'status', + value: 2, + isMainValue: false + } + + + ] }, form: { // labelMessage: '信息提示说明!!!', @@ -305,7 +317,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ } }, { - label: '单据号11', + label: '单据号', field: 'number', sort: 'custom', isTableForm: false, diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 23e066730..cb4ea2e11 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -109,9 +109,10 @@ if(formField=='ppNumber'){ // 获取子表数据 getBomDisassemble - PurchasePlanDetailApi.getPurchasePlanDetailList({ poNumber: val[0]['number']}).then(res => { if (res) tableData.value = res; tableData.value.forEach(item=>{ item.batch = item.toBatch }) }).catch(err => { console.log(err) }) + PurchasePlanDetailApi.getPurchasePlanDetailList({ number: val[0]['number']}).then(res => { if (res) tableData.value = res; tableData.value.forEach(item=>{ item.batch = item.toBatch + item.qty = 1 + }) }).catch(err => { console.log(err) }) } - formRef.setValues(setV) } }) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts index b8398c2fe..0c177a5a6 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts @@ -470,6 +470,9 @@ export const SupplierdeliverRequestMainRules = reactive({ supplierCode: [ { required: true, message: '请输入供应商代码', trigger: 'blur' } ], + ppNumber: [ + { required: true, message: '请输入要货计划单号', trigger: 'blur' } + ], // fromWarehouseCode: [ // { required: true, message: '请输入从仓库代码', trigger: 'blur' } // ], @@ -1022,4 +1025,4 @@ export const SupplierdeliverRequestDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], -}) +}) \ No newline at end of file