- 洛阳药房:作废时先调用 POST /api/openapi/v1/prescription-orders/{订单号}/cancel 撤单,确认 CANCELLED 后再作废并挂起订单;
远端拒绝(已发货/已扣库存,409)或未确认时不作废并提示原因;撤单写订单日志。撤单后的订单重新审核通过后以新版本提交药房
- 甘草:暂无撤单接口,须先在甘草撤单;甘草回传撤单/驳回(91/92)后可作废
- 远端已确认取消且无在途新版本提交时,订单不再被药房快照锁定
- 列表与详情的 can_void 按「能否自动撤单」判断
- 重新构建管理后台
Co-Authored-By: Claude Opus 5 <[EMAIL]>
2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{r as o}from"./index-Czo1Nd6S.js";class l extends Error{constructor(t,n=""){super(t),this.code=n,this.name="AssistantServiceError"}}const i={isTransformResponse:!1,ignoreCancelToken:!0,isOpenRetry:!1,retryCount:0},c="/tcm.assistantService/";function r(s){if(s.code!==1){const t=s.data;throw new l(s.msg||"请求失败,请刷新后重试",(t==null?void 0:t.error_code)||(t==null?void 0:t.code)||"")}return s.data}async function a(s,t={},n){return r(await o.get({url:c+s,params:t,signal:n,timeout:3e4},i))}async function e(s,t){return r(await o.post({url:c+s,data:t,timeout:3e4},i))}const u=(s={},t)=>a("alerts",s,t),w=s=>a("wecomDirectory",{},s),m=(s,t)=>a("wecomChats",s,t),v=(s,t)=>a("wecomMessages",s,t),p=s=>e("reviewAlert",s),d=(s={},t)=>a("teamOverview",s,t),y=(s,t)=>a("staffOverview",s,t),g=(s,t)=>a("staffDailyContacts",s,t),A=(s,t)=>a("staffCases",s,t),C=(s,t)=>a("staffIssues",s,t),b=s=>a("capabilities",{},s),h=(s,t)=>a("patients",s,t),S=(s,t)=>a("context",s,t),R=s=>e("record",s),x=s=>e("analyze",s),D=s=>e("draftReply",s),K=(s,t)=>a("job",{id:s},t),O=(s,t)=>a("jobs",s,t),j=s=>e("reviewQuality",s),k=s=>e("adoptAction",s),E=(s,t)=>a("actions",s,t),T=s=>e("completeAction",s),W=(s,t)=>a("knowledge",s,t),q=s=>e("saveKnowledge",s),z=s=>e("publishKnowledge",s);export{h as a,b,W as c,q as d,z as e,d as f,u as g,p as h,w as i,A as j,C as k,y as l,S as m,K as n,O as o,x as p,D as q,g as r,k as s,j as t,R as u,E as v,T as w,m as x,v as y};
|