feat(wms): 新增发货计划订单明细组件和操作记录功能

添加发货计划订单明细组件planOrder.vue,实现订单明细的增删改查功能
新增发货计划钢卷操作记录API和相关功能,记录钢卷的插入和删除操作
优化发货计划页面布局和样式,分离订单明细和钢卷管理区域
This commit is contained in:
砂糖
2025-12-17 15:59:56 +08:00
parent 57616ed494
commit a0652ca5fb
6 changed files with 643 additions and 125 deletions

View File

@@ -148,4 +148,19 @@ export function listCoilByIds(coilIds) {
pageSize: 1000
}
})
}
// 根据钢卷id查询最近的操作人和操作时间
export function listCoilOperation({coilIds, planId}) {
return request({
url: '/wms/deliveryPlanCoilOperate/coilOperate',
method: 'get',
params: {
// 至少要穿一个空字符串兜底
coilIds: coilIds,
planId,
pageNum: 1,
pageSize: 1000
}
})
}

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询发货计划钢卷操作记录列表
export function listDeliveryPlanCoilOperate(query) {
return request({
url: '/wms/deliveryPlanCoilOperate/list',
method: 'get',
params: query
})
}
// 查询发货计划钢卷操作记录详细
export function getDeliveryPlanCoilOperate(operateId) {
return request({
url: '/wms/deliveryPlanCoilOperate/' + operateId,
method: 'get'
})
}
// 新增发货计划钢卷操作记录
export function addDeliveryPlanCoilOperate(data) {
return request({
url: '/wms/deliveryPlanCoilOperate',
method: 'post',
data: data
})
}
// 修改发货计划钢卷操作记录
export function updateDeliveryPlanCoilOperate(data) {
return request({
url: '/wms/deliveryPlanCoilOperate',
method: 'put',
data: data
})
}
// 删除发货计划钢卷操作记录
export function delDeliveryPlanCoilOperate(operateId) {
return request({
url: '/wms/deliveryPlanCoilOperate/' + operateId,
method: 'delete'
})
}

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询发货计划明细列表
export function listDeliveryPlanDetail(query) {
return request({
url: '/wms/deliveryPlanDetail/list',
method: 'get',
params: query
})
}
// 查询发货计划明细详细
export function getDeliveryPlanDetail(detailId) {
return request({
url: '/wms/deliveryPlanDetail/' + detailId,
method: 'get'
})
}
// 新增发货计划明细
export function addDeliveryPlanDetail(data) {
return request({
url: '/wms/deliveryPlanDetail',
method: 'post',
data: data
})
}
// 修改发货计划明细
export function updateDeliveryPlanDetail(data) {
return request({
url: '/wms/deliveryPlanDetail',
method: 'put',
data: data
})
}
// 删除发货计划明细
export function delDeliveryPlanDetail(detailId) {
return request({
url: '/wms/deliveryPlanDetail/' + detailId,
method: 'delete'
})
}