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/api/base/qualityInspectionBoxBtn.js b/src/api/base/qualityInspectionBoxBtn.js index 18954b61..cbf98967 100644 --- a/src/api/base/qualityInspectionBoxBtn.js +++ b/src/api/base/qualityInspectionBoxBtn.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-12-04 14:10:37 - * @LastEditTime: 2023-12-14 10:06:03 + * @LastEditTime: 2024-03-19 15:02:49 * @LastEditors: zhp * @Description: */ @@ -26,10 +26,11 @@ export function updateQualityInspectionBoxBtn(data) { } // 删除安灯按钮16键对应 -export function deleteQualityInspectionBoxBtn(id) { +export function deleteQualityInspectionBoxBtn(query) { return request({ - url: '/base/quality-inspection-box-btn/delete?id=' + id, - method: 'delete' + url: 'base/quality-inspection-box-btn/deleteByLineSection', + method: 'delete', + params: query }) } diff --git a/src/api/quality/deviceParameters.js b/src/api/quality/deviceParameters.js index ae1c87fb..f0a39799 100644 --- a/src/api/quality/deviceParameters.js +++ b/src/api/quality/deviceParameters.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-10-18 09:33:57 - * @LastEditTime: 2023-11-03 09:31:17 + * @LastEditTime: 2024-03-20 15:39:27 * @LastEditors: zhp * @Description: */ @@ -33,3 +33,12 @@ export function exportEnergyPlcExcel(query) { responseType: 'blob' }) } + +export function exportEquipmentTraceabilityExcel(query) { + return request({ + url: '/analysis/equipment-analysis/export-efficiency', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index 8f707c71..ddd97161 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -104,7 +104,7 @@ export const DICT_TYPE = { ORDER_PRIORITY: 'order_priority', PACK_SPEC: 'pack_spec', WORK_ORDER_STATUS: 'work_order_status', - + // ============== EQUIPMENT - 设备模块 ============= MAINTAIN_TYPE: 'maintain_type', FAULT_LEVEL: 'fault-level', @@ -116,7 +116,9 @@ export const DICT_TYPE = { ENVIRONMENT_CHECK_UNIT: 'environment_check_unit', // ============== GROUP - 班组模块 ============= - WORK_SHOP: 'workshop' + WORK_SHOP: 'workshop', + // ============== GROUP - 质量模块 ============= + MATERIAL_GRADE: 'material_grade' } /** 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: -->