4/8 优化1.2

dev2.5_scan
wangwei 3 months ago
parent 3d3a9b06fb
commit fd10847a9c

@ -292,7 +292,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选入已完成单据" title="选入已完成单据222"
:visible.sync="selectPrescriptionVisible" :visible.sync="selectPrescriptionVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -1720,6 +1720,7 @@ export default {
confirmSelect(row) { confirmSelect(row) {
this.selectPrescriptionVisible = false this.selectPrescriptionVisible = false
this.formData = row this.formData = row
this.batchAddCodeByOrderFinish(row.billNo) this.batchAddCodeByOrderFinish(row.billNo)
}, },
draftOrder() { draftOrder() {
@ -2380,15 +2381,24 @@ export default {
}, },
batchAddCodeByOrderFinish(orderFinishBillNo) { batchAddCodeByOrderFinish(orderFinishBillNo) {
this.orderFormData.orderFinishBillNo = orderFinishBillNo this.orderFormData.orderFinishBillNo = orderFinishBillNo
const loading = this.$loading({
lock: true,
text: '追溯码录入中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
batchAddCodeByOrderFinish(this.orderFormData).then((res) => { batchAddCodeByOrderFinish(this.orderFormData).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
loading.close()
this.$refs.inputRef.focus() this.$refs.inputRef.focus()
this.orderFormData.billNo = res.data.orderId this.orderFormData.billNo = res.data.orderId
this.refreshCodesPanel(this) this.refreshCodesPanel(this)
this.printMutiCodeResult(res.data.vailCodeResultResponses) this.printMutiCodeResult(res.data.vailCodeResultResponses)
} else { } else {
loading.close()
this.$message.error(res.message) this.$message.error(res.message)
} }
loading.close()
}) })
}, },
async printMutiCodeResult(vailCodeResultResponses) { async printMutiCodeResult(vailCodeResultResponses) {

Loading…
Cancel
Save