2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{C as N,D as P,w as T,F as $,T as I,O as U,Q as j,R as q}from"./element-plus.619595c4.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.02c63712.js";import{u as Q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.2130484f.js";import{i as M}from"./opurchaseclass.e1b8a0ff.js";import{d as b,s as Z,r as w,Z as z,o as m,c as A,U as o,L as a,u as e,R as c,M as G,K as C,a as d,S as H,j as J,Q as W}from"./@vue.18505fe0.js";import"./lodash.0987e768.js";import"./index.adbcc6f1.js";import{_ as X}from"./edit.vue_vue_type_script_setup_true_name_opurchaseclassEdit_lang.450b07f2.js";import{a as Y}from"./vue-router.101084e3.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 oo={class:"mt-4"},eo={class:"flex mt-4 justify-end"},to=b({name:"opurchaseclassLists"}),Ko=b({...to,setup(ao){const D=Y(),v=Z(),_=w(!1),i=z({merchant:"",order_arr:"",number:"",is_mer:2}),E=w([]),g=n=>{E.value=n.map(({id:l})=>l)},{dictData:F}=K(""),{pager:s,getLists:u,resetParams:y,resetPage:k}=Q({fetchFun:M,params:i}),B=async n=>{console.log(n),D.push({path:"transDetail",query:{id:n.id}})};return u(),(n,l)=>{const V=N,f=P,p=T,x=$,h=I,t=U,R=j,S=O,L=q;return m(),A("div",null,[o(h,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(x,{class:"mb-[-16px]",model:e(i),inline:""},{default:a(()=>[o(f,{label:"\u6240\u5C5E\u5546\u6237",prop:"merchant"},{default:a(()=>[o(V,{class:"w-[280px]",modelValue:e(i).merchant,"onUpdate:modelValue":l[0]||(l[0]=r=>e(i).merchant=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5546\u6237"},null,8,["modelValue"])]),_:1}),o(f,null,{default:a(()=>[o(p,{type:"primary",onClick:e(k)},{default:a(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(p,{onClick:e(y)},{default:a(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),G((m(),C(h,{class:"!border-none",shadow:"never"},{default:a(()=>[d("div",oo,[o(R,{data:e(s).lists,onSelectionChange:g},{default:a(()=>[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:"\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"},{default:a(({row:r})=>[d("span",null,H(r.paid?"\u662F":"\u5426"),1)]),_:1}),o(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:r})=>[o(p,{type:"primary",link:"",onClick:lo=>B(r)},{default:a(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),d("div",eo,[o(S,{modelValue:e(s),"onUpdate:modelValue":l[1]||(l[1]=r=>J(s)?s.value=r:null),onChange:e(u)},null,8,["modelValue","onChange"])])]),_:1})),[[L,e(s).loading]]),e(_)?(m(),C(X,{key:0,ref_key:"editRef",ref:v,"dict-data":e(F),onSuccess:e(u),onClose:l[2]||(l[2]=r=>_.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{Ko as default};
|