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 @@