Compare commits
1
Commits
zhoushang
...
55773633c3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55773633c3 |
+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 = {};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
v-if="showPhoneScan"
|
v-if="showPhoneScan"
|
||||||
class="fabric-out-phoneScanIcon"
|
class="fabric-out-phoneScanIcon"
|
||||||
name="scan"
|
name="scan"
|
||||||
size="44"
|
size="80"
|
||||||
color="#2979ff"
|
color="#2979ff"
|
||||||
@click="$emit('phone-scan')"
|
@click="$emit('phone-scan')"
|
||||||
/>
|
/>
|
||||||
@@ -46,7 +46,8 @@ export default {
|
|||||||
@import '@/pages/storefabric/storeFabricBusinessOutPage.scss';
|
@import '@/pages/storefabric/storeFabricBusinessOutPage.scss';
|
||||||
|
|
||||||
.fabric-out-phoneScanIcon {
|
.fabric-out-phoneScanIcon {
|
||||||
margin-left: 16rpx;
|
margin-left: 8rpx;
|
||||||
|
padding: 10rpx 16rpx;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -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