12 |
- "use strict";(self["webpackChunkbaozhidao_putoutstorage"]=self["webpackChunkbaozhidao_putoutstorage"]||[]).push([[134],{4257:function(e,t,a){a.d(t,{Z:function(){return y}});var l=a(6252),n=a(3577);const o={class:"mark-green1"},i=(0,l._)("div",{class:"mark-green2"},[(0,l._)("div",{class:"mark-green3"})],-1),r=[i];function s(e,t){return(0,l.wg)(),(0,l.iD)("div",o,r)}var u=a(3744);const c={},m=(0,u.Z)(c,[["render",s]]);var d=m;const p={class:"bg"},f={class:"bg-tit"},g={style:{display:"flex","align-items":"center",flex:"1","flex-shrink":"0","min-width":"200px"}};var w=(0,l.aZ)({__name:"bg",props:{istitle:{type:String,default:()=>""}},setup(e){const t=e;return(e,a)=>{const o=(0,l.up)("el-text");return(0,l.wg)(),(0,l.iD)("div",p,[(0,l._)("div",f,[(0,l._)("div",g,[(0,l.Wm)(d),(0,l.Wm)(o,{style:{"margin-left":"20px"},tag:"b"},{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"tit",{},(()=>[(0,l.Uk)((0,n.zw)(t.istitle),1)]))])),_:3})]),(0,l.WI)(e.$slots,"btn")]),(0,l.WI)(e.$slots,"bg")])}}});const b=w;var y=b},6488:function(e,t,a){a.d(t,{Z:function(){return u}});var l=a(6252);const n={class:"bg"};function o(e,t){return(0,l.wg)(),(0,l.iD)("div",n,[(0,l.WI)(e.$slots,"bg")])}var i=a(3744);const r={},s=(0,i.Z)(r,[["render",o]]);var u=s},8125:function(e,t,a){a.d(t,{Z:function(){return c}});var l=a(6252);const n={class:"statistics"},o={class:"statistics-left"},i=["src"],r={class:"statistics-right"};var s=(0,l.aZ)({__name:"statistics",props:{imgUrl:{type:String,default:()=>""},titles:{type:String,default:()=>""},subhea:{type:String,default:()=>""}},setup(e){const t=e;return(e,a)=>{const s=(0,l.up)("el-statistic");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[(0,l._)("img",{src:t.imgUrl,style:{width:"60px",height:"60px"}},null,8,i)]),(0,l._)("div",r,[(0,l.Wm)(s,{title:t.titles,value:Number(t.subhea)},null,8,["title","value"])])])}}});const u=s;var c=u},6115:function(e,t,a){a.d(t,{Z:function(){return d}});var l=a(6252),n=a(2262),o=a(3577);const i=(e,t={},a=!0,l)=>{const o=(0,n.qj)({tableData:[],loading:!0,pageable:{pageNum:1,pageSize:8,total:0,RemainingTime:0,small:!0,disabled:!1},searchParam:{},searchInitParam:{},totalParam:{}}),i=async()=>{const a={page:o.pageable.pageNum,pageSize:o.pageable.pageSize,...t};e(a).then((e=>{o.tableData=e.data?.list||[],o.pageable.total=parseInt(e.data?.count),e.Data?.RemainingTime&&(o.pageable.RemainingTime=e.Data.RemainingTime),o.loading=!1}))},r=e=>{o.pageable.pageSize=e,i()},s=e=>{o.pageable.pageNum=e,i()},u=()=>{o.pageable.pageNum=1,i()};return{...(0,n.BK)(o),getTableList:i,searchTable:u,handleSizeChange:r,handleCurrentChange:s}},r={class:"y-tabs"},s={key:0,style:{color:"red"}},u={style:{"margin-top":"20px"}};var c=(0,l.aZ)({__name:"table",props:{columns:{default:()=>[]},requestApi:{},dataCallback:{},title:{},pagination:{type:Boolean,default:!0},layout:{default:"total, sizes, prev, pager, next, jumper"},initParam:{default:{}},border:{type:Boolean,default:!0},toolButton:{type:Boolean,default:!0},selectId:{default:"id"},displayHeader:{type:Boolean},rowClick:{},selectionChange:{},getRowKey:{},tableRowClassName:{},size:{},width:{},height:{},maxHeight:{},fit:{type:Boolean},stripe:{type:Boolean},rowKey:{},context:{},showHeader:{type:Boolean},showSummary:{type:Boolean},sumText:{},summaryMethod:{},rowClassName:{},rowStyle:{},cellClassName:{},cellStyle:{},headerRowClassName:{},headerRowStyle:{},headerCellClassName:{},headerCellStyle:{},highlightCurrentRow:{type:Boolean},currentRowKey:{},emptyText:{},expandRowKeys:{},defaultExpandAll:{type:Boolean},defaultSort:{},tooltipEffect:{},tooltipOptions:{},spanMethod:{},selectOnIndeterminate:{type:Boolean},indent:{},treeProps:{},lazy:{type:Boolean},load:{},className:{},style:{},tableLayout:{},scrollbarAlwaysOn:{type:Boolean},flexible:{type:Boolean},showOverflowTooltip:{type:[Boolean,Object]}},setup(e,{expose:t}){const a=e,{tableData:c,getTableList:m,pageable:d,loading:p,handleSizeChange:f,handleCurrentChange:g}=i(a.requestApi,a.initParam,a.pagination,a.dataCallback);m();const w=(0,n.iH)(a.columns);return t({getTableList:m,tableColumns:w,props:a}),(e,t)=>{const i=(0,l.up)("el-table-column"),m=(0,l.up)("el-tooltip"),b=(0,l.up)("el-empty"),y=(0,l.up)("el-table"),h=(0,l.up)("el-pagination"),k=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.iD)("div",r,[(0,l.wy)(((0,l.wg)(),(0,l.j4)(y,{data:(0,n.SU)(c),onRowClick:a.rowClick,onSelectionChange:a.selectionChange,"row-key":a.getRowKey,border:a.border,"max-height":"450","row-style":e.tableRowClassName,"table-layout":"auto"},{append:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"append")])),empty:(0,l.w5)((()=>[(0,l.Wm)(b)])),default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"default"),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(w.value,(t=>((0,l.wg)(),(0,l.iD)(l.HY,{key:t},["selection"==t.type||"index"==t.type?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:0},t,{align:t.align??"center","reserve-selection":"selection"==t.type,"show-overflow-tooltip":!0}),null,16,["align","reserve-selection"])):(0,l.kq)("",!0),"expand"===t.type?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:1},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((a=>[t.render?((0,l.wg)(),(0,l.j4)((0,l.LL)(t.render),{key:0,row:a.row},null,8,["row"])):(0,l.WI)(e.$slots,t.type,{key:1,row:a.row})])),_:2},1040,["align"])):(0,l.kq)("",!0),!t.type&&t.prop&&t.name!==t.prop?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:2},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((a=>["T_wait_audit"==t.prop?((0,l.wg)(),(0,l.iD)("div",s,(0,o.zw)(1==a.row[t.prop]?"待审核":""),1)):(0,l.kq)("",!0),t.ellipsis?((0,l.wg)(),(0,l.j4)(m,{key:1,effect:"dark",content:a.row[t.prop],placement:"bottom"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,o.zw)(a.row[t.prop]),1)])),_:2},1032,["content"])):(0,l.kq)("",!0),t.fixed?(0,l.WI)(e.$slots,t.fixed,{key:2,row:a.row}):(0,l.kq)("",!0)])),_:2},1040,["align"])):(0,l.kq)("",!0),!t.type&&t.prop&&t.name===t.prop?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:3},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((a=>[(0,l.WI)(e.$slots,t.prop,{row:a.row})])),_:2},1040,["align"])):(0,l.kq)("",!0)],64)))),128))])),_:3},8,["data","onRowClick","onSelectionChange","row-key","border","row-style"])),[[k,(0,n.SU)(p)]]),(0,l._)("div",u,[e.pagination?((0,l.wg)(),(0,l.j4)(h,{key:0,"current-page":(0,n.SU)(d).pageNum,"onUpdate:currentPage":t[0]||(t[0]=e=>(0,n.SU)(d).pageNum=e),"page-size":(0,n.SU)(d).pageSize,"onUpdate:pageSize":t[1]||(t[1]=e=>(0,n.SU)(d).pageSize=e),layout:a.layout,total:(0,n.SU)(d).total,"page-sizes":[8,10,20,50],onSizeChange:(0,n.SU)(f),onCurrentChange:(0,n.SU)(g)},null,8,["current-page","page-size","layout","total","onSizeChange","onCurrentChange"])):(0,l.kq)("",!0)])])}}});const m=c;var d=m},7134:function(e,t,a){a.r(t),a.d(t,{default:function(){return ee}});var l=a(6252),n=a(4257),o=a(2262),i=a(3577),r=a(6115),s=a(2531);const u=[{type:1,name:"品名"},{type:2,name:"生产企业"},{type:3,name:"规格"},{type:4,name:"剂型"},{type:5,name:"单位"},{type:6,name:"文本"},{type:7,name:"数值(整数)"},{type:8,name:"数值 (小数)"},{type:9,name:"日期"},{type:10,name:"时间"}];function c(e){const t=u.find((t=>t.type==e));return t?.name}var m=a(1348),d=a(844);const p={class:""},f={class:"dialog-footer"},g="80px";var w=(0,l.aZ)({__name:"drugInformation",emits:["setBasic"],setup(e,{expose:t,emit:a}){const n=(0,o.iH)(),u=(0,o.iH)(!1),w=(0,o.iH)(),b=(0,o.qj)({name:[{required:!0,message:"请输入标签名称",trigger:"blur"}]}),y=a,h=(0,o.qj)({id:0,text:"",width:"",sort:0,show:0,name:""}),k=async e=>{Object.keys(h).forEach((t=>{h[t]=e[t]})),u.value=!0},_=async e=>{e&&await e.validate((async(e,t)=>{if(e){const e=await(0,s.Ul)(h);200==e.code&&"更新成功"==e.msg&&(u.value=!1,(0,l.Y3)((()=>{m.z8.success("编辑成功"),n.value?.getTableList()}))),console.log("添加情况",e)}else console.log("error submit!",t)}))};let v=[{type:"index",label:"编号",width:80},{prop:"type",label:"数据类型",name:"type"},{prop:"name",label:"标签名称"},{prop:"width",label:"列宽(px)"},{prop:"sort",label:"排序"},{prop:"show",label:"表格展示",name:"show"},{prop:"state",label:"类型",name:"state"},{prop:"operation",label:"操作",fixed:"right","min-width":200}];const W=(0,o.qj)({initParam:{}}),T=e=>{d.T.confirm("该字段所有已有数据会一同被删除,且无法恢复","是否确认删除",{confirmButtonText:"立即删除",cancelButtonText:"取消",type:"error",center:!0}).then((async()=>{const t=await(0,s.Fd)({id:e.id});200==t.code&&m.z8.success("删除成功"),n.value?.getTableList(),y("setBasic","")})).catch((()=>{m.z8.info("已取消删除")}))};return t({TableRef:n}),(e,t)=>{const a=(0,l.up)("el-button"),m=(0,l.up)("el-tag"),d=(0,l.up)("el-input"),y=(0,l.up)("el-form-item"),C=(0,l.up)("el-radio"),U=(0,l.up)("el-radio-group"),x=(0,l.up)("el-form"),S=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",p,[(0,l.Wm)(r.Z,{ref_key:"TableRef",ref:n,requestApi:(0,o.SU)(s.qS),columns:(0,o.SU)(v),initParam:W.initParam,pagination:!1},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(a,{link:"",type:"primary",size:"small",onClick:t=>k(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:2},1032,["onClick"]),(0,l.Wm)(a,{link:"",type:"danger",size:"small",disabled:1==e.state,onClick:t=>T(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:2},1032,["disabled","onClick"])])),type:(0,l.w5)((({row:e})=>[(0,l.Uk)((0,i.zw)((0,o.SU)(c)(e.type)),1)])),show:(0,l.w5)((({row:e})=>[(0,l.Wm)(m,{class:"ml-2",type:1===e.show?"":"danger",effect:"dark"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,i.zw)(1===e.show?"显示":"隐藏"),1)])),_:2},1032,["type"])])),state:(0,l.w5)((({row:e})=>[(0,l.Wm)(m,{style:{width:"100px"},type:1===e.state?"":"danger",effect:"dark"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,i.zw)(1===e.state?"系统初始化":"用户添加"),1)])),_:2},1032,["type"])])),_:1},8,["requestApi","columns","initParam"]),(0,l.Wm)(S,{modelValue:u.value,"onUpdate:modelValue":t[7]||(t[7]=e=>u.value=e),title:"编辑药品信息管理",draggable:"","append-to-body":!0},{footer:(0,l.w5)((()=>[(0,l._)("span",f,[(0,l.Wm)(a,{onClick:t[5]||(t[5]=e=>u.value=!1)},{default:(0,l.w5)((()=>[(0,l.Uk)("Cancel")])),_:1}),(0,l.Wm)(a,{type:"primary",onClick:t[6]||(t[6]=e=>_(w.value))},{default:(0,l.w5)((()=>[(0,l.Uk)(" Confirm ")])),_:1})])])),default:(0,l.w5)((()=>[(0,l.Wm)(x,{ref_key:"ruleFormRef",ref:w,model:h,rules:b},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{label:"标签名称","label-width":g,prop:"name"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{modelValue:h.name,"onUpdate:modelValue":t[0]||(t[0]=e=>h.name=e),autocomplete:"off",placeholder:"请输入标签名称"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"列宽","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{modelValue:h.width,"onUpdate:modelValue":t[1]||(t[1]=e=>h.width=e),modelModifiers:{number:!0},autocomplete:"off",placeholder:"请输入列宽"},{append:(0,l.w5)((()=>[(0,l.Uk)("px")])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"排序","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{modelValue:h.sort,"onUpdate:modelValue":t[2]||(t[2]=e=>h.sort=e),modelModifiers:{number:!0},autocomplete:"off",placeholder:"请输入排序"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"表格展示","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:h.show,"onUpdate:modelValue":t[3]||(t[3]=e=>h.show=e)},{default:(0,l.w5)((()=>[(0,l.Wm)(C,{label:1},{default:(0,l.w5)((()=>[(0,l.Uk)("显示")])),_:1}),(0,l.Wm)(C,{label:2},{default:(0,l.w5)((()=>[(0,l.Uk)("隐藏")])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"描述","label-width":g,placeholder:"请输入描述"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{modelValue:h.text,"onUpdate:modelValue":t[4]||(t[4]=e=>h.text=e),type:"textarea"},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])])}}});const b=w;var y=b;const h={class:""};var k=(0,l.aZ)({__name:"specification",emits:["setTable","setBasic"],setup(e,{expose:t,emit:a}){const n=(0,o.iH)(),i=[{type:"index",label:"编号",width:80},{prop:"name",label:"名称",width:300},{prop:"operation",label:"操作",fixed:"right",align:"left","min-width":200}],u=(0,o.qj)({initParam:{name:""}}),c=a,p=e=>{d.T.confirm("该字段所有已有数据会一同被删除,且无法恢复","是否确认删除",{confirmButtonText:"立即删除",cancelButtonText:"取消",type:"error",center:!0}).then((async()=>{const t=await(0,s.ff)({id:e.id});200==t.code&&m.z8.success("删除成功"),n.value?.getTableList(),c("setBasic","")})).catch((()=>{m.z8.info("已取消删除")}))},f=async e=>{console.log("编辑",e),d.T.prompt("编辑规格,请填写正确格式","编辑",{confirmButtonText:"OK",cancelButtonText:"Cancel",inputValue:e.name,inputPattern:/\S/,inputErrorMessage:"名称格式不能为空"}).then((async({value:t})=>{const a=await(0,s.pC)({id:e.id,name:t});200==a.code&&"更新成功"==a.msg&&(m.z8.success(a.msg),c("setTable",""))})).catch((()=>{m.z8.info("已取消编辑")}))};return t({TableRef:n}),(e,t)=>{const a=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",h,[(0,l.Wm)(r.Z,{ref_key:"TableRef",ref:n,requestApi:(0,o.SU)(s.mV),columns:i,initParam:u.initParam,border:!0},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(a,{link:"",type:"primary",size:"small",onClick:t=>f(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:2},1032,["onClick"]),(0,l.Wm)(a,{link:"",type:"danger",size:"small",onClick:t=>p(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:2},1032,["onClick"])])),_:1},8,["requestApi","initParam"])])}}});const _=k;var v=_;const W={class:""};var T=(0,l.aZ)({__name:"dosageForm",emits:["setTable","setBasic"],setup(e,{expose:t,emit:a}){const n=(0,o.iH)(),i=[{type:"index",label:"编号",width:80},{prop:"name",label:"名称",width:300},{prop:"operation",label:"操作",fixed:"right",align:"left","min-width":200}],u=a,c=(0,o.qj)({initParam:{name:""}}),p=e=>{d.T.confirm("该字段所有已有数据会一同被删除,且无法恢复","是否确认删除",{confirmButtonText:"立即删除",cancelButtonText:"取消",type:"error",center:!0}).then((async()=>{const t=await(0,s.CT)({id:e.id});200==t.code&&m.z8.success("删除成功"),n.value?.getTableList(),u("setBasic","")})).catch((()=>{m.z8.info("已取消删除")}))},f=async e=>{console.log("编辑",e),d.T.prompt("编辑规格,请填写正确格式","编辑",{confirmButtonText:"OK",cancelButtonText:"Cancel",inputValue:e.name,inputPattern:/\S/,inputErrorMessage:"名称格式不能为空"}).then((async({value:t})=>{const a=await(0,s.L7)({id:e.id,name:t});200==a.code&&"更新成功"==a.msg&&(m.z8.success(a.msg),u("setTable",""))})).catch((()=>{m.z8.info("已取消编辑")}))};return t({TableRef:n}),(e,t)=>{const a=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",W,[(0,l.Wm)(r.Z,{ref_key:"TableRef",ref:n,requestApi:(0,o.SU)(s.JP),columns:i,initParam:c.initParam,border:!0},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(a,{link:"",type:"primary",size:"small",onClick:t=>f(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:2},1032,["onClick"]),(0,l.Wm)(a,{link:"",type:"danger",size:"small",onClick:t=>p(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:2},1032,["onClick"])])),_:1},8,["requestApi","initParam"])])}}});const C=T;var U=C;const x={class:""};var S=(0,l.aZ)({__name:"unit",emits:["setTable","setBasic"],setup(e,{expose:t,emit:a}){const n=(0,o.iH)(),i=[{type:"index",label:"编号",width:80},{prop:"name",label:"名称",width:300},{prop:"operation",label:"操作",fixed:"right",align:"left","min-width":200}],u=(0,o.qj)({initParam:{name:""}}),c=a,p=e=>{d.T.confirm("该字段所有已有数据会一同被删除,且无法恢复","是否确认删除",{confirmButtonText:"立即删除",cancelButtonText:"取消",type:"error",center:!0}).then((async()=>{const t=await(0,s.AA)({id:e.id});200==t.code&&m.z8.success("删除成功"),n.value?.getTableList(),c("setBasic","")})).catch((()=>{m.z8.info("已取消删除")}))},f=async e=>{console.log("编辑",e),d.T.prompt("编辑规格,请填写正确格式","编辑",{confirmButtonText:"OK",cancelButtonText:"Cancel",inputValue:e.name,inputPattern:/\S/,inputErrorMessage:"名称格式不能为空"}).then((async({value:t})=>{const a=await(0,s.F$)({id:e.id,name:t});200==a.code&&"更新成功"==a.msg&&(m.z8.success(a.msg),c("setTable",""))})).catch((()=>{m.z8.info("已取消编辑")}))};return t({TableRef:n}),(e,t)=>{const a=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",x,[(0,l.Wm)(r.Z,{ref_key:"TableRef",ref:n,requestApi:(0,o.SU)(s.d9),columns:i,initParam:u.initParam,border:!0},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(a,{link:"",type:"primary",size:"small",onClick:t=>f(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:2},1032,["onClick"]),(0,l.Wm)(a,{link:"",type:"danger",size:"small",onClick:t=>p(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:2},1032,["onClick"])])),_:1},8,["requestApi","initParam"])])}}});const z=S;var B=z;const V={class:""};var q=(0,l.aZ)({__name:"vaccineName",emits:["setTable","setBasic"],setup(e,{expose:t,emit:a}){const n=(0,o.iH)(),i=[{type:"index",label:"编号",width:80},{prop:"name",label:"名称",width:300},{prop:"operation",label:"操作",fixed:"right",align:"left","min-width":200}],u=a,c=(0,o.qj)({initParam:{name:""}}),p=e=>{d.T.confirm("该字段所有已有数据会一同被删除,且无法恢复","是否确认删除",{confirmButtonText:"立即删除",cancelButtonText:"取消",type:"error",center:!0}).then((async()=>{const t=await(0,s.aF)({id:e.id});200==t.code&&m.z8.success("删除成功"),n.value?.getTableList(),u("setBasic","")})).catch((()=>{m.z8.info("已取消删除")}))},f=async e=>{console.log("编辑",e),d.T.prompt("编辑规格,请填写正确格式","编辑",{confirmButtonText:"OK",cancelButtonText:"Cancel",inputValue:e.name,inputPattern:/\S/,inputErrorMessage:"名称格式不能为空"}).then((async({value:t})=>{const a=await(0,s.mu)({id:e.id,name:t});200==a.code&&"更新成功"==a.msg&&(m.z8.success(a.msg),u("setTable",""))})).catch((()=>{m.z8.info("已取消编辑")}))};return t({TableRef:n}),(e,t)=>{const a=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",V,[(0,l.Wm)(r.Z,{ref_key:"TableRef",ref:n,requestApi:(0,o.SU)(s.Uu),columns:i,initParam:c.initParam,border:!0},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(a,{link:"",type:"primary",size:"small",onClick:t=>f(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:2},1032,["onClick"]),(0,l.Wm)(a,{link:"",type:"danger",size:"small",onClick:t=>p(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:2},1032,["onClick"])])),_:1},8,["requestApi","initParam"])])}}});const j=q;var P=j;const R={class:""};var Z=(0,l.aZ)({__name:"productionEnterprise",emits:["setTable","setBasic"],setup(e,{expose:t,emit:a}){const n=(0,o.iH)(),i=[{type:"index",label:"编号",width:80},{prop:"name",label:"名称",width:300},{prop:"operation",label:"操作",fixed:"right",align:"left","min-width":200}],u=a,c=(0,o.qj)({initParam:{name:""}}),p=e=>{d.T.confirm("该字段所有已有数据会一同被删除,且无法恢复","是否确认删除",{confirmButtonText:"立即删除",cancelButtonText:"取消",type:"error",center:!0}).then((async()=>{const t=await(0,s.DK)({id:e.id});200==t.code&&m.z8.success("删除成功"),n.value?.getTableList(),u("setBasic","")})).catch((()=>{m.z8.info("已取消删除")}))},f=async e=>{console.log("编辑",e),d.T.prompt("编辑规格,请填写正确格式","编辑",{confirmButtonText:"OK",cancelButtonText:"Cancel",inputValue:e.name,inputPattern:/\S/,inputErrorMessage:"名称格式不能为空"}).then((async({value:t})=>{const a=await(0,s.cR)({id:e.id,name:t});200==a.code&&"更新成功"==a.msg&&(m.z8.success(a.msg),u("setTable",""))})).catch((()=>{m.z8.info("已取消编辑")}))};return t({TableRef:n}),(e,t)=>{const a=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",R,[(0,l.Wm)(r.Z,{ref_key:"TableRef",ref:n,requestApi:(0,o.SU)(s.s3),columns:i,initParam:c.initParam,border:!0},{right:(0,l.w5)((({row:e})=>[(0,l.Wm)(a,{link:"",type:"primary",size:"small",onClick:t=>f(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("编辑")])),_:2},1032,["onClick"]),(0,l.Wm)(a,{link:"",type:"danger",size:"small",onClick:t=>p(e)},{default:(0,l.w5)((()=>[(0,l.Uk)("删除")])),_:2},1032,["onClick"])])),_:1},8,["requestApi","initParam"])])}}});const D=Z;var H=D,L=a(5781);function O(e,t){switch(console.log("发送数据",e,t),t){case"b":return(0,s.RP)({name:e});case"c":return(0,s.C6)({name:e});case"d":return(0,s.Vx)({name:e});case"e":return(0,s.Vu)({name:e});default:return(0,s.u)({name:e})}}function A(e){switch(console.log("发送数据1",e),e){case"a":return"药品信息管理";case"b":return"规格";case"c":return"剂型";case"d":return"单位";case"e":return"血液制品名称";default:return"生产企业"}}const I={class:""},N={class:"dialog-footer"},K="80px";var M=(0,l.aZ)({__name:"newData",emits:["setTable"],setup(e,{emit:t}){const a=(0,o.iH)(),n=(0,o.iH)(!1),i=(0,o.qj)({type:null,name:"",width:0,sort:0,show:1,text:""}),r=(0,o.qj)({type:[{required:!0,message:"请选择数据类型",trigger:"change"}],name:[{required:!0,message:"请输入标签名称",trigger:"blur"}]}),u=e=>{console.log("command",e),"a"==e?n.value=!0:p(e)},c=t,p=async e=>{d.T.prompt(`新增${A(e)},请填写正确格式`,"新增",{confirmButtonText:"OK",cancelButtonText:"Cancel",inputPattern:/\S/,inputErrorMessage:`[${A(e)}]名称格式不能为空`}).then((async({value:t})=>{const a=await O(t,e);200==a.code&&"创建成功"==a.msg&&(m.z8.success(a.msg),c("setTable",""))})).catch((()=>{m.z8.info("已取消新增"+A(e))}))},f=async e=>{e&&await e.validate((async(e,t)=>{if(e){const e=await(0,s.w_)(i);200==e.code&&"创建成功"==e.msg&&(n.value=!1,m.z8.success(e.msg),c("setTable",""))}else console.log("error submit!",t)}))};return(e,t)=>{const s=(0,l.up)("arrow-down"),c=(0,l.up)("el-icon"),m=(0,l.up)("el-button"),d=(0,l.up)("el-dropdown-item"),p=(0,l.up)("el-dropdown-menu"),g=(0,l.up)("el-dropdown"),w=(0,l.up)("el-option"),b=(0,l.up)("el-select"),y=(0,l.up)("el-form-item"),h=(0,l.up)("el-input"),k=(0,l.up)("el-radio"),_=(0,l.up)("el-radio-group"),v=(0,l.up)("el-form"),W=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",I,[(0,l.Wm)(g,{onCommand:u},{dropdown:(0,l.w5)((()=>[(0,l.Wm)(p,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d,{icon:(0,o.SU)(L.CircleCheck),command:"a"},{default:(0,l.w5)((()=>[(0,l.Uk)("药品信息管理")])),_:1},8,["icon"]),(0,l.Wm)(d,{icon:(0,o.SU)(L.CircleCheck),command:"b"},{default:(0,l.w5)((()=>[(0,l.Uk)("规格")])),_:1},8,["icon"]),(0,l.Wm)(d,{icon:(0,o.SU)(L.CircleCheck),command:"c"},{default:(0,l.w5)((()=>[(0,l.Uk)("剂型")])),_:1},8,["icon"]),(0,l.Wm)(d,{icon:(0,o.SU)(L.CircleCheck),command:"d"},{default:(0,l.w5)((()=>[(0,l.Uk)("单位")])),_:1},8,["icon"]),(0,l.Wm)(d,{icon:(0,o.SU)(L.CircleCheck),command:"e"},{default:(0,l.w5)((()=>[(0,l.Uk)("血液制品名称")])),_:1},8,["icon"]),(0,l.Wm)(d,{icon:(0,o.SU)(L.CircleCheck),command:"f"},{default:(0,l.w5)((()=>[(0,l.Uk)("生产企业")])),_:1},8,["icon"])])),_:1})])),default:(0,l.w5)((()=>[(0,l.Wm)(m,{type:"primary"},{default:(0,l.w5)((()=>[(0,l.Uk)("新增"),(0,l.Wm)(c,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(s)])),_:1})])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:n.value,"onUpdate:modelValue":t[8]||(t[8]=e=>n.value=e),title:"新增药品信息管理",draggable:"","append-to-body":!0},{footer:(0,l.w5)((()=>[(0,l._)("span",N,[(0,l.Wm)(m,{onClick:t[6]||(t[6]=e=>n.value=!1)},{default:(0,l.w5)((()=>[(0,l.Uk)("Cancel")])),_:1}),(0,l.Wm)(m,{type:"primary",onClick:t[7]||(t[7]=e=>f(a.value))},{default:(0,l.w5)((()=>[(0,l.Uk)(" Confirm ")])),_:1})])])),default:(0,l.w5)((()=>[(0,l.Wm)(v,{ref_key:"ruleFormRef",ref:a,model:i,rules:r},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{label:"数据类型","label-width":K,prop:"type"},{default:(0,l.w5)((()=>[(0,l.Wm)(b,{modelValue:i.type,"onUpdate:modelValue":t[0]||(t[0]=e=>i.type=e),placeholder:"请选择数据类型"},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{label:"文本",value:6}),(0,l.Wm)(w,{label:"数值(整数)",value:7}),(0,l.Wm)(w,{label:"数值 (小数)",value:8}),(0,l.Wm)(w,{label:"日期",value:9}),(0,l.Wm)(w,{label:"时间",value:10})])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"标签名称","label-width":K,prop:"name"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{modelValue:i.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.name=e),autocomplete:"off",placeholder:"请输入标签名称"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"列宽","label-width":K},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{modelValue:i.width,"onUpdate:modelValue":t[2]||(t[2]=e=>i.width=e),modelModifiers:{number:!0},autocomplete:"off",placeholder:"请输入列宽"},{append:(0,l.w5)((()=>[(0,l.Uk)("px")])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"排序","label-width":K},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{modelValue:i.sort,"onUpdate:modelValue":t[3]||(t[3]=e=>i.sort=e),modelModifiers:{number:!0},autocomplete:"off",placeholder:"请输入排序"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"表格展示","label-width":K},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{modelValue:i.show,"onUpdate:modelValue":t[4]||(t[4]=e=>i.show=e)},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{label:1},{default:(0,l.w5)((()=>[(0,l.Uk)("显示")])),_:1}),(0,l.Wm)(k,{label:2},{default:(0,l.w5)((()=>[(0,l.Uk)("隐藏")])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(y,{label:"描述","label-width":K,placeholder:"请输入描述"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{modelValue:i.text,"onUpdate:modelValue":t[5]||(t[5]=e=>i.text=e),type:"textarea"},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])])}}});const $=M;var E=$,F=a(6488),G=a(8125);const Y={class:"essentialinfo"},J={class:"essentialinfo-main"};var Q=(0,l.aZ)({__name:"index",setup(e){const t=(0,o.qj)({basicObj:{dosageFormCount:0,enterpriseCount:0,medicineTemplateCount:0,productCount:0,specCount:0,unitCount:0}}),i=async()=>{const e=await(0,s.Xu)({});200==e.code&&"查询成功"==e.msg&&(t.basicObj=e.data)};i();const r=(0,o.iH)(),u=(0,o.iH)(),c=(0,o.iH)(),m=(0,o.iH)(),d=(0,o.iH)(),p=(0,o.iH)(),f=(0,o.iH)("first"),g=(e,t)=>{console.log(e,t)},w=async()=>{switch(i(),f.value){case"first":r.value.TableRef.getTableList();break;case"fourth2":u.value.TableRef.getTableList();break;case"second":c.value.TableRef.getTableList();break;case"third":m.value.TableRef.getTableList();break;case"fourth":d.value.TableRef.getTableList();break;default:p.value.TableRef.getTableList();break}};return(e,o)=>{const s=(0,l.up)("el-tab-pane"),b=(0,l.up)("el-tabs");return(0,l.wg)(),(0,l.iD)("div",Y,[(0,l._)("div",J,[(0,l.Wm)(F.Z,null,{bg:(0,l.w5)((()=>[(0,l.Wm)(G.Z,{imgUrl:a(4764),titles:"规格",subhea:t.basicObj.specCount.toString()},null,8,["imgUrl","subhea"])])),_:1}),(0,l.Wm)(F.Z,null,{bg:(0,l.w5)((()=>[(0,l.Wm)(G.Z,{imgUrl:a(7767),titles:"剂型",subhea:t.basicObj.dosageFormCount.toString()},null,8,["imgUrl","subhea"])])),_:1}),(0,l.Wm)(F.Z,null,{bg:(0,l.w5)((()=>[(0,l.Wm)(G.Z,{imgUrl:a(2163),titles:"单位",subhea:t.basicObj.unitCount.toString()},null,8,["imgUrl","subhea"])])),_:1}),(0,l.Wm)(F.Z,null,{bg:(0,l.w5)((()=>[(0,l.Wm)(G.Z,{imgUrl:a(3265),titles:"血液制品名称",subhea:t.basicObj.productCount.toString()},null,8,["imgUrl","subhea"])])),_:1}),(0,l.Wm)(F.Z,null,{bg:(0,l.w5)((()=>[(0,l.Wm)(G.Z,{imgUrl:a(736),titles:"生产企业",subhea:t.basicObj.enterpriseCount.toString()},null,8,["imgUrl","subhea"])])),_:1}),(0,l.Wm)(F.Z,null,{bg:(0,l.w5)((()=>[(0,l.Wm)(G.Z,{imgUrl:a(2163),titles:"药品信息管理",subhea:t.basicObj.medicineTemplateCount.toString()},null,8,["imgUrl","subhea"])])),_:1})]),(0,l.Wm)(n.Z,{istitle:"基本信息"},{btn:(0,l.w5)((()=>[(0,l.Wm)(E,{onSetTable:w})])),bg:(0,l.w5)((()=>[(0,l.Wm)(b,{modelValue:f.value,"onUpdate:modelValue":o[6]||(o[6]=e=>f.value=e),class:"demo-tabs",onTabClick:g},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{label:"药品信息管理",name:"first"},{default:(0,l.w5)((()=>["first"==f.value?((0,l.wg)(),(0,l.j4)(y,{key:0,ref_key:"drugInfo",ref:r,onSetBasic:o[0]||(o[0]=e=>i())},null,512)):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(s,{label:"规格",name:"fourth2"},{default:(0,l.w5)((()=>["fourth2"==f.value?((0,l.wg)(),(0,l.j4)(v,{key:0,ref_key:"specifica",ref:u,onSetTable:w,onSetBasic:o[1]||(o[1]=e=>i())},null,512)):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(s,{label:"剂型",name:"second"},{default:(0,l.w5)((()=>["second"==f.value?((0,l.wg)(),(0,l.j4)(U,{key:0,ref_key:"dosage",ref:c,onSetTable:w,onSetBasic:o[2]||(o[2]=e=>i())},null,512)):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(s,{label:"单位",name:"third"},{default:(0,l.w5)((()=>["third"==f.value?((0,l.wg)(),(0,l.j4)(B,{key:0,ref_key:"units",ref:m,onSetTable:w,onSetBasic:o[3]||(o[3]=e=>i())},null,512)):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(s,{label:"血液制品名称",name:"fourth"},{default:(0,l.w5)((()=>["fourth"==f.value?((0,l.wg)(),(0,l.j4)(P,{key:0,ref_key:"vaccine",ref:d,onSetTable:w,onSetBasic:o[4]||(o[4]=e=>i())},null,512)):(0,l.kq)("",!0)])),_:1}),(0,l.Wm)(s,{label:"生产企业",name:"third1"},{default:(0,l.w5)((()=>["third1"==f.value?((0,l.wg)(),(0,l.j4)(H,{key:0,onSetTable:w,onSetBasic:o[5]||(o[5]=e=>i()),ref_key:"Enterp",ref:p},null,512)):(0,l.kq)("",!0)])),_:1})])),_:1},8,["modelValue"])])),_:1})])}}});const X=Q;var ee=X},4764:function(e,t,a){e.exports=a.p+"img/1700227167756.2203a3ea.jpg"},7767:function(e,t,a){e.exports=a.p+"img/1700227576514.0f0dfe16.jpg"},2163:function(e,t,a){e.exports=a.p+"img/1700228167058.6445352d.jpg"},3265:function(e,t,a){e.exports=a.p+"img/1700228181332.9528a5c4.jpg"},736:function(e,t,a){e.exports=a.p+"img/1700228207945.f1b33668.jpg"}}]);
- //# sourceMappingURL=134.79d902b2.js.map
|