import{h as a,u as l}from"./index-CLZzJyTP.js";const o=[{title:"仓库",align:"center",dataIndex:"wareCode_dictText"},{title:"服务名",align:"center",dataIndex:"serviceName"},{title:"标题",align:"center",dataIndex:"title"},{title:"内容",align:"center",dataIndex:"content"},{title:"状态",align:"center",dataIndex:"alarmStatus_dictText"},{title:"报警时间",align:"center",dataIndex:"alarmTime"}],i=[{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"服务名",field:"serviceName",component:"Input"},{label:"标题",field:"title",component:"Input"},{label:"状态",field:"alarmStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_alarm_status"}},{label:"报警时间",field:"alarmTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}}],m=[{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入仓库!"}]},{label:"服务名",field:"serviceName",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入服务名!"}]},{label:"标题",field:"title",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入标题!"}]},{label:"内容",field:"content",component:"InputTextArea"},{label:"状态",field:"alarmStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_alarm_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"报警时间",field:"alarmTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入报警时间!"}]},{label:"",field:"id",component:"Input",show:!1}],c={wareCode:{title:"仓库",order:0,view:"text",type:"string"},serviceName:{title:"服务名",order:1,view:"text",type:"string"},title:{title:"标题",order:2,view:"text",type:"string"},content:{title:"内容",order:3,view:"textarea",type:"string"},alarmStatus:{title:"状态",order:4,view:"text",type:"string"},alarmTime:{title:"报警时间",order:5,view:"datetime",type:"string"}};function d(e){return m}const{createConfirm:s}=l();const u="/wms/wmsAlarm/exportXls",p="/wms/wmsAlarm/importExcel",w=e=>a.get({url:"/wms/wmsAlarm/list",params:e}),g=(e,t)=>a.delete({url:"/wms/wmsAlarm/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),x=(e,t)=>{s({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>a.delete({url:"/wms/wmsAlarm/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},h=(e,t)=>{let r=t?"/wms/wmsAlarm/edit":"/wms/wmsAlarm/add";return a.post({url:r,params:e})};export{u as a,c as b,o as c,g as d,x as e,h as f,p as g,m as h,d as i,w as l,i as s};
