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

2 lines
15 KiB
JavaScript

import{U as re,V as se,C as de,D as me,K as pe,L as _e,F as ce,w as fe,G as be,Y as Ae,Z as $e,k as Re,T as xe,O as Le,Q as Me,R as Pe}from"./element-plus.681b9893.js";import{_ as qe,a as Se}from"./index.vue_vue_type_script_setup_true_name_userLists_lang.bb68d063.js";import{M as Te}from"./picker.e5caaa2a.js";import{e as Ne}from"./bank.64a10d82.js";import{g as je,h as Ge,i as Ie,j as Oe,k as Ke}from"./merchant.0cd9112e.js";import{d as ee,r as c,Z as H,o as m,c as M,U as e,L as l,a as j,R as d,T as J,a9 as X,K as f,s as ie,af as Qe,ap as Ze,u,M as L,Q as z,j as W,n as Y}from"./@vue.18505fe0.js";import{_ as ze}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{_ as We}from"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import{f as Ye,b as He}from"./index.0c8416f0.js";import{u as Je}from"./usePaging.6a6670f9.js";import{u as Xe}from"./useDictOptions.b307efcf.js";import{_ as el}from"./edit.vue_vue_type_script_setup_true_name_merchantEdit_lang.c0658c51.js";import{_ as ll}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.6e2373ca.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"./supplier.4f799a80.js";import"./lodash.466e9fe4.js";import"./index.a7179cc9.js";import"./index.aa6e526e.js";import"./index.e954b8f4.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.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.c2ee6bae.js";const ol={class:"dialog-footer"},g="140px",tl=ee({__name:"index",emits:["onClose"],setup(ve,{expose:U,emit:$}){const b=c(!1),D=c(""),a=H({mer_id:"",name:"",bank_id:"",bank_code:"",bank_branch:"",id_card:"",financial_img:"",is_own:0}),C=H({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"}]}),A=c(null),G=()=>{A.value.validate(y=>{if(y)je(a).then(n=>{w("onClose"),v()});else return!1})},w=$,V=y=>{a.mer_id=y.mer_id,D.value=y.mer_name,b.value=!0},v=()=>{b.value=!1},P=c([]);return(()=>{Ne({page_no:1,page_size:999}).then(y=>{P.value=y.lists})})(),U({open:V,close:v}),(y,n)=>{const E=de,F=me,R=re,I=se,O=pe,p=_e,h=Te,K=ce,q=fe,S=be;return m(),M("div",null,[e(S,{modelValue:b.value,"onUpdate:modelValue":n[9]||(n[9]=i=>b.value=i),title:"\u7ED1\u5B9A\u94F6\u884C\u5361",width:"500"},{footer:l(()=>[j("div",ol,[e(q,{onClick:n[8]||(n[8]=i=>b.value=!1)},{default:l(()=>[d("\u53D6\u6D88")]),_:1}),e(q,{type:"primary",onClick:G},{default:l(()=>[d(" \u786E\u8BA4 ")]),_:1})])]),default:l(()=>[e(K,{model:a,rules:C,ref_key:"formRef",ref:A},{default:l(()=>[e(F,{label:"\u5546\u6237\u540D\u79F0","label-width":g},{default:l(()=>[e(E,{modelValue:D.value,"onUpdate:modelValue":n[0]||(n[0]=i=>D.value=i),readonly:"",autocomplete:"off"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u8D26\u6237\u7C7B\u578B","label-width":g},{default:l(()=>[e(I,{modelValue:a.is_own,"onUpdate:modelValue":n[1]||(n[1]=i=>a.is_own=i)},{default:l(()=>[e(R,{label:0},{default:l(()=>[d("\u4E2A\u4EBA")]),_:1}),e(R,{label:1},{default:l(()=>[d("\u5BF9\u516C")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(F,{label:"\u8D26\u6237\u540D\u79F0","label-width":g,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(F,{label:"\u94F6\u884C","label-width":g,prop:"bank_id"},{default:l(()=>[e(p,{modelValue:a.bank_id,"onUpdate:modelValue":n[3]||(n[3]=i=>a.bank_id=i),placeholder:"\u8BF7\u9009\u62E9\u94F6\u884C"},{default:l(()=>[(m(!0),M(J,null,X(P.value,(i,T)=>(m(),f(O,{key:T,label:i.name,value:i.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(F,{label:"\u94F6\u884C\u5361\u53F7","label-width":g,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(F,{label:"\u5F00\u6237\u7F51\u70B9","label-width":g,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(F,{label:"\u8EAB\u4EFD\u8BC1\u53F7","label-width":g,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(F,{label:"\u8BC1\u660E\u56FE\u7247","label-width":g,prop:"financial_img"},{default:l(()=>[e(h,{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"])])}}}),ul={class:"mt-4"},al={class:"flex mt-4 justify-end"},nl={class:"dialog-footer"},il=ee({name:"merchantLists"}),Eo=ee({...il,setup(ve){const U=ie(),$=ie(),b=c(!1),D=c(!1),a=c(!1),C=H({category_id:"",type_id:"",mer_name:"",credit_buy:"",status:"",commission_rate:"",service_phone:"",mer_money:"",financial_bank:"",financial_wechat:"",financial_alipay:""}),A=c([]),G=s=>{A.value=s.map(({mer_id:t})=>t)},{dictData:w}=Xe("mer_category_type,merchat_type,show_status,off_status,financial_type"),{pager:V,getLists:v,resetParams:P,resetPage:le}=Je({fetchFun:Ke,params:C}),y=async()=>{var s;b.value=!0,await Y(),(s=U.value)==null||s.open("add")},n=async s=>{var t,B;b.value=!0,await Y(),(t=U.value)==null||t.open("edit"),(B=U.value)==null||B.setFormData(s)},E=async s=>{await Ye.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ge({mer_id:s}),v()},F=async s=>{var t,B;D.value=!0,await Y(),(t=$.value)==null||t.open("edit"),(B=$.value)==null||B.setFormData(s)},R=c({mer_id:""}),I=s=>{a.value=!0,R.value=s},O=s=>{Ie({mer_id:R.value.mer_id,uid:s.id}).then(t=>{a.value=!1,v()})},p=c({set_money:"",mer_id:"",type:1}),h=c(!1),K=s=>{p.value.mer_id=s,p.value.set_money="",p.value.type=1,h.value=!0},q=()=>{if(+p.value.set_money<=0||p.value.set_money=="")return Re.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D");Oe({set_money:+p.value.set_money,mer_id:p.value.mer_id,type:p.value.type}).then(s=>{h.value=!1,v()})},S=c(),i=s=>{S.value.open(s)},T=c(),Fe=s=>{T.value.open(s)};return v(),(s,t)=>{const B=pe,oe=_e,x=me,Q=Ae,_=fe,Be=$e,te=ce,ue=xe,ke=He,r=Le,Z=We,we=Qe("router-link"),ye=Me,Ce=ze,Ee=qe,ae=be,ne=re,he=se,ge=de,De=tl,Ve=Se,N=Ze("perms"),Ue=Pe;return m(),M("div",null,[e(ue,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(te,{class:"mb-[-16px]",model:u(C),"label-width":"160px"},{default:l(()=>[e(Be,null,{default:l(()=>[e(Q,{span:6},{default:l(()=>[e(x,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:l(()=>[e(oe,{class:"w-[280px]",modelValue:u(C).category_id,"onUpdate:modelValue":t[0]||(t[0]=o=>u(C).category_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u5206\u7C7B"},{default:l(()=>[e(B,{label:"\u5168\u90E8",value:""}),(m(!0),M(J,null,X(u(w).mer_category_type,(o,k)=>(m(),f(B,{key:k,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(Q,{span:6},{default:l(()=>[e(x,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:l(()=>[e(oe,{class:"w-[280px]",modelValue:u(C).type_id,"onUpdate:modelValue":t[1]||(t[1]=o=>u(C).type_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:l(()=>[e(B,{label:"\u5168\u90E8",value:""}),(m(!0),M(J,null,X(u(w).merchat_type,(o,k)=>(m(),f(B,{key:k,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(Q,{span:6},{default:l(()=>[e(x,null,{default:l(()=>[e(_,{type:"primary",onClick:u(le)},{default:l(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:u(P)},{default:l(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),L((m(),f(ue,{class:"!border-none",shadow:"never"},{default:l(()=>[L((m(),f(_,{type:"primary",onClick:y},{icon:l(()=>[e(ke,{name:"el-icon-Plus"})]),default:l(()=>[d(" \u65B0\u589E ")]),_:1})),[[N,["merchat.merchant/add"]]]),L((m(),f(_,{disabled:!u(A).length,onClick:t[2]||(t[2]=o=>E(u(A)))},{default:l(()=>[d(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[N,["merchat.merchant/delete"]]]),j("div",ul,[e(ye,{data:u(V).lists,onSelectionChange:G},{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(Z,{options:u(w).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(Z,{options:u(w).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(Z,{options:u(w).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})=>[L((m(),f(_,{type:"primary",link:"",onClick:k=>n(o)},{default:l(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[N,["merchat.merchant/edit"]]]),L((m(),f(_,{type:"danger",link:"",onClick:k=>E(o.mer_id)},{default:l(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[N,["merchat.merchant/delete"]]]),e(_,{link:"",onClick:k=>F(o)},{default:l(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]),e(_,{link:""},{default:l(()=>[e(we,{to:{path:"bindGoods",query:{mer_id:o.mer_id}}},{default:l(()=>[d("\u5546\u54C1\u5217\u8868 ")]),_:2},1032,["to"])]),_:2},1024),o.uid?z("",!0):(m(),f(_,{key:0,link:"",onClick:k=>I(o),type:"primary"},{default:l(()=>[d(" \u7ED1\u5B9A\u7528\u6237 ")]),_:2},1032,["onClick"])),e(_,{link:"",onClick:k=>K(o.mer_id)},{default:l(()=>[d(" \u8BBE\u7F6E\u4F59\u989D ")]),_:2},1032,["onClick"]),e(_,{link:"",onClick:k=>i(o)},{default:l(()=>[d(" \u7ED1\u5B9A\u94F6\u884C\u5361 ")]),_:2},1032,["onClick"]),e(_,{link:"",onClick:k=>Fe(o)},{default:l(()=>[d(" \u91CD\u7F6E\u5BC6\u7801 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),j("div",al,[e(Ce,{modelValue:u(V),"onUpdate:modelValue":t[3]||(t[3]=o=>W(V)?V.value=o:null),onChange:u(v)},null,8,["modelValue","onChange"])])]),_:1})),[[Ue,u(V).loading]]),u(b)?(m(),f(el,{key:0,ref_key:"editRef",ref:U,"dict-data":u(w),onSuccess:u(v),onClose:t[4]||(t[4]=o=>b.value=!1)},null,8,["dict-data","onSuccess"])):z("",!0),u(D)?(m(),f(ll,{key:1,ref_key:"detailRef",ref:$,"dict-data":u(w),onSuccess:u(v),onClose:t[5]||(t[5]=o=>D.value=!1)},null,8,["dict-data","onSuccess"])):z("",!0),e(ae,{modelValue:u(a),"onUpdate:modelValue":t[6]||(t[6]=o=>W(a)?a.value=o:null),title:"\u7ED1\u5B9A\u7528\u6237",width:"70%"},{default:l(()=>[e(Ee,{onOnBindUser:O})]),_:1},8,["modelValue"]),e(ae,{modelValue:u(h),"onUpdate:modelValue":t[10]||(t[10]=o=>W(h)?h.value=o:null),title:"\u8BBE\u7F6E\u4F59\u989D",width:"500"},{footer:l(()=>[j("div",nl,[e(_,{onClick:t[9]||(t[9]=o=>h.value=!1)},{default:l(()=>[d("\u53D6\u6D88")]),_:1}),e(_,{type:"primary",onClick:q},{default:l(()=>[d(" \u786E\u8BA4 ")]),_:1})])]),default:l(()=>[e(te,{model:u(p)},{default:l(()=>[e(x,{label:"\u7C7B\u578B","label-width":100},{default:l(()=>[e(he,{modelValue:u(p).type,"onUpdate:modelValue":t[7]||(t[7]=o=>u(p).type=o)},{default:l(()=>[e(ne,{value:1,label:1},{default:l(()=>[d("\u589E\u52A0")]),_:1}),e(ne,{value:2,label:2},{default:l(()=>[d("\u51CF\u5C11")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(x,{label:"\u91D1\u989D","label-width":100},{default:l(()=>[e(ge,{modelValue:u(p).set_money,"onUpdate:modelValue":t[8]||(t[8]=o=>u(p).set_money=o),type:"number",placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e(De,{ref_key:"merBankRef",ref:S},null,512),e(Ve,{ref_key:"passwordRef",ref:T},null,512)])}}});export{Eo as default};