| | |
| | | <el-button type="info" @click="openRevertSplitDialog">æ¤éæå
</el-button> |
| | | |
| | | <el-button type="primary" @click="openBatchReturnDialog">ååº</el-button> |
| | | <el-button type="danger" @click="handleDirectOutbound">ç´æ¥åºåº</el-button> |
| | | <!-- <el-button type="danger" @click="handleDirectOutbound">ç´æ¥åºåº</el-button> --> |
| | | |
| | | </div> |
| | | </el-card> |
| | |
| | | <div class="summary-info"> |
| | | <el-tag type="warning">æªæ£éæ¡æ°: {{summary.unpickedCount}}</el-tag> |
| | | <el-tag type="danger">æªæ£éæ°é: {{summary.unpickedQuantity}}</el-tag> |
| | | <el-tag type="success">å·²æ£éæ¡æ°: {{summary.pickedCount}}</el-tag> |
| | | <!-- <el-tag type="success">å·²æ£éæ¡æ°: {{summary.pickedCount}}</el-tag> --> |
| | | <el-tag type="info">æçç¶æ: {{palletStatus}}</el-tag> |
| | | </div> |
| | | </el-card> |
| | |
| | | } |
| | | }, |
| | | |
| | | // æ¹éååºæçç æ«ç |
| | | // ååºæçç æ«ç |
| | | onBatchReturnPalletScan() { |
| | | if (!this.batchReturnForm.palletCode) return; |
| | | |
| | |
| | | } |
| | | }, |
| | | |
| | | // æ¹éååºç¡®è®¤ |
| | | // ååºç¡®è®¤ |
| | | async handleBatchReturnConfirm() { |
| | | // 表åéªè¯ |
| | | if (this.$refs.batchReturnFormRef) { |
| | |
| | | } |
| | | }, |
| | | |
| | | // æäº¤æ¹éååºè¯·æ± |
| | | // æäº¤ååºè¯·æ± |
| | | async submitBatchReturn() { |
| | | this.batchReturnLoading = true; |
| | | |
| | | try { |
| | | const res = await this.http.post('/api/OutboundPicking/batch-return-to-stock', { |
| | | const res = await this.http.post('/api/OutboundPicking/return-to-stock', { |
| | | orderNo: this.batchReturnForm.orderNo, |
| | | palletCode: this.batchReturnForm.palletCode |
| | | }); |
| | | |
| | | if (res.status) { |
| | | this.$message.success('æ¹éååºæå'); |
| | | this.$message.success('ååºæå'); |
| | | this.showBatchReturnDialog = false; |
| | | this.loadData(); |
| | | } else { |
| | | this.$message.error(res.message || 'æ¹éååºå¤±è´¥'); |
| | | this.$message.error(res.message || 'ååºå¤±è´¥'); |
| | | } |
| | | } catch (error) { |
| | | this.$message.error('æ¹éååºå¤±è´¥'); |
| | | this.$message.error('ååºå¤±è´¥'); |
| | | } finally { |
| | | this.batchReturnLoading = false; |
| | | } |
| | |
| | | barcode: this.returnForm.barcode |
| | | }); |
| | | |
| | | if (res.success) { |
| | | if (res.status) { |
| | | this.$message.success('ååºæå'); |
| | | this.showReturnDialog = false; |
| | | this.resetReturnForm(); |
| | |
| | | if (res.status) { |
| | | this.$message.success('æå
æå'); |
| | | this.showSplitDialog = false; |
| | | this.splitLoading = false; |
| | | this.resetSplitForm(); |
| | | this.loadData(); |
| | | } else { |
| | | this.splitLoading = false; |
| | | this.$message.error(res.message || 'æå
失败'); |
| | | } |
| | | } catch (error) { |
| | | this.splitLoading = false; |
| | | this.$message.error('æå
失败'); |
| | | } |
| | | }, |
| | |
| | | if (res.status) { |
| | | this.$message.success('æ¤éæå
æå'); |
| | | this.showRevertSplitDialog = false; |
| | | this.revertSplitLoading = false; |
| | | this.revertSplitForm.originalBarcode = ''; |
| | | this.loadData(); |
| | | } else { |
| | | this.revertSplitLoading = false; |
| | | this.$message.error(res.message || 'æ¤éæå
失败'); |
| | | } |
| | | } catch (error) { |
| | | this.revertSplitLoading = false; |
| | | this.$message.error('æ¤éæå
失败'); |
| | | } |
| | | }, |