diff --git a/src/api/longchuang/productionPlan.js b/src/api/longchuang/productionPlan.js index 879b14b7..3c4bb10a 100644 --- a/src/api/longchuang/productionPlan.js +++ b/src/api/longchuang/productionPlan.js @@ -10,6 +10,7 @@ export const deleteHomeLiftOrder = data => createAPI(`/longchuang/productionPlan // ================= 序号2:线缆/COP自制任务单 ================= export const getCableCopTaskList = data => createAPI(`/longchuang/productionPlan/cableCopTask/list`, 'post', data) export const saveCableCopTask = data => createAPI(`/longchuang/productionPlan/cableCopTask/save`, 'post', data) +export const finishCableCopTask = data => createAPI(`/longchuang/productionPlan/cableCopTask/finish`, 'post', data) export const reportCableCopTaskNode = data => createAPI(`/longchuang/productionPlan/cableCopTask/reportNode`, 'post', data) export const deleteCableCopTask = data => createAPI(`/longchuang/productionPlan/cableCopTask/delete`, 'post', data) diff --git a/src/views/modules/longtron/production-plan-cable-cop-task.vue b/src/views/modules/longtron/production-plan-cable-cop-task.vue index 2bfd1a2b..5c346b10 100644 --- a/src/views/modules/longtron/production-plan-cable-cop-task.vue +++ b/src/views/modules/longtron/production-plan-cable-cop-task.vue @@ -33,7 +33,16 @@ - + @@ -82,6 +91,61 @@ style="margin-top: 20px; text-align: right"> +
+ + +
+
+
+ + 节点流程 + {{ selectedOrderProgressPercent }}% +
+
+
+
+ +
+
+
{{ stage.nodeName }}
+
+ {{ stage.status || '未开始' }} + 负责人:{{ stage.assigneeUserName || '-' }} +
+
+
+
+
+
+
+ + 操作日志 + {{ selectedOrderLogList.length }}条 +
+
+ + + + + + + + + + + +
+
+
+ +
+
+
+ 提交报工 - - + + @@ -420,7 +566,10 @@ export default { background-color: #fff; border-radius: 4px; } - +.data-table >>> .cell { + line-height: 20px; + height: 20px; +} .data-table >>> .el-table__header-wrapper th, .data-table >>> .el-table__fixed-header-wrapper th { background-color: #f5f7fa !important; @@ -520,4 +669,130 @@ export default { margin-left: 5px; margin-top: -5px; } + +.detail-tabs-wrap { + margin-top: 12px; + background-color: #fff; + border-radius: 4px; +} + +.detail-table { + width: 100%; +} + +.detail-table >>> .el-table__header-wrapper th, +.detail-table >>> .el-table__fixed-header-wrapper th { + background-color: #f5f7fa !important; + color: #333; + font-weight: 600; + border-color: #ebeef5; +} + +.two-column-layout { + display: flex; + gap: 12px; +} + +.stages-column { + width: 38%; + min-width: 320px; + border: 1px solid #ebeef5; + border-radius: 4px; + background: #fff; +} + +.logs-column { + flex: 1; + border: 1px solid #ebeef5; + border-radius: 4px; + background: #fff; +} + +.column-header { + height: 40px; + display: flex; + align-items: center; + gap: 6px; + padding: 0 12px; + border-bottom: 1px solid #ebeef5; + font-weight: 600; + color: #303133; +} + +.progress-badge, +.logs-count { + margin-left: auto; + color: #409eff; + font-size: 12px; + font-weight: 500; +} + +.stages-list { + max-height: 300px; + overflow-y: auto; + padding: 10px; +} + +.stage-item { + display: flex; + align-items: flex-start; + gap: 10px; + padding: 4px 8px; + border-radius: 4px; +} + +.stage-item + .stage-item { + margin-top: 2px; +} + +.stage-item.stage-done { + background: #f0f9eb; +} + +.stage-item.stage-processing { + background: #fdf6ec; +} + +.stage-item.stage-pending { + background: #f5f7fa; +} + +.stage-icon { + width: 22px; + height: 22px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 13px; + background: #fff; + border: 1px solid #dcdfe6; + color: #606266; +} + +.stage-content { + flex: 1; +} + +.stage-name { + font-size: 13px; + color: #303133; + line-height: 20px; +} + +.stage-meta { + margin-top: 6px; + display: flex; + align-items: center; + gap: 8px; +} + +.stage-owner { + color: #606266; + font-size: 12px; +} + +.logs-table-wrapper { + padding: 8px; +} diff --git a/src/views/modules/longtron/production-plan-home-order.vue b/src/views/modules/longtron/production-plan-home-order.vue index b7aa411c..6341c065 100644 --- a/src/views/modules/longtron/production-plan-home-order.vue +++ b/src/views/modules/longtron/production-plan-home-order.vue @@ -211,8 +211,8 @@ - - + +