- 已发货判定:履约状态已发货/已签收/已完成,或已填快递单号,或药房回传已发货(洛阳 SHIPPED/COMPLETED、甘草 20/30) - 已发货后「修改服用参数」与订单编辑中的主方/辅方开立天数、订单服用天数不可修改(服务端拦截);次数、袋数仍可改; 订单未单独设置天数时以处方开立天数为准,不会误判为修改 - 订单详情返回 days_locked,详情抽屉、订单列表(含 H5)编辑时禁用天数输入并提示 - 重新构建管理后台 Co-Authored-By: Claude Opus 5 <[EMAIL]>
2 lines
2.8 KiB
JavaScript
2 lines
2.8 KiB
JavaScript
import{o as v,x as T,br as B,q as s,r as D,v as t,D as a,ag as m,O as l,u as i,K as L,L as r,bn as N,bo as P,bp as q,P as b,s as y,bq as $,C as R,bg as j}from"./.pnpm-DnXobOVo.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-GSVwwezT.js";import{bg as K,m as k,c as O,f as U,bh as z}from"./index-BOegMRMJ.js";import{u as A}from"./usePaging-DdtNlhkl.js";const G={class:"flex"},H={class:"flex justify-end mt-4"},I=v({name:"scheduledTask"}),Y=v({...I,setup(J){const{pager:d,getLists:c}=A({fetchFun:K,params:{}}),w=async f=>{await U.confirm("确定要删除?"),await z({id:f}),c()};return c(),(f,e)=>{const h=O,p=L,g=T("router-link"),n=P,u=q,x=N,C=F,V=j,_=B("perms"),E=$;return s(),D("div",null,[t(V,{shadow:"never",class:"!border-none"},{default:a(()=>[m((s(),l(g,{to:i(k)("crontab.crontab/add:edit")},{default:a(()=>[t(p,{type:"primary",class:"mb-[16px]"},{icon:a(()=>[t(h,{name:"el-icon-Plus"})]),default:a(()=>[e[1]||(e[1]=r(" 新增 ",-1))]),_:1})]),_:1},8,["to"])),[[_,["crontab.crontab/add","crontab.crontab/add:edit"]]]),m((s(),l(x,{ref:"paneTable",class:"m-t-24",data:i(d).lists,style:{width:"100%"}},{default:a(()=>[t(n,{prop:"name",label:"名称","min-width":"120"}),t(n,{prop:"type_desc",label:"类型","min-width":"100"}),t(n,{prop:"command",label:"命令","min-width":"100"}),t(n,{prop:"params",label:"参数","min-width":"80"}),t(n,{prop:"expression",label:"规则","min-width":"100"}),t(n,{prop:"status",label:"状态","min-width":"100"},{default:a(({row:o})=>[o.status==1?(s(),l(u,{key:0,type:"success"},{default:a(()=>[...e[2]||(e[2]=[r("运行中",-1)])]),_:1})):b("",!0),o.status==2?(s(),l(u,{key:1,type:"info"},{default:a(()=>[...e[3]||(e[3]=[r("已停止",-1)])]),_:1})):b("",!0),o.status==3?(s(),l(u,{key:2,type:"danger"},{default:a(()=>[...e[4]||(e[4]=[r("错误",-1)])]),_:1})):b("",!0)]),_:1}),t(n,{prop:"error",label:"错误原因","min-width":"120"}),t(n,{prop:"last_time",label:"最后执行时间",width:"180"}),t(n,{prop:"time",label:"时长","min-width":"100"}),t(n,{prop:"max_time",label:"最大时长","min-width":"100"}),t(n,{label:"操作",width:"120",fixed:"right"},{default:a(({row:o})=>[y("div",G,[t(p,{type:"primary",link:""},{default:a(()=>[m((s(),l(g,{to:{path:i(k)("crontab.crontab/add:edit"),query:{id:o.id}}},{default:a(()=>[t(p,{type:"primary",link:""},{default:a(()=>[...e[5]||(e[5]=[r(" 编辑 ",-1)])]),_:1})]),_:1},8,["to"])),[[_,["crontab.crontab/edit","crontab.crontab/add:edit"]]])]),_:2},1024),m((s(),l(p,{type:"danger",link:"",onClick:M=>w(o.id)},{default:a(()=>[...e[6]||(e[6]=[r(" 删除 ",-1)])]),_:1},8,["onClick"])),[[_,["crontab.crontab/delete"]]])])]),_:1})]),_:1},8,["data"])),[[E,i(d).loading]]),y("div",H,[t(C,{modelValue:i(d),"onUpdate:modelValue":e[0]||(e[0]=o=>R(d)?d.value=o:null),onChange:i(c)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Y as default};
|