- 洛阳药房:作废时先调用 POST /api/openapi/v1/prescription-orders/{订单号}/cancel 撤单,确认 CANCELLED 后再作废并挂起订单;
远端拒绝(已发货/已扣库存,409)或未确认时不作废并提示原因;撤单写订单日志。撤单后的订单重新审核通过后以新版本提交药房
- 甘草:暂无撤单接口,须先在甘草撤单;甘草回传撤单/驳回(91/92)后可作废
- 远端已确认取消且无在途新版本提交时,订单不再被药房快照锁定
- 列表与详情的 can_void 按「能否自动撤单」判断
- 重新构建管理后台
Co-Authored-By: Claude Opus 5 <[EMAIL]>
2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
import{o as V,q as t,r as o,ai as v,s as i,O as h,D as u,v as z,bp as M,L as d,T as l,F as y,G as P,a5 as F,P as r,p as a}from"./.pnpm-DnXobOVo.js";import{bQ as q,bR as A,bS as G,bl as I,bT as O,bU as Q,bV as U,bW as W,br as X,bo as j,bn as H,bm as J,bX as K,_ as Y}from"./index-Czo1Nd6S.js";const Z={class:"rv-line rv-line--head"},$={class:"rv-tooltip"},ee={key:3,class:"rv-doctor"},te={key:0,class:"rv-dot"},se={class:"rv-line rv-line--order"},ae={key:0,class:"rv-order-date"},oe={key:1,class:"rv-dot"},le={class:"rv-anchor"},re={class:"rv-line rv-line--due"},ie={key:0,class:"rv-due-date"},ce={key:0,class:"rv-line rv-line--follow"},ne={key:1,class:"rv-none"},ue=V({__name:"RevisitNodeCell",props:{due:{},compact:{type:Boolean,default:!1},hasPrescription:{type:Boolean,default:!1},followupDoctorName:{default:""},prescribedText:{}},setup(n){const e=n,c=a(()=>q(e.due)),p=a(()=>e.prescribedText!==void 0?e.prescribedText:e.hasPrescription?"已开方":"未开方"),m=a(()=>A(e.due)),T=a(()=>{var s;return c.value&&Number((s=e.due)==null?void 0:s.current_slot)>0?"primary":"info"}),b=a(()=>G(e.due)),f=a(()=>{var s;return c.value?I((s=e.due)==null?void 0:s.order_date):""}),x=a(()=>O(e.due)),S=a(()=>Q(e.due)),k=a(()=>{var s;return c.value?U((s=e.due)==null?void 0:s.anchor_src):""}),g=a(()=>W(e.due)),D=a(()=>X(e.due)),L=a(()=>{var s;return j((s=e.due)==null?void 0:s.state)}),B=a(()=>{var s;return H((s=e.due)==null?void 0:s.state)}),R=a(()=>J(e.due)),C=a(()=>K(e.due));return(s,N)=>{const _=M,E=F;return t(),o("div",{class:v(["rv-cell",{"rv-cell--compact":n.compact}])},[i("div",Z,[c.value&&b.value.length?(t(),h(E,{key:0,placement:"top","show-after":300,"hide-after":0},{content:u(()=>[i("div",$,[(t(!0),o(y,null,P(b.value,w=>(t(),o("div",{key:w},l(w),1))),128))])]),default:u(()=>[z(_,{size:"small",type:T.value,effect:"light",class:"rv-slot-tag"},{default:u(()=>[d(l(m.value),1)]),_:1},8,["type"])]),_:1})):c.value?(t(),h(_,{key:1,size:"small",type:T.value,effect:"light",class:"rv-slot-tag"},{default:u(()=>[d(l(m.value),1)]),_:1},8,["type"])):r("",!0),p.value?(t(),o("span",{key:2,class:v(["rv-prescribed",n.hasPrescription?"rv-prescribed--yes":"rv-prescribed--no"])},l(p.value),3)):r("",!0),n.followupDoctorName?(t(),o("span",ee,[p.value?(t(),o("span",te,"·")):r("",!0),d(l(n.followupDoctorName),1)])):r("",!0)]),c.value?(t(),o(y,{key:0},[i("div",se,[f.value?(t(),o("span",ae,l(f.value)+" 开药",1)):r("",!0),f.value?(t(),o("span",oe,"·")):r("",!0),i("span",{class:v(["rv-days",{"rv-days--missing":x.value}])},l(S.value),3),!x.value&&k.value?(t(),o(y,{key:2},[N[0]||(N[0]=i("span",{class:"rv-dot"},"·",-1)),i("span",le,l(k.value),1)],64)):r("",!0)]),i("div",re,[g.value?(t(),o("span",ie,l(g.value),1)):r("",!0),D.value?(t(),h(_,{key:1,size:"small",type:L.value,effect:B.value,class:v(R.value)},{default:u(()=>[d(l(D.value),1)]),_:1},8,["type","effect","class"])):r("",!0)]),C.value?(t(),o("div",ce,l(C.value),1)):r("",!0)],64)):(t(),o("span",ne,"—"))],2)}}}),pe=Y(ue,[["__scopeId","data-v-fb0ce27b"]]);export{pe as default};
|