ERP-admin/build/admin/assets/index.fb7245d3.js

2 lines
10 KiB
JavaScript

import{Q as Z,R as z,J as G,K as H,D as W,C as X,w as Y,F as ee,L as le,M as ae,N as ue,O as oe}from"./element-plus.f1cfb480.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.dacce304.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.acdb5f99.js";import{f as re,b as pe}from"./index.52f16d07.js";import{u as se}from"./usePaging.77fa9d39.js";import{u as ie}from"./useDictOptions.4d097b09.js";import{_ as me,a as de,b as _e}from"./edit.vue_vue_type_script_setup_true_name_merchantEdit_lang.455073a8.js";import"./lodash.403d4198.js";import{d as N,s as ce,r as $,Z as fe,ap as Fe,o as r,c as w,U as e,L as a,u,T as V,a9 as k,K as m,R as b,M as E,a as L,j as be,Q as ve,n as R}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"./picker.0f66ac39.js";import"./index.6c86ef69.js";import"./index.d049a720.js";import"./index.52b1645e.js";import"./vuedraggable.917b44c2.js";import"./vue.648d3a8e.js";import"./sortablejs.86ceda0b.js";import"./address.548e95f4.js";const we={class:"mt-4"},Ee={class:"flex mt-4 justify-end"},ye=N({name:"merchantLists"}),ml=N({...ye,setup(he){const y=ce(),h=$(!1),t=fe({category_id:"",type_id:"",mer_name:"",credit_buy:"",status:"",commission_rate:"",service_phone:"",mer_money:"",financial_bank:"",financial_wechat:"",financial_alipay:""}),g=$([]),P=d=>{g.value=d.map(({mer_id:o})=>o)},{dictData:c}=ie("mer_category_type,merchat_type,show_status,off_status,financial_type"),{pager:v,getLists:D,resetParams:S,resetPage:T}=se({fetchFun:_e,params:t}),M=async()=>{var d;h.value=!0,await R(),(d=y.value)==null||d.open("add")},j=async d=>{var o,i;h.value=!0,await R(),(o=y.value)==null||o.open("edit"),(i=y.value)==null||i.setFormData(d)},U=async d=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({mer_id:d}),D()};return D(),(d,o)=>{const i=G,C=H,p=W,s=Z,f=X,F=Y,I=z,K=ee,A=le,O=pe,n=ae,x=ne,Q=ue,q=te,B=Fe("perms"),J=oe;return r(),w("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{class:"mb-[-16px]",model:u(t),"label-width":"160px"},{default:a(()=>[e(I,null,{default:a(()=>[e(s,{span:6},{default:a(()=>[e(p,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:a(()=>[e(C,{class:"w-[280px]",modelValue:u(t).category_id,"onUpdate:modelValue":o[0]||(o[0]=l=>u(t).category_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u5206\u7C7B"},{default:a(()=>[e(i,{label:"\u5168\u90E8",value:""}),(r(!0),w(V,null,k(u(c).mer_category_type,(l,_)=>(r(),m(i,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:a(()=>[e(C,{class:"w-[280px]",modelValue:u(t).type_id,"onUpdate:modelValue":o[1]||(o[1]=l=>u(t).type_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:a(()=>[e(i,{label:"\u5168\u90E8",value:""}),(r(!0),w(V,null,k(u(c).merchat_type,(l,_)=>(r(),m(i,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).mer_name,"onUpdate:modelValue":o[2]||(o[2]=l=>u(t).mer_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E",prop:"credit_buy"},{default:a(()=>[e(C,{class:"w-[280px]",modelValue:u(t).credit_buy,"onUpdate:modelValue":o[3]||(o[3]=l=>u(t).credit_buy=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E"},{default:a(()=>[e(i,{label:"\u5168\u90E8",value:""}),(r(!0),w(V,null,k(u(c).show_status,(l,_)=>(r(),m(i,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u5546\u6237\u662F\u5426\u7981\u7528",prop:"status"},{default:a(()=>[e(C,{class:"w-[280px]",modelValue:u(t).status,"onUpdate:modelValue":o[4]||(o[4]=l=>u(t).status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u662F\u5426\u7981\u7528"},{default:a(()=>[e(i,{label:"\u5168\u90E8",value:""}),(r(!0),w(V,null,k(u(c).off_status,(l,_)=>(r(),m(i,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"commission_rate"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).commission_rate,"onUpdate:modelValue":o[5]||(o[5]=l=>u(t).commission_rate=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u63D0\u6210\u6BD4\u4F8B"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u5E97\u94FA\u7535\u8BDD",prop:"service_phone"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).service_phone,"onUpdate:modelValue":o[6]||(o[6]=l=>u(t).service_phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E97\u94FA\u7535\u8BDD"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u5546\u6237\u4F59\u989D",prop:"mer_money"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).mer_money,"onUpdate:modelValue":o[7]||(o[7]=l=>u(t).mer_money=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u4F59\u989D"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F",prop:"financial_bank"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).financial_bank,"onUpdate:modelValue":o[8]||(o[8]=l=>u(t).financial_bank=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F",prop:"financial_wechat"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).financial_wechat,"onUpdate:modelValue":o[9]||(o[9]=l=>u(t).financial_wechat=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,{label:"\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F",prop:"financial_alipay"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:u(t).financial_alipay,"onUpdate:modelValue":o[10]||(o[10]=l=>u(t).financial_alipay=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:a(()=>[e(p,null,{default:a(()=>[e(F,{type:"primary",onClick:u(T)},{default:a(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(F,{onClick:u(S)},{default:a(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),E((r(),m(A,{class:"!border-none",shadow:"never"},{default:a(()=>[E((r(),m(F,{type:"primary",onClick:M},{icon:a(()=>[e(O,{name:"el-icon-Plus"})]),default:a(()=>[b(" \u65B0\u589E ")]),_:1})),[[B,["merchat.merchant/add"]]]),E((r(),m(F,{disabled:!u(g).length,onClick:o[11]||(o[11]=l=>U(u(g)))},{default:a(()=>[b(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[B,["merchat.merchant/delete"]]]),L("div",we,[e(Q,{data:u(v).lists,onSelectionChange:P},{default:a(()=>[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:a(({row:l})=>[e(x,{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:a(({row:l})=>[e(x,{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:a(({row:l})=>[e(x,{options:u(c).show_status,value:l.credit_buy},null,8,["options","value"])]),_:1}),e(n,{label:"\u7ED3\u7B97\u5468\u671F(\u5929)",prop:"settle_cycle","show-overflow-tooltip":""}),e(n,{label:"\u5229\u7387",prop:"interest_rate","show-overflow-tooltip":""}),e(n,{label:"\u57CE\u5E02",prop:"city_name","show-overflow-tooltip":""}),e(n,{label:"\u533A\u53BF",prop:"area_name","show-overflow-tooltip":""}),e(n,{label:"\u9547\u8857\u8868",prop:"street_name","show-overflow-tooltip":""}),e(n,{label:"\u6751",prop:"village_name","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:a(({row:l})=>[E((r(),m(F,{type:"primary",link:"",onClick:_=>j(l)},{default:a(()=>[b(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[B,["merchat.merchant/edit"]]]),E((r(),m(F,{type:"danger",link:"",onClick:_=>U(l.mer_id)},{default:a(()=>[b(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[B,["merchat.merchant/delete"]]])]),_:1})]),_:1},8,["data"])]),L("div",Ee,[e(q,{modelValue:u(v),"onUpdate:modelValue":o[12]||(o[12]=l=>be(v)?v.value=l:null),onChange:u(D)},null,8,["modelValue","onChange"])])]),_:1})),[[J,u(v).loading]]),u(h)?(r(),m(me,{key:0,ref_key:"editRef",ref:y,"dict-data":u(c),onSuccess:u(D),onClose:o[13]||(o[13]=l=>h.value=!1)},null,8,["dict-data","onSuccess"])):ve("",!0)])}}});export{ml as default};