feat: 坯布出仓增加操作语音并精简扫码明细
This commit is contained in:
@@ -89,7 +89,6 @@
|
||||
<FabricOutScanDetail
|
||||
slot="before-list"
|
||||
:detail="scanDetail"
|
||||
:item-data="form.item_data"
|
||||
:group-keys="scanGroupKeys"
|
||||
@group-change="scanGroupKeys = $event"
|
||||
/>
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
<FabricOutScanDetail
|
||||
slot="before-list"
|
||||
:detail="scanDetail"
|
||||
:item-data="form.item_data"
|
||||
:group-keys="scanGroupKeys"
|
||||
@group-change="scanGroupKeys = $event"
|
||||
/>
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -125,34 +125,6 @@
|
||||
color: #333;
|
||||
word-break: break-all;
|
||||
}
|
||||
.fabric-out-scanDetailTableScroll {
|
||||
width: 100%;
|
||||
}
|
||||
.fabric-out-scanDetailTable {
|
||||
min-width: 100%;
|
||||
}
|
||||
.fabric-out-scanDetailTableRow {
|
||||
display: flex;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
}
|
||||
.fabric-out-scanDetailTableHead {
|
||||
background: #f5f5f5;
|
||||
font-weight: bold;
|
||||
}
|
||||
.fabric-out-scanDetailTableCell {
|
||||
padding: 14rpx 8rpx;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
word-break: break-all;
|
||||
}
|
||||
.fabric-out-scanDetailEmpty {
|
||||
padding: 24rpx;
|
||||
text-align: center;
|
||||
font-size: 36rpx;
|
||||
color: #999;
|
||||
}
|
||||
.fabric-out-submitView {
|
||||
width: 100%;
|
||||
padding: 16rpx 26rpx 26rpx;
|
||||
|
||||
@@ -53,6 +53,7 @@ import {
|
||||
getViewStatusActionButtons,
|
||||
confirmOrderStatusAction,
|
||||
formatDisplayTime,
|
||||
STATUS_ACTION_VOICE,
|
||||
} from '@/common/storeFabricBusinessOut';
|
||||
|
||||
export default {
|
||||
@@ -123,8 +124,10 @@ export default {
|
||||
uni.hideLoading();
|
||||
const order = normalizeOrder(res);
|
||||
if (order) this.order = order;
|
||||
util.playSuccessAudio();
|
||||
uni.showToast({ title: '操作成功', icon: 'success' });
|
||||
const voice = STATUS_ACTION_VOICE[action] || '';
|
||||
if (voice) util.playSpeak(voice);
|
||||
else util.playSuccessAudio();
|
||||
uni.showToast({ title: voice || '操作成功', icon: 'success' });
|
||||
}),
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user