feat: 便捷操作确认、取消、删除

20240912_adapter
chenhc 8 months ago
parent 341d007548
commit e60988f8b5

@ -796,6 +796,22 @@ export default {
this.enterBillNoKey() this.enterBillNoKey()
return; return;
} }
if (this.scanCode.includes("DMOENTER")) {
this.confirmFinishOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMOCANCEL")) {
this.cancelOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMODEL")) {
this.deleteCode()
this.scanCode = ''
return
}
this.checkSuccess = true; this.checkSuccess = true;
this.filterQuery.code = this.scanCode.trim(); this.filterQuery.code = this.scanCode.trim();
if (this.filterQuery.code.includes(";")) { if (this.filterQuery.code.includes(";")) {

@ -1671,10 +1671,10 @@ export default {
) )
tQuery.billNo = this.orderFormData.billNo tQuery.billNo = this.orderFormData.billNo
tQuery.orderType = 2 tQuery.orderType = 2
// if (this.orderFormData.billNo == null) { if (this.orderFormData.billNo == null) {
// this.$message.error('') this.$message.error('请先录入单据信息!')
// return return
// } }
this.saveLoading = true this.saveLoading = true
if (this.orderFormData.billNo != null) { if (this.orderFormData.billNo != null) {
deleteByOrderId(tQuery).then((response) => { deleteByOrderId(tQuery).then((response) => {
@ -1716,6 +1716,21 @@ export default {
this.checkSuccess = true this.checkSuccess = true
// this.workPlaceQueueCode = this.scanCode // this.workPlaceQueueCode = this.scanCode
if (this.getDMHotskeyValue(this.scanCode)) { if (this.getDMHotskeyValue(this.scanCode)) {
if (this.scanCode.includes("DMOENTER")) {
this.submit()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMOCANCEL")) {
this.delOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMODEL")) {
this.deleteCode()
this.scanCode = ''
return
}
// //
if (this.splitType == 'return') { if (this.splitType == 'return') {
getCodeList({workPlaceQueueCode:this.scanCode}).then((response) => { getCodeList({workPlaceQueueCode:this.scanCode}).then((response) => {
@ -1964,6 +1979,12 @@ export default {
}).catch(() => { }).catch(() => {
}) })
return true return true
}else if (str.includes("DMOENTER")) {
return true
}else if (str.includes("DMOCANCEL")) {
return true
}else if (str.includes("DMODEL")) {
return true
} }
return false return false
}, },

@ -305,6 +305,23 @@ export default {
this.enterBillNoKey() this.enterBillNoKey()
return return
} }
if (this.scanCode.includes("DMOENTER")) {
this.confirmCheckOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMOCANCEL")) {
this.cancelOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMODEL")) {
// this.deleteCode()
this.scanCode = ''
return
}
this.filterQuery.udiCode = this.scanCode.trim() this.filterQuery.udiCode = this.scanCode.trim()
if (this.filterQuery.udiCode.includes(';')) { if (this.filterQuery.udiCode.includes(';')) {
const codeArray = this.filterQuery.udiCode.split(';') const codeArray = this.filterQuery.udiCode.split(';')

@ -255,6 +255,21 @@ export default {
this.enterBillNoKey() this.enterBillNoKey()
return return
} }
if (this.scanCode.includes("DMOENTER")) {
this.confirmCheckOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMOCANCEL")) {
this.abandonOrder()
this.scanCode = ''
return
}else if (this.scanCode.includes("DMODEL")) {
// this.deleteCode()
this.scanCode = ''
return
}
this.check() this.check()
}, },
check() { check() {

Loading…
Cancel
Save