feat(钢卷管理): 添加长度字段支持及相关功能

refactor(订单管理): 重构订单状态显示及操作记录功能

fix(权限控制): 移除导出订单明细的权限校验

perf(钢卷操作): 使用策略模式重构钢卷操作逻辑
This commit is contained in:
砂糖
2025-12-29 16:22:18 +08:00
parent 9b8c5ab80b
commit 825a967f7b
13 changed files with 344 additions and 170 deletions

View File

@@ -148,6 +148,7 @@ import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
import Printer from "../components/Printer.vue";
import { getConfigKey } from '@/api/system/config'
import handleCoil, { COIL_ACTIONS } from "@/views/wms/coil/js/coilActions.js";
export default {
name: "DeliveryWaybill",
@@ -440,22 +441,14 @@ export default {
// 二次确认
this.$modal.confirm("收货后刚钢卷会进入库存并占用所选的实际库区,是否继续?").then(() => {
this.buttonLoading = true;
// 更新操作记录状态 actionStatus: 2
updatePendingAction({
...this.receiptForm,
actionStatus: 2,
}).then(_ => {
this.$message.success("确认收货成功");
this.getList()
this.receiptModalVisible = false;
}).finally(() => {
this.buttonLoading = false;
});
// 更新钢卷状态为当前钢卷; dataType: 1
updateMaterialCoilSimple({
...this.coilInfo,
dataType: 1,
})
handleCoil(COIL_ACTIONS.STORE, this.coilInfo, this.receiptForm)
.then(_ => {
this.$message.success("确认收货成功");
this.getList()
this.receiptModalVisible = false;
}).finally(() => {
this.buttonLoading = false;
});
})
},
// 取消操作