From 4311d2d77868ddb770b8700e75b1dd907d4c85fe Mon Sep 17 00:00:00 2001 From: kilo Date: Thu, 27 Jul 2023 18:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E6=89=80=E5=B1=9E=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E3=80=81=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/distributionStockArticle.js | 10 + src/api/system/dept.js | 7 + src/option/basicdata/basicdataWarehouse.js | 17 + .../warehouse/basicdataWarehouse.vue | 765 +++++++++++++++++- .../distribution/reservation/reservation.vue | 1 - .../turndelivery/deliveryDiscuss.vue | 62 +- 6 files changed, 825 insertions(+), 37 deletions(-) diff --git a/src/api/distribution/distributionStockArticle.js b/src/api/distribution/distributionStockArticle.js index ef976221..9858dbae 100644 --- a/src/api/distribution/distributionStockArticle.js +++ b/src/api/distribution/distributionStockArticle.js @@ -143,4 +143,14 @@ export const getStockAddValue = (id) => { }) } +export const selectStockArticleAndParcel = (params) => { + return request({ + url: '/api/logpm-distribution/distributionStockArticle/selectStockArticleAndParcel', + method: 'get', + params: { + ...params, + } + }) +} + diff --git a/src/api/system/dept.js b/src/api/system/dept.js index ba96954d..85673ad2 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -78,3 +78,10 @@ export const getDeptLazyTree = parentId => { }, }); }; + +export const getDeptList = () => { + return request({ + url: '/blade-system/dept/list', + method: 'get', + }); +}; diff --git a/src/option/basicdata/basicdataWarehouse.js b/src/option/basicdata/basicdataWarehouse.js index 8b226a76..eab88cf9 100644 --- a/src/option/basicdata/basicdataWarehouse.js +++ b/src/option/basicdata/basicdataWarehouse.js @@ -352,6 +352,16 @@ export default { editDisplay: false, hide: true, }, + { + label: "所属部门", + prop: "departmentName", + type: "input", + span:12, + labelWidth:'120', + width:'120', + addDisplay: false, + editDisplay: false, + }, { label: "所属部门", prop: "department", @@ -365,6 +375,10 @@ export default { label: "title", value: "id" }, + hide: true, + addDisplay: true, + editDisplay: true, + viewDisplay: false, lazy: true, treeLoad: (node, resolve) => { // console.log(">>>>>>>>>>",node); @@ -374,6 +388,8 @@ export default { let code = data.id; let list = []; let callback = () => { + console.log(">>>>>>>>>>",node); + this.departmentName = data.title; resolve((list || []).map(ele => { return Object.assign(ele, { leaf: level >= stop_level @@ -403,6 +419,7 @@ export default { callback() }) } else { + list = [] callback() } diff --git a/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue b/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue index ab54d443..e4815f96 100644 --- a/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue +++ b/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue @@ -44,7 +44,8 @@