| | |
| | | this.tableLoading = true |
| | | this.stockList = [] |
| | | const newReqParam = this.getFinalParam() |
| | | getIfsStock(newReqParam) |
| | | .then((response) => { |
| | | const resData = response.data |
| | | this.queryReport.total = resData.total |
| | | const resStockList = resData.data |
| | | resStockList.forEach((item) => { |
| | | this.stockList.push({ |
| | | partNo: item.PART_NO, |
| | | partName: item.PART_DESC, |
| | | warehouseName: item.WAREHOUSE_ID, |
| | | locationName: item.LOCATION_DESC, |
| | | locationNo: item.LOCATION_NO, |
| | | partBatchNo: item.LOT_BATCH_NO, |
| | | stockQuantity: item.QTY_ONHAND, |
| | | availableStockQuantity: item.QTY_AVAILABLE, |
| | | outerColor: item.ATTR4, |
| | | customerOrderNo: item.ATTR6, |
| | | inSource: item.ATTR23, |
| | | }) |
| | | getIfsStock(newReqParam).then((response) => { |
| | | this.tableLoading = false |
| | | const resData = response.data |
| | | this.queryReport.total = resData.total |
| | | const resStockList = resData.data |
| | | resStockList.forEach((item) => { |
| | | this.stockList.push({ |
| | | partNo: item.PART_NO, |
| | | partName: item.PART_DESC, |
| | | warehouseName: item.WAREHOUSE_ID, |
| | | locationName: item.LOCATION_DESC, |
| | | locationNo: item.LOCATION_NO, |
| | | partBatchNo: item.LOT_BATCH_NO, |
| | | stockQuantity: item.QTY_ONHAND, |
| | | availableStockQuantity: item.QTY_AVAILABLE, |
| | | outerColor: item.ATTR4, |
| | | customerOrderNo: item.ATTR6, |
| | | inSource: item.ATTR23, |
| | | }) |
| | | this.tableLoading = false |
| | | }) |
| | | .catch(() => { |
| | | this.tableLoading = false |
| | | }) |
| | | }).catch(() => { |
| | | this.tableLoading = false |
| | | }) |
| | | }, |
| | | getFinalParam() { |
| | | const newReqParam = { |