From e1295bdda0d5aa8546bee34d7e477f70f4c4b2d1 Mon Sep 17 00:00:00 2001 From: taoge1020 Date: Fri, 15 Aug 2025 02:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/materials/purchaseDoc/index.ts | 16 ++ .../materialReceive/index.vue | 25 ++-- .../overallPlanMaterialSupply/index.vue | 2 +- src/views/materials/purchaseDoc/index.vue | 92 +++++++----- .../materials/purchaseDoc/uploadCode.vue | 138 ++++++++++++------ 5 files changed, 176 insertions(+), 97 deletions(-) diff --git a/src/api/materials/purchaseDoc/index.ts b/src/api/materials/purchaseDoc/index.ts index c2ae764..bcaaf4a 100644 --- a/src/api/materials/purchaseDoc/index.ts +++ b/src/api/materials/purchaseDoc/index.ts @@ -78,6 +78,22 @@ export const uploadCode = (data: any) => { return request(config); }; +// 获取物流单号 +export const ltnList = (data: any) => { + const config: any = { + url: '/cailiaoshebei/ltn/list?docId=' + data.docId, + method: 'get' + }; + // 如果 query.token 存在,就覆盖请求头里的 token + if (data.token) { + config.headers = { + Authorization: data.token + }; + } + + return request(config); +}; + export const listLink = (data: any) => { return request({ url: '/cailiaoshebei/ltn/list', diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue index 020f8e8..fa8357e 100644 --- a/src/views/materials/materialsEquipment/materialReceive/index.vue +++ b/src/views/materials/materialsEquipment/materialReceive/index.vue @@ -145,17 +145,13 @@
- + @@ -163,17 +159,13 @@ - + @@ -182,7 +174,7 @@ @@ -191,7 +183,7 @@ @@ -200,7 +192,7 @@ - + @@ -508,6 +500,7 @@ const getlistPurchase = async () => { projectId: currentProject.value?.id, status: 'finish' }); + purchaseDocList.value = res.rows; if (purchaseDocList.value && purchaseDocList.value.length > 0) { purchaseDocList.value.forEach((item) => { @@ -522,6 +515,8 @@ const getdemandInfo = async (docId: string) => { if (res.code == 200) { // 需求表单赋值 form.value.itemList = []; + // form.value.itemList 清空 + console.log(form.value.itemList); res.data.forEach((item, index) => { let obj = { quantity: item.demandQuantity, diff --git a/src/views/materials/overallPlanMaterialSupply/index.vue b/src/views/materials/overallPlanMaterialSupply/index.vue index e112eeb..bd8a65c 100644 --- a/src/views/materials/overallPlanMaterialSupply/index.vue +++ b/src/views/materials/overallPlanMaterialSupply/index.vue @@ -25,7 +25,7 @@ border > - + diff --git a/src/views/materials/purchaseDoc/index.vue b/src/views/materials/purchaseDoc/index.vue index 759370a..580cd71 100644 --- a/src/views/materials/purchaseDoc/index.vue +++ b/src/views/materials/purchaseDoc/index.vue @@ -7,14 +7,12 @@ - - 搜索 重置 @@ -23,45 +21,35 @@
- - - - + + + - - + - - - + - + @@ -71,7 +59,6 @@ 回单 -