From 95b3446e38cc84c66883e4ae0e0c9985d6e3e722 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 08 一月 2024 17:18:56 +0800 Subject: [PATCH] 库存调拨添加仓库位置,至..与仓库位置对应 --- src/components/makepager/CommonFormTableView.vue | 49 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 35 insertions(+), 14 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 9437f52..2a8bd19 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -185,7 +185,7 @@ style="width: 80%" @change=" (val) => { - selLocationClick(val, item.prop) + selLocationClick(val, item.prop,scope.row) } " > @@ -479,6 +479,7 @@ productId: "", initialPosition: "", formLocationList:[], + toLocationList:[], } }, created() { @@ -640,19 +641,39 @@ } }) }, - // 璁剧疆瀛愪綅缃� - async setLocationList(jointName) { - await getLocationList({ - jointName: jointName, - page: 1, - pageSize: 100 - }).then((res) => { - if (res.code === 200) { - // const list = res.data ? res.data : [] - this.selSonLocationOptions = res.data - console.log(this.selSonLocationOptions,"鐪嬬湅鍙樹簡娌�") - } - }) + // 璁剧疆瀛愪綅缃�/婧愪綅缃� + async setLocationList(jointName,tag) { + if(tag==="fromLocation"){ + await getLocationList({ + jointName: jointName, + page: 1, + pageSize: 100 + }).then((res) => { + if (res.code === 200) { + this.selSonLocationOptions = res.data + } + }) + }else if(tag==="toLocation"){ + await getLocationList({ + jointName: jointName, + page: 1, + pageSize: 100 + }).then((res) => { + if (res.code === 200) { + this.selToLocationOptions = res.data + } + }) + }else{ + await getLocationList({ + jointName: jointName, + page: 1, + pageSize: 100 + }).then((res) => { + if (res.code === 200) { + this.selSonLocationOptions = res.data + } + }) + } }, // 鑾峰彇鍏徃鍒楄〃 async getCompanyList() { -- Gitblit v1.8.0