|
|
|
@ -292,7 +292,7 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="选入已完成单据"
|
|
|
|
|
title="选入已完成单据222"
|
|
|
|
|
:visible.sync="selectPrescriptionVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
@ -1720,6 +1720,7 @@ export default {
|
|
|
|
|
confirmSelect(row) {
|
|
|
|
|
this.selectPrescriptionVisible = false
|
|
|
|
|
this.formData = row
|
|
|
|
|
|
|
|
|
|
this.batchAddCodeByOrderFinish(row.billNo)
|
|
|
|
|
},
|
|
|
|
|
draftOrder() {
|
|
|
|
@ -2380,15 +2381,24 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
batchAddCodeByOrderFinish(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) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
loading.close()
|
|
|
|
|
this.$refs.inputRef.focus()
|
|
|
|
|
this.orderFormData.billNo = res.data.orderId
|
|
|
|
|
this.refreshCodesPanel(this)
|
|
|
|
|
this.printMutiCodeResult(res.data.vailCodeResultResponses)
|
|
|
|
|
} else {
|
|
|
|
|
loading.close()
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
loading.close()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async printMutiCodeResult(vailCodeResultResponses) {
|
|
|
|
|