| 1 |
- var t=(o,n,e)=>new Promise((f,p)=>{var v=l=>{try{d(e.next(l))}catch(i){p(i)}},I=l=>{try{d(e.throw(l))}catch(i){p(i)}},d=l=>l.done?f(l.value):Promise.resolve(l.value).then(v,I);d((e=e.apply(o,n)).next())});import{l as c,S as b}from"./antd-ae1b6d7a.js";import{e as r,a as s}from"./dialysisDeviceApi-42fc5982.js";import{a as m,w as P}from"./wardInfo-32d945ad.js";import{m as g}from"./vue-8fccce23.js";import{ak as a,au as u}from"./index.js";const C=[{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"}],Y=[{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"}],x=[{label:"新增床位",field:"addBed",component:"PlainTitle",defaultValue:"新增床位",colProps:{span:24}},{label:"病区",field:"wardId",required:!0,itemProps:{validateTrigger:"blur"},component:"ApiSelect",componentProps:({formModel:o})=>({api:m,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:"请输入绑定设备备注"}}],q=[{label:"床位信息",field:"bedInfo",component:"PlainTitle",defaultValue:"床位信息",colProps:{span:24}},{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:"原绑定设备",colProps:{span:24}},{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}}],S=[{field:"classes",component:"ApiSelect",componentProps:()=>({placeholder:"请选择病区",api:m,labelField:"name",valueField:"id",resultField:"data"})},{field:"bindDevice",component:"Select",componentProps:{placeholder:"绑定状态",options:[{label:"绑定",value:"1"},{label:"未绑定",value:"0"}]}}],B=[{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:()=>g(b)}),colProps:{span:12}}],R=o=>a.post({url:"/device/bed/query/page",params:u(o)}),k=o=>a.get({url:"/device/bed/detail/"+o}),A=o=>a.post({url:"/device/bed/add",params:o}),M=o=>a.post({url:"/device/bed/edit",params:o}),N=o=>a.post({url:"/device/bed/removeByIds",params:o}),V=o=>a.post({url:"/biz/device/bedDeviceReplace/query/page",params:u(o)});export{M as a,A as b,q as c,x as d,k as e,R as f,C as g,V as h,N as i,B as j,Y as r,S as s};
|