| | |
| | | }, |
| | | // 获取产品/收货信息 |
| | | async getProductInventoryInfo(row) { |
| | | if (this.TabsIndex == 0) { |
| | | getPurchaseInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data.productList |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | | }) |
| | | } else if (this.TabsIndex == 1 && row.status == 1) { |
| | | // if (this.TabsIndex == 0) { |
| | | // getPurchaseInfo({ id: row.id }).then((res) => { |
| | | // if (res.code == 200) { |
| | | // this.productTableList.tableInfomation = res.data.productList |
| | | // } else { |
| | | // this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | // } |
| | | // }) |
| | | // } else |
| | | if (this.TabsIndex == 1 && row.status == 1) { |
| | | this.productTableList.tableInfomation = [] |
| | | } else if ( |
| | | (this.TabsIndex == 1 && row.status == 7) || |
| | |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | | }) |
| | | } else if ( |
| | | } else if (this.TabsIndex == 0|| |
| | | (this.TabsIndex == 2 && row.status == 8) || |
| | | (this.TabsIndex == 2 && row.status == 2) || |
| | | (this.TabsIndex == 2 && row.status == 3) |