diff --git a/klp-ui/src/api/wms/coil.js b/klp-ui/src/api/wms/coil.js index 389d2e28..0b80eeff 100644 --- a/klp-ui/src/api/wms/coil.js +++ b/klp-ui/src/api/wms/coil.js @@ -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 + } + }) } \ No newline at end of file diff --git a/klp-ui/src/api/wms/deliveryPlanCoilOperate.js b/klp-ui/src/api/wms/deliveryPlanCoilOperate.js new file mode 100644 index 00000000..faf65289 --- /dev/null +++ b/klp-ui/src/api/wms/deliveryPlanCoilOperate.js @@ -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' + }) +} diff --git a/klp-ui/src/api/wms/deliveryPlanDetail.js b/klp-ui/src/api/wms/deliveryPlanDetail.js new file mode 100644 index 00000000..d849bef6 --- /dev/null +++ b/klp-ui/src/api/wms/deliveryPlanDetail.js @@ -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' + }) +} diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue index 85e47487..09ff9b21 100644 --- a/klp-ui/src/views/wms/coil/panels/do.vue +++ b/klp-ui/src/views/wms/coil/panels/do.vue @@ -506,16 +506,12 @@ export default { remark: `PC端领料创建-${this.label}` } - addPendingAction(pendingData).then(response => { - if (response.code === 200) { - this.$message.success('领料成功,已创建待操作任务') - this.getPendingAction() // 刷新待操作列表 - } else { - this.$message.error(response.msg || '领料失败') - } - }).catch(error => { - console.error('领料失败:', error) - this.$message.error('领料失败,请重试') + this.$modal.confirm(`是否确认从${row.warehouseName || '仓库'}领料${row.currentCoilNo || '物料'}?`).then(() => { + // 用户点击确认后执行的操作 + return addPendingAction(pendingData) + }).then(response => { + this.$message.success('领料成功,已创建待操作任务') + this.getPendingAction() // 刷新待操作列表 }).finally(() => { this.$set(row, 'picking', false) }) diff --git a/klp-ui/src/views/wms/delivery/components/planList.vue b/klp-ui/src/views/wms/delivery/components/planList.vue new file mode 100644 index 00000000..e69de29b diff --git a/klp-ui/src/views/wms/delivery/components/planOrder.vue b/klp-ui/src/views/wms/delivery/components/planOrder.vue new file mode 100644 index 00000000..cae1d24f --- /dev/null +++ b/klp-ui/src/views/wms/delivery/components/planOrder.vue @@ -0,0 +1,330 @@ + + + + + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/klp-ui/src/views/wms/delivery/plan/index.vue b/klp-ui/src/views/wms/delivery/plan/index.vue index 5894247a..7cc1c8de 100644 --- a/klp-ui/src/views/wms/delivery/plan/index.vue +++ b/klp-ui/src/views/wms/delivery/plan/index.vue @@ -19,14 +19,6 @@ 新增 - - 修改 - - - 删除 - 导出 @@ -34,40 +26,28 @@ - - - + + + + + - {{ row.planName }} {{ parseTime(row.planDate, '{y}-{m}-{d}') }} - - 已审批 - 待审批 - {{ row.createBy }}({{ parseTime(row.updateTime, '{y}-{m}-{d}') }}) - - - - - 备注: - - - - + 备注: {{ row.remark || '-' }} - 审批 修改 删除 @@ -75,46 +55,63 @@ + + :limit.sync="queryParams.pageSize" @pagination="getList" class="pagination-container" /> - - + + - - - - - - - - - - - - - - - 删除 - - - + + - - + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }} + + + + + 删除 + + + + + + + - @@ -126,9 +123,6 @@ placeholder="请选择计划日期"> - - - @@ -143,13 +137,16 @@ + +/* 空状态提示 */ +.empty-tip { + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} + +/* 分页容器 */ +.pagination-container { + margin-top: 10px; + text-align: right; +} + \ No newline at end of file diff --git a/klp-ui/src/views/wms/receive/components/ImportGuide.vue b/klp-ui/src/views/wms/receive/components/ImportGuide.vue index a9751c48..3031697f 100644 --- a/klp-ui/src/views/wms/receive/components/ImportGuide.vue +++ b/klp-ui/src/views/wms/receive/components/ImportGuide.vue @@ -166,8 +166,8 @@ const ErrorType = Object.freeze({ * 表格列配置枚举 */ const TableColumnEnum = Object.freeze([ - { prop: 'type', label: '类型', width: 80 }, - { prop: 'logicWarehouse', label: '逻辑库区', width: 120 }, + // { prop: 'type', label: '类型', width: 80 }, + // { prop: 'logicWarehouse', label: '逻辑库区', width: 120 }, { prop: 'inboundCoilNo', label: '入场卷号', width: 150 }, { prop: 'factoryCoilNo', label: '厂家卷号', width: 150 }, { prop: 'weight', label: '重量(吨)', width: 120 }, @@ -440,6 +440,10 @@ export default { // 增加行号 rowObj.rowNum = rowNum; + // 模版中移除原料列和逻辑库区列,默认值为原料和酸连轧原料库 + rowObj.type = '原料' + rowObj.logicWarehouse = '酸连轧原料库' + return rowObj; },