feat: 更新应用版本至1.3.21并扩展钢卷发货品质限制

- 将应用版本从1.3.20升级至1.3.21,更新了相关配置文件
- 修改发货逻辑,允许B和B-品质的钢卷发货
- 调整撤回成功提示的图标显示为'none'
This commit is contained in:
砂糖
2026-01-12 13:20:33 +08:00
parent 983bb0a172
commit 325041ada6
5 changed files with 14 additions and 10 deletions

View File

@@ -264,11 +264,11 @@
icon: 'error',
title: res.message || '撤回失败请重试'
})
return;
return;
}
uni.showToast({
icon: 'success',
title: this.coilDetail.currentCoilNo + '发货已撤回'
title: this.coilDetail.currentCoilNo + '发货已撤回',
icon: 'none'
})
this.$refs.shipPopup.close()
},
@@ -484,7 +484,7 @@
if (coilRes.code !== 200) {
throw new Error(coilRes.msg || '查询钢卷信息失败');
}
if (!coilRes.data) {
throw new Error('未找到钢卷信息');
}
@@ -567,9 +567,13 @@
async handleShipSubmit() {
try {
// 判断钢卷的质量状态必须是A+, AA-, B+其中之一
if (!['A+', 'A', 'A-', 'B+'].includes(this.coilDetail.qualityStatus)) {
if (!['A+', 'A', 'A-', 'B+', 'B', 'B-'].includes(this.coilDetail.qualityStatus)
&& !(this.coilDetail.qualityStatus == null
|| this.coilDetail.qualityStatus == undefined
|| this.coilDetail.qualityStatus == '')
) {
uni.showToast({
title: '只能发货B+以上品质的钢卷',
title: '只能发货B-以上品质的钢卷',
icon: 'none'
});
return;