feat: 坯布出仓增加操作语音并精简扫码明细
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
getFormStatusActionButtons,
|
||||
orderToFormFields,
|
||||
confirmOrderStatusAction,
|
||||
STATUS_ACTION_VOICE,
|
||||
DRAFT_AUDIT_STATUS,
|
||||
DRAFT_AUDIT_STATUS_NAME,
|
||||
getEmptyScanDetail,
|
||||
@@ -242,7 +243,7 @@ export default {
|
||||
this.applyOrder(order);
|
||||
this.headerSaved = true;
|
||||
this.syncCanScanFromStatus(order.audit_status);
|
||||
this.showSuccess('保存成功,可以扫码');
|
||||
this.showSuccess('保存成功,可以扫码', '提交成功');
|
||||
this.registerOrderScanBroadcast();
|
||||
})
|
||||
.catch((e) => {
|
||||
@@ -330,10 +331,10 @@ export default {
|
||||
const row = order.item_data.find((i) => (i.group_key || String(i.id)) === this.currentGroupKey);
|
||||
this.currentFineCodes = row ? [...row.fine_codes] : [];
|
||||
}
|
||||
this.BillDataMessage = scanType === 2 ? '删除成功' : '扫描成功';
|
||||
this.BillDataMessage = scanType === 2 ? '删除成功' : '扫码出仓成功';
|
||||
this.QRBarCode = '';
|
||||
if (scanType === 2) this.showSuccess('删除成功');
|
||||
else util.playSuccessAudio();
|
||||
if (scanType === 2) this.showSuccess('删除成功', '删除成功');
|
||||
else util.playSpeak('扫码出仓成功');
|
||||
})
|
||||
.catch((e) => {
|
||||
uni.hideLoading();
|
||||
@@ -377,7 +378,8 @@ export default {
|
||||
if (!order) return;
|
||||
this.applyOrder(order);
|
||||
this.syncCanScanFromStatus(order.audit_status);
|
||||
this.showSuccess('操作成功');
|
||||
const voice = STATUS_ACTION_VOICE[action] || '';
|
||||
this.showSuccess(voice || '操作成功', voice);
|
||||
}),
|
||||
});
|
||||
},
|
||||
@@ -385,8 +387,9 @@ export default {
|
||||
util.playErrorAudio();
|
||||
uni.showModal({ title: '提示', content: message, showCancel: false });
|
||||
},
|
||||
showSuccess(message) {
|
||||
util.playSuccessAudio();
|
||||
showSuccess(message, speakText) {
|
||||
if (speakText) util.playSpeak(speakText);
|
||||
else util.playSuccessAudio();
|
||||
uni.showToast({ title: message, icon: 'success' });
|
||||
},
|
||||
getBillTypeName() {
|
||||
|
||||
Reference in New Issue
Block a user