moreShopAdmin/build/admin/assets/index.3960f1b4.js

2 lines
5.1 KiB
JavaScript

import{C as P,D as z,w as M,F as T,L as j,M as I,N as q,O as K}from"./element-plus.4a7d92a3.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.931fa54e.js";import{u as Z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.c47a5556.js";import{d as B,e as H}from"./store_extract.783da253.js";import"./lodash.9dc701ad.js";import"./index.f6320a50.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_storeExtractEdit_lang.15947ee7.js";import{d as h,s as W,r as v,Z as X,i as Y,ap as ee,o as d,c as te,U as e,L as l,u as t,R as _,M as E,K as f,a as F,Q as C,j as oe}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"./index.4c001cc5.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.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";const ae={class:"mt-4"},le={class:"flex mt-4 justify-end"},se=h({name:"storeExtractLists"}),Ze=h({...se,setup(re){const x=W(),w=v(!1),s=X({store_id:"",extract_type:"",status:"",pay_status:"",create_time:""}),y=v([]),V=i=>{y.value=i.map(({id:o})=>o)},{dictData:g}=G(""),{pager:u,getLists:n,resetParams:D,resetPage:k}=Z({fetchFun:B,params:s}),A=i=>{H({id:i}).then(()=>{n()})};return Y(()=>{n()}),(i,o)=>{const m=P,p=z,c=M,L=Q,S=T,b=j,r=I,U=q,N=O,R=ee("perms"),$=K;return d(),te("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(S,{class:"mb-[-16px]",model:t(s),inline:""},{default:l(()=>[e(p,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:t(s).store_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(s).store_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u6536\u6B3E\u65B9\u5F0F",prop:"extract_type"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:t(s).extract_type,"onUpdate:modelValue":o[1]||(o[1]=a=>t(s).extract_type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:t(s).status,"onUpdate:modelValue":o[2]||(o[2]=a=>t(s).status=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:t(s).pay_status,"onUpdate:modelValue":o[3]||(o[3]=a=>t(s).pay_status=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8F6C\u8D26\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(c,{type:"primary",onClick:t(k)},{default:l(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:t(D)},{default:l(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(L,{class:"ml-2.5","fetch-fun":t(B),params:t(s),"page-size":t(u).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((d(),f(b,{class:"!border-none",shadow:"never"},{default:l(()=>[F("div",ae,[e(U,{data:t(u).lists,onSelectionChange:V},{default:l(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"id",prop:"id","show-overflow-tooltip":""}),e(r,{label:"\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(r,{label:"\u63D0\u73B0\u91D1\u989D",prop:"extract_price","show-overflow-tooltip":""}),e(r,{label:"openid",prop:"openid","show-overflow-tooltip":""}),e(r,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(r,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),e(r,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status_name","show-overflow-tooltip":""}),e(r,{label:"\u7BA1\u7406\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(r,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[a.pay_status==0?E((d(),f(c,{key:0,type:"primary",link:"",onClick:ue=>A(a.id)},{default:l(()=>[_(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])),[[R,["store_extract.store_extract/enter"]]]):C("",!0)]),_:1})]),_:1},8,["data"])]),F("div",le,[e(N,{modelValue:t(u),"onUpdate:modelValue":o[4]||(o[4]=a=>oe(u)?u.value=a:null),onChange:t(n)},null,8,["modelValue","onChange"])])]),_:1})),[[$,t(u).loading]]),t(w)?(d(),f(J,{key:0,ref_key:"editRef",ref:x,"dict-data":t(g),onSuccess:t(n),onClose:o[5]||(o[5]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):C("",!0)])}}});export{Ze as default};