Files
qhmes/web-dist/js/MesXslEquipInspectRecord.data-q5nHKw6M.js
2026-06-16 18:19:57 +08:00

2 lines
5.2 KiB
Java

import{J as e}from"./JVxeTypes-C-gX5UoZ.js";import{aN as a}from"./index-X7Y8jykP.js";const d=[{title:"记录编号",align:"center",dataIndex:"recordNo",width:150},{title:"计划单号",align:"center",dataIndex:"planNo",width:130},{title:"设备名称",align:"center",dataIndex:"equipmentName",width:150},{title:"设备编码",align:"center",dataIndex:"equipmentCode",width:130},{title:"类型",align:"center",dataIndex:"recordType_dictText",width:80},{title:"点检日期",align:"center",dataIndex:"inspectDate",width:110},{title:"点检人",align:"center",dataIndex:"inspectorRealname",width:100},{title:"点检结果",align:"center",dataIndex:"inspectResult_dictText",width:90},{title:"是否已处理",align:"center",dataIndex:"handledFlag_dictText",width:90},{title:"状态",align:"center",dataIndex:"recordStatus_dictText",width:90},{title:"创建时间",align:"center",dataIndex:"createTime",width:165,customRender:({text:t})=>t?String(t).length>19?String(t).substring(0,19):t:""}],r=[{label:"记录编号",field:"recordNo",component:"Input",colProps:{span:6}},{label:"计划单号",field:"planNo",component:"Input",colProps:{span:6}},{label:"",field:"equipmentLedgerId",component:"Input",show:!1},{label:"设备名称",field:"equipmentName",component:"Input",slot:"equipmentLedgerPicker",colProps:{span:6}},{label:"类型",field:"recordType",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_im_item_category"},colProps:{span:6}},{label:"状态",field:"recordStatus",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_im_record_status"},colProps:{span:6}}],s=[{label:"",field:"id",component:"Input",show:!1},{label:"",field:"equipmentLedgerId",component:"Input",show:!1},{label:"",field:"planId",component:"Input",show:!1},{label:"",field:"equipInspectConfigId",component:"Input",show:!1},{label:"",field:"inspectorUserId",component:"Input",show:!1},{label:"",field:"inspectorUsername",component:"Input",show:!1},{label:"记录编号",field:"recordNo",component:"Input",componentProps:{readonly:!0,placeholder:"保存时自动生成"},dynamicRules:()=>[{required:!0,message:"记录编号不能为空"}]},{label:"计划单号",field:"planNo",component:"Input"},{label:"设备名称",field:"equipmentName",component:"Input",componentProps:{readonly:!0}},{label:"设备编码",field:"equipmentCode",component:"Input",componentProps:{readonly:!0}},{label:"类型",field:"recordType",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_im_item_category",disabled:!0}},{label:"点检日期",field:"inspectDate",component:"DatePicker",required:!0,componentProps:{valueFormat:"YYYY-MM-DD",style:{width:"100%"}}},{label:"点检人",field:"inspectorRealname",component:"Input",componentProps:{readonly:!0,placeholder:"当前登录用户"},dynamicRules:()=>[{required:!0,message:"点检人不能为空"}]},{label:"点检结果",field:"inspectResult",component:"JDictSelectTag",required:!0,componentProps:{dictCode:"xslmes_im_inspect_result",placeholder:"合格/不合格"}},{label:"状态",field:"recordStatus",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_im_record_status",disabled:!0}}],c=[{label:"是否已处理",field:"handledFlag",component:"JDictSelectTag",componentProps:{dictCode:"yn",disabled:!0}},{label:"处理人",field:"handlerRealname",component:"Input",componentProps:{readonly:!0}},{label:"处理时间",field:"handleTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},disabled:!0}}],p=[{label:"",field:"id",component:"Input",show:!1},{label:"",field:"handlerUsername",component:"Input",show:!1},{label:"",field:"handlerRealname",component:"Input",show:!1},{label:"处理人",field:"handlerUserId",component:"JSelectUser",required:!0,componentProps:({formActionType:t})=>({rowKey:"id",labelKey:"realname",isRadioSelection:!0,maxSelectCount:1,onOptionsChange:l=>{const n=l==null?void 0:l[0];n&&t&&t.setFieldsValue({handlerUsername:n.username,handlerRealname:n.realname})}})},{label:"处理时间",field:"handleTime",component:"DatePicker",required:!0,componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}}}],m=[{title:"",key:"equipInspectConfigLineId",type:e.hidden},{title:"",key:"inspectMaintainItemId",type:e.hidden},{title:"点检项目编号",key:"itemCode",type:e.normal,width:120,disabled:!0},{title:"点检项目",key:"itemName",type:e.normal,width:130,disabled:!0},{title:"项目类别",key:"itemCategory",type:e.select,width:90,disabled:!0,dictCode:"xslmes_im_item_category",filters:!1,sortable:!1},{title:"项目类型",key:"itemType",type:e.select,width:90,disabled:!0,dictCode:"xslmes_im_item_type",filters:!1,sortable:!1},{title:"设备部位",key:"equipmentPartName",type:e.normal,width:100,disabled:!0},{title:"设备小部位",key:"equipmentSubPartName",type:e.normal,width:100,disabled:!0},{title:"点检方式",key:"inspectMethod",type:e.select,width:90,disabled:!0,dictCode:"xslmes_im_inspect_method",filters:!1,sortable:!1},{title:"判断基准",key:"judgmentCriteria",type:e.normal,width:150,disabled:!0},{title:"点检描述",key:"lineInspectResult",type:e.input,width:140},{title:"图片",key:"pictureFiles",type:e.image,width:160,maxCount:3,token:!0,action:a,responseName:"message"}];export{d as c,s as f,p as h,m as l,c as p,r as s};