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

20240912_adapter
chenhc 3 months ago
parent 341d007548
commit e60988f8b5

@ -796,6 +796,22 @@ export default {
this.enterBillNoKey()
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.filterQuery.code = this.scanCode.trim();
if (this.filterQuery.code.includes(";")) {

@ -1671,10 +1671,10 @@ export default {
)
tQuery.billNo = this.orderFormData.billNo
tQuery.orderType = 2
// if (this.orderFormData.billNo == null) {
// this.$message.error('')
// return
// }
if (this.orderFormData.billNo == null) {
this.$message.error('请先录入单据信息!')
return
}
this.saveLoading = true
if (this.orderFormData.billNo != null) {
deleteByOrderId(tQuery).then((response) => {
@ -1716,6 +1716,21 @@ export default {
this.checkSuccess = true
// this.workPlaceQueueCode = 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') {
getCodeList({workPlaceQueueCode:this.scanCode}).then((response) => {
@ -1964,6 +1979,12 @@ export default {
}).catch(() => {
})
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
},

@ -305,6 +305,23 @@ export default {
this.enterBillNoKey()
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()
if (this.filterQuery.udiCode.includes(';')) {
const codeArray = this.filterQuery.udiCode.split(';')

@ -255,6 +255,21 @@ export default {
this.enterBillNoKey()
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()
},
check() {

Loading…
Cancel
Save