| 1 |
- var j=Object.defineProperty,O=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var N=(y,c,m)=>c in y?j(y,c,{enumerable:!0,configurable:!0,writable:!0,value:m}):y[c]=m,z=(y,c)=>{for(var m in c||(c={}))Z.call(c,m)&&N(y,m,c[m]);if(S)for(var m of S(c))A.call(c,m)&&N(y,m,c[m]);return y},B=(y,c)=>O(y,Q(c));var f=(y,c,m)=>new Promise((p,v)=>{var b=d=>{try{C(m.next(d))}catch(L){v(L)}},_=d=>{try{C(m.throw(d))}catch(L){v(L)}},C=d=>d.done?p(d.value):Promise.resolve(d.value).then(b,_);C((m=m.apply(y,c)).next())});import{u as G,a as H,_ as J}from"./useTable-9be8c0ed.js";import{m as W,au as X,_ as I}from"./index.js";import{c as ee,a as te,F as ie,b as le,s as ae}from"./formDrawer-71120d21.js";import{l as se}from"./index-a4e1ec38.js";import{_ as re}from"./componentMap-61ccdbb2.js";import{u as ne}from"./useForm-bff27c7a.js";import"./FormItem.vue_vue_type_script_lang-39d09a3e.js";import{l as oe}from"./antd-f259b82a.js";import{u as ue}from"./index-f805ce51.js";import{d as me,f as x,B as ye,a5 as ce,q as ke,Y as t,Z as l,_ as r,n as de,a6 as M,a7 as D,l as w,E as e,u as g,F as a,a9 as s,$ as u,a1 as _e,a2 as he}from"./vue-aed314e3.js";import"./useForm-c7f42ee0.js";import"./index-4f5bc708.js";import"./useWindowSizeFn-6e9d633b.js";import"./componentMap-175d8229.js";import"./uuid-31b8b5a4.js";import"./onMountedOrActivated-d9097634.js";import"./sortable.esm-4ae27e0b.js";import"./waterApi-626d146f.js";import"./index-7fe9c1e2.js";import"./index-6811a03f.js";import"./useFormItem-421691fe.js";import"./useSortable-7d2b6665.js";import"./download-2ecc6b15.js";import"./copyTextToClipboard-328ee3b1.js";import"./TextEditor-4892fcd0.js";const n=y=>(_e("data-v-8057ed33"),y=y(),he(),y),pe={class:"m-4 modals"},be={class:"flex items-center justify-between my-4"},fe=n(()=>r("br",null,null,-1)),ge=n(()=>r("br",null,null,-1)),ve=n(()=>r("br",null,null,-1)),Ce=n(()=>r("br",null,null,-1)),Le=n(()=>r("br",null,null,-1)),xe=n(()=>r("br",null,null,-1)),De=n(()=>r("br",null,null,-1)),we=n(()=>r("br",null,null,-1)),Ee=n(()=>r("br",null,null,-1)),Fe=n(()=>r("br",null,null,-1)),Se=n(()=>r("br",null,null,-1)),Ne=n(()=>r("br",null,null,-1)),ze=n(()=>r("br",null,null,-1)),Be=n(()=>r("br",null,null,-1)),Me=n(()=>r("br",null,null,-1)),Pe=n(()=>r("br",null,null,-1)),Re=n(()=>r("br",null,null,-1)),Ve=n(()=>r("br",null,null,-1)),$e=n(()=>r("br",null,null,-1)),Te=n(()=>r("br",null,null,-1)),Ye=n(()=>r("br",null,null,-1)),Ue=n(()=>r("br",null,null,-1)),qe=n(()=>r("br",null,null,-1)),Ke=n(()=>r("br",null,null,-1)),je=n(()=>r("br",null,null,-1)),Oe=n(()=>r("br",null,null,-1)),Qe=me({__name:"index",setup(y){const{createMessage:c}=X(),[m,{getFieldsValue:p}]=ne({schemas:ae,autoSubmitOnEnter:!0,size:"large",rowProps:{gutter:16}}),v=x(),b=x(""),_=x([]),C=x(),[d,{openDrawer:L}]=ue();ye(()=>f(this,null,function*(){C.value=yield se({dictCode:"pht"})}));const F=x([{field:"create_time",direction:"DESC"}]),[P,{reload:E}]=G({api:ee,rowKey:"id",columns:te,showIndexColumn:!1,bordered:!0,actionColumn:{width:200,title:"操作",dataIndex:"action"},beforeFetch:$,sortFn:V});function R(k){return f(this,null,function*(){yield le([k.id]),c.success("删除成功!"),yield E()})}function V(k){k!=null&&k.order&&(k!=null&&k.columnKey)&&(F.value=[{field:k.columnKey,direction:k.order.replace(/(\w+)(end)/g,"$1").toUpperCase()}])}function $(k){return f(this,null,function*(){const h=[];return _.value&&_.value.length>0&&(h.push(_.value[0]),h.push(_.value[1]),h[1]=oe(h[1]).add(1,"day").format("YYYY-MM-DD")),B(z({},k),{orders:F.value,deviceUniqueCode:b.value==""?void 0:b.value,status:v.value==""?void 0:v.value,time:h.length<=0?void 0:h})})}function T(){L(!0,{isUpdate:!1})}function Y(){return f(this,null,function*(){yield E()})}function U(){return f(this,null,function*(){_.value=p().shiftDate?p().shiftDate:"",b.value=p().searchNames?p().searchNames:"",console.log("callForm:::",b.value),yield E()})}return(k,h)=>{const q=ce("a-button"),K=ke("auth");return t(),l(a,null,[r("div",pe,[r("div",null,[r("div",be,[r("div",null,[de((t(),M(q,{type:"primary",size:"large",class:"btn-add",onClick:T},{icon:D(()=>[w(W,{icon:"icon-xt-add_default|iconfont"})]),default:D(()=>[e("新增检测")]),_:1})),[[K,["biz:chemicalPollutantDetection:add"]]])]),r("div",null,[w(g(re),{onRegister:g(m),onFieldValueChange:U,style:{width:"450px"},class:"mr-2"},null,8,["onRegister"])])])]),w(g(J),{onRegister:g(P)},{headerCell:D(({column:i})=>[i.key==="deviceUniqueCode"?(t(),l(a,{key:0},[e(" 设备编号 ")],64)):s("",!0),i.key==="deviceInfo"?(t(),l(a,{key:1},[e(" 设备信息 ")],64)):s("",!0),i.key==="detectionTime"?(t(),l(a,{key:2},[e(" 检测时间 ")],64)):s("",!0),i.key==="toxicChemicals"?(t(),l(a,{key:3},[e(" 透析用水中的有毒化学物质 ")],64)):s("",!0),i.key==="aluminum"?(t(),l(a,{key:4},[e("铝(mg/L)"),fe,e("正常值≤0.01")],64)):s("",!0),i.key==="totalChlorine"?(t(),l(a,{key:5},[e(" 总氯(mg/L)"),ge,e("正常值≤0.1 ")],64)):s("",!0),i.key==="copper"?(t(),l(a,{key:6},[e(" 铜(mg/L)"),ve,e("正常值≤0.01 ")],64)):s("",!0),i.key==="fluoride"?(t(),l(a,{key:7},[e(" 氟化物 (mg/L)"),Ce,e("正常值≤0.2 ")],64)):s("",!0),i.key==="lead"?(t(),l(a,{key:8},[e(" 铅(mg/L)"),Le,e("正常值≤0.005 ")],64)):s("",!0),i.key==="nitrate"?(t(),l(a,{key:9},[e(" 硝酸盐(氮)"),xe,e(" (mg/L)正常值≤2")],64)):s("",!0),i.key==="sulfate"?(t(),l(a,{key:10},[e(" 硫酸盐 (mg/L)"),De,e(" 正常值≤100")],64)):s("",!0),i.key==="zinc"?(t(),l(a,{key:11},[e(" 锌(mg/L)"),we,e("正常值≤0.1 ")],64)):s("",!0),i.key==="electrolyte"?(t(),l(a,{key:12},[e(" 透析溶液中的电解质 ")],64)):s("",!0),i.key==="calcium"?(t(),l(a,{key:13},[e(" 钙(mmol/L)"),Ee,e("正常值≤2"),Fe,e("(0.05mmol/L) ")],64)):s("",!0),i.key==="magnesium"?(t(),l(a,{key:14},[e(" 镁(mmol/L)"),Se,e("正常值≤4"),Ne,e("(0.15mmol/L) ")],64)):s("",!0),i.key==="potassium"?(t(),l(a,{key:15},[e(" 钾(mmol/L)"),ze,e("正常值≤8"),Be,e("(0.2mmol/L) ")],64)):s("",!0),i.key==="sodium"?(t(),l(a,{key:16},[e(" 钠(mmol/L)"),Me,e("正常值≤70"),Pe,e("(3.0mmol/L) ")],64)):s("",!0),i.key==="traceElement"?(t(),l(a,{key:17},[e(" 透析用水中的微量元素 ")],64)):s("",!0),i.key==="antimony"?(t(),l(a,{key:18},[e(" 锑(mg/L)"),Re,e("正常值≤0.006 ")],64)):s("",!0),i.key==="arsenic"?(t(),l(a,{key:19},[e("砷(mg/L)"),Ve,e("正常值≤0.005")],64)):s("",!0),i.key==="barium"?(t(),l(a,{key:20},[e(" 钡(mg/L)"),$e,e("正常值≤0.1 ")],64)):s("",!0),i.key==="beryllium"?(t(),l(a,{key:21},[e(" 铍(mg/L)"),Te,e("正常值≤0.0004 ")],64)):s("",!0),i.key==="cadmium"?(t(),l(a,{key:22},[e(" 镉(mg/L)"),Ye,e("正常值≤0.001 ")],64)):s("",!0),i.key==="chromium"?(t(),l(a,{key:23},[e(" 铬(mg/L)"),Ue,e("正常值≤0.014 ")],64)):s("",!0),i.key==="mercury"?(t(),l(a,{key:24},[e(" 汞(mg/L)"),qe,e("正常值≤0.0002 ")],64)):s("",!0),i.key==="selenium"?(t(),l(a,{key:25},[e(" 硒(mg/L)"),Ke,e("正常值≤0.09 ")],64)):s("",!0),i.key==="silver"?(t(),l(a,{key:26},[e(" 银(mg/L)"),je,e("正常值≤0.005 ")],64)):s("",!0),i.key==="thallium"?(t(),l(a,{key:27},[e(" 铊(mg/L)"),Oe,e("正常值≤0.02 ")],64)):s("",!0),i.key==="action"?(t(),l(a,{key:28},[e(" 操作 ")],64)):s("",!0)]),bodyCell:D(({column:i,record:o})=>[i.key==="deviceInfo"?(t(),l(a,{key:0},[e(u(o.deviceName+"("+o.deviceModel+")"),1)],64)):s("",!0),i.key==="aluminum"?(t(),l(a,{key:1},[e(u(o.toxicChemicals.aluminum),1)],64)):s("",!0),i.key==="totalChlorine"?(t(),l(a,{key:2},[e(u(o.toxicChemicals.totalChlorine),1)],64)):s("",!0),i.key==="copper"?(t(),l(a,{key:3},[e(u(o.toxicChemicals.copper),1)],64)):s("",!0),i.key==="fluoride"?(t(),l(a,{key:4},[e(u(o.toxicChemicals.fluoride),1)],64)):s("",!0),i.key==="lead"?(t(),l(a,{key:5},[e(u(o.toxicChemicals.lead),1)],64)):s("",!0),i.key==="nitrate"?(t(),l(a,{key:6},[e(u(o.toxicChemicals.nitrate),1)],64)):s("",!0),i.key==="sulfate"?(t(),l(a,{key:7},[e(u(o.toxicChemicals.sulfate),1)],64)):s("",!0),i.key==="zinc"?(t(),l(a,{key:8},[e(u(o.toxicChemicals.zinc),1)],64)):s("",!0),i.key==="calcium"?(t(),l(a,{key:9},[e(u(o.electrolyte.calcium),1)],64)):s("",!0),i.key==="magnesium"?(t(),l(a,{key:10},[e(u(o.electrolyte.magnesium),1)],64)):s("",!0),i.key==="potassium"?(t(),l(a,{key:11},[e(u(o.electrolyte.potassium),1)],64)):s("",!0),i.key==="sodium"?(t(),l(a,{key:12},[e(u(o.electrolyte.sodium),1)],64)):s("",!0),i.key==="antimony"?(t(),l(a,{key:13},[e(u(o.traceElement.antimony),1)],64)):s("",!0),i.key==="arsenic"?(t(),l(a,{key:14},[e(u(o.traceElement.arsenic),1)],64)):s("",!0),i.key==="barium"?(t(),l(a,{key:15},[e(u(o.traceElement.barium),1)],64)):s("",!0),i.key==="beryllium"?(t(),l(a,{key:16},[e(u(o.traceElement.beryllium),1)],64)):s("",!0),i.key==="cadmium"?(t(),l(a,{key:17},[e(u(o.traceElement.cadmium),1)],64)):s("",!0),i.key==="chromium"?(t(),l(a,{key:18},[e(u(o.traceElement.chromium),1)],64)):s("",!0),i.key==="mercury"?(t(),l(a,{key:19},[e(u(o.traceElement.mercury),1)],64)):s("",!0),i.key==="selenium"?(t(),l(a,{key:20},[e(u(o.traceElement.selenium),1)],64)):s("",!0),i.key==="silver"?(t(),l(a,{key:21},[e(u(o.traceElement.silver),1)],64)):s("",!0),i.key==="thallium"?(t(),l(a,{key:22},[e(u(o.traceElement.thallium),1)],64)):s("",!0),i.key==="action"?(t(),M(g(H),{key:23,actions:[{auth:"biz:chemicalPollutantDetection:remove",icon:"icon-xt-details_delete_default|iconfont",tooltip:"删除",popConfirm:{title:"是否确认删除",placement:"left",confirm:R.bind(null,o)}}]},null,8,["actions"])):s("",!0)]),_:1},8,["onRegister"])]),w(ie,{onRegister:g(d),onSuccess:Y},null,8,["onRegister"])],64)}}});const bt=I(Qe,[["__scopeId","data-v-8057ed33"]]);export{bt as default};
|