mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-19 19:55:28 +08:00
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
import{l as V,aE as B,Z as I,r as T,d as q,ag as n,aq as L,p as f,V as z,M as k,Q as F,T as p,O as o,m as l,F as R,a7 as $,q as t,R as u,S as x,a2 as j,aG as G,aH as H}from"./vue-tssh-6K7.js";import{g as O}from"./index-TasnPRIY.js";import{E as Q}from"./element-2cKDr3_0.js";import{_ as Z}from"./index-3FoHnkP0.js";const m=d=>(G("data-v-884b7079"),d=d(),H(),d),J={class:"app-container"},K={class:"card-container"},P={class:"card-header"},U={class:"card-title"},W={class:"title-text"},X={class:"card-content"},Y={class:"info-row"},ee=m(()=>t("span",{class:"info-icon"},"🏷️",-1)),te={class:"info-text"},se=m(()=>t("span",{class:"info-label"},"场景类型",-1)),ae={class:"info-value"},oe={class:"info-row"},ne=m(()=>t("span",{class:"info-icon"},"📝",-1)),ce={class:"info-text"},le=m(()=>t("span",{class:"info-label"},"描述",-1)),de={class:"info-value description"},ie={class:"card-footer"},re=V({name:"AuditTemplateList",__name:"index",setup(d){const b=B(),h=I({keyword:"",searchType:"templateCode"}),i=T(!1),c=T([]),w={add_gift:"加赠",refund:"退款",price_adjust:"价格调整",order_cancel:"订单取消",exchange:"换货"},v={0:{label:"未配置",type:"info"},1:{label:"已配置",type:"success"},2:{label:"已禁用",type:"warning"}},C=async()=>{i.value=!0;try{const s={};h.keyword.trim()&&(s.keyword=h.keyword.trim());const r=await O(s);console.log("审批模板列表数据:",r),Array.isArray(r)?c.value=r.map(e=>({id:e.id||"",templateCode:e.flow_id||e.templateCode||e.code||"",templateName:e.scene_name||"",sceneType:e.scene_type||"",status:e.status??0,createTime:e.create_time||e.createTime||e.created_at||"",updateTime:e.update_time||e.updateTime||e.updated_at||"",description:e.scene_memo||"暂无描述"})):c.value=[]}catch(s){console.error("获取审批模板列表失败:",s),Q.error("获取审批模板列表失败"),c.value=[]}finally{i.value=!1}},y=s=>{console.log("编辑模板",s),b.push({path:"/m-audit-template-edit",query:{template_id:s.id,template_name:s.templateName,scene_type:s.sceneType,description:s.description,status:s.status}})};return q(()=>{C()}),(s,r)=>{const e=n("el-empty"),N=n("el-tag"),D=n("el-button"),M=n("el-card"),A=n("el-col"),E=n("el-row"),S=L("loading");return l(),f("div",J,[z((l(),f("div",K,[!c.value.length&&!i.value?(l(),k(e,{key:0,description:"暂无审批模板数据"})):F("",!0),p(E,{gutter:20},{default:o(()=>[(l(!0),f(R,null,$(c.value,a=>(l(),k(A,{key:a.id,xs:24,sm:12,md:8,lg:6,xl:6},{default:o(()=>[p(M,{class:"template-card",shadow:"hover",onClick:_=>y(a)},{header:o(()=>{var _;return[t("div",P,[t("div",U,[t("span",W,u(a.templateName),1),p(N,{type:((_=v[a.status])==null?void 0:_.type)||"info",size:"small"},{default:o(()=>{var g;return[x(u(((g=v[a.status])==null?void 0:g.label)||"未知"),1)]}),_:2},1032,["type"])])])]}),footer:o(()=>[t("div",ie,[p(D,{type:"primary",link:"",size:"small",onClick:j(_=>y(a),["stop"])},{default:o(()=>[x(" 编辑流程 ")]),_:2},1032,["onClick"])])]),default:o(()=>[t("div",X,[t("div",Y,[ee,t("div",te,[se,t("span",ae,u(w[a.sceneType]||a.sceneType),1)])]),t("div",oe,[ne,t("div",ce,[le,t("span",de,u(a.description||"暂无描述"),1)])])])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})])),[[S,i.value]])])}}}),fe=Z(re,[["__scopeId","data-v-884b7079"]]);export{fe as default};
|