初步增加扫码功能

This commit is contained in:
季圣华
2021-10-08 00:54:16 +08:00
parent 644b18518b
commit 39e9eeae05
2 changed files with 27 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ export const BillModalMixin = {
accountIdList: [],
accountMoneyList: [],
billUnitPirce: '',
scanBarCode: '',
scanStatus: true,
spans: {
labelCol1: {span: 2},
wrapperCol1: {span: 22},
@@ -505,6 +507,16 @@ export const BillModalMixin = {
this.$nextTick(() => {
this.form.setFieldsValue({'debt':debtNew})
});
},
scanEnter() {
this.scanStatus = false
},
scanPressEnter() {
console.log(this.scanBarCode)
},
stopScan() {
this.scanStatus = true
this.scanBarCode = ''
}
}
}