_plugin-vue_export-helper.xoKxFmkD.js 1.1 KB

1
  1. import{a9 as n,af as e,ag as t}from"./index-C_Tg8IkC.js";function r(n,e=2){return null==n?"—":(n/100).toLocaleString("zh-CN",{minimumFractionDigits:e,maximumFractionDigits:e})}function i(n,e=""){return null==n?"—":`${n}${e}`}const o={pending:"待调度",assigned:"待出发",transit:"配送中",completed:"已完成",cancelled:"已取消",returning:"待退货",returned:"已退货",expired:"已过期",paid:"已支付",online:"在线",offline:"离线",unknown:"状态未知",enterprise_admin:"企业管理员",enterprise_member:"企业成员",driver:"配送员",agent:"代理商"};function s(n){return n?o[n]||n:"—"}function a(n){e({url:n})}function c(e){n({title:e,icon:"none",duration:2600})}function u(n,e){return new Promise(r=>t({title:n,content:e,success:n=>r(n.confirm),fail:()=>r(!1)}))}function f(n){const e=Number(n);if(!Number.isSafeInteger(e)||e<1)throw new Error("页面参数无效,请返回列表重新进入");return e}const m=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t};export{m as _,u as c,a as g,f as i,s as l,r as m,c as t,i as v};