From d68b036a3b3c67273b8effa3c9925ef3869a91ba Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 07 二月 2024 13:56:50 +0800 Subject: [PATCH] wms项目 wms系统参数设置的页面开发+路由+是否显示表头配置 --- 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