2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
import{_ as H}from"./index.f92c296f.js";import{U as L,_ as Q,w as R,b as I,O as K,t as M,Q as O,T as $}from"./element-plus.8c800afc.js";import{b as j,c as q}from"./pay.2a9e2e01.js";import{l as B}from"./lodash.be6e4bb5.js";import{d as z,r as x,ap as G,o as t,c as u,a as s,M as J,K as i,L as e,R as a,T as C,a9 as X,Q as p,U as m,u as d,S as Y}from"./@vue.18505fe0.js";import"./index.2398c167.js";import"./@vueuse.fbc6a400.js";import"./axios.77245e3c.js";import"./vue-router.886c5f5a.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"./@element-plus.edbd5a83.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"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./dayjs.ef95d8c0.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";const Z={key:0,class:"text-lg mb-[24px]"},tt=s("span",{class:"form-tips ml-[10px]"},"\u5728\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u4E2D\u4ED8\u6B3E\u7684\u573A\u666F",-1),et={key:1,class:"text-lg mb-[24px]"},ut=s("span",{class:"form-tips ml-[10px]"}," \u5728\u5FAE\u4FE1\u516C\u4F17\u53F7H5\u9875\u9762\u4E2D\u4ED8\u6B3E\u7684\u573A\u666F\uFF0C\u516C\u4F17\u53F7\u7C7B\u578B\u4E00\u822C\u4E3A\u670D\u52A1\u53F7 ",-1),at={key:2,class:"text-lg mb-[24px]"},ot=s("span",{class:"form-tips ml-[10px]"},"\u5728\u6D4F\u89C8\u5668H5\u9875\u9762\u4E2D\u4ED8\u6B3E\u7684\u573A\u666F",-1),st={key:3,class:"text-lg mb-[24px]"},lt=s("span",{class:"form-tips ml-[10px]"},"\u5728\u6D4F\u89C8\u5668PC\u9875\u9762\u4E2D\u4ED8\u6B3E\u7684\u573A\u666F",-1),nt={key:4,class:"text-lg mb-[24px]"},it=s("span",{class:"form-tips ml-[10px]"},"\u5728APP\u4ED8\u6B3E\u7684\u573A\u666F",-1),pt={key:1},mt={key:1},$t=z({__name:"index",setup(rt){const l=x({}),r=x(!1);let y={};const f=async()=>{l.value=await j(),y=B.exports.cloneDeep(l.value)},g=()=>{r.value=!0},b=(h,E)=>{l.value[E].forEach(_=>{_.is_default=0}),l.value[E][h].is_default=1},k=()=>{l.value=B.exports.cloneDeep(y),r.value=!1},A=async()=>{await q(l.value),r.value=!1,f()};return f(),(h,E)=>{const _=R,P=I,c=K,w=L,V=Q,W=M,T=O,U=$,S=H,N=G("perms");return t(),u("div",null,[s("div",null,[J((t(),i(_,{type:"primary",onClick:g},{default:e(()=>[a(" \u8BBE\u7F6E\u652F\u4ED8\u65B9\u5F0F ")]),_:1})),[[N,["setting.pay.pay_way/setPayWay"]]])]),(t(!0),u(C,null,X(d(l),(D,n)=>(t(),i(U,{shadow:"never",class:"mt-4 !border-none",key:n},{default:e(()=>[s("div",null,[n==1?(t(),u("div",Z,[a(" \u5FAE\u4FE1\u5C0F\u7A0B\u5E8F "),tt])):p("",!0),n==2?(t(),u("div",et,[a(" \u5FAE\u4FE1\u516C\u4F17\u53F7 "),ut])):p("",!0),n==3?(t(),u("div",at,[a(" H5\u652F\u4ED8 "),ot])):p("",!0),n==4?(t(),u("div",st,[a(" PC\u652F\u4ED8 "),lt])):p("",!0),n==5?(t(),u("div",nt,[a(" APP\u652F\u4ED8 "),it])):p("",!0),D.length?(t(),i(T,{key:5,data:D,style:{width:"100%"}},{default:e(()=>[m(c,{label:"\u56FE\u6807","min-width":"150"},{default:e(({row:o})=>[m(P,{src:o.icon,alt:"\u56FE\u6807",style:{width:"34px",height:"34px"}},null,8,["src"])]),_:1}),m(c,{prop:"pay_way_name",label:"\u652F\u4ED8\u65B9\u5F0F","min-width":"150"}),m(c,{label:"\u9ED8\u8BA4\u652F\u4ED8","min-width":"150"},{default:e(({row:o,$index:F})=>[s("div",null,[d(r)?(t(),i(w,{key:0,modelValue:o.is_default,"onUpdate:modelValue":v=>o.is_default=v,label:1,onChange:v=>b(F,n)},{default:e(()=>[a(" \u8BBE\u4E3A\u9ED8\u8BA4 ")]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(t(),u(C,{key:1},[o.is_default==1?(t(),i(V,{key:0},{default:e(()=>[a("\u9ED8\u8BA4")]),_:1})):(t(),u("span",pt,"-"))],64))])]),_:2},1024),m(c,{label:"\u5F00\u542F\u72B6\u6001","min-width":"150"},{default:e(({row:o})=>[d(r)?(t(),i(W,{key:0,modelValue:o.status,"onUpdate:modelValue":F=>o.status=F,"active-value":1,"inactive-value":0},null,8,["modelValue","onUpdate:modelValue"])):(t(),u("span",mt,Y(o.status==1?"\u5F00\u542F":"\u5173\u95ED"),1))]),_:1})]),_:2},1032,["data"])):p("",!0)])]),_:2},1024))),128)),d(r)?(t(),i(S,{key:0},{default:e(()=>[m(_,{onClick:k},{default:e(()=>[a("\u53D6\u6D88")]),_:1}),m(_,{type:"primary",onClick:A},{default:e(()=>[a("\u4FDD\u5B58")]),_:1})]),_:1})):p("",!0)])}}});export{$t as default};
|