| | |
| | | }, |
| | | // 获取产品/库存信息 |
| | | async getProductInventoryInfo(row) { |
| | | console.log(row.status, "状态", row) |
| | | if (row.status === 1) { |
| | | this.productTableList.tableInfomation = row.products |
| | | this.productTableList.tableInfomation = row.products || [] |
| | | } else { |
| | | await getProductInventoryInfo(row.number).then((res) => { |
| | | console.log(res) |
| | | this.productTableList.tableInfomation = res.data |
| | | this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : [] |
| | | }) |
| | | } |
| | | }, |
| | |
| | | async getProductOrderInfo(number) { |
| | | await getProductOrderInfo(number).then((res) => { |
| | | console.log(res) |
| | | this.productTableList.tableInfomation = res.data |
| | | this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : [] |
| | | }) |
| | | }, |
| | | // 搜索 |