From 630e7a95b3037d1a16179be9fa9938407fe8b375 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Wed, 20 Mar 2024 08:48:02 +0800 Subject: [PATCH] bug 2 --- src/api/base/productionLine.js | 11 +- src/views/base/coreWorkOrder/addWorkOrder.vue | 11 +- src/views/base/coreWorkOrder/allocation.vue | 113 +++++++++++++----- src/views/base/coreWorkOrder/detail.vue | 6 +- src/views/base/coreWorkOrder/index.vue | 80 +++++++------ .../core/analysis/balanceAnalysis/index.vue | 61 ++++++++-- .../equipment/analysis/Statistics/index.vue | 30 ++--- .../equipment/analysis/exception/index.vue | 54 ++++++--- .../DataCollection/CollectionConfig.vue | 4 +- .../config/DataCollection/add-or-updata.vue | 2 +- .../DataCollection/components/BasicDrawer.vue | 6 +- .../base/inspection/Confirm/add-or-updata.vue | 17 ++- .../base/inspection/Settings/add.vue | 4 +- .../base/inspection/Settings/index.vue | 9 +- .../equipment/base/repair/Repair--add.vue | 4 +- .../monitor/StatusAndParams/index.vue | 20 +++- .../equipment/timing-diagram/output/index.vue | 21 +++- .../equipment/timing-diagram/status/index.vue | 4 +- .../equipmentProcessAmount/index.vue | 2 +- 19 files changed, 327 insertions(+), 132 deletions(-) diff --git a/src/api/base/productionLine.js b/src/api/base/productionLine.js index add39173..df5af61b 100644 --- a/src/api/base/productionLine.js +++ b/src/api/base/productionLine.js @@ -5,4 +5,13 @@ export function getLineAll() { url: '/base/core-production-line/listAll', method: 'get' }) -} \ No newline at end of file +} + +// 根据车间获得所有工厂产线列表 +export function getLinelistByRoom(query) { + return request({ + url: '/base/core-production-line/listFilter', + method: 'get', + params: query + }) +} diff --git a/src/views/base/coreWorkOrder/addWorkOrder.vue b/src/views/base/coreWorkOrder/addWorkOrder.vue index 9e1bc3ff..41d449b0 100644 --- a/src/views/base/coreWorkOrder/addWorkOrder.vue +++ b/src/views/base/coreWorkOrder/addWorkOrder.vue @@ -123,6 +123,7 @@ filterable clearable style="width: 100%" + @change="setLine" placeholder="请选择车间名称"> { + this.productLineList = res.data || [] + }) + }, // 工艺变更 materialMethodChange(val) { if (val === 2 && !this.dataForm.processFlowId) { diff --git a/src/views/base/coreWorkOrder/allocation.vue b/src/views/base/coreWorkOrder/allocation.vue index c0c17869..9709a62e 100644 --- a/src/views/base/coreWorkOrder/allocation.vue +++ b/src/views/base/coreWorkOrder/allocation.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2024-03-13 14:47:44 + * @LastEditTime: 2024-03-15 15:34:58 * @Description: -->