feat: 手机连续扫与出仓汇总表改用t-table并升至1.1.24
This commit is contained in:
@@ -120,7 +120,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handlePhoneScan() {
|
||||
this.openPhoneScan();
|
||||
// 手机连续扫:优先 Ba-Scanner;无插件时扫完自动再开相机
|
||||
this.openPhoneScan({
|
||||
continuous: true,
|
||||
hintText: '连续扫码出仓,扫完可继续下一条',
|
||||
scanTimeSpace: 1200,
|
||||
callback: (scanResult) => {
|
||||
this.QRBarCode = String(scanResult || '').trim().replace(/[\r\n]/g, '');
|
||||
return this.handleScan();
|
||||
},
|
||||
});
|
||||
},
|
||||
registerOrderScanBroadcast() {
|
||||
this.registerScanBroadcast((scanResult) => {
|
||||
@@ -314,14 +323,14 @@ export default {
|
||||
if (!this.canScan || !this.orderId) {
|
||||
this.showError('请先提交保存后再扫码');
|
||||
this.QRBarCode = '';
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
if (!code) {
|
||||
this.QRBarCode = '';
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
const scanType = this.BarCodeDelStatus ? 2 : 1;
|
||||
this.doScanUpdate(code, scanType);
|
||||
return this.doScanUpdate(code, scanType);
|
||||
},
|
||||
BarCodeDelChange(e) {
|
||||
this.BarCodeDelStatus = (e.detail.value || []).length > 0;
|
||||
|
||||
Reference in New Issue
Block a user