| | |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "产品型号", prop: "model" }, |
| | | // { label: "调出位置", prop: "fromLocationId", sonLocation: true, isRequird: true }, |
| | | { label: "调入位置", prop: "fromLocationId", sonLocation: true, isRequird: true }, |
| | | { label: "数量", prop: "amount", inputFloat: true } |
| | | ] |
| | | } else if (this.workType === 3) { |
| | |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "产品型号", prop: "model" }, |
| | | { label: "调出位置", prop: "fromLocationId", sonLocation: true, isRequird: true }, |
| | | { label: "调入位置", prop: "toLocationId", toLocation: true, isRequird: true }, |
| | | { label: "调入位置", prop: "fromLocationId", sonLocation: true, isRequird: true }, |
| | | { label: "调出位置", prop: "toLocationId", toLocation: true, isRequird: true }, |
| | | { label: "数量", prop: "amount", inputFloat: true } |
| | | ] |
| | | } |
| | |
| | | let list = this.tableData.map((res) => { |
| | | return { |
| | | ...res, |
| | | amount: 1, |
| | | productName: res.name, |
| | | productId: res.id |
| | | } |
| | |
| | | }, |
| | | // 删除 |
| | | handleDelClick(scope, value) { |
| | | console.log(scope) |
| | | if (value === "操作") { |
| | | this.tableData.splice(scope.$index, 1) |
| | | this.productTableList.tableData.splice(scope.$index, 1) |
| | | this.productTableList.tableData = this.tableData |
| | | this.$message.success("删除成功!") |
| | | } else { |
| | | this.detailTableData.splice(scope.$index, 1) |