| | |
| | | return { |
| | | ...res, |
| | | amount: 1, |
| | | productName: res.name, |
| | | productId: res.id, |
| | | productName: res.productId?res.productName:res.name, |
| | | productId: res.productId?res.productId:res.id, |
| | | auxiliaryUnit:adjunctUnit, |
| | | auxiliaryAmount:adjunctAmount?(1/Number(adjunctAmount)).toFixed(2):0, |
| | | auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0, |
| | |
| | | }, |
| | | // 新增方式修改 |
| | | getSelectArray(val, index) { |
| | | debugger |
| | | if (this.tableData.length == 1 && this.tableData[0].number&&this.tableData[0].number.length == 0) { |
| | | this.tableData = []; |
| | | } |
| | |
| | | console.log(item) |
| | | this.$router.push({ |
| | | name: "overviewList", |
| | | query: { name: item.name, workType: item.baseOperationType, id: item.id, status: status,code:item.warehouse.code } |
| | | query: { name: item.name, workType: item.baseOperationType+'', id: item.id+'', status: status,code:item.warehouse.code } |
| | | }) |
| | | }, |
| | | async getData() { |