feat: 更新应用版本至1.3.17并添加钢卷导出功能
- 在config.js、manifest.json和version.json中更新版本号至1.3.17 - 新增钢卷导出API接口 - 在接收和编辑页面添加长度输入字段 - 修改钢卷发货逻辑,增加质量状态校验并使用新的导出接口
This commit is contained in:
@@ -122,7 +122,8 @@
|
||||
getMaterialCoil,
|
||||
updateMaterialCoilSimple,
|
||||
listMaterialCoil,
|
||||
updateMaterialCoil
|
||||
updateMaterialCoil,
|
||||
exportCoil
|
||||
} from '@/api/wms/coil.js'
|
||||
import {
|
||||
addPendingAction
|
||||
@@ -400,11 +401,13 @@
|
||||
showCancel: true,
|
||||
success: async () => {
|
||||
try {
|
||||
// 判断钢卷的质量状态,必须是A+, A,A-, B+其中之一
|
||||
if (!['A+', 'A', 'A-', 'B+'].includes(coilRes.data.qualityStatus)) {
|
||||
this.$message.warning('钢卷质量状态需在B+及以上');
|
||||
return;
|
||||
}
|
||||
// 1. 更新钢卷状态为已发货
|
||||
await updateMaterialCoilSimple({
|
||||
...coilRes.data,
|
||||
status: 1,
|
||||
});
|
||||
await exportCoil(coilRes.data.coilId);
|
||||
|
||||
// 2. 插入一条已完成的待操作记录
|
||||
await addPendingAction({
|
||||
|
||||
Reference in New Issue
Block a user