ERP-admin/build/admin/assets/index.392e14f9.js

2 lines
4.3 KiB
JavaScript

import{C as P,D as S,w as T,F as U,T as $,O as A,Q as I,R as j}from"./element-plus.8c800afc.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.7b224fce.js";import{u as O}from"./usePaging.6a6670f9.js";import{u as Q}from"./useDictOptions.080d297e.js";import{i as K}from"./opurchaseclass.ade5f034.js";import"./lodash.be6e4bb5.js";import"./index.2398c167.js";import{_ as M}from"./edit.vue_vue_type_script_setup_true_name_opurchaseclassEdit_lang.576513c3.js";import{a as Z}from"./vue-router.886c5f5a.js";import{d as C,s as z,r as w,Z as G,o as d,c as H,U as o,L as l,u as e,R as c,M as J,K as b,a as v,j as W,Q as X}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.6061d63f.js";import"./color.1580a89c.js";import"./clone.4ed29f58.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.b29ee5e2.js";import"./vue-clipboard3.15c43b43.js";import"./clipboard.4a3580c9.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.d0a14c5a.js";const Y={class:"mt-4"},oo={class:"flex mt-4 justify-end"},eo=C({name:"opurchaseclassLists"}),Oo=C({...eo,setup(to){const E=Z(),D=z(),_=w(!1),u=G({merchant:"",order_arr:"",number:""}),F=w([]),g=n=>{F.value=n.map(({id:a})=>a)},{dictData:B}=Q(""),{pager:s,getLists:i,resetParams:V,resetPage:k}=O({fetchFun:K,params:u}),y=async n=>{console.log(n),E.push({path:"detail",query:{id:n.id}})};return i(),(n,a)=>{const f=P,p=S,m=T,x=U,h=$,t=A,R=I,L=q,N=j;return d(),H("div",null,[o(h,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(x,{class:"mb-[-16px]",model:e(u),inline:""},{default:l(()=>[o(p,{label:"\u6240\u5C5E\u5546\u6237",prop:"merchant"},{default:l(()=>[o(f,{class:"w-[280px]",modelValue:e(u).merchant,"onUpdate:modelValue":a[0]||(a[0]=r=>e(u).merchant=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5546\u6237"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u96F6\u552E\u8BA2\u5355id",prop:"order_arr"},{default:l(()=>[o(f,{class:"w-[280px]",modelValue:e(u).order_arr,"onUpdate:modelValue":a[1]||(a[1]=r=>e(u).order_arr=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u96F6\u552E\u8BA2\u5355id"},null,8,["modelValue"])]),_:1}),o(p,null,{default:l(()=>[o(m,{type:"primary",onClick:e(k)},{default:l(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(m,{onClick:e(V)},{default:l(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),J((d(),b(h,{class:"!border-none",shadow:"never"},{default:l(()=>[v("div",Y,[o(R,{data:e(s).lists,onSelectionChange:g},{default:l(()=>[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":""}),o(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:r})=>[o(m,{type:"primary",link:"",onClick:lo=>y(r)},{default:l(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),v("div",oo,[o(L,{modelValue:e(s),"onUpdate:modelValue":a[2]||(a[2]=r=>W(s)?s.value=r:null),onChange:e(i)},null,8,["modelValue","onChange"])])]),_:1})),[[N,e(s).loading]]),e(_)?(d(),b(M,{key:0,ref_key:"editRef",ref:D,"dict-data":e(B),onSuccess:e(i),onClose:a[3]||(a[3]=r=>_.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});export{Oo as default};