出入库bug修复,调整仓库位置字段绑定,编辑时列表绑定源位置
| | |
| | | }, |
| | | workType: { |
| | | type: Number, |
| | | default: 1 |
| | | default: function() { |
| | | return JSON.parse(window.sessionStorage.getItem('paramsData')).workType|| 1; |
| | | } |
| | | }, |
| | | addName: { |
| | | type: String, |
| | |
| | | } |
| | | this.getLogisticCompanyList() |
| | | this.formInfo() |
| | | }, |
| | | mounted(){ |
| | | setTimeout(() => { |
| | | this.$refs.tableView.setLocationList(this.editConfig.infomation.location.label) |
| | | }, 100); |
| | | }, |
| | | mounted(){ |
| | | }, |
| | | methods: { |
| | | formInfo() { |
| | | this.objCode.type = this.workType === 1 ? "入库编码" : this.workType === 2 ? "出库编码" : "调拨编码" |
| | |
| | | const list = res.data.map((item) => { |
| | | return { |
| | | ...item, |
| | | // from: item.fromLocation.name, |
| | | // to: item.toLocation.name |
| | | from: item.location.jointName, |
| | | to: item.location.jointName |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | }) |
| | | row.location={ |
| | | value:row.location.id||row.location.value, |
| | | label:row.location.jointName||row.location.jointName |
| | | label:row.location.jointName||row.location.label |
| | | } |
| | | row.locationID=row.location.jointName |
| | | row.locationId=row.location.value |