diff --git a/src/api/equipment/base/maintain/record.js b/src/api/equipment/base/maintain/record.js index 89f74906..8ca6f36f 100644 --- a/src/api/equipment/base/maintain/record.js +++ b/src/api/equipment/base/maintain/record.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-08 15:56:52 - * @LastEditTime: 2023-11-21 10:50:55 + * @LastEditTime: 2023-11-23 19:10:07 * @LastEditors: DY * @Description: */ @@ -32,3 +32,13 @@ export function exportMaintainMonitorExcel(query) { responseType: 'blob' }) } + +// 导出设备保养记录 +export function exportMaintainLogExcel(query) { + return request({ + url: '/base/equipment-maintain-log/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/equipment/base/repair.js b/src/api/equipment/base/repair.js index c8b115e2..79fb191b 100644 --- a/src/api/equipment/base/repair.js +++ b/src/api/equipment/base/repair.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-10 16:09:33 - * @LastEditTime: 2023-11-16 18:57:08 + * @LastEditTime: 2023-11-23 20:29:28 * @LastEditors: DY * @Description: */ @@ -31,3 +31,13 @@ export function deleteRepair(id) { method: 'delete' }) } + +// 导出设备维修 +export function exportRepairLogExcel(query) { + return request({ + url: '/base/equipment-repair-log/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/base/coreEquipment/index.vue b/src/views/base/coreEquipment/index.vue index 4e0ad8cf..0bd17c95 100644 --- a/src/views/base/coreEquipment/index.vue +++ b/src/views/base/coreEquipment/index.vue @@ -288,10 +288,10 @@ export default { [ { input: true, - label: '产品加工时间(s)', + label: '单件产品加工时间(s)', prop: 'processingTime', rules: [ - { required: true, message: '产品加工时间不能为空', trigger: 'blur' }, + { required: true, message: '单件产品加工时间不能为空', trigger: 'blur' }, { type: 'number', message: '请输入正确的数字值', @@ -319,9 +319,16 @@ export default { prop: 'description', }, ], + [ + { + upload: true, + label: '上传资料', + prop: 'files', + }, + ], [ { input: true, label: '备注', prop: 'remark' } - ] + ], // [ // { // assetUpload: true, diff --git a/src/views/base/coreEquipmentLineBind/index.vue b/src/views/base/coreEquipmentLineBind/index.vue index 1e08ce2d..c0874798 100644 --- a/src/views/base/coreEquipmentLineBind/index.vue +++ b/src/views/base/coreEquipmentLineBind/index.vue @@ -189,6 +189,10 @@ export default { ], label: '产线统计类型', prop: 'lineDataType', + bind: { + clearable: true, filterable: true + }, + rules: [{ required: true, message: '产线统计类型不能为空', trigger: 'change' }], }, { select: true, @@ -199,6 +203,10 @@ export default { ], label: '工段统计类型', prop: 'sectionDataType', + bind: { + clearable: true, filterable: true + }, + rules: [{ required: true, message: '工段统计类型不能为空', trigger: 'change' }], }, ], ], diff --git a/src/views/base/coreWorkOrder/detail.vue b/src/views/base/coreWorkOrder/detail.vue index 10b7a75f..d3859ebf 100644 --- a/src/views/base/coreWorkOrder/detail.vue +++ b/src/views/base/coreWorkOrder/detail.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-22 09:47:53 + * @LastEditTime: 2023-11-23 18:45:15 * @Description: --> @@ -179,6 +179,8 @@ import { getEqRepair, updateEqRepair } from '@/api/equipment/base/repair' import Editor from "@/components/Editor"; import FileUpload from "@/components/FileUpload"; import { getDictDatas } from "@/utils/dict"; +import { parseTime } from '@/utils/ruoyi' +import { getDictDataLabel } from '@/utils/dict'; export default { name: 'DialogForm', diff --git a/src/views/equipment/base/repair/index.vue b/src/views/equipment/base/repair/index.vue index c31bf702..76a3d40a 100644 --- a/src/views/equipment/base/repair/index.vue +++ b/src/views/equipment/base/repair/index.vue @@ -53,12 +53,12 @@ diff --git a/src/views/equipment/base/spareParts/Config/index.vue b/src/views/equipment/base/spareParts/Config/index.vue index 71b323b2..d76d9616 100644 --- a/src/views/equipment/base/spareParts/Config/index.vue +++ b/src/views/equipment/base/spareParts/Config/index.vue @@ -60,8 +60,9 @@ import { publicFormatter } from '@/utils/dict'; import Editor from '@/components/Editor'; import addSparts from './addSparts.vue'; import { deleteConfig } from '@/api/equipment/base/spare-parts/config' +import htmls from './htmls.vue' -const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); +// const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'); export default { name: 'EquipmentSparePartsConfig', @@ -111,7 +112,7 @@ export default { { prop: 'equipmentCode', label: '设备编码' }, { prop: 'responsible', label: '负责人' }, // { prop: 'unit', label: '单位', filter: publicFormatter('unit_dict') }, - { prop: 'description', label: '描述' }, + { prop: 'description', label: '描述', subcomponent: htmls }, { prop: 'sparePartNumber', label: '备品备件数量' }, // { prop: 'remark', label: '备注' }, ],