From c1794ac23fc4b87bb0366ad83bc7d01f4258abd7 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 13 May 2026 17:36:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E5=8A=A0=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/longchuang/productionPlan.js | 7 + src/router/index.js | 1 + .../production-plan-cable-cop-task.vue | 7 +- .../longtron/production-plan-home-order.vue | 7 +- .../production-plan-machining-task.vue | 780 ++++++++++++++++++ .../production-plan-renovation-order.vue | 9 +- .../longtron/production-work-report.vue | 75 +- .../longtron/screen-machining-progress.vue | 132 +++ 8 files changed, 978 insertions(+), 40 deletions(-) create mode 100644 src/views/modules/longtron/production-plan-machining-task.vue create mode 100644 src/views/modules/longtron/screen-machining-progress.vue diff --git a/src/api/longchuang/productionPlan.js b/src/api/longchuang/productionPlan.js index 3c4bb10a..abc5bb5e 100644 --- a/src/api/longchuang/productionPlan.js +++ b/src/api/longchuang/productionPlan.js @@ -21,6 +21,13 @@ export const finishRenovationOrder = data => createAPI(`/longchuang/productionPl export const reportRenovationOrderNode = data => createAPI(`/longchuang/productionPlan/renovationOrder/reportNode`, 'post', data) export const deleteRenovationOrder = data => createAPI(`/longchuang/productionPlan/renovationOrder/delete`, 'post', data) +// ================= 序号4:机加工生产任务单 ================= +export const getMachiningTaskList = data => createAPI(`/longchuang/productionPlan/machiningTask/list`, 'post', data) +export const saveMachiningTask = data => createAPI(`/longchuang/productionPlan/machiningTask/save`, 'post', data) +export const finishMachiningTask = data => createAPI(`/longchuang/productionPlan/machiningTask/finish`, 'post', data) +export const reportMachiningTaskNode = data => createAPI(`/longchuang/productionPlan/machiningTask/reportNode`, 'post', data) +export const deleteMachiningTask = data => createAPI(`/longchuang/productionPlan/machiningTask/delete`, 'post', data) + // ================= 节点负责人分配 ================= export const getNodeAssigneeList = data => createAPI(`/longchuang/productionPlan/nodeAssignee/list`, 'post', data) export const saveNodeAssignee = data => createAPI(`/longchuang/productionPlan/nodeAssignee/save`, 'post', data) diff --git a/src/router/index.js b/src/router/index.js index 5afc817f..3eacbf95 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,6 +25,7 @@ const globalRoutes = [ { path: '/screen-whole-lift-progress', component: _import('modules/longtron/screen-whole-lift-progress'), name: 'screen-whole-lift-progress', meta: { title: '整梯生产进度看板' } }, { path: '/screen-cable-cop-progress', component: _import('modules/longtron/screen-cable-cop-progress'), name: 'screen-cable-cop-progress', meta: { title: '线缆/COP生产进度看板' } }, { path: '/screen-renovation-progress', component: _import('modules/longtron/screen-renovation-progress'), name: 'screen-renovation-progress', meta: { title: '改造项目生产进度看板' } }, + { path: '/screen-machining-progress', component: _import('modules/longtron/screen-machining-progress'), name: 'screen-machining-progress', meta: { title: '机加工生产进度看板' } }, { path: '/screen-factory-overview', component: _import('modules/longtron/screen-factory-overview'), name: 'screen-factory-overview', meta: { title: '工厂综合运营看板' } }, ] 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 ecf529b4..92d382ce 100644 --- a/src/views/modules/longtron/production-plan-cable-cop-task.vue +++ b/src/views/modules/longtron/production-plan-cable-cop-task.vue @@ -73,7 +73,7 @@ @@ -481,10 +481,7 @@ export default { const nextNode = row.nodeList.find(item => item.status !== '已完成') row.currentNode = nextNode ? nextNode.nodeName : '全部完成' row.nodeDoneCount = row.nodeList.filter(item => item.status === '已完成').length - if (!nextNode) { - row.status = '已完成' - row.finishDate = this.dayjs().format('YYYY-MM-DD') - } + row.finishDate = '' }, finishTask(row) { finishCableCopTask({ orderNo: row.orderNo }).then(({data}) => { diff --git a/src/views/modules/longtron/production-plan-home-order.vue b/src/views/modules/longtron/production-plan-home-order.vue index 19e4a77d..e69d837a 100644 --- a/src/views/modules/longtron/production-plan-home-order.vue +++ b/src/views/modules/longtron/production-plan-home-order.vue @@ -68,7 +68,7 @@ @@ -444,10 +444,7 @@ export default { const nextNode = row.nodeList.find(item => item.status !== '已完成') row.currentNode = nextNode ? nextNode.nodeName : '全部完成' row.nodeDoneCount = row.nodeList.filter(item => item.status === '已完成').length - if (!nextNode) { - row.status = '已完成' - row.finishDate = this.dayjs().format('YYYY-MM-DD') - } + row.finishDate = '' }, finishOrder(row) { finishHomeLiftOrder({ orderNo: row.orderNo }).then(({data}) => { diff --git a/src/views/modules/longtron/production-plan-machining-task.vue b/src/views/modules/longtron/production-plan-machining-task.vue new file mode 100644 index 00000000..9c15c624 --- /dev/null +++ b/src/views/modules/longtron/production-plan-machining-task.vue @@ -0,0 +1,780 @@ + + + + + diff --git a/src/views/modules/longtron/production-plan-renovation-order.vue b/src/views/modules/longtron/production-plan-renovation-order.vue index ac45ceb5..c3367bd6 100644 --- a/src/views/modules/longtron/production-plan-renovation-order.vue +++ b/src/views/modules/longtron/production-plan-renovation-order.vue @@ -65,7 +65,7 @@ @@ -154,7 +154,7 @@ - + @@ -474,10 +474,7 @@ export default { const nextNode = row.nodeList.find(item => item.status !== '已完成') row.currentNode = nextNode ? nextNode.nodeName : '全部完成' row.nodeDoneCount = row.nodeList.filter(item => item.status === '已完成').length - if (!nextNode) { - row.status = '已完成' - row.finishDate = this.dayjs().format('YYYY-MM-DD') - } + row.finishDate = '' }, finishOrder(row) { finishRenovationOrder({ orderNo: row.orderNo }).then(({data}) => { diff --git a/src/views/modules/longtron/production-work-report.vue b/src/views/modules/longtron/production-work-report.vue index acc91fcf..8ed10c20 100644 --- a/src/views/modules/longtron/production-work-report.vue +++ b/src/views/modules/longtron/production-work-report.vue @@ -5,7 +5,7 @@

生产报工

-

家用电梯 / 线缆COP / 改造项目节点报工管理

+

家用电梯 / 线缆COP / 改造项目 / 机加工生产节点报工管理

@@ -44,6 +44,7 @@ + @@ -103,7 +104,7 @@
- 型号 + {{ getModelFieldLabel(item.orderType) }} {{ item.modelNo }}
@@ -133,7 +134,7 @@ type="primary" plain :disabled="node.status === '已完成' || !canReportNode(item, node)" - @click="directReportNode(item, node)"> + @click="handleReportNode(item, node)"> 报工
@@ -171,7 +172,7 @@ @@ -182,30 +183,25 @@ - - + + - - + + - - - - - - - - @@ -243,7 +239,7 @@ + +