| 1 |
- var I=Object.defineProperty,R=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var v=(t,e,a)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,m=(t,e)=>{for(var a in e||(e={}))D.call(e,a)&&v(t,a,e[a]);if(f)for(var a of f(e))C.call(e,a)&&v(t,a,e[a]);return t},P=(t,e)=>R(t,x(e));var b=(t,e,a)=>new Promise((d,r)=>{var c=n=>{try{s(a.next(n))}catch(i){r(i)}},p=n=>{try{s(a.throw(n))}catch(i){r(i)}},s=n=>n.done?d(n.value):Promise.resolve(n.value).then(c,p);s((a=a.apply(t,e)).next())});import{a as V,B as _}from"./index-e473004f.js";import{u as G,_ as y}from"./useForm-19fca69f.js";import"./FormItem.vue_vue_type_script_lang-35d3ca4d.js";import{Q as Y,b8 as F,ao as k,_ as B}from"./index.js";import{a as S}from"./waterTreatmentApi-79564399.js";import{d as W,c as T,f as w,Y as M,a6 as L,a7 as O,l as U,u,aa as N}from"./vue-8fccce23.js";const Q=Y(),ee=[{title:"检查日期",dataIndex:"examinerTime",align:"center",width:120},{title:"检查人",dataIndex:"examinerName",align:"center",width:80},{title:"进水压力",dataIndex:"intakePressure",align:"center",width:80},{title:"控制器状态",dataIndex:"controllerState",align:"center",width:90},{title:"砂滤罐压差",dataIndex:"sandLeachDifferentialPressure",align:"center",width:90},{title:"砂滤罐反冲洗",dataIndex:"sandLeachBackFlush",align:"center",width:110},{title:"硬度",dataIndex:"hardness",align:"center",width:80},{title:"树脂罐压差",dataIndex:"resinDifferentialPressure",align:"center",width:90},{title:"树脂再生情况",dataIndex:"resinRegeneration",align:"center",width:110},{title:"残余氯",dataIndex:"residualChlorine",align:"center",width:60},{title:"活性炭罐压差",dataIndex:"activeCarbonDifferentialPressure",align:"center",width:110},{title:"活性炭罐反冲洗",dataIndex:"activeCarbonBackFlush",align:"center",width:120},{title:"更换滤器",dataIndex:"filterReplacement",align:"center",width:80},{title:"水机进水压力",dataIndex:"waterInletPressure",align:"center",width:110},{title:"1级膜进水压力",dataIndex:"membraneInletPressure1",align:"center",width:110},{title:"1级膜排水压力",dataIndex:"membraneDrainagePressure1",align:"center",width:110},{title:"1级膜产水压力",dataIndex:"membraneContributingWaterPressure1",align:"center",width:110},{title:"2级膜进水压力",dataIndex:"membraneInletPressure2",align:"center",width:110},{title:"2级膜排水压力",dataIndex:"membraneDrainagePressure2",align:"center",width:110},{title:"2级膜产水压力",dataIndex:"membraneContributingWaterPressure2",align:"center",width:110},{title:"纯水回水压力",dataIndex:"pureWaterReturnPressure",align:"center",width:110},{title:"进水电导率",dataIndex:"inletConductivity",align:"center",width:90},{title:"产水电导率",dataIndex:"contributingWaterConductivity",align:"center",width:90},{title:"进水量",dataIndex:"waterInflow",align:"center",width:60},{title:"产水量",dataIndex:"waterYield",align:"center",width:60},{title:"废水量",dataIndex:"wastewaterQuantity",align:"center",width:60},{title:"回水量",dataIndex:"waterReclamation",align:"center",width:60},{title:"水温",dataIndex:"waterTemperature",align:"center",width:60},{title:"系统消毒",dataIndex:"systemDisinfection",align:"center",width:80}],A=[{label:"检查日期",field:"examinerTime",required:!0,component:"DatePicker",componentProps:{format:"YYYY-MM-DD",placeholder:"请选择检查日期",getPopupContainer:()=>document.body,valueFormat:"YYYY-MM-DD"}},{label:"检查人",field:"examinerId",required:!0,component:"ApiSelect",componentProps:({formModel:t})=>({api:F,params:{name:t.patientBasicName,pageSize:999},labelField:"nickname",valueField:"id",resultField:"data",placeholder:"请输入患者姓名",getPopupContainer:()=>document.body,showSearch:!0,filterOption:!1,onSearch:e=>{t.patientBasicName=e}}),defaultValue:Q.getUserInfo.userId},{label:"进水压力",field:"intakePressure",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"控制器状态",field:"controllerState",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"砂滤罐压差",field:"sandLeachDifferentialPressure",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"砂滤罐反向冲洗",field:"sandLeachBackFlush",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"硬度",field:"hardness",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"树脂罐压差",field:"resinDifferentialPressure",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"树脂再生情况",field:"resinRegeneration",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"残余氯",field:"residualChlorine",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"活性炭罐压差",field:"activeCarbonDifferentialPressure",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"活性炭罐反向冲洗",field:"activeCarbonBackFlush",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"更换滤器",field:"filterReplacement",component:"RadioGroup",componentProps:{options:[{label:"是",value:1},{label:"否",value:0}]},defaultValue:1},{label:"水机进水压力",field:"waterInletPressure",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"1级膜进水压力",field:"membraneInletPressure1",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"1级膜排水压力",field:"membraneDrainagePressure1",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"1级膜产水压力",field:"membraneContributingWaterPressure1",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"2级膜进水压力",field:"membraneInletPressure2",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"2级膜排水压力",field:"membraneDrainagePressure2",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"2级膜产水压力",field:"membraneContributingWaterPressure2",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"纯水回水压力",field:"pureWaterReturnPressure",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"进水电导率",field:"inletConductivity",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"产水电导率",field:"contributingWaterConductivity",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"进水量",field:"waterInflow",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"产水量",field:"waterYield",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"废水量",field:"wastewaterQuantity",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"回水量",field:"waterReclamation",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"水温(℃)",field:"waterTemperature",component:"RadioGroup",componentProps:{options:[{label:"合格",value:1},{label:"不合格",value:0}]},defaultValue:1},{label:"系统消毒",field:"systemDisinfection",component:"RadioGroup",componentProps:{options:[{label:"是",value:1},{label:"否",value:0}]},defaultValue:1}],ae=["intakePressure","controllerState","sandLeachDifferentialPressure","sandLeachBackFlush","hardness","resinDifferentialPressure","resinRegeneration","residualChlorine","activeCarbonDifferentialPressure","activeCarbonBackFlush","filterReplacement","waterInletPressure","membraneInletPressure1","membraneDrainagePressure1","membraneContributingWaterPressure1","membraneInletPressure2","membraneDrainagePressure2","membraneContributingWaterPressure2","pureWaterReturnPressure","inletConductivity","contributingWaterConductivity","waterInflow","waterYield","wastewaterQuantity","waterReclamation","waterTemperature","systemDisinfection"],te=[{field:"patrolTime",component:"RangePicker",componentProps:{format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD"}}],j="35%",q=W({__name:"formDrawer",emits:["success","register"],setup(t,{emit:e}){const a=T(()=>"新增检查记录"),d=w(!1),r=w(),{createMessage:c}=k(),[p,{validate:s}]=G({labelWidth:120,schemas:A,showActionButtonGroup:!1,actionColOptions:{span:23},baseColProps:{span:12},wrapperCol:{span:24}}),[n,{setDrawerProps:i,closeDrawer:g}]=V(l=>b(this,null,function*(){var o;console.log("data::::::::",l),r.value=(o=l.record)==null?void 0:o.id}));function h(){return b(this,null,function*(){try{const l=yield s();i({confirmLoading:!0});const o={deviceId:r.value,examinerId:l.examinerId,examinerTime:l.examinerTime,checkContent:{}};delete l.examinerId,delete l.examinerTime,o.checkContent=l,console.log("params::::::::::",o),yield S(m({},o)),c.success("新增成功!"),g(),e("success",{isUpdate:u(d),values:P(m({},l),{id:r.value})})}finally{i({confirmLoading:!1})}})}return(l,o)=>(M(),L(u(_),N(l.$attrs,{destroyOnClose:"",onRegister:u(n),title:a.value,width:j,onOk:h,showFooter:!0}),{default:O(()=>[U(u(y),{onRegister:u(p),layout:"vertical"},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}});const z=B(q,[["__scopeId","data-v-63260a9c"]]),le=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{z as F,ee as c,ae as d,le as f,te as s};
|