| | |
| | | { prop: "palletCode", title: "æçç¼å·", type: "string", width: 150 }, |
| | | { prop: "locationCode", title: "è´§ä½ç¼å·", type: "string", width: 180 }, |
| | | { prop: "useableQuantity", title: "å¯ç¨æ°é", type: "string" }, |
| | | {prop:"orderDetailId",title:"åæ®æç»ä¸»é®",type:"string",width:150,hidden:true}, |
| | | ], |
| | | selection: [], |
| | | selectionSum: 0, |
| | |
| | | this.$refs.outboundFormRef.validate((valid) => { |
| | | if (!valid) return; |
| | | |
| | | |
| | | console.log(this.selection) |
| | | if (this.selection.length <= 0) { |
| | | return this.$message.error("请å¾é"); |
| | | } |
| | | let url = this.pkcx |
| | | ? "api/Task/GenerateOutboundTask?orderDetailId=" |
| | | : "api/Task/GenerateOutboundTask?orderDetailId="; |
| | | ? "api/Task/GenerateAllocatOutboundTask?orderDetailId=" |
| | | : "api/Task/GenerateAllocatOutboundTask?orderDetailId="; |
| | | this.http |
| | | .post(url + this.row.id, this.selection, "æ°æ®å¤çä¸") |
| | | .post(url + this.row.id+"&station="+this.outboundForm.selectedPlatform, this.selection, "æ°æ®å¤çä¸") |
| | | .then((x) => { |
| | | if (!x.status) return this.$message.error(x.message); |
| | | this.$message.success("æä½æå"); |
| | |
| | | const url = "api/StockInfo/GetAllocateStockSelect?materielCode="; |
| | | this.http |
| | | .post( |
| | | url + this.row.materielCode + "&orderId=" + this.row.orderId, |
| | | url + this.row.materielCode + "&orderId=" + this.row.orderId + "&orderDetailId=" + this.row.id, |
| | | null, |
| | | "æ¥è¯¢ä¸" |
| | | ) |