| | |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "入库时间", prop: "overTime" }, |
| | | { label: "收货人", prop: "principal" }, |
| | | { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getpurchaseStatus } |
| | | { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus } |
| | | ] |
| | | return { |
| | | purchaseStatusList: getDataByType("purchaseStatus"), |
| | | receiveStatusList: getDataByType("receiveStatus"), |
| | | tableLoading: false, |
| | | tableList: {}, // 列表 |
| | | selValueList: [], |
| | |
| | | return "--" |
| | | } |
| | | }, |
| | | getreceiveStatusStatus(val) { |
| | | if (val) { |
| | | for (let i in this.receiveStatusList) { |
| | | if (this.receiveStatusList[i].id == val) { |
| | | return this.receiveStatusList[i].name |
| | | } |
| | | } |
| | | } else { |
| | | return "--" |
| | | } |
| | | }, |
| | | setColumnVisible(showCol, tableColumn) { |
| | | return tableColumn.map((ele) => { |
| | | return { |