moreShopAdmin/build/admin/assets/index.5064b12a.js

2 lines
3.2 KiB
JavaScript

import{m as g,s as S,r as k,aT as U,b2 as A,p as u,q,t,v as a,u as o,a2 as c,L as v,y as _,x as F,i as I,A as j,n as W,aW as X,aX as Y,ae as z,aY as G,b5 as H,b6 as J,b7 as K,b8 as M}from"./.pnpm.1b0299fb.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{u as Q}from"./usePaging.00aa976d.js";import{u as Z}from"./useDictOptions.e9843f63.js";import{d as ee,e as te}from"./user_bill.14ee5f94.js";import"./lodash.c3b66c05.js";import{f as oe}from"./index.689cfa31.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_userBillEdit_lang.3a39f80d.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";import"./index.6c48d0ba.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";const le={class:"mt-4"},se={class:"flex mt-4 justify-end"},ne=g({name:"userBillLists"}),we=g({...ne,setup(ie){const f=S(),b=k(!1),r=U({uid:"",type:"",create_time:""}),y=k([]),B=s=>{y.value=s.map(({id:e})=>e)},{dictData:h}=Z(""),{pager:i,getLists:d,resetParams:D,resetPage:x}=Q({fetchFun:te,params:r}),V=async s=>{var e,m;b.value=!0,await W(),(e=f.value)==null||e.open("edit"),(m=f.value)==null||m.setFormData(s)},L=async s=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:s}),d()};return d(),(s,e)=>{const m=X,C=Y,p=z,T=G,E=H,n=J,$=K,N=O,w=A("perms"),P=M;return u(),q("div",null,[t(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(T,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[t(C,{label:"\u7528\u6237uid",prop:"uid"},{default:a(()=>[t(m,{class:"w-[280px]",modelValue:o(r).uid,"onUpdate:modelValue":e[0]||(e[0]=l=>o(r).uid=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237uid"},null,8,["modelValue"])]),_:1}),t(C,null,{default:a(()=>[t(p,{type:"primary",onClick:o(x)},{default:a(()=>e[3]||(e[3]=[c("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(p,{onClick:o(D)},{default:a(()=>e[4]||(e[4]=[c("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),_(E,{class:"!border-none",shadow:"never"},{default:a(()=>[F("div",le,[t($,{data:o(i).lists,onSelectionChange:B},{default:a(()=>[t(n,{type:"selection",width:"55"}),t(n,{label:"\u660E\u7EC6\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),t(n,{label:"\u660E\u7EC6\u6570\u5B57",prop:"number","show-overflow-tooltip":""}),t(n,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),t(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[v((u(),_(p,{type:"primary",link:"",onClick:R=>V(l)},{default:a(()=>e[5]||(e[5]=[c(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[w,["user_bill.user_bill/edit"]]]),v((u(),_(p,{type:"danger",link:"",onClick:R=>L(l.id)},{default:a(()=>e[6]||(e[6]=[c(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[w,["user_bill.user_bill/delete"]]])]),_:1})]),_:1},8,["data"])]),F("div",se,[t(N,{modelValue:o(i),"onUpdate:modelValue":e[1]||(e[1]=l=>I(i)?i.value=l:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[P,o(i).loading]]),o(b)?(u(),_(ae,{key:0,ref_key:"editRef",ref:f,"dict-data":o(h),onSuccess:o(d),onClose:e[2]||(e[2]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):j("",!0)])}}});export{we as default};