diff --git a/klp-ui/src/components/KLPService/ActualWarehouseL1L2Select/index.vue b/klp-ui/src/components/KLPService/ActualWarehouseL1L2Select/index.vue index d415828b2..940458237 100644 --- a/klp-ui/src/components/KLPService/ActualWarehouseL1L2Select/index.vue +++ b/klp-ui/src/components/KLPService/ActualWarehouseL1L2Select/index.vue @@ -5,6 +5,7 @@ :clearable="clearable" :disabled="disabled" :size="size" + :multiple="multiple" filterable @change="onChange" style="width: 100%" @@ -30,9 +31,13 @@ export default { name: 'ActualWarehouseL1L2Select', props: { value: { - type: [Number, String], + type: [Number, String, Array, null], default: null }, + multiple: { + type: Boolean, + default: false + }, placeholder: { type: String, default: '请选择实际库区' diff --git a/klp-ui/src/components/KLPService/WarehouseSelect/index.vue b/klp-ui/src/components/KLPService/WarehouseSelect/index.vue index 20a6f59ec..44ee1e231 100644 --- a/klp-ui/src/components/KLPService/WarehouseSelect/index.vue +++ b/klp-ui/src/components/KLPService/WarehouseSelect/index.vue @@ -5,6 +5,7 @@ :clearable="clearable" :disabled="disabled" :size="size" + :multiple="multiple" filterable @change="onChange" style="width: 100%" @@ -30,9 +31,13 @@ export default { name: 'WarehouseSelect', props: { value: { - type: [Number, String, null], + type: [Number, String, Array, null], default: null }, + multiple: { + type: Boolean, + default: false + }, placeholder: { type: String, default: '请选择仓库' @@ -62,10 +67,12 @@ export default { }, watch: { value(val) { + console.log('[WarehouseSelect] value changed:', val, 'type:', typeof val, 'isArray:', Array.isArray(val)); this.selected = val; } }, mounted() { + console.log('[WarehouseSelect] mounted, initial value:', this.value, 'multiple:', this.multiple); this.loadOptions(); }, methods: { @@ -136,7 +143,11 @@ export default { }, onChange(val) { if (val) { - this.updateWarehouseUsage(val); + if (this.multiple && Array.isArray(val)) { + val.forEach(function(id) { this.updateWarehouseUsage(id); }, this); + } else { + this.updateWarehouseUsage(val); + } } this.$emit('input', val); this.$emit('change', val); diff --git a/klp-ui/src/views/wms/post/InvCount/apply.vue b/klp-ui/src/views/wms/post/InvCount/apply.vue index 59d7d2a76..8523d67db 100644 --- a/klp-ui/src/views/wms/post/InvCount/apply.vue +++ b/klp-ui/src/views/wms/post/InvCount/apply.vue @@ -28,9 +28,13 @@ subtitle="Application" emptyText="请在左侧列表中选择一条盘库计划" @submit-approval="handleSubmitApproval" + @approve="handlePlanApprove" + @reject="handleReject" @edit-plan="handleUpdate" @delete-plan="handleDelete" @bind-warehouse="handleAddWarehouse" + @edit-warehouse="handleEditWarehouse" + @delete-warehouse="handleDeleteWarehouse" /> @@ -41,29 +45,43 @@ - - - + + +
确定取消
- - - - + + + +
确定取消
+ + + +
+ 快捷理由: + {{ r }} +
+ + +
@@ -137,4 +162,8 @@ export default { .section-title .en-sub { font-size: 11px; font-weight: 400; color: #8c8c8c; font-style: italic; } .remark-content { padding: 12px 16px; background: #faf8f5; border: 1px solid #e8e4de; border-radius: 2px; font-size: 13px; line-height: 1.8; color: #1a1a1a; } .section-gap { height: 16px; } +.reject-quick-reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } +.reject-quick-label { font-size: 13px; color: #606266; flex-shrink: 0; } +.reject-tag { cursor: pointer; user-select: none; } +.reject-tag:hover { opacity: 0.8; } diff --git a/klp-ui/src/views/wms/post/InvCount/components/PlanDetailPanel.vue b/klp-ui/src/views/wms/post/InvCount/components/PlanDetailPanel.vue index f2ca433b0..4586c4b2e 100644 --- a/klp-ui/src/views/wms/post/InvCount/components/PlanDetailPanel.vue +++ b/klp-ui/src/views/wms/post/InvCount/components/PlanDetailPanel.vue @@ -46,6 +46,26 @@ + +
+ 流程操作 · Actions +
+
+ 驳回 + 审批通过 +
+ + + +
+ 流程操作 · Actions +
+
+ 驳回 + 审批通过 +
+ +
库区盘点明细 · Warehouses 绑定库区
@@ -53,12 +73,11 @@
diff --git a/klp-ui/src/views/wms/post/InvCount/components/WarehouseDetailPanel.vue b/klp-ui/src/views/wms/post/InvCount/components/WarehouseDetailPanel.vue index 9e2a6f095..47bcda9a4 100644 --- a/klp-ui/src/views/wms/post/InvCount/components/WarehouseDetailPanel.vue +++ b/klp-ui/src/views/wms/post/InvCount/components/WarehouseDetailPanel.vue @@ -96,6 +96,10 @@ 出入库查询截止 {{ wh.ioEndTime ? formatTime(wh.ioEndTime) : '-' }}
+
+ 编辑 + 删除 +
@@ -130,18 +134,6 @@ - -
- 驳回 - 审批通过 -
- - -
- 驳回 - 审批通过 -
-
归档封存 @@ -461,9 +453,9 @@ export default { async doGenSnapshot(wh) { if (!wh) return; var p = { dataType: 1, status: 0 }; - if (wh.warehouseId) p.warehouseId = String(wh.warehouseId); - if (wh.actualWarehouseId) p.actualWarehouseId = String(wh.actualWarehouseId); - if (!p.warehouseId && !p.actualWarehouseId) { this.$message.warning('无库区条件'); return; } + if (wh.warehouseIds) p.warehouseIds = String(wh.warehouseIds); + if (wh.actualWarehouseIds) p.actualWarehouseIds = String(wh.actualWarehouseIds); + if (!p.warehouseIds && !p.actualWarehouseIds) { this.$message.warning('无库区条件'); return; } this.genLoading = true; try { var resp = await exportCoilWithAll(p); @@ -622,6 +614,7 @@ export default { .wh-detail-row:last-child { border-bottom: none; } .wh-detail-label { width: 120px; flex-shrink: 0; color: #606266; font-weight: 500; } .wh-detail-value { color: #303133; } +.wh-detail-actions { display: flex; gap: 6px; padding: 8px 14px; border-top: 1px solid #f0ece6; justify-content: flex-end; } .doc-tabs-header { display: flex; border-bottom: 1px solid #d4d0c8; margin-bottom: 12px; } .doc-tab-item { padding: 8px 16px; cursor: pointer; color: #8c8c8c; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; display: flex; align-items: center; gap: 6px; user-select: none; } .doc-tab-item:hover { color: #1a3c6e; } diff --git a/klp-ui/src/views/wms/post/InvCount/index.vue b/klp-ui/src/views/wms/post/InvCount/index.vue index f69407e63..b7da73c5e 100644 --- a/klp-ui/src/views/wms/post/InvCount/index.vue +++ b/klp-ui/src/views/wms/post/InvCount/index.vue @@ -76,6 +76,8 @@ @reject="handleReject" @process-disc="handleProcessFromPanel" @submit-disc-approval="handleSubmitDiscApproval" + @edit-warehouse="handleEditWarehouse" + @delete-warehouse="handleRemoveWarehouse" />
@@ -95,13 +97,13 @@ placeholder="请选择截止时间" style="width:100%" /> - + - + - + @@ -113,13 +115,13 @@
- - - - + + + + - - + + 取 消 + + + +
+ 快捷理由: + {{ r }} +
+ + +