feat: 更新应用版本至1.3.19并修复发货逻辑
- 将应用版本从1.3.18升级至1.3.19 - 修复easycode.vue中的发货逻辑,启用原本注释掉的API调用 - 修改质量状态提示信息为更友好的uni.showToast方式
This commit is contained in:
@@ -411,26 +411,29 @@
|
||||
try {
|
||||
// 判断钢卷的质量状态,必须是A+, A,A-, B+其中之一
|
||||
if (!['A+', 'A', 'A-', 'B+'].includes(coilRes.data.qualityStatus)) {
|
||||
this.$message.warning('钢卷质量状态需在B+及以上');
|
||||
uni.showToast({
|
||||
title: '只能发货B+以上品质的钢卷',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 1. 更新钢卷状态为已发货
|
||||
// await exportCoil(coilRes.data.coilId);
|
||||
await exportCoil(coilRes.data.coilId);
|
||||
|
||||
// 2. 插入一条已完成的待操作记录
|
||||
// await addPendingAction({
|
||||
// coilId: coilRes.data.coilId,
|
||||
// currentCoilNo: coilRes.data.currentCoilNo,
|
||||
// actionType: 402, // 402=发货
|
||||
// actionStatus: 2, // 直接标记为完成状态
|
||||
// scanTime: new Date(),
|
||||
// scanDevice: this.getDeviceInfo(),
|
||||
// priority: 0, // 0=普通
|
||||
// sourceType: 'scan',
|
||||
// warehouseId: coilRes.data.warehouseId,
|
||||
// processTime: new Date(),
|
||||
// completeTime: new Date()
|
||||
// });
|
||||
await addPendingAction({
|
||||
coilId: coilRes.data.coilId,
|
||||
currentCoilNo: coilRes.data.currentCoilNo,
|
||||
actionType: 402, // 402=发货
|
||||
actionStatus: 2, // 直接标记为完成状态
|
||||
scanTime: new Date(),
|
||||
scanDevice: this.getDeviceInfo(),
|
||||
priority: 0, // 0=普通
|
||||
sourceType: 'scan',
|
||||
warehouseId: coilRes.data.warehouseId,
|
||||
processTime: new Date(),
|
||||
completeTime: new Date()
|
||||
});
|
||||
|
||||
uni.showToast({
|
||||
title: '发货成功',
|
||||
|
||||
Reference in New Issue
Block a user