You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
6.7 KiB
JavaScript

import{Z as Q,I as Z,C as q,D as K,Q as G,R as H,w as J,F as W,L as X,M as Y,N as ee}from"./element-plus.3f92981f.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.d38d0264.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.00a5f88e.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.92169163.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.80187c70.js";import{u as le}from"./usePaging.63ca32b2.js";import{a as ue}from"./useDictOptions.c8e79bdd.js";import{a as E,_ as ne,b as ie}from"./edit.vue_vue_type_script_setup_true_name_userPayOrderEdit_lang.8ec859bd.js";import{d as B,s as re,r as C,Z as de,i as pe,am as me,o as r,c as D,U as e,L as s,a as l,S as c,u as t,T as ce,a9 as _e,K as _,R as h,M as x,j as fe,Q as ve}from"./@vue.90bde458.js";import"./lodash.e8662b6c.js";import{f as we}from"./index.f1edad3c.js";import"./lodash-es.151604d4.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.c9321399.js";import"./@element-plus.637a59d4.js";import"./dayjs.75ab1bbe.js";import"./axios.71c4c5b2.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.6a21acfb.js";import"./vue-router.1051b4fa.js";import"./pinia.8db5076b.js";import"./css-color-function.7400b82e.js";import"./color.be84bc95.js";import"./clone.ec2f9c3f.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.8f68f559.js";import"./vue-clipboard3.053a92aa.js";import"./clipboard.9dddce66.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.f76f30bc.js";const he={class:"flex flex-wrap"},Fe={class:"w-1/2 md:w-1/4"},be=l("div",{class:"leading-10"},"\u4ECA\u65E5\u652F\u4ED8\u6210\u529F\u91D1\u989D (\u5200)",-1),ge={class:"text-6xl"},ye={class:"w-1/2 md:w-1/4"},Ee=l("div",{class:"leading-10"},"\u4ECA\u65E5\u652F\u4ED8\u6210\u529F\u6570 (\u7B14)",-1),Ce={class:"text-6xl"},De={class:"w-1/2 md:w-1/4"},xe=l("div",{class:"leading-10"},"\u652F\u4ED8\u6210\u529F\u91D1\u989D (\u5200)",-1),Be={class:"text-6xl text-success"},Te={class:"w-1/2 md:w-1/4"},Ve=l("div",{class:"leading-10"},"\u652F\u4ED8\u6210\u529F\u6570 (\u7B14)",-1),ke={class:"text-6xl text-success"},Ie={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},Ue=B({name:"userPayOrderLists"}),bt=B({...Ue,setup(Pe){const T=re(),F=C(!1),u=de({uid:"",productIdentifying:"",status:"",createTime:"",start:"",end:""}),V=C([]),k=m=>{V.value=m.map(({orderNo:a})=>a)},{dictData:f}=ue("pay_status"),{pager:i,getLists:p,resetParams:I,resetPage:A}=le({fetchFun:E,params:u}),U=async m=>{await we.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({orderNo:m}),p()};return pe(()=>{p()}),(m,a)=>{const v=Z,b=q,d=K,g=G,P=H,L=ae,w=J,N=se,S=W,n=X,$=oe,R=Q,O=Y,z=te,M=me("perms"),j=ee;return r(),D("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:s(()=>[l("div",he,[l("div",Fe,[be,l("div",ge,c(t(i).extend.today_money),1)]),l("div",ye,[Ee,l("div",Ce,c(t(i).extend.today),1)]),l("div",De,[xe,l("div",Be,c(t(i).extend.success_money),1)]),l("div",Te,[Ve,l("div",ke,c(t(i).extend.success),1)])])]),_:1}),e(v,{class:"!border-none mb-4",shadow:"never"},{default:s(()=>[e(S,{class:"mb-[-16px]",model:t(u),inline:""},{default:s(()=>[e(d,{label:"\u89D2\u8272ID",prop:"uid"},{default:s(()=>[e(b,{class:"w-[280px]",modelValue:t(u).uid,"onUpdate:modelValue":a[0]||(a[0]=o=>t(u).uid=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272ID"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5546\u54C1ID",prop:"productIdentifying"},{default:s(()=>[e(b,{class:"w-[280px]",modelValue:t(u).productIdentifying,"onUpdate:modelValue":a[1]||(a[1]=o=>t(u).productIdentifying=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1ID"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status"},{default:s(()=>[e(P,{class:"w-[280px]",modelValue:t(u).status,"onUpdate:modelValue":a[2]||(a[2]=o=>t(u).status=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u72B6\u6001"},{default:s(()=>[e(g,{label:"\u5168\u90E8",value:""}),(r(!0),D(ce,null,_e(t(f).pay_status,(o,y)=>(r(),_(g,{key:y,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:s(()=>[e(L,{startTime:t(u).start,"onUpdate:startTime":a[3]||(a[3]=o=>t(u).start=o),endTime:t(u).end,"onUpdate:endTime":a[4]||(a[4]=o=>t(u).end=o)},null,8,["startTime","endTime"])]),_:1}),e(d,null,{default:s(()=>[e(w,{type:"primary",onClick:t(A)},{default:s(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(w,{onClick:t(I)},{default:s(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(N,{class:"ml-2.5","fetch-fun":t(E),params:t(u),"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),x((r(),_(v,{class:"!border-none",shadow:"never"},{default:s(()=>[l("div",Ie,[e(O,{data:t(i).lists,onSelectionChange:k},{default:s(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u8BA2\u5355\u53F7",prop:"orderNo","show-overflow-tooltip":""}),e(n,{label:"\u89D2\u8272ID",width:"100",prop:"uid","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1ID",width:"100",prop:"productIdentifying","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u8BF4\u660E",prop:"productDes","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u4EF7\u683C",width:"100",prop:"commodityPrice","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u7C7B\u578B",width:"100",prop:"productType","show-overflow-tooltip":""}),e(n,{label:"\u8BA2\u5355\u72B6\u6001",width:"100",prop:"status"},{default:s(({row:o})=>[e(R,{class:"ml-2",type:o.status===1?"info":"success"},{default:s(()=>[e($,{options:t(f).pay_status,value:o.status},null,8,["options","value"])]),_:2},1032,["type"])]),_:1}),e(n,{label:"\u8BA2\u5355\u4FE1\u606F",prop:"msg","show-overflow-tooltip":""}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime","show-overflow-tooltip":""}),e(n,{label:"\u66F4\u65B0\u65F6\u95F4",prop:"updateTime","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:s(({row:o})=>[x((r(),_(w,{type:"danger",link:"",onClick:y=>U(o.orderNo)},{default:s(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[M,["log.userpayorder/delete"]]])]),_:1})]),_:1},8,["data"])]),l("div",Ae,[e(z,{modelValue:t(i),"onUpdate:modelValue":a[5]||(a[5]=o=>fe(i)?i.value=o:null),onChange:t(p)},null,8,["modelValue","onChange"])])]),_:1})),[[j,t(i).loading]]),t(F)?(r(),_(ne,{key:0,ref_key:"editRef",ref:T,"dict-data":t(f),onSuccess:t(p),onClose:a[6]||(a[6]=o=>F.value=!1)},null,8,["dict-data","onSuccess"])):ve("",!0)])}}});export{bt as default};