2 lines
5.0 KiB
Java
2 lines
5.0 KiB
Java
var r=Object.defineProperty,d=Object.defineProperties;var c=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))u.call(t,n)&&s(e,n,t[n]);return e},i=(e,t)=>d(e,c(t));import{s as I,d as a}from"./index-X7Y8jykP.js";const m={showTime:!0,format:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},getPopupContainer:()=>document.body},h=[{title:"机台",align:"center",dataIndex:"equipmentName",width:150},{title:"设备编号",align:"center",dataIndex:"equipmentCode",width:130},{title:"停机原因",align:"center",dataIndex:"downtimeTypeName",width:150},{title:"开始时间",align:"center",dataIndex:"startTime",width:165,customRender:({text:e})=>e?String(e).length>19?String(e).substring(0,19):e:""},{title:"结束时间",align:"center",dataIndex:"endTime",width:165,customRender:({text:e})=>e?String(e).length>19?String(e).substring(0,19):e:""},{title:"设备部位",align:"center",dataIndex:"equipmentPartName",width:120},{title:"维修项目",align:"center",dataIndex:"inspectMaintainItemName",width:140},{title:"维修结果",align:"center",dataIndex:"maintenanceResult",width:160,ellipsis:!0},{title:"维修人",align:"center",dataIndex:"maintainerRealname",width:100},{title:"是否已录入维修",align:"center",dataIndex:"maintenanceFilledFlag_dictText",width:120},{title:"创建人",align:"center",dataIndex:"createBy",width:100},{title:"创建时间",align:"center",dataIndex:"createTime",width:165,customRender:({text:e})=>e?String(e).length>19?String(e).substring(0,19):e:""}],b=[{label:"",field:"equipmentLedgerId",component:"Input",show:!1},{label:"机台",field:"equipmentName",component:"Input",slot:"equipmentPicker",colProps:{span:6}},{label:"设备编号",field:"equipmentCode",component:"Input",colProps:{span:6}},{label:"",field:"downtimeTypeId",component:"Input",show:!1},{label:"停机原因",field:"downtimeTypeName",component:"Input",slot:"downtimeTypePicker",colProps:{span:6}},{label:"是否已录入维修",field:"maintenanceFilledFlag",component:"JDictSelectTag",componentProps:{dictCode:"yn"},colProps:{span:6}}],P=[{label:"",field:"id",component:"Input",show:!1},{label:"",field:"equipmentLedgerId",component:"Input",show:!1,dynamicRules:()=>[{required:!0,message:"请选择机台"}]},{label:"机台",field:"equipmentName",component:"Input",slot:"equipmentPicker"},{label:"",field:"downtimeTypeId",component:"Input",show:!1,dynamicRules:()=>[{required:!0,message:"请选择停机原因"}]},{label:"停机原因",field:"downtimeTypeName",component:"Input",slot:"downtimeTypePicker"},{label:"开始时间",field:"startTime",component:"DatePicker",required:!0,componentProps:i(l({},m),{placeholder:"请选择开始时间"})},{label:"结束时间",field:"endTime",component:"DatePicker",componentProps:i(l({},m),{placeholder:"请选择结束时间"})}],q=[{label:"",field:"id",component:"Input",show:!1},{label:"",field:"equipmentLedgerId",component:"Input",show:!1},{label:"",field:"equipmentCategoryId",component:"Input",show:!1},{label:"",field:"equipmentTypeId",component:"Input",show:!1},{label:"",field:"maintainerUsername",component:"Input",show:!1},{label:"",field:"maintainerRealname",component:"Input",show:!1},{label:"",field:"equipmentPartId",component:"Input",show:!1,dynamicRules:()=>[{required:!0,message:"请选择设备部位"}]},{label:"设备部位",field:"equipmentPartName",component:"Input",slot:"equipmentPartPicker"},{label:"",field:"inspectMaintainItemId",component:"Input",show:!1,dynamicRules:()=>[{required:!0,message:"请选择维修项目"}]},{label:"维修项目",field:"inspectMaintainItemName",component:"Input",slot:"inspectItemPicker"},{label:"维修结果",field:"maintenanceResult",component:"InputTextArea",required:!0,componentProps:{rows:3,placeholder:"手输维修结果"}},{label:"维修人",field:"maintainerUserId",component:"JSelectUser",required:!0,componentProps:({formActionType:e})=>({rowKey:"id",labelKey:"realname",isRadioSelection:!0,maxSelectCount:1,onOptionsChange:t=>{const n=t==null?void 0:t[0];n&&e&&e.setFieldsValue({maintainerUsername:n.username,maintainerRealname:n.realname})}})}],{createConfirm:w}=I(),R="/xslmes/mesXslDowntimeRecord/exportXls",T="/xslmes/mesXslDowntimeRecord/importExcel",x=e=>a.get({url:"/xslmes/mesXslDowntimeRecord/list",params:e}),y=e=>a.post({url:"/xslmes/mesXslDowntimeRecord/saveMaintenanceResult",params:e}),D=(e,t)=>a.delete({url:"/xslmes/mesXslDowntimeRecord/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),S=(e,t)=>{w({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>a.delete({url:"/xslmes/mesXslDowntimeRecord/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},k=(e,t)=>{const n=t?"/xslmes/mesXslDowntimeRecord/edit":"/xslmes/mesXslDowntimeRecord/add";return a.post({url:n,params:e})};export{y as a,R as b,b as c,h as d,S as e,P as f,T as g,D as h,x as l,q as m,k as s};
|