| | |
| | | <el-link |
| | | type="primary" |
| | | size="small" |
| | | v-if="isBatch === 0" |
| | | v-if="isBatch === 0 && mainBusinessType != '30'" |
| | | style="float: right; height: 20px" |
| | | @click="handleOpenPicking" |
| | | >æ£é</el-link |
| | | > |
| | | <el-link |
| | | type="primary" |
| | | size="small" |
| | | v-if="mainBusinessType === '30'" |
| | | style="float: right; height: 20px" |
| | | @click="handleOpenRecheckPicking" |
| | | >鿣æ£é</el-link |
| | | > |
| | | <el-link |
| | | type="primary" |
| | |
| | | <el-link |
| | | type="primary" |
| | | size="small" |
| | | v-if="isBatch === 0" |
| | | v-if="isBatch === 0 && mainBusinessType != '30'" |
| | | style="float: right; height: 20px; margin-right: 10px" |
| | | @click="outbound" |
| | | >ç´æ¥åºåº</el-link |
| | |
| | | width: 90, |
| | | }, |
| | | { |
| | | prop: "warehouseCode", |
| | | title: "ä»åºç¼å·", |
| | | type: "string", |
| | | width: 90, |
| | | }, |
| | | { |
| | | prop: "unit", |
| | | title: "åä½", |
| | | type: "string", |
| | |
| | | query: { orderId: this.row.id, orderNo: this.row.orderNo }, |
| | | }); |
| | | }, |
| | | handleOpenRecheckPicking() { |
| | | this.$router.push({ |
| | | path: "/outbound/recheckOutPicking", |
| | | query: { orderId: this.row.id, orderNo: this.row.orderNo }, |
| | | }); |
| | | }, |
| | | outbound() { |
| | | if (this.selection.length === 0) { |
| | | return this.$message.error("è¯·éæ©åæ®æç»"); |
| | | } |
| | | if (this.selection.length === 0) { |
| | | return this.$message.error("è¯·éæ©åæ®æç»"); |
| | | } |
| | | |
| | | const keys = this.selection.map((item) => item.id); |
| | | const requestParams = { |
| | | detailIds: keys, |
| | | outboundQuantity: 1, |
| | | operator: "", |
| | | orderNo: this.row.orderNo, |
| | | isBatch: this.isBatch, |
| | | }; |
| | | console.log(requestParams); |
| | | this.$refs.DirectOutbound.open(requestParams); |
| | | }, |
| | | outboundbatch() { |
| | | if (this.selection.length === 0) { |
| | | return this.$message.error("è¯·éæ©åæ®æç»"); |
| | | } |
| | | const keys = this.selection.map((item) => item.id); |
| | | const requestParams = { |
| | | detailIds: keys, |
| | | outboundQuantity: 1, |
| | | operator: "", |
| | | orderNo: this.row.orderNo, |
| | | isBatch: this.isBatch, |
| | | }; |
| | | console.log(requestParams); |
| | | this.$refs.DirectOutbound.open(requestParams); |
| | | }, |
| | | |
| | | outboundbatch() { |
| | | if (this.selection.length === 0) { |
| | | return this.$message.error("è¯·éæ©åæ®æç»"); |
| | | } |
| | | |
| | | const keys = this.selection.map((item) => item.id); |
| | | const requestParams = { |
| | | detailIds: keys, |
| | | outboundQuantity: |
| | | this.selection[0].orderQuantity - this.selection[0].lockQuantity, |
| | | operator: "", |
| | | orderNo: this.row.orderNo, |
| | | isBatch: this.isBatch, |
| | | }; |
| | | console.log(requestParams); |
| | | this.$refs.DirectOutbound.open(requestParams); |
| | | }, |
| | | const keys = this.selection.map((item) => item.id); |
| | | |
| | | // è®¡ç®ææé䏿ç»çå¯åºåºæ°éæ»å |
| | | let totalOutboundQuantity = 0; |
| | | this.selection.forEach(item => { |
| | | // ç±»å转æ¢+容éï¼é¿å
éæ°åå¼å¯¼è´è®¡ç®é误 |
| | | const orderQty = Number(item.orderQuantity) || 0; |
| | | const lockQty = Number(item.lockQuantity) || 0; |
| | | totalOutboundQuantity += (orderQty - lockQty); |
| | | }); |
| | | |
| | | const requestParams = { |
| | | detailIds: keys, |
| | | outboundQuantity: totalOutboundQuantity, |
| | | operator: "", |
| | | orderNo: this.row.orderNo, |
| | | isBatch: this.isBatch, |
| | | }; |
| | | console.log("åæ¹åºåºåæ°ï¼", requestParams); |
| | | this.$refs.DirectOutbound.open(requestParams); |
| | | }, |
| | | setCurrent(row) { |
| | | this.$refs.singleTable.setCurrentRow(row); |
| | | }, |