moreShopAdmin/dist/admin/assets/index.87fd2ddb.js

2 lines
5.2 KiB
JavaScript

import{C as $,D as P,w as T,F as j,L as I,M,N as q,O as K}from"./element-plus.7b9d0c0d.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.8b9de773.js";import{u as Q}from"./usePaging.6a6670f9.js";import{u as Z}from"./useDictOptions.d682158e.js";import{d as z,e as G}from"./store_extract.5bdb4ad4.js";import"./lodash.9dc701ad.js";import{f as H}from"./index.dbb361e6.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_storeExtractEdit_lang.2940fbe2.js";import{d as x,s as W,r as b,Z as X,ap as Y,o as m,c as ee,U as e,L as a,u as t,R as _,M as v,K as f,a as C,j as te,Q as oe,n as ae}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.b80273c8.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const le={class:"mt-4"},ue={class:"flex mt-4 justify-end"},se=x({name:"storeExtractLists"}),Ze=x({...se,setup(re){const F=W(),w=b(!1),u=X({store_id:"",extract_type:"",status:"",pay_status:"",create_time:""}),y=b([]),h=i=>{y.value=i.map(({id:o})=>o)},{dictData:V}=Z(""),{pager:p,getLists:d,resetParams:k,resetPage:D}=Q({fetchFun:G,params:u}),g=async i=>{var o,r;w.value=!0,await ae(),(o=F.value)==null||o.open("edit"),(r=F.value)==null||r.setFormData(i)},A=async i=>{await H.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await z({id:i}),d()};return d(),(i,o)=>{const r=$,n=P,c=T,L=j,B=I,s=M,S=q,U=O,E=Y("perms"),N=K;return m(),ee("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(L,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(n,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:t(u).store_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).store_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6536\u6B3E\u65B9\u5F0F",prop:"extract_type"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:t(u).extract_type,"onUpdate:modelValue":o[1]||(o[1]=l=>t(u).extract_type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:t(u).status,"onUpdate:modelValue":o[2]||(o[2]=l=>t(u).status=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:t(u).pay_status,"onUpdate:modelValue":o[3]||(o[3]=l=>t(u).pay_status=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8F6C\u8D26\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(c,{type:"primary",onClick:t(D)},{default:a(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:t(k)},{default:a(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((m(),f(B,{class:"!border-none",shadow:"never"},{default:a(()=>[C("div",le,[e(S,{data:t(p).lists,onSelectionChange:h},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u95E8\u5E97",prop:"store_id","show-overflow-tooltip":""}),e(s,{label:"\u6536\u6B3E\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(s,{label:"\u63D0\u73B0\u91D1\u989D",prop:"extract_price","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(s,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status","show-overflow-tooltip":""}),e(s,{label:"\u7BA1\u7406\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[v((m(),f(c,{type:"primary",link:"",onClick:R=>g(l)},{default:a(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[E,["store_extract.store_extract/edit"]]]),v((m(),f(c,{type:"danger",link:"",onClick:R=>A(l.id)},{default:a(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[E,["store_extract.store_extract/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",ue,[e(U,{modelValue:t(p),"onUpdate:modelValue":o[4]||(o[4]=l=>te(p)?p.value=l:null),onChange:t(d)},null,8,["modelValue","onChange"])])]),_:1})),[[N,t(p).loading]]),t(w)?(m(),f(J,{key:0,ref_key:"editRef",ref:F,"dict-data":t(V),onSuccess:t(d),onClose:o[5]||(o[5]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):oe("",!0)])}}});export{Ze as default};