From c5116e93fc42e6f4d732a7ea990068ad9d0e0736 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期四, 24 七月 2025 14:52:56 +0800 Subject: [PATCH] feat(dry): 新增设备维护记录功能、新增维修记录功能、设备主数据增加履历相关字段 --- src/views/dry/dataDefine/DryEquipment.data.ts | 98 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 95 insertions(+), 3 deletions(-) diff --git a/src/views/dry/dataDefine/DryEquipment.data.ts b/src/views/dry/dataDefine/DryEquipment.data.ts index 215fbd8..1e6d6bd 100644 --- a/src/views/dry/dataDefine/DryEquipment.data.ts +++ b/src/views/dry/dataDefine/DryEquipment.data.ts @@ -21,6 +21,47 @@ dataIndex: 'type_dictText', }, { + title: '鍒堕�犲晢', + align: 'center', + dataIndex: 'manufacturer', + }, + { + title: '璐叆鏃ユ湡', + align: 'center', + dataIndex: 'purchaseDate', + }, + { + title: '鍚敤鏃ユ湡', + align: 'center', + dataIndex: 'startDate', + }, + { + title: '瀹夎浣嶇疆', + align: 'center', + dataIndex: 'location', + }, + { + title: '璁惧鐘舵��', + align: 'center', + dataIndex: 'status', + customRender: ({text}) => { + // 0-'鏂板',1-'鍦ㄧ敤', 2-'鍋滅敤', 3-'缁翠慨', 4-'鎶ュ簾' + const options = { + '0': '鏂板', + '1': '鍦ㄧ敤', + '2': '鍋滅敤', + '3': '缁翠慨', + '4': '鎶ュ簾' + }; + return options[text] || text; + } + }, + { + title: '鎶ュ簾鏃ユ湡', + align: 'center', + dataIndex: 'scrapDate', + }, + { title: '璁惧鎻忚堪', align: 'center', dataIndex: 'remark', @@ -99,6 +140,57 @@ }, }, { + label: '鍒堕�犲晢', + field: 'manufacturer', + component: 'Input', + }, + { + label: '璐叆鏃ユ湡', + field: 'purchaseDate', + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD', + format: 'YYYY-MM-DD' + }, + }, + { + label: '鍚敤鏃ユ湡', + field: 'startDate', + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD', + format: 'YYYY-MM-DD' + }, + }, + { + label: '瀹夎浣嶇疆', + field: 'location', + component: 'Input', + }, + { + label: '璁惧鐘舵��', + field: 'status', + component: 'Select', + componentProps: { + options: [ // '鍛ㄤ繚','鏈堜繚','瀛d繚','骞翠繚' + { label: '鏂板', value: '0' }, + { label: '鍦ㄧ敤', value: '1' }, + { label: '鍋滅敤', value: '2' }, + { label: '缁翠慨', value: '3' }, + { label: '鎶ュ簾', value: '4' } + ] + }, + }, + { + label: '鎶ュ簾鏃ユ湡', + field: 'scrapDate', + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD', + format: 'YYYY-MM-DD' + }, + }, + { label: '璁惧IP', field: 'ip', component: 'Input', @@ -113,7 +205,7 @@ componentProps: { dictCode: 'dry_eqp_type,name,id,tenant_id=' + getTenantId(), }, - dynamicRules: ({ model, schema }) => { + dynamicRules: ({ }) => { return [{ required: true, message: '璇疯緭鍏ヨ澶囩被鍨�!' }] }, }, @@ -129,7 +221,7 @@ componentProps: { dictCode: 'dry_shop,name,id,tenant_id=' + getTenantId(), }, - dynamicRules: ({ model, schema }) => { + dynamicRules: ({ }) => { return [{ required: true, message: '璇疯緭鍏ヨ溅闂磇d!' }] }, }, @@ -138,7 +230,7 @@ field: 'enable', component: 'JSwitch', componentProps: {}, - dynamicRules: ({ model, schema }) => { + dynamicRules: ({ }) => { return [{ required: true, message: '璇疯緭鍏ュ惎鐢ㄧ姸鎬�!' }] }, }, -- Gitblit v1.9.3