2 lines
9.9 KiB
JavaScript
2 lines
9.9 KiB
JavaScript
import{J,K as Q,D as Z,C as z,w as G,F as H,L as W,M as X,N as Y,O as ee}from"./element-plus.73c9e9a6.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.317e431e.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.acdb5f99.js";import{f as ae,b as oe}from"./index.bd5cd373.js";import{u as te}from"./usePaging.77fa9d39.js";import{u as ne}from"./useDictOptions.3ea9a314.js";import{_ as re,a as ie,b as pe}from"./edit.vue_vue_type_script_setup_true_name_merchantEdit_lang.1e4be0f4.js";import"./lodash.403d4198.js";import{d as N,s as se,r as U,Z as de,ap as me,o as r,c as v,U as e,L as o,u,T as C,a9 as V,K as s,R as F,M as w,a as $,j as ce,Q as _e,n as L}from"./@vue.663bc523.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";import"./index.fa58e261.js";const fe={class:"mt-4"},Fe={class:"flex mt-4 justify-end"},be=N({name:"merchantLists"}),el=N({...be,setup(ve){const E=se(),y=U(!1),t=de({category_id:"",type_id:"",mer_name:"",credit_buy:"",status:"",commission_rate:"",service_phone:"",mer_money:"",financial_bank:"",financial_wechat:"",financial_alipay:""}),k=U([]),P=d=>{k.value=d.map(({mer_id:a})=>a)},{dictData:c}=ne("mer_category_type,merchat_type,show_status,off_status"),{pager:b,getLists:B,resetParams:R,resetPage:S}=te({fetchFun:pe,params:t}),T=async()=>{var d;y.value=!0,await L(),(d=E.value)==null||d.open("add")},M=async d=>{var a,p;y.value=!0,await L(),(a=E.value)==null||a.open("edit"),(p=E.value)==null||p.setFormData(d)},x=async d=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({mer_id:d}),B()};return B(),(d,a)=>{const p=J,D=Q,i=Z,_=z,f=G,j=H,A=W,I=oe,n=X,g=ue,K=Y,O=le,h=me("perms"),q=ee;return r(),v("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:u(t),inline:""},{default:o(()=>[e(i,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:o(()=>[e(D,{class:"w-[280px]",modelValue:u(t).category_id,"onUpdate:modelValue":a[0]||(a[0]=l=>u(t).category_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u5206\u7C7B"},{default:o(()=>[e(p,{label:"\u5168\u90E8",value:""}),(r(!0),v(C,null,V(u(c).mer_category_type,(l,m)=>(r(),s(p,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:o(()=>[e(D,{class:"w-[280px]",modelValue:u(t).type_id,"onUpdate:modelValue":a[1]||(a[1]=l=>u(t).type_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:o(()=>[e(p,{label:"\u5168\u90E8",value:""}),(r(!0),v(C,null,V(u(c).merchat_type,(l,m)=>(r(),s(p,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).mer_name,"onUpdate:modelValue":a[2]||(a[2]=l=>u(t).mer_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E",prop:"credit_buy"},{default:o(()=>[e(D,{class:"w-[280px]",modelValue:u(t).credit_buy,"onUpdate:modelValue":a[3]||(a[3]=l=>u(t).credit_buy=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E"},{default:o(()=>[e(p,{label:"\u5168\u90E8",value:""}),(r(!0),v(C,null,V(u(c).show_status,(l,m)=>(r(),s(p,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u6237\u662F\u5426\u7981\u75280\u9501\u5B9A,1\u6B63\u5E38",prop:"status"},{default:o(()=>[e(D,{class:"w-[280px]",modelValue:u(t).status,"onUpdate:modelValue":a[4]||(a[4]=l=>u(t).status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u662F\u5426\u7981\u75280\u9501\u5B9A,1\u6B63\u5E38"},{default:o(()=>[e(p,{label:"\u5168\u90E8",value:""}),(r(!0),v(C,null,V(u(c).off_status,(l,m)=>(r(),s(p,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"commission_rate"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).commission_rate,"onUpdate:modelValue":a[5]||(a[5]=l=>u(t).commission_rate=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u63D0\u6210\u6BD4\u4F8B"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5E97\u94FA\u7535\u8BDD",prop:"service_phone"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).service_phone,"onUpdate:modelValue":a[6]||(a[6]=l=>u(t).service_phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E97\u94FA\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u6237\u4F59\u989D",prop:"mer_money"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).mer_money,"onUpdate:modelValue":a[7]||(a[7]=l=>u(t).mer_money=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u4F59\u989D"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F",prop:"financial_bank"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).financial_bank,"onUpdate:modelValue":a[8]||(a[8]=l=>u(t).financial_bank=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F",prop:"financial_wechat"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).financial_wechat,"onUpdate:modelValue":a[9]||(a[9]=l=>u(t).financial_wechat=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F",prop:"financial_alipay"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u(t).financial_alipay,"onUpdate:modelValue":a[10]||(a[10]=l=>u(t).financial_alipay=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),e(i,null,{default:o(()=>[e(f,{type:"primary",onClick:u(S)},{default:o(()=>[F("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:u(R)},{default:o(()=>[F("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),w((r(),s(A,{class:"!border-none",shadow:"never"},{default:o(()=>[w((r(),s(f,{type:"primary",onClick:T},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[F(" \u65B0\u589E ")]),_:1})),[[h,["merchat.merchant/add"]]]),w((r(),s(f,{disabled:!u(k).length,onClick:a[11]||(a[11]=l=>x(u(k)))},{default:o(()=>[F(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[h,["merchat.merchant/delete"]]]),$("div",fe,[e(K,{data:u(b).lists,onSelectionChange:P},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5546\u6237id",prop:"mer_id","show-overflow-tooltip":""}),e(n,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:o(({row:l})=>[e(g,{options:u(c).mer_category_type,value:l.category_id},null,8,["options","value"])]),_:1}),e(n,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:o(({row:l})=>[e(g,{options:u(c).merchat_type,value:l.type_id},null,8,["options","value"])]),_:1}),e(n,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":""}),e(n,{label:"\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E",prop:"credit_buy"},{default:o(({row:l})=>[e(g,{options:u(c).show_status,value:l.credit_buy},null,8,["options","value"])]),_:1}),e(n,{label:"\u7ED3\u7B97\u5468\u671F\uFF0C\u5355\u4F4D\u5929",prop:"settle_cycle","show-overflow-tooltip":""}),e(n,{label:"\u5229\u7387",prop:"interest_rate","show-overflow-tooltip":""}),e(n,{label:"\u57CE\u5E02code",prop:"city_id","show-overflow-tooltip":""}),e(n,{label:"\u533A\u53BFcode",prop:"area_id","show-overflow-tooltip":""}),e(n,{label:"\u9547\u8857\u8868code",prop:"street_id","show-overflow-tooltip":""}),e(n,{label:"\u6751\u4E3B\u952Ecode",prop:"village_id","show-overflow-tooltip":""}),e(n,{label:"\u5546\u6237\u5730\u5740",prop:"mer_address","show-overflow-tooltip":""}),e(n,{label:"\u5546\u6237\u5934\u50CF",prop:"mer_avatar","show-overflow-tooltip":""}),e(n,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(n,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"commission_rate","show-overflow-tooltip":""}),e(n,{label:"\u5E97\u94FA\u7535\u8BDD",prop:"service_phone","show-overflow-tooltip":""}),e(n,{label:"\u5546\u6237\u4F59\u989D",prop:"mer_money","show-overflow-tooltip":""}),e(n,{label:"\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F",prop:"financial_bank","show-overflow-tooltip":""}),e(n,{label:"\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F",prop:"financial_wechat","show-overflow-tooltip":""}),e(n,{label:"\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F",prop:"financial_alipay","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[w((r(),s(f,{type:"primary",link:"",onClick:m=>M(l)},{default:o(()=>[F(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["merchat.merchant/edit"]]]),w((r(),s(f,{type:"danger",link:"",onClick:m=>x(l.mer_id)},{default:o(()=>[F(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["merchat.merchant/delete"]]])]),_:1})]),_:1},8,["data"])]),$("div",Fe,[e(O,{modelValue:u(b),"onUpdate:modelValue":a[12]||(a[12]=l=>ce(b)?b.value=l:null),onChange:u(B)},null,8,["modelValue","onChange"])])]),_:1})),[[q,u(b).loading]]),u(y)?(r(),s(re,{key:0,ref_key:"editRef",ref:E,"dict-data":u(c),onSuccess:u(B),onClose:a[13]||(a[13]=l=>y.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{el as default};
|