feat(仓库管理): 新增钢卷库区操作日志功能
添加钢卷库区操作日志记录功能,包括: 1. 在入库操作时自动记录日志 2. 新增日志查询API接口 3. 实现日志查看页面和表格组件 4. 处理拒签和删除操作时的日志清理
This commit is contained in:
@@ -353,6 +353,7 @@ import { listDeliveryPlan } from '@/api/wms/deliveryPlan'
|
||||
import handleCoil, { COIL_ACTIONS } from '../js/coilActions'
|
||||
import LabelRender from '../panels/LabelRender/index.vue'
|
||||
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
||||
import { delCoilWarehouseOperationLogByCoilId } from '@/api/wms/coilWarehouseOperationLog'
|
||||
|
||||
// 键值为[400, 500), 不包含在字典中,但后续可以加入的特殊操作,这类操作录入后会立刻完成,例如入库(401)和发货(402)
|
||||
|
||||
@@ -676,7 +677,7 @@ export default {
|
||||
this.buttonLoading = true;
|
||||
updatePendingAction({
|
||||
...row,
|
||||
actionStatus: 3, // 3表示拒签
|
||||
actionStatus: 3, // 3表示取消操作,也就是拒签
|
||||
}).then(response => {
|
||||
this.$modal.msgSuccess("拒签成功");
|
||||
this.getList();
|
||||
@@ -723,6 +724,11 @@ export default {
|
||||
}
|
||||
delPendingAction(row.actionId).then(response => {
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
delCoilWarehouseOperationLogByCoilId({
|
||||
coilId: row.coilId,
|
||||
operationType: 1,
|
||||
inOutType: 1
|
||||
})
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { addMaterialCoil, updateMaterialCoil, updateMaterialCoilSimple } from "@/api/wms/coil"
|
||||
import { addPendingAction, updatePendingAction } from '@/api/wms/pendingAction';
|
||||
import { addCoilWarehouseOperationLog } from '@/api/wms/coilWarehouseOperationLog';
|
||||
|
||||
export const COIL_ACTIONS = {
|
||||
RECEIVE: 'RECEIVE', // 收货与入库的区别在于,收货相当于计划入库,不管是否已到货都执行这个操作,计划收货也是收获
|
||||
@@ -57,12 +58,26 @@ export const actionStrategies = {
|
||||
updateMaterialCoilSimple({
|
||||
...coil,
|
||||
dataType: 1,
|
||||
}),
|
||||
addCoilWarehouseOperationLog({
|
||||
coilId: coil.coilId,
|
||||
actualWarehouseId: coil.actualWarehouseId,
|
||||
operationType: 1,
|
||||
inOutType: 1,
|
||||
})
|
||||
])
|
||||
// 如果填写了实际库区,还需要新增一条库区出入记录
|
||||
// if (coil.actualWarehouseId) {
|
||||
// await addCoilWarehouseOperationLog({
|
||||
// coilId: coil.coilId,
|
||||
// actualWarehouseId: coil.actualWarehouseId,
|
||||
// operationType: 1,
|
||||
// inOutType: 1,
|
||||
// })
|
||||
// }
|
||||
return true
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
const handleCoil = (action, ...args) => {
|
||||
|
||||
Reference in New Issue
Block a user