| 1 |
- var M=(y,s,d)=>new Promise((N,n)=>{var g=c=>{try{r(d.next(c))}catch(u){n(u)}},v=c=>{try{r(d.throw(c))}catch(u){n(u)}},r=c=>c.done?N(c.value):Promise.resolve(c.value).then(g,v);r((d=d.apply(y,s)).next())});import{P as F}from"./ImportModal.vue_vue_type_style_index_0_scoped_375ed303_lang-e4747dd7.js";import"./index-b6d25274.js";import"./index-1a7dcfc1.js";import{T as B,aO as w,aP as H,ax as P,aX as L,f as T}from"./antd-49db3de3.js";import{ak as S,at as U,_ as O}from"./index.js";import{u as Y,_ as z}from"./useTable-62b21a49.js";import{_ as E}from"./FormItem.vue_vue_type_script_lang-6bf2d5cb.js";import{d as R,f as D,r as V,Y as o,Z as p,l as h,u as i,_ as C,a7 as x,E as l,$ as b,a9 as f,F as _,a6 as I,a1 as A,a2 as j}from"./vue-8fccce23.js";import"./useWindowSizeFn-e2b93e2a.js";import"./useForm-d6319719.js";import"./componentMap-584a36c5.js";import"./uuid-31b8b5a4.js";import"./onMountedOrActivated-cb072c10.js";import"./sortable.esm-4ae27e0b.js";import"./useFormItem-73ca0ac9.js";import"./useSortable-7338e303.js";import"./download-fac9a150.js";import"./index-25070af3.js";import"./copyTextToClipboard-e5179ded.js";import"./index-52147ed8.js";import"./TextEditor-621cb2fc.js";const $=y=>S.post({url:"/biz/sys/params/query/list",params:y}),K=y=>S.post({url:"/biz/sys/params/edit",params:y}),q=[{title:"类型",dataIndex:"typeName"},{title:"内容",dataIndex:"contents"}],G=y=>(A("data-v-0824ac98"),y=y(),j(),y),W={class:"m-4"},X={class:"page-body"},Z={key:0,style:{display:"flex"}},J=G(()=>C("div",{class:"tips"},"?",-1)),Q={key:0},ee={key:1},te={key:2},ae={key:3},se=R({__name:"index",setup(y){const s=D([]),d=D({}),{createMessage:N}=U(),n=V({}),[g,{reload:v}]=Y({api:r,rowKey:"id",columns:q,striped:!1,pagination:!1,showIndexColumn:!1,formConfig:{labelWidth:120,autoSubmitOnEnter:!0,baseColProps:{xs:24,sm:12,md:12,lg:8},resetButtonOptions:{preIcon:"icon-delete|iconfont"},submitButtonOptions:{preIcon:"icon-search|iconfont"}},useSearchForm:!1,actionColumn:{width:320,title:"操作",dataIndex:"action"}});function r(k){return M(this,null,function*(){s.value=[];const a=yield $(k);return d.value=a,Object.keys(a).forEach(t=>{switch(t){case"firstScheduleBedTime":{const e={typeName:"自动排床-首次排床日期",contents:a[t],typeIndex:t,key:1};s.value.push(e);break}case"autoFlowPreDialysis":{const e={typeName:"透前准备流程自动",contents:a[t],typeIndex:t,key:2};s.value.push(e);break}case"autoFlowAfterDialysis":{const e={typeName:"透后称量流程自动",contents:a[t],typeIndex:t,key:3};s.value.push(e);break}case"autoFlowDisinfect":{const e={typeName:"消毒流程自动",contents:a[t],typeIndex:t,key:4};s.value.push(e);break}case"urrMin":{const e={typeName:"URR最小值(%)",contents:a[t],typeIndex:t,key:5};s.value.push(e);break}case"sktVMin":{const e={typeName:"sKt/V最小值",contents:a[t],typeIndex:t,key:6};s.value.push(e);break}case"weightUpRate":{const e={typeName:"体重增长率(%)",contents:a[t],typeIndex:t,key:7};s.value.push(e);break}case"preDialysisPressureMax":{const e={typeName:"透前收缩压最大值(mmHg)",contents:a[t],typeIndex:t,key:8};s.value.push(e);break}case"albMin":{const e={typeName:"Alb最小值(h/L)",contents:a[t],typeIndex:t,key:9};s.value.push(e);break}case"hbMin":{const e={typeName:"HB最小值(g/L)",contents:a[t],typeIndex:t,key:10};s.value.push(e);break}case"hbMax":{const e={typeName:"HB最大值(g/L)",contents:a[t],typeIndex:t,key:11};s.value.push(e);break}case"ipthMin":{const e={typeName:"IPTH最小值(ng/dL)",contents:a[t],typeIndex:t,key:12};s.value.push(e);break}case"ipthMax":{const e={typeName:"IPTH最大值(ng/dL)",contents:a[t],typeIndex:t,key:13};s.value.push(e);break}case"caMin":{const e={typeName:"Ca最小值(mmol/L)",contents:a[t],typeIndex:t,key:14};s.value.push(e);break}case"caMax":{const e={typeName:"Ca最大值(mmol/L)",contents:a[t],typeIndex:t,key:15};s.value.push(e);break}case"ppMin":{const e={typeName:"P最小值(mmol/L)",contents:a[t],typeIndex:t,key:16};s.value.push(e);break}case"ppMax":{const e={typeName:"P最大值(mmol/L)",contents:a[t],typeIndex:t,key:17};s.value.push(e);break}case"calciumPhosphorusMin":{const e={typeName:"钙磷乘积最小值(mg2/dl2)",contents:a[t],typeIndex:t,key:18};s.value.push(e);break}case"calciumPhosphorusMiddle":{const e={typeName:"钙磷乘积中间值(mg2/dl2)",contents:a[t],typeIndex:t,key:19};s.value.push(e);break}case"calciumPhosphorusMax":{const e={typeName:"钙磷乘积最大值(mg2/dl2)",contents:a[t],typeIndex:t,key:20};s.value.push(e);break}case"phaseEvalInterval":{const e={typeName:"阶段评估时间(天)",contents:a[t],typeIndex:t,key:21};s.value.push(e);break}case"phaseEvalAlarmInterval":{const e={typeName:"阶段评估提前提醒时间(天)",contents:a[t],typeIndex:t,key:22};s.value.push(e);break}case"newPatientDay":{const e={typeName:"新患者建档时间(天)",contents:a[t],typeIndex:t,key:23};s.value.push(e);break}}}),s.value})}function c(k){const a=k.key;n[a]=T(s.value.filter(t=>a===t.key)[0])}function u(k){return M(this,null,function*(){const a=k.key,t=d.value,e=n[a].typeName;n[a].typeIndex!="firstScheduleBedTime"&&n[a].typeIndex!="autoFlowAfterDialysis"&&n[a].typeIndex!="autoFlowDisinfect"&&n[a].typeIndex!="autoFlowPreDialysis"?t[n[a].typeIndex]=Number(parseFloat(n[a].contents).toFixed(2)):t[n[a].typeIndex]=n[a].contents,yield K(d.value),delete n[a],N.success("参数["+e+"]修改成功!"),v()})}return(k,a)=>(o(),p("div",W,[h(i(F),{title:"业务参数设置"}),C("div",X,[h(i(z),{onRegister:i(g)},{bodyCell:x(({column:t,record:e})=>[t.key==="typeName"&&e.typeName.indexOf("天")!=-1?(o(),p("div",Z,[l(b(e.typeName)+" ",1),h(i(B),{color:"orange",title:e.typeName+": 不可超过360天"},{default:x(()=>[J]),_:2},1032,["title"])])):f("",!0),t.key==="contents"&&e.key!=1&&e.key!=2&&e.key!=3&&e.key!=4?(o(),p(_,{key:1},[e.typeName.indexOf("天")!=-1?(o(),p("div",Q,[n[e.key]?(o(),I(i(w),{key:0,value:n[e.key][t.dataIndex],"onUpdate:value":m=>n[e.key][t.dataIndex]=m,min:0,max:360,placeholder:"请输入参数内容"},null,8,["value","onUpdate:value"])):(o(),p(_,{key:1},[l(b(e.contents),1)],64))])):(o(),p("div",ee,[n[e.key]?(o(),I(i(w),{key:0,value:n[e.key][t.dataIndex],"onUpdate:value":m=>n[e.key][t.dataIndex]=m,min:0,placeholder:"请输入参数内容"},null,8,["value","onUpdate:value"])):(o(),p(_,{key:1},[l(b(e.contents),1)],64))]))],64)):f("",!0),t.key==="contents"&&(e.key==2||e.key==3||e.key==4)?(o(),p("div",te,[n[e.key]?(o(),I(i(H),{key:0,value:n[e.key][t.dataIndex],"onUpdate:value":m=>n[e.key][t.dataIndex]=m},{default:x(()=>[h(i(P),{value:1},{default:x(()=>[l("是")]),_:1}),h(i(P),{value:0},{default:x(()=>[l("否")]),_:1})]),_:2},1032,["value","onUpdate:value"])):(o(),p(_,{key:1},[l(b(e.contents==0?"否":"是"),1)],64))])):f("",!0),t.key==="contents"&&e.key==1?(o(),p("div",ae,[n[e.key]?(o(),I(i(L),{key:0,"show-time":!0,format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",value:n[e.key][t.dataIndex],"onUpdate:value":m=>n[e.key][t.dataIndex]=m,placeholder:"请选择时间"},null,8,["value","onUpdate:value"])):(o(),p(_,{key:1},[l(b(e.contents),1)],64))])):f("",!0),t.key==="action"?(o(),I(i(E),{key:4,actions:[{auth:["bizSys:params:add","bizSys:params:edit","bizSys:params:remove"],ifShow:!n[e.key],icon:"icon-xt-details_edit_default|iconfont",tooltip:"编辑",label:"",onClick:c.bind(null,e)},{auth:["bizSys:params:add","bizSys:params:edit","bizSys:params:remove"],ifShow:!!n[e.key],icon:"icon-check|iconfont",tooltip:"保存",label:"",onClick:u.bind(null,e)}]},null,8,["actions"])):f("",!0)]),_:1},8,["onRegister"])])]))}});const we=O(se,[["__scopeId","data-v-0824ac98"]]);export{we as default};
|