| | |
| | | style="width: 80%" |
| | | @change=" |
| | | (val) => { |
| | | selLocationClick(val, item.prop) |
| | | selLocationClick(val, item.prop,scope.row) |
| | | } |
| | | " |
| | | > |
| | |
| | | productId: "", |
| | | initialPosition: "", |
| | | formLocationList:[], |
| | | toLocationList:[], |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 设置子位置 |
| | | 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() { |