2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{k as j,C as T,D as I,w as U,F as q,T as J,O as M,Q,R as H}from"./element-plus.619595c4.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.02c63712.js";import{b as W}from"./index.adbcc6f1.js";import{u as Z}from"./usePaging.6a6670f9.js";import{u as z}from"./useDictOptions.2130484f.js";import{h as G,i as X}from"./opurchaseclass.e1b8a0ff.js";import{d as y,s as Y,r as v,Z as oo,ap as eo,o as i,c as to,U as o,L as e,u as a,R as u,M as d,K as m,a as E,S as ao,j as lo,Q as ro}from"./@vue.18505fe0.js";import"./lodash.0987e768.js";import{_ as so}from"./edit.vue_vue_type_script_setup_true_name_opurchaseclassEdit_lang.bbf05c80.js";import{a as no}from"./vue-router.101084e3.js";import{p as io}from"./print-js.33b44993.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.6ad9ae30.js";import"./axios.fbe06b45.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.316b9a3d.js";import"./vue-clipboard3.f9a42727.js";import"./clipboard.bf37ca4b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.122ff80d.js";const uo={class:"mt-4"},po={class:"flex mt-4 justify-end"},mo=y({name:"opurchaseclassLists"}),Yo=y({...mo,setup(co){const g=no(),B=Y(),w=v(!1),c=oo({merchant:"",order_arr:"",number:"",is_mer:1}),k=v([]),F=l=>{k.value=l.map(({id:r})=>r)},{dictData:A}=z(""),{pager:p,getLists:_,resetParams:x,resetPage:V}=Z({fetchFun:X,params:c}),S=async()=>{G().then(l=>{j.success("\u63D0\u4EA4\u6210\u529F")})},D=async()=>{var l=[{name:"John Doe",email:"john@doe.com",phone:"111-111-1111"},{name:"Barry Allen",email:"barry@flash.com",phone:"222-222-2222"},{name:"Cool Dude",email:"cool@dude.com",phone:"333-333-3333"}];io({printable:l,type:"json",properties:[{field:"name",displayName:"\u81EA\u5B9A\u4E49\u8868\u5934"},{field:"email",displayName:"\u81EA\u5B9A\u4E49\u8868\u5934"},{field:"phone",displayName:"\u81EA\u5B9A\u4E49\u8868\u5934"}],maxWidth:58,gridHeaderStyle:"color: red; border: 2px solid #3971A5;",gridStyle:"border: 2px solid #3971A5;"})},N=async l=>{console.log(l),g.push({path:"detail",query:{id:l.id}})};return _(),(l,r)=>{const P=T,b=I,n=U,R=q,C=J,f=W,t=M,O=Q,L=K,h=eo("perms"),$=H;return i(),to("div",null,[o(C,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(R,{class:"mb-[-16px]",model:a(c),inline:""},{default:e(()=>[o(b,{label:"\u6240\u5C5E\u5546\u6237",prop:"merchant"},{default:e(()=>[o(P,{class:"w-[280px]",modelValue:a(c).merchant,"onUpdate:modelValue":r[0]||(r[0]=s=>a(c).merchant=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5546\u6237"},null,8,["modelValue"])]),_:1}),o(b,null,{default:e(()=>[o(n,{type:"primary",onClick:a(V)},{default:e(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(n,{onClick:a(x)},{default:e(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((i(),m(C,{class:"!border-none",shadow:"never"},{default:e(()=>[d((i(),m(n,{type:"primary",onClick:S},{icon:e(()=>[o(f,{name:"el-icon-Plus"})]),default:e(()=>[u(" \u63D0\u4EA4\u4ECA\u65E5\u5546\u6237\u91C7\u8D2D\u8BA2\u5355 ")]),_:1})),[[h,["operation.opurchaseclass/add"]]]),d((i(),m(n,{type:"success",onClick:D},{icon:e(()=>[o(f,{name:"el-icon-Printer"})]),default:e(()=>[u(" \u6253\u5370 ")]),_:1})),[[h,["operation.opurchaseclass/add"]]]),d((i(),m(n,{type:"success",onClick:D},{icon:e(()=>[o(f,{name:"el-icon-Printer"})]),default:e(()=>[u(" \u6D4B\u8BD5 ")]),_:1})),[[h,["operation.opurchaseclass/add"]]]),E("div",uo,[o(O,{data:a(p).lists,onSelectionChange:F},{default:e(()=>[o(t,{type:"selection",width:"55"}),o(t,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(t,{label:"\u6240\u5C5E\u5546\u6237",prop:"merchant_name","show-overflow-tooltip":""}),o(t,{label:"\u96F6\u552E\u8BA2\u5355id",prop:"order_arr","show-overflow-tooltip":""}),o(t,{label:"\u8D2D\u7269\u8F66id",prop:"cart_id","show-overflow-tooltip":""}),o(t,{label:"\u5355\u636E\u7F16\u53F7",prop:"number",width:"220","show-overflow-tooltip":""}),o(t,{label:"\u5355\u636E\u91D1\u989D",prop:"total","show-overflow-tooltip":""}),o(t,{label:"\u62B5\u6263\u91D1\u989D",prop:"deduction_price","show-overflow-tooltip":""}),o(t,{label:"\u5B9E\u9645\u91D1\u989D",prop:"actual","show-overflow-tooltip":""}),o(t,{label:"\u5B9E\u6536\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),o(t,{label:"\u662F\u5426\u652F\u4ED8",prop:"paid","show-overflow-tooltip":""},{default:e(({row:s})=>[E("span",null,ao(s.paid?"\u662F":"\u5426"),1)]),_:1}),o(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:e(({row:s})=>[o(n,{type:"primary",link:"",onClick:_o=>N(s)},{default:e(()=>[u(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),E("div",po,[o(L,{modelValue:a(p),"onUpdate:modelValue":r[1]||(r[1]=s=>lo(p)?p.value=s:null),onChange:a(_)},null,8,["modelValue","onChange"])])]),_:1})),[[$,a(p).loading]]),a(w)?(i(),m(so,{key:0,ref_key:"editRef",ref:B,"dict-data":a(A),onSuccess:a(_),onClose:r[2]||(r[2]=s=>w.value=!1)},null,8,["dict-data","onSuccess"])):ro("",!0)])}}});export{Yo as default};
|