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: -->