feat(钢卷管理): 添加长度字段支持及相关功能
refactor(订单管理): 重构订单状态显示及操作记录功能 fix(权限控制): 移除导出订单明细的权限校验 perf(钢卷操作): 使用策略模式重构钢卷操作逻辑
This commit is contained in:
@@ -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;
|
||||
});
|
||||
})
|
||||
},
|
||||
// 取消操作
|
||||
|
||||
Reference in New Issue
Block a user