yifengyide/public/dist/assets/index-f41369b4.js

2 lines
14 KiB
JavaScript
Raw Normal View History

import{d as Ue,K as qe,a as s,r as Se,o as je,b as d,j as U,e as l,w as t,f as _,x as T,l as Re,G as H,I as W,m as Ie,t as r,A as u,c as v,z as g,F,y as E,O as Y,N as p,ar as De,as as Le,at as Fe,a4 as $e,$ as Ne,a0 as Te,a1 as Ee,a2 as Oe,au as Ae,a3 as Be,Z as Ke,av as Ze,U as Ge,aw as Je,X as Me,_ as Pe}from"./index-7b3f5fdc.js";import{n as Qe,Z as Xe}from"./index-c8f3c6f2.js";import{Z as He}from"./index-44f083e6.js";/* empty css */import{s as We}from"./index-ed1abe32.js";import{c as Ye}from"./index-a832a56d.js";import{a as el}from"./index-e96dc078.js";import{w as ll}from"./index-81f068f9.js";import{V as tl}from"./index-a513db85.js";import{y as al,f as nl}from"./index-4ab1e1d9.js";/* empty css */import{b as ol}from"./index-c31677f3.js";import{j as ul}from"./index-d0b57c12.js";const dl={style:{display:"flex"}},sl={style:{flex:"1",padding:"10px"}},il={style:{padding:"10px"}},rl={style:{padding:"20px"}},ml=["href"],pl={style:{"text-align":"center","margin-top":"20px"}},fl={style:{padding:"20px"}},_l=["href"],vl={style:{"text-align":"center","margin-top":"20px"}},cl=Ue({__name:"index",setup(yl){const b=qe(),k=s({fsdate:"",user_id:"",status:""}),V=Se({current:1,limit:10,total:1}),ee={copperOption:{center:!1,aspectRatio:1}},le=s(""),te=s(null),O=s([]),ae=n=>{console.log("getCutDone",n),le.value=n.msg},ne=n=>{var e=JSON.parse(n.data);console.log("getFileDone",e),o.value.fj_url=e.data.fullurl},oe=s([]),ue=()=>{Y({}).then(n=>{n.code===1?oe.value=n.data:p.msg(n.msg,{icon:2})})},R=s([]),de=()=>{De({}).then(n=>{n.code===1&&(R.value=n.data)})},A=s([]),B=s([]),w=s(""),z=s(!1),h=()=>{const n={page:V.current,size:V.limit,group_id:w.value,...k.value};Je(n).then(e=>{e.code===1?(A.value=e.data.data,V.total=e.data.count):p.msg(e.msg,{icon:2})})},K=n=>n==1?"现金":"转账",se=[{title:"序号",width:"90px",key:"id",align:"center"},{title:"发生日期",width:"120px",key:"fsdate",align:"center"},{title:"考评对象",width:"120px",key:"nickname",align:"center"},{title:"科室",width:"120px",key:"group_name",align:"center"},{title:"病区",width:"120px",key:"bq_name",align:"center"},{title:"患者姓名",width:"120px",key:"hz_name",align:"center"},{title:"退还金额",width:"120px",key:"refunding_amount",align:"center",customSlot:"refundAmount"},{title:"退还日期",width:"120px",key:"thdate",align:"center"},{title:"退还方式",width:"120px",key:"refunding_type",align:"center",customSlot:"refundType"},{title:"状态",width:"130px",key:"status",align:"center",customSlot:"status"},{title:"操作",width:"150px",key:"operation",align:"center",fixed:"right",customSlot:"operation"}],q=s(!1),Z=s("新增拒收红包"),o=s({user_id:"",group_id:[],fsdate:"",zm_user_id:"",hz_name:"",bq_name:"",refunding_amount:0,thdate:"",refunding_type:"",fj_url:"",notes:""}),ie=s(!1),re=s(""),me=()=>{V.current=1,h()},pe=()=>{k.value={fsdate:"",user_id:"",status:""},V.current=1,h()},fe=()=>{console.log(b.userInfo),Z.value="新增拒收红包",ie.value=!1,re.value="",o.value={user_id:b.userInfo.id,group_id:"",fsdate:"",zm_user_id:"",hz_name:"",bq_name:"",refunding_amount:0,thdate:"",refunding_type:"",fj_url:"",notes:""},q.value=!0},_e=()=>{if(!o.value.user_id){p.msg("请选择考评对象",{icon:2});return}if(!o.value.fsdate){p.msg("请选择发生日期",{icon:2});return}if(!o.value.zm_user_id){p.msg("请选择证明人",{icon:2});return}if(!o.value.hz_name){p.msg("请输入患者姓名",{icon:2});return}if(!o.value.refunding_amount){p.msg("请输入退还金额",{icon:2});return}if(!o.value.thdate){p.msg("请选择退还日期",{icon:2});return}if(!o.value.refunding_type){p.msg("请选择退还方式",{icon:2});return}const n={...o.value,group_id:b.userInfo.group_id};Le(n).then(S=>{S.code===1?(p.msg("新增成功",{icon:1}),q.value=!1,h()):p.msg(S.msg,{icon:2})})},G=(n,e)=>{Fe({status:e,id:n.id}).then(D=>{D.code===1&&(p.msg("审核成功",{icon:1}),h())})},ve=n=>{V.current=n,h()},ce=n=>{switch(n){case 1:return"待审核";case 2:return"已通过";case 3:return"已驳回";default:return"未知"}},I=s(!1),i=s({nickname:"",group_name:"",fs