feat: 更新应用版本至1.3.18并启用更新提示

- 将config.js、manifest.json和version.json中的版本号更新为1.3.18
- 启用update.js中的版本更新提示模态框
- 在easycode.vue中添加发货操作的取消处理逻辑
This commit is contained in:
砂糖
2026-01-10 10:25:05 +08:00
parent 94e67c73b6
commit cd491678d9
5 changed files with 44 additions and 36 deletions

View File

@@ -399,7 +399,15 @@
confirmText: '确认',
title: '确定要将钢卷号为:' + coilRes.data.currentCoilNo + '发货吗?',
showCancel: true,
success: async () => {
success: async (res) => {
console.log(res)
if (res.cancel) {
uni.showToast({
title: '已取消发货',
icon: 'none'
})
return;
}
try {
// 判断钢卷的质量状态必须是A+, AA-, B+其中之一
if (!['A+', 'A', 'A-', 'B+'].includes(coilRes.data.qualityStatus)) {
@@ -407,22 +415,22 @@
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: '发货成功',