bedApi-d7d6ac32.js 5.4 KB

1
  1. var t=(o,n,e)=>new Promise((u,p)=>{var f=l=>{try{d(e.next(l))}catch(i){p(i)}},v=l=>{try{d(e.throw(l))}catch(i){p(i)}},d=l=>l.done?u(l.value):Promise.resolve(l.value).then(f,v);d((e=e.apply(o,n)).next())});import{l as c,S as I}from"./antd-f259b82a.js";import{e as r,a as s}from"./dialysisDeviceApi-2f7535cf.js";import{g as b,w as P,a as g}from"./wardInfo-4b6b5ec9.js";import{m as h}from"./vue-aed314e3.js";import{al as a,av as m}from"./index.js";const Y=[{title:"病区",dataIndex:"wardName",align:"left",width:90},{title:"病区属性",dataIndex:"infectiousDiseases",align:"left",width:90},{title:"床位",dataIndex:"bedName",align:"left"},{title:"设备编号",dataIndex:"deviceUniqueCode",align:"left"},{title:"设备信息",dataIndex:"deviceName",align:"left"}],x=[{title:"操作时间",dataIndex:"updateTime",align:"left"},{title:"操作类型",dataIndex:"operationType",align:"left"},{title:"设备类型",dataIndex:"deviceType",align:"left"},{title:"设备编号",dataIndex:"deviceUniqueCode",align:"left"},{title:"设备备注",dataIndex:"deviceRemark",align:"left"}],q=[{label:"新增床位",field:"addBed",component:"PlainTitle",defaultValue:"新增床位"},{label:"病区",field:"wardId",required:!0,itemProps:{validateTrigger:"blur"},component:"ApiSelect",componentProps:({formModel:o})=>({api:b,labelField:"name",valueField:"id",resultField:"data",getPopupContainer:()=>document.body,onChange:n=>t(void 0,null,function*(){const e=yield P(n);o.wardInfo=e==null?void 0:e.infectiousDiseases})}),colProps:{span:12}},{label:"病区属性",field:"wardInfo",component:"Input",slot:"wardInfo",componentProps:{placeholder:"请输入病区属性"},colProps:{span:12}},{label:"床位",field:"name",required:!0,component:"Input",componentProps:{placeholder:"请输入床位"}},{label:"绑定设备",field:"devices",component:"PlainTitle",defaultValue:"绑定设备",colProps:{span:24}},{label:"设备编号",field:"deviceId",required:!0,component:"ApiSelect",componentProps:({formModel:o})=>({api:r,labelField:"uniqueCode",valueField:"id",resultField:"data",getPopupContainer:()=>document.body,onChange:n=>t(void 0,null,function*(){const e=yield s(n);o.deviceInfo=e==null?void 0:e.name,o.deviceType=e==null?void 0:e.deviceType})})},{label:"设备信息",field:"deviceInfo",component:"Input",slot:"deviceInfo",componentProps:{placeholder:"请输入设备信息"},colProps:{span:12}},{label:"设备类型",field:"deviceType",component:"Input",slot:"deviceType",componentProps:{placeholder:"请输入设备类型"},colProps:{span:12}},{label:"绑定设备备注",field:"deviceRemark",component:"InputTextArea",componentProps:{placeholder:"请输入绑定设备备注"}}],S=[{label:"床位信息",field:"bedInfo",component:"PlainTitle",defaultValue:"床位信息"},{label:"病区Id",field:"wardId",component:"Input",slot:"wardId",show:!1},{label:"病区",field:"wardName",component:"Input",slot:"wardName"},{label:"病区属性",field:"infectiousDiseases",component:"Input",slot:"infectiousDiseases"},{label:"床位",field:"name",component:"Input",slot:"name"},{label:"原绑定设备",field:"oldDevice",component:"PlainTitle",defaultValue:"原绑定设备"},{label:"设备编号",field:"oldDeviceUniqueCode",component:"Input",slot:"oldDeviceUniqueCode"},{label:"设备信息",field:"oldDeviceInfo",component:"Input",slot:"oldDeviceInfo"},{label:"设备类型",field:"oldDeviceType",component:"Input",slot:"oldDeviceType"},{label:"备注",field:"oldDeviceRemark",component:"Input",slot:"oldDeviceRemark",colProps:{span:24}},{label:"换绑信息",field:"changeDevice",component:"PlainTitle",defaultValue:"换绑信息",colProps:{span:24}},{label:"设备编号",field:"deviceId",required:!0,component:"ApiSelect",componentProps:({formModel:o})=>({api:r,labelField:"uniqueCode",valueField:"id",resultField:"data",getPopupContainer:()=>document.body,onChange:n=>t(void 0,null,function*(){const e=yield s(n);o.deviceInfo=e==null?void 0:e.name,o.deviceType=e==null?void 0:e.deviceType})}),colProps:{span:12}},{label:"设备信息",field:"deviceInfo",component:"Input",slot:"deviceInfo",componentProps:{placeholder:"请输入设备信息"},colProps:{span:12}},{label:"设备类型",field:"deviceType",component:"Input",slot:"deviceType",componentProps:{placeholder:"请输入设备类型"},colProps:{span:12}},{label:"绑定设备备注",field:"deviceRemark",component:"InputTextArea",componentProps:{placeholder:"请输入绑定设备备注"},colProps:{span:24}}],B=[{field:"classes",component:"ApiSelect",componentProps:()=>({placeholder:"请选择病区",api:g,labelField:"name",valueField:"id",resultField:"data"})},{field:"bindDevice",component:"Select",componentProps:{placeholder:"绑定状态",options:[{label:"绑定",value:"1"},{label:"未绑定",value:"0"}]}}],R=[{field:"createTime",component:"RangePicker",componentProps:{format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD"},colProps:{span:12},defaultValue:[c().subtract(3,"month").format("YYYY-MM-DD"),c().format("YYYY-MM-DD")]},{field:"searchNames",component:"Input",componentProps:{placeholder:"请输入设备编号"},renderComponentContent:()=>({prefix:()=>h(I)}),colProps:{span:12}}],A=o=>a.post({url:"/device/bed/query/page",params:m(o)}),k=o=>a.get({url:"/device/bed/detail/"+o}),M=o=>a.post({url:"/device/bed/add",params:o}),N=o=>a.post({url:"/device/bed/edit",params:o}),V=o=>a.post({url:"/device/bed/removeByIds",params:o}),U=o=>a.post({url:"/biz/device/bedDeviceReplace/query/page",params:m(o)});export{N as a,M as b,S as c,q as d,k as e,A as f,Y as g,U as h,V as i,R as j,x as r,B as s};