ERP-admin/build/admin/assets/index.2a9228e0.js

2 lines
16 KiB
JavaScript

import{k as ce,C as oe,D as te,F as ue,w as ae,G as ne,U as fe,V as ve,K as be,L as Fe,Y as Ae,Z as xe,T as Re,O as Le,Q as Me,R as Pe}from"./element-plus.bccb9376.js";import{g as qe,h as Se,i as Te,j as Ne,k as je,l as Ge}from"./merchant.dfdd5f58.js";import{d as K,r as v,Z as O,o as p,c as R,U as e,L as l,a as S,R as d,T as ee,a9 as le,K as k,s as _e,af as Ie,ap as Oe,u,M as q,Q as H,j as J,n as X}from"./@vue.18505fe0.js";import{M as Ke}from"./picker.b20eef45.js";import{e as Qe}from"./bank.8dae31b4.js";import{_ as We}from"./index.vue_vue_type_script_setup_true_name_userLists_lang.948bdc77.js";import{_ as Ze}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{_ as ze}from"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import{f as Ye,b as He}from"./index.383cb31f.js";import{u as Je}from"./usePaging.6a6670f9.js";import{u as Xe}from"./useDictOptions.a4ceb670.js";import{_ as el}from"./edit.vue_vue_type_script_setup_true_name_merchantEdit_lang.75941ddf.js";import{_ as ll}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.54d367f7.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.5b44360d.js";import"./index.e6088f1a.js";import"./index.c600a185.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./address.8d3e9e4f.js";const ol={class:"dialog-footer"},tl="100px",ul=K({__name:"index",emits:["onClose"],setup(ie,{expose:D,emit:A}){const _=v(!1),F=v(""),a=O({id:"",mer_id:"",name:""}),y=()=>{if(!F.value)return ce.error("\u8BF7\u5148\u8F93\u5165\u5BC6\u7801");qe({mer_id:a.mer_id,password:F.value}).then(w=>{V("onClose"),B()})},V=A,L=w=>{a.mer_id=w.mer_id,a.id=w.id,F.value="",_.value=!0},B=()=>{_.value=!1};return D({open:L,close:B}),(w,m)=>{const x=oe,T=te,C=ue,n=ae,E=ne;return p(),R("div",null,[e(E,{modelValue:_.value,"onUpdate:modelValue":m[2]||(m[2]=c=>_.value=c),title:"\u4FEE\u6539\u5BC6\u7801",width:"500"},{footer:l(()=>[S("div",ol,[e(n,{onClick:m[1]||(m[1]=c=>_.value=!1)},{default:l(()=>[d("\u53D6\u6D88")]),_:1}),e(n,{type:"primary",onClick:y},{default:l(()=>[d(" \u786E\u8BA4 ")]),_:1})])]),default:l(()=>[e(C,{ref:"formRef"},{default:l(()=>[e(T,{label:"\u65B0\u5BC6\u7801","label-width":tl},{default:l(()=>[e(x,{modelValue:F.value,"onUpdate:modelValue":m[0]||(m[0]=c=>F.value=c),autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},512)]),_:1},8,["modelValue"])])}}}),al={class:"dialog-footer"},$="140px",nl=K({__name:"index",emits:["onClose"],setup(ie,{expose:D,emit:A}){const _=v(!1),F=v(""),a=O({mer_id:"",name:"",bank_id:"",bank_code:"",bank_branch:"",id_card:"",financial_img:"",is_own:0}),y=O({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u6237\u540D\u79F0",trigger:"blur"}],bank_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u94F6\u884C",trigger:"change"}],bank_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u94F6\u884C\u5361\u53F7",trigger:"blur"}],bank_branch:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u7F51\u70B9",trigger:"blur"}],id_card:[{required:!0,message:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",trigger:"blur"}],financial_img:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BC1\u660E\u56FE\u7247",trigger:"change"}]}),V=v(null),L=()=>{V.value.validate(C=>{if(C)Se(a).then(n=>{B("onClose"),m()});else return!1})},B=A,w=C=>{a.mer_id=C.mer_id,F.value=C.mer_name,_.value=!0},m=()=>{_.value=!1},x=v([]);return(()=>{Qe({page_no:1,page_size:999}).then(C=>{x.value=C.lists})})(),D({open:w,close:m}),(C,n)=>{const E=oe,c=te,M=fe,Q=ve,W=be,f=Fe,U=Ke,Z=ue,N=ae,j=ne;return p(),R("div",null,[e(j,{modelValue:_.value,"onUpdate:modelValue":n[9]||(n[9]=i=>_.value=i),title:"\u7ED1\u5B9A\u94F6\u884C\u5361",width:"500"},{footer:l(()=>[S("div",al,[e(N,{onClick:n[8]||(n[8]=i=>_.value=!1)},{default:l(()=>[d("\u53D6\u6D88")]),_:1}),e(N,{type:"primary",onClick:L},{default:l(()=>[d(" \u786E\u8BA4 ")]),_:1})])]),default:l(()=>[e(Z,{model:a,rules:y,ref_key:"formRef",ref:V},{default:l(()=>[e(c,{label:"\u5546\u6237\u540D\u79F0","label-width":$},{default:l(()=>[e(E,{modelValue:F.value,"onUpdate:modelValue":n[0]||(n[0]=i=>F.value=i),readonly:"",autocomplete:"off"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8D26\u6237\u7C7B\u578B","label-width":$},{default:l(()=>[e(Q,{modelValue:a.is_own,"onUpdate:modelValue":n[1]||(n[1]=i=>a.is_own=i)},{default:l(()=>[e(M,{label:0},{default:l(()=>[d("\u4E2A\u4EBA")]),_:1}),e(M,{label:1},{default:l(()=>[d("\u5BF9\u516C")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u8D26\u6237\u540D\u79F0","label-width":$,prop:"name"},{default:l(()=>[e(E,{modelValue:a.name,"onUpdate:modelValue":n[2]||(n[2]=i=>a.name=i),placeholder:"\u8BF7\u8F93\u5165\u8D26\u6237\u540D\u79F0",autocomplete:"off"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u94F6\u884C","label-width":$,prop:"bank_id"},{default:l(()=>[e(f,{modelValue:a.bank_id,"onUpdate:modelValue":n[3]||(n[3]=i=>a.bank_id=i),placeholder:"\u8BF7\u9009\u62E9\u94F6\u884C"},{default:l(()=>[(p(!0),R(ee,null,le(x.value,(i,G)=>(p(),k(W,{key:G,label:i.name,value:i.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u94F6\u884C\u5361\u53F7","label-width":$,prop:"bank_code"},{default:l(()=>[e(E,{modelValue:a.bank_code,"onUpdate:modelValue":n[4]||(n[4]=i=>a.bank_code=i),placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u5361\u53F7",autocomplete:"off"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u5F00\u6237\u7F51\u70B9","label-width":$,prop:"bank_branch"},{default:l(()=>[e(E,{modelValue:a.bank_branch,"onUpdate:modelValue":n[5]||(n[5]=i=>a.bank_branch=i),placeholder:"\u8BF7\u8F93\u5165\u5F00\u6237\u7F51\u70B9",autocomplete:"off"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8EAB\u4EFD\u8BC1\u53F7","label-width":$,prop:"id_card"},{default:l(()=>[e(E,{modelValue:a.id_card,"onUpdate:modelValue":n[6]||(n[6]=i=>a.id_card=i),placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",autocomplete:"off"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u8BC1\u660E\u56FE\u7247","label-width":$,prop:"financial_img"},{default:l(()=>[e(U,{modelValue:a.financial_img,"onUpdate:modelValue":n[7]||(n[7]=i=>a.financial_img=i)},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}}),il={class:"mt-4"},rl={class:"flex mt-4 justify-end"},sl={class:"dialog-footer"},dl=K({name:"merchantLists"}),ho=K({...dl,setup(ie){const D=_e(),A=_e(),_=v(!1),F=v(!1),a=v(!1),y=O({category_id:"",type_id:"",mer_name:"",credit_buy:"",status:"",commission_rate:"",service_phone:"",mer_money:"",financial_bank:"",financial_wechat:"",financial_alipay:""}),V=v([]),L=s=>{V.value=s.map(({mer_id:t})=>t)},{dictData:B}=Xe("mer_category_type,merchat_type,show_status,off_status,financial_type"),{pager:w,getLists:m,resetParams:x,resetPage:T}=Je({fetchFun:Ge,params:y}),C=async()=>{var s;_.value=!0,await X(),(s=D.value)==null||s.open("add")},n=async s=>{var t,g;_.value=!0,await X(),(t=D.value)==null||t.open("edit"),(g=D.value)==null||g.setFormData(s)},E=async s=>{await Ye.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Te({mer_id:s}),m()},c=async s=>{var t,g;F.value=!0,await X(),(t=A.value)==null||t.open("edit"),(g=A.value)==null||g.setFormData(s)},M=v({mer_id:""}),Q=s=>{a.value=!0,M.value=s},W=s=>{Ne({mer_id:M.value.mer_id,uid:s.id}).then(t=>{a.value=!1,m()})},f=v({set_money:"",mer_id:"",type:1}),U=v(!1),Z=s=>{f.value.mer_id=s,f.value.set_money="",f.value.type=1,U.value=!0},N=()=>{if(+f.value.set_money<=0||f.value.set_money=="")return ce.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D");je({set_money:+f.value.set_money,mer_id:f.value.mer_id,type:f.value.type}).then(s=>{U.value=!1,m()})},j=v(),i=s=>{j.value.open(s)},G=v(),Be=s=>{G.value.open(s)};return m(),(s,t)=>{const g=be,re=Fe,P=te,z=Ae,b=ae,we=xe,se=ue,de=Re,Ce=He,r=Le,Y=ze,ke=Ie("router-link"),ye=Me,Ee=Ze,ge=We,me=ne,pe=fe,he=ve,De=oe,Ve=nl,Ue=ul,I=Oe("perms"),$e=Pe;return p(),R("div",null,[e(de,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(se,{class:"mb-[-16px]",model:u(y),"label-width":"160px"},{default:l(()=>[e(we,null,{default:l(()=>[e(z,{span:6},{default:l(()=>[e(P,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:l(()=>[e(re,{class:"w-[280px]",modelValue:u(y).category_id,"onUpdate:modelValue":t[0]||(t[0]=o=>u(y).category_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u5206\u7C7B"},{default:l(()=>[e(g,{label:"\u5168\u90E8",value:""}),(p(!0),R(ee,null,le(u(B).mer_category_type,(o,h)=>(p(),k(g,{key:h,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(z,{span:6},{default:l(()=>[e(P,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:l(()=>[e(re,{class:"w-[280px]",modelValue:u(y).type_id,"onUpdate:modelValue":t[1]||(t[1]=o=>u(y).type_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:l(()=>[e(g,{label:"\u5168\u90E8",value:""}),(p(!0),R(ee,null,le(u(B).merchat_type,(o,h)=>(p(),k(g,{key:h,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(z,{span:6},{default:l(()=>[e(P,null,{default:l(()=>[e(b,{type:"primary",onClick:u(T)},{default:l(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(b,{onClick:u(x)},{default:l(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),q((p(),k(de,{class:"!border-none",shadow:"never"},{default:l(()=>[q((p(),k(b,{type:"primary",onClick:C},{icon:l(()=>[e(Ce,{name:"el-icon-Plus"})]),default:l(()=>[d(" \u65B0\u589E ")]),_:1})),[[I,["merchat.merchant/add"]]]),q((p(),k(b,{disabled:!u(V).length,onClick:t[2]||(t[2]=o=>E(u(V)))},{default:l(()=>[d(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[I,["merchat.merchant/delete"]]]),S("div",il,[e(ye,{data:u(w).lists,onSelectionChange:L},{default:l(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u5546\u6237id",prop:"mer_id","show-overflow-tooltip":""}),e(r,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:l(({row:o})=>[e(Y,{options:u(B).mer_category_type,value:o.category_id},null,8,["options","value"])]),_:1}),e(r,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:l(({row:o})=>[e(Y,{options:u(B).merchat_type,value:o.type_id},null,8,["options","value"])]),_:1}),e(r,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":"",width:"200"}),e(r,{label:"\u7528\u6237id",prop:"uid","show-overflow-tooltip":""}),e(r,{label:"\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E",prop:"credit_buy",width:"160"},{default:l(({row:o})=>[e(Y,{options:u(B).show_status,value:o.credit_buy},null,8,["options","value"])]),_:1}),e(r,{label:"\u7ED3\u7B97\u5468\u671F(\u5929)",prop:"settle_cycle",width:"120","show-overflow-tooltip":""}),e(r,{label:"\u5229\u7387",prop:"interest_rate","show-overflow-tooltip":""}),e(r,{label:"\u57CE\u5E02",prop:"city_name","show-overflow-tooltip":""}),e(r,{label:"\u533A\u53BF",prop:"area_name","show-overflow-tooltip":""}),e(r,{label:"\u9547\u8857\u8868",prop:"street_name","show-overflow-tooltip":""}),e(r,{label:"\u6751",prop:"village_name","show-overflow-tooltip":""}),e(r,{label:"\u5546\u6237\u5730\u5740",prop:"mer_address","show-overflow-tooltip":""}),e(r,{label:"\u5546\u6237\u5934\u50CF",prop:"mer_avatar","show-overflow-tooltip":""}),e(r,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(r,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"commission_rate","show-overflow-tooltip":""}),e(r,{label:"\u5E97\u94FA\u7535\u8BDD",prop:"service_phone","show-overflow-tooltip":""}),e(r,{label:"\u5546\u6237\u4F59\u989D",prop:"mer_money","show-overflow-tooltip":""}),e(r,{label:"\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F",prop:"financial_bank",width:"140","show-overflow-tooltip":""}),e(r,{label:"\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F",prop:"financial_wechat",width:"140","show-overflow-tooltip":""}),e(r,{label:"\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F",prop:"financial_alipay",width:"160","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"300",fixed:"right"},{default:l(({row:o})=>[q((p(),k(b,{type:"primary",link:"",onClick:h=>n(o)},{default:l(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[I,["merchat.merchant/edit"]]]),q((p(),k(b,{type:"danger",link:"",onClick:h=>E(o.mer_id)},{default:l(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[I,["merchat.merchant/delete"]]]),e(b,{link:"",onClick:h=>c(o)},{default:l(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]),e(b,{link:""},{default:l(()=>[e(ke,{to:{path:"bindGoods",query:{mer_id:o.mer_id}}},{default:l(()=>[d("\u5546\u54C1\u5217\u8868 ")]),_:2},1032,["to"])]),_:2},1024),o.uid?H("",!0):(p(),k(b,{key:0,link:"",onClick:h=>Q(o),type:"primary"},{default:l(()=>[d(" \u7ED1\u5B9A\u7528\u6237 ")]),_:2},1032,["onClick"])),e(b,{link:"",onClick:h=>Z(o.mer_id)},{default:l(()=>[d(" \u8BBE\u7F6E\u4F59\u989D ")]),_:2},1032,["onClick"]),e(b,{link:"",onClick:h=>i(o)},{default:l(()=>[d(" \u7ED1\u5B9A\u94F6\u884C\u5361 ")]),_:2},1032,["onClick"]),e(b,{link:"",onClick:h=>Be(o)},{default:l(()=>[d(" \u91CD\u7F6E\u5BC6\u7801 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),S("div",rl,[e(Ee,{modelValue:u(w),"onUpdate:modelValue":t[3]||(t[3]=o=>J(w)?w.value=o:null),onChange:u(m)},null,8,["modelValue","onChange"])])]),_:1})),[[$e,u(w).loading]]),u(_)?(p(),k(el,{key:0,ref_key:"editRef",ref:D,"dict-data":u(B),onSuccess:u(m),onClose:t[4]||(t[4]=o=>_.value=!1)},null,8,["dict-data","onSuccess"])):H("",!0),u(F)?(p(),k(ll,{key:1,ref_key:"detailRef",ref:A,"dict-data":u(B),onSuccess:u(m),onClose:t[5]||(t[5]=o=>F.value=!1)},null,8,["dict-data","onSuccess"])):H("",!0),e(me,{modelValue:u(a),"onUpdate:modelValue":t[6]||(t[6]=o=>J(a)?a.value=o:null),title:"\u7ED1\u5B9A\u7528\u6237",width:"70%"},{default:l(()=>[e(ge,{onOnBindUser:W})]),_:1},8,["modelValue"]),e(me,{modelValue:u(U),"onUpdate:modelValue":t[10]||(t[10]=o=>J(U)?U.value=o:null),title:"\u8BBE\u7F6E\u4F59\u989D",width:"500"},{footer:l(()=>[S("div",sl,[e(b,{onClick:t[9]||(t[9]=o=>U.value=!1)},{default:l(()=>[d("\u53D6\u6D88")]),_:1}),e(b,{type:"primary",onClick:N},{default:l(()=>[d(" \u786E\u8BA4 ")]),_:1})])]),default:l(()=>[e(se,{model:u(f)},{default:l(()=>[e(P,{label:"\u7C7B\u578B","label-width":100},{default:l(()=>[e(he,{modelValue:u(f).type,"onUpdate:modelValue":t[7]||(t[7]=o=>u(f).type=o)},{default:l(()=>[e(pe,{value:1,label:1},{default:l(()=>[d("\u589E\u52A0")]),_:1}),e(pe,{value:2,label:2},{default:l(()=>[d("\u51CF\u5C11")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(P,{label:"\u91D1\u989D","label-width":100},{default:l(()=>[e(De,{modelValue:u(f).set_money,"onUpdate:modelValue":t[8]||(t[8]=o=>u(f).set_money=o),type:"number",placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e(Ve,{ref_key:"merBankRef",ref:j},null,512),e(Ue,{ref_key:"passwordRef",ref:G},null,512)])}}});export{ho as default};