ERP-admin/build/admin/assets/index.34ce215b.js

2 lines
5.2 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.c0c1189d.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.79ff4a10.js";import{b as W}from"./index.13b023cd.js";import{u as Z}from"./usePaging.6a6670f9.js";import{u as z}from"./useDictOptions.4b8bdc26.js";import{h as G,i as X}from"./opurchaseclass.8f390b37.js";import{d as v,s as Y,r as D,Z as oo,ap as eo,o as u,c as to,U as o,L as e,u as a,R as p,M as _,K as c,a as f,S as ao,j as lo,Q as ro}from"./@vue.18505fe0.js";import"./lodash.403d4198.js";import{_ as so}from"./edit.vue_vue_type_script_setup_true_name_opurchaseclassEdit_lang.1bf4aa3e.js";import{a as io}from"./vue-router.101084e3.js";import{p as no}from"./print-js.b1833f5a.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.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.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.8bb0bf0f.js";const uo={class:"mt-4"},po={class:"flex mt-4 justify-end"},mo=v({name:"opurchaseclassLists"}),Yo=v({...mo,setup(co){const y=io(),g=Y(),h=D(!1),m=oo({merchant:"",order_arr:"",number:"",is_mer:1}),B=D([]),F=l=>{B.value=l.map(({id:r})=>r)},{dictData:k}=z(""),{pager:i,getLists:d,resetParams:A,resetPage:x}=Z({fetchFun:X,params:m}),V=async()=>{G().then(l=>{j.success("\u63D0\u4EA4\u6210\u529F")})},S=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"}];no({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),y.push({path:"detail",query:{id:l.id}})};return d(),(l,r)=>{const P=T,E=I,n=U,R=q,w=J,b=W,t=M,O=Q,L=K,C=eo("perms"),$=H;return u(),to("div",null,[o(w,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(R,{class:"mb-[-16px]",model:a(m),inline:""},{default:e(()=>[o(E,{label:"\u6240\u5C5E\u5546\u6237",prop:"merchant"},{default:e(()=>[o(P,{class:"w-[280px]",modelValue:a(m).merchant,"onUpdate:modelValue":r[0]||(r[0]=s=>a(m).merchant=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5546\u6237"},null,8,["modelValue"])]),_:1}),o(E,null,{default:e(()=>[o(n,{type:"primary",onClick:a(x)},{default:e(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(n,{onClick:a(A)},{default:e(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),c(w,{class:"!border-none",shadow:"never"},{default:e(()=>[_((u(),c(n,{type:"primary",onClick:V},{icon:e(()=>[o(b,{name:"el-icon-Plus"})]),default:e(()=>[p(" \u63D0\u4EA4\u4ECA\u65E5\u5546\u6237\u91C7\u8D2D\u8BA2\u5355 ")]),_:1})),[[C,["operation.opurchaseclass/add"]]]),_((u(),c(n,{type:"success",onClick:S},{icon:e(()=>[o(b,{name:"el-icon-Printer"})]),default:e(()=>[p(" \u6253\u5370 ")]),_:1})),[[C,["operation.opurchaseclass/add"]]]),f("div",uo,[o(O,{data:a(i).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})=>[f("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(()=>[p(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),f("div",po,[o(L,{modelValue:a(i),"onUpdate:modelValue":r[1]||(r[1]=s=>lo(i)?i.value=s:null),onChange:a(d)},null,8,["modelValue","onChange"])])]),_:1})),[[$,a(i).loading]]),a(h)?(u(),c(so,{key:0,ref_key:"editRef",ref:g,"dict-data":a(k),onSuccess:a(d),onClose:r[2]||(r[2]=s=>h.value=!1)},null,8,["dict-data","onSuccess"])):ro("",!0)])}}});export{Yo as default};