修复药师菜单缺少「审核签署身份」;处方笺天数栏剂数顶替时单位改为天
- 顶部用户菜单与「已开处方」页会同时请求 esignConfig,请求库会取消先发出的同名请求, 菜单因此把审核签署判为未启用、不再重试。该只读配置请求改为不参与重复取消 - 药房联 / 处方联「天数」栏在未填用药天数、以剂数顶替时,由「14剂」改为「14 天」(管理后台与桌面端一致) - 重新构建管理后台 Co-Authored-By: Claude Opus 5 (1M context) <[EMAIL]>
This commit is contained in:
co-authored by
Claude Opus 5 (1M context)
parent
dfe5768cd2
commit
b8f66e2b00
@@ -0,0 +1 @@
|
||||
import{o as T,q as r,r as p,v as n,D as s,be as z,u as l,bc as A,aC as J,bl as L,F as b,G as g,O as k,cD as j,bm as H,s as V,T as K,c1 as Q,J as W,a3 as X,ac as v,M as Z,p as $,aD as ee}from"./.pnpm-DnXobOVo.js";import{a as ae,b as te,c as oe}from"./finance-CEotU9S8.js";import{_ as le}from"./index-BXBzLuWj.js";import{_ as ne}from"./index-MwyIJDGh.js";const se={class:"edit-popup"},de={class:"channel-opt-row"},re={class:"opt-name"},ce=T({__name:"edit",props:{mediaChannelGroups:{},deptOptions:{},defaultMediaChannelCode:{}},emits:["success","close"],setup(m,{expose:w,emit:C}){const y=m,_=C,f=v(),i=v(),c=Z("add"),E=$(()=>c.value==="edit"?"编辑账户消耗":"新增账户消耗"),x={value:"id",label:"name",children:"children"},e=ee({id:"",cost_date:"",media_channel_code:"",dept_id:"",amount:0,remark:""}),D={cost_date:[{required:!0,message:"请选择日期",trigger:["change"]}],media_channel_code:[{required:!0,message:"请选择自媒体渠道",trigger:["change"]}],dept_id:[{required:!0,message:"请选择绑定部门",trigger:["change"]}],amount:[{required:!0,message:"请输入账户消耗金额",trigger:["blur","change"]}]},R=()=>{e.id="",e.cost_date="",e.media_channel_code=y.defaultMediaChannelCode||"",e.dept_id="",e.amount=0,e.remark=""},F=async()=>{var t,a;await((t=f.value)==null?void 0:t.validate()),c.value==="edit"?await ae(e):await te(e),(a=i.value)==null||a.close(),_("success")},q=(t="add")=>{var a;c.value=t,R(),(a=i.value)==null||a.open()},h=t=>{e.id=t.id??"",e.cost_date=t.cost_date??"",e.media_channel_code=t.media_channel_code??"",e.dept_id=t.dept_id?Number(t.dept_id):"",e.amount=Number(t.amount??0),e.remark=t.remark??""},M=async t=>{const a=await oe({id:t.id});h(a)},N=()=>{_("close")};return w({open:q,setFormData:h,getDetail:M}),(t,a)=>{const O=J,d=A,U=H,B=j,G=L,I=Q,S=W,Y=X,P=z;return r(),p("div",se,[n(le,{ref_key:"popupRef",ref:i,title:l(E),async:!0,width:"560px",onConfirm:F,onClose:N},{default:s(()=>[n(P,{ref_key:"formRef",ref:f,model:l(e),"label-width":"100px",rules:D},{default:s(()=>[n(d,{label:"日期",prop:"cost_date"},{default:s(()=>[n(O,{modelValue:l(e).cost_date,"onUpdate:modelValue":a[0]||(a[0]=o=>l(e).cost_date=o),type:"date","value-format":"YYYY-MM-DD",placeholder:"请选择日期",disabled:l(c)==="edit"},null,8,["modelValue","disabled"])]),_:1}),n(d,{label:"自媒体渠道",prop:"media_channel_code"},{default:s(()=>[n(G,{modelValue:l(e).media_channel_code,"onUpdate:modelValue":a[1]||(a[1]=o=>l(e).media_channel_code=o),placeholder:"请选择自媒体渠道",class:"account-cost-channel-select w-full",filterable:""},{default:s(()=>[(r(!0),p(b,null,g(m.mediaChannelGroups,o=>(r(),k(B,{key:o.group_name,label:o.group_name},{default:s(()=>[(r(!0),p(b,null,g(o.channels,u=>(r(),k(U,{key:u.channel_code,label:u.channel_name,value:u.channel_code},{default:s(()=>[V("div",de,[V("span",re,K(u.channel_name),1)])]),_:2},1032,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(d,{label:"部门",prop:"dept_id"},{default:s(()=>[n(I,{modelValue:l(e).dept_id,"onUpdate:modelValue":a[2]||(a[2]=o=>l(e).dept_id=o),data:m.deptOptions,"node-key":"id",props:x,"default-expand-all":!0,"check-strictly":"",placeholder:"请选择绑定部门",clearable:"",filterable:"",class:"w-full"},null,8,["modelValue","data"])]),_:1}),n(d,{label:"账户消耗",prop:"amount"},{default:s(()=>[n(S,{modelValue:l(e).amount,"onUpdate:modelValue":a[3]||(a[3]=o=>l(e).amount=o),min:0,step:.01,precision:2,class:"w-full"},null,8,["modelValue"])]),_:1}),n(d,{label:"备注",prop:"remark"},{default:s(()=>[n(Y,{modelValue:l(e).remark,"onUpdate:modelValue":a[4]||(a[4]=o=>l(e).remark=o),type:"textarea",autosize:{minRows:4,maxRows:6},maxlength:"255","show-word-limit":"",placeholder:"请输入备注"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title"])])}}}),_e=ne(ce,[["__scopeId","data-v-4080ff8b"]]);export{_e as default};
|
||||
Reference in New Issue
Block a user