feat: 手动进仓增加扫码和进仓成功语音
This commit is contained in:
+3
-1
@@ -366,13 +366,15 @@ function playErrorAudio() {
|
|||||||
errorAudio.play();
|
errorAudio.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 坯布出仓等业务的固定中文提示语音
|
// 固定中文提示语音
|
||||||
const SPEAK_AUDIO = {
|
const SPEAK_AUDIO = {
|
||||||
'扫码出仓成功': '/static/audio/scan_out_ok.mp3',
|
'扫码出仓成功': '/static/audio/scan_out_ok.mp3',
|
||||||
'删除成功': '/static/audio/delete_ok.mp3',
|
'删除成功': '/static/audio/delete_ok.mp3',
|
||||||
'提交成功': '/static/audio/submit_ok.mp3',
|
'提交成功': '/static/audio/submit_ok.mp3',
|
||||||
'审核成功': '/static/audio/audit_ok.mp3',
|
'审核成功': '/static/audio/audit_ok.mp3',
|
||||||
'作废成功': '/static/audio/void_ok.mp3',
|
'作废成功': '/static/audio/void_ok.mp3',
|
||||||
|
'扫码成功': '/static/audio/scan_ok.wav',
|
||||||
|
'进仓成功': '/static/audio/in_ok.wav',
|
||||||
};
|
};
|
||||||
|
|
||||||
const speakAudioMap = {};
|
const speakAudioMap = {};
|
||||||
|
|||||||
@@ -125,6 +125,7 @@
|
|||||||
import CommonNavbar from '@/components/common-navbar/index';
|
import CommonNavbar from '@/components/common-navbar/index';
|
||||||
import SearchSelectPopup from '@/components/storefabric/SearchSelectPopup.vue';
|
import SearchSelectPopup from '@/components/storefabric/SearchSelectPopup.vue';
|
||||||
import scanMixin from '@/common/scanMixin.js';
|
import scanMixin from '@/common/scanMixin.js';
|
||||||
|
import util from '@/common/util.js';
|
||||||
import { formatWeightKg } from '@/common/storeFabricBusinessOut.js';
|
import { formatWeightKg } from '@/common/storeFabricBusinessOut.js';
|
||||||
|
|
||||||
// 坯布等级字典 id(与后台字典配置一致)
|
// 坯布等级字典 id(与后台字典配置一致)
|
||||||
@@ -361,6 +362,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.weightKg = formatDisplayWeightKg(data.inspection_weight);
|
this.weightKg = formatDisplayWeightKg(data.inspection_weight);
|
||||||
this.scanCode = this.detail.fabric_piece_code;
|
this.scanCode = this.detail.fabric_piece_code;
|
||||||
|
util.playSpeak('扫码成功');
|
||||||
},
|
},
|
||||||
async submitInWarehouse() {
|
async submitInWarehouse() {
|
||||||
const fabricPieceCode = String(this.detail.fabric_piece_code || this.scanCode || '').trim();
|
const fabricPieceCode = String(this.detail.fabric_piece_code || this.scanCode || '').trim();
|
||||||
@@ -411,6 +413,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const volumeText = res && res.volume_number != null ? `,卷号 ${res.volume_number}` : '';
|
const volumeText = res && res.volume_number != null ? `,卷号 ${res.volume_number}` : '';
|
||||||
|
util.playSpeak('进仓成功');
|
||||||
this.$u.toast(`进仓成功${volumeText}`);
|
this.$u.toast(`进仓成功${volumeText}`);
|
||||||
this.resetForNextScan();
|
this.resetForNextScan();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user