| | |
| | | // type: "string", |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // prop: "palletCode", |
| | | // title: "æçç¼å·", |
| | | // type: "string", |
| | | // width: 280, |
| | | // }, |
| | | { |
| | | prop: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 280, |
| | | }, |
| | | { |
| | | prop: "orderNo", |
| | | prop: "batchNo", |
| | | title: "æ¹æ¬¡å·", |
| | | type: "string", |
| | | width: 150, |
| | | }, |
| | | // { |
| | | // prop: "stockQuantity", |
| | | // title: "åºå", |
| | | // type: "string", |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // prop: "outboundQuantity", |
| | | // title: "åºåºè¢æ°", |
| | | // type: "string", |
| | | // width: 180, |
| | | // }, |
| | | { |
| | | prop: "batchNo", |
| | | title: "æå·", |
| | | type: "string", |
| | | width: 150, |
| | | }, |
| | | { |
| | | prop: "locationCode", |
| | | title: "è´§ä½ç¼å·", |
| | | type: "string", |
| | | |
| | | width: 180, |
| | | }, |
| | | { |
| | | prop: "useableQuantity", |
| | | prop: "stockQuantity", |
| | | title: "å¯ç¨æ°é", |
| | | type: "string", |
| | | }, |
| | |
| | | if (this.selection.length <= 0) { |
| | | return this.$message.error("è¯·éæ©æå®åºå"); |
| | | } |
| | | if (this.selectionSum > this.row.orderQuantity) { |
| | | return this.$message.error("已鿰éä¸è½è¶
è¿éæ±æ°é"); |
| | | } |
| | | // if (this.selectionSum > this.row.orderQuantity) { |
| | | // return this.$message.error("已鿰éä¸è½è¶
è¿éæ±æ°é"); |
| | | // } |
| | | this.http |
| | | .post( |
| | | "api/Task/GenerateOutboundTask?id=" + this.row.id, |
| | | "api/Task/NewGenerateOutboundTask?id=" + this.row.id, |
| | | this.selection, |
| | | "æ°æ®å¤çä¸" |
| | | ) |
| | |
| | | getData() { |
| | | this.http |
| | | .post( |
| | | "api/StockInfo/GetStockSelectViews?materielCode=" + |
| | | // "api/StockInfo/GetStockSelectViews?materielCode=" + |
| | | // this.row.materielCode, |
| | | "api/InventoryBatch/GetInventoryBatch?materielCode=" + |
| | | this.row.materielCode, |
| | | null, |
| | | "æ¥è¯¢ä¸" |
| | |
| | | this.selectionSum = |
| | | val.reduce( |
| | | (accumulator, currentValue) => |
| | | accumulator + currentValue["useableQuantity"], |
| | | accumulator + currentValue["stockQuantity"], |
| | | 0 |
| | | ) + this.originalQuantity; |
| | | if (this.selectionSum == this.row.orderQuantity) { |