ERP-admin/build/admin/assets/index.30efa4a6.js

2 lines
8.1 KiB
JavaScript

import{Y as W,Z as X,K as ee,L as oe,D as te,w as ae,F as le,T as ue,O as ne,Q as re,R as ie}from"./element-plus.d8e0827b.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.b67c1046.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import{f as me,b as ce}from"./index.58242ff9.js";import{u as de}from"./usePaging.6a6670f9.js";import{u as _e}from"./useDictOptions.f8f89444.js";import{g as fe,h as ve}from"./merchant.7f9c3ffd.js";import{_ as we}from"./edit.vue_vue_type_script_setup_true_name_merchantEdit_lang.c7e9f022.js";import{_ as he}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.cb3dafde.js";import{d as U,s as L,r as B,Z as be,af as ye,ap as Ce,o as n,c as V,U as e,L as o,u as a,T as S,a9 as T,K as s,R as m,M as w,a as P,j as Fe,Q as N,n as x}from"./@vue.18505fe0.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"./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"./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"./picker.197acc10.js";import"./index.432b2bf9.js";import"./index.606807f5.js";import"./index.97ac23f5.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./address.838098a9.js";const Ee={class:"mt-4"},ke={class:"flex mt-4 justify-end"},De=U({name:"merchantLists"}),Eo=U({...De,setup(ge){const h=L(),C=L(),b=B(!1),F=B(!1),d=be({category_id:"",type_id:"",mer_name:"",credit_buy:"",status:"",commission_rate:"",service_phone:"",mer_money:"",financial_bank:"",financial_wechat:"",financial_alipay:""}),E=B([]),M=r=>{E.value=r.map(({mer_id:u})=>u)},{dictData:c}=_e("mer_category_type,merchat_type,show_status,off_status,financial_type"),{pager:f,getLists:v,resetParams:j,resetPage:q}=de({fetchFun:ve,params:d}),K=async()=>{var r;b.value=!0,await x(),(r=h.value)==null||r.open("add")},O=async r=>{var u,i;b.value=!0,await x(),(u=h.value)==null||u.open("edit"),(i=h.value)==null||i.setFormData(r)},$=async r=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({mer_id:r}),v()},Q=async r=>{var u,i;F.value=!0,await x(),(u=C.value)==null||u.open("edit"),(i=C.value)==null||i.setFormData(r)};return v(),(r,u)=>{const i=ee,A=oe,k=te,D=W,p=ae,Z=X,G=le,R=ue,I=ce,l=ne,g=pe,Y=ye("router-link"),z=re,H=se,y=Ce("perms"),J=ie;return n(),V("div",null,[e(R,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(G,{class:"mb-[-16px]",model:a(d),"label-width":"160px"},{default:o(()=>[e(Z,null,{default:o(()=>[e(D,{span:6},{default:o(()=>[e(k,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:o(()=>[e(A,{class:"w-[280px]",modelValue:a(d).category_id,"onUpdate:modelValue":u[0]||(u[0]=t=>a(d).category_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u5206\u7C7B"},{default:o(()=>[e(i,{label:"\u5168\u90E8",value:""}),(n(!0),V(S,null,T(a(c).mer_category_type,(t,_)=>(n(),s(i,{key:_,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(D,{span:6},{default:o(()=>[e(k,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:o(()=>[e(A,{class:"w-[280px]",modelValue:a(d).type_id,"onUpdate:modelValue":u[1]||(u[1]=t=>a(d).type_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:o(()=>[e(i,{label:"\u5168\u90E8",value:""}),(n(!0),V(S,null,T(a(c).merchat_type,(t,_)=>(n(),s(i,{key:_,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(D,{span:6},{default:o(()=>[e(k,null,{default:o(()=>[e(p,{type:"primary",onClick:a(q)},{default:o(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:a(j)},{default:o(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),w((n(),s(R,{class:"!border-none",shadow:"never"},{default:o(()=>[w((n(),s(p,{type:"primary",onClick:K},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[m(" \u65B0\u589E ")]),_:1})),[[y,["merchat.merchant/add"]]]),w((n(),s(p,{disabled:!a(E).length,onClick:u[2]||(u[2]=t=>$(a(E)))},{default:o(()=>[m(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[y,["merchat.merchant/delete"]]]),P("div",Ee,[e(z,{data:a(f).lists,onSelectionChange:M},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5546\u6237id",prop:"mer_id","show-overflow-tooltip":""}),e(l,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:o(({row:t})=>[e(g,{options:a(c).mer_category_type,value:t.category_id},null,8,["options","value"])]),_:1}),e(l,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:o(({row:t})=>[e(g,{options:a(c).merchat_type,value:t.type_id},null,8,["options","value"])]),_:1}),e(l,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":"",width:"200"}),e(l,{label:"\u7528\u6237id",prop:"uid","show-overflow-tooltip":""}),e(l,{label:"\u662F\u5426\u652F\u6301\u5148\u8D27\u540E\u6B3E",prop:"credit_buy",width:"160"},{default:o(({row:t})=>[e(g,{options:a(c).show_status,value:t.credit_buy},null,8,["options","value"])]),_:1}),e(l,{label:"\u7ED3\u7B97\u5468\u671F(\u5929)",prop:"settle_cycle",width:"120","show-overflow-tooltip":""}),e(l,{label:"\u5229\u7387",prop:"interest_rate","show-overflow-tooltip":""}),e(l,{label:"\u57CE\u5E02",prop:"city_name","show-overflow-tooltip":""}),e(l,{label:"\u533A\u53BF",prop:"area_name","show-overflow-tooltip":""}),e(l,{label:"\u9547\u8857\u8868",prop:"street_name","show-overflow-tooltip":""}),e(l,{label:"\u6751",prop:"village_name","show-overflow-tooltip":""}),e(l,{label:"\u5546\u6237\u5730\u5740",prop:"mer_address","show-overflow-tooltip":""}),e(l,{label:"\u5546\u6237\u5934\u50CF",prop:"mer_avatar","show-overflow-tooltip":""}),e(l,{label:"\u5546\u6237\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(l,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"commission_rate","show-overflow-tooltip":""}),e(l,{label:"\u5E97\u94FA\u7535\u8BDD",prop:"service_phone","show-overflow-tooltip":""}),e(l,{label:"\u5546\u6237\u4F59\u989D",prop:"mer_money","show-overflow-tooltip":""}),e(l,{label:"\u94F6\u884C\u5361\u8F6C\u8D26\u4FE1\u606F",prop:"financial_bank",width:"140","show-overflow-tooltip":""}),e(l,{label:"\u5FAE\u4FE1\u8F6C\u8D26\u4FE1\u606F",prop:"financial_wechat",width:"140","show-overflow-tooltip":""}),e(l,{label:"\u652F\u4ED8\u5B9D\u8F6C\u8D26\u4FE1\u606F",prop:"financial_alipay",width:"160","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"250",fixed:"right"},{default:o(({row:t})=>[w((n(),s(p,{type:"primary",link:"",onClick:_=>O(t)},{default:o(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["merchat.merchant/edit"]]]),w((n(),s(p,{type:"danger",link:"",onClick:_=>$(t.mer_id)},{default:o(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["merchat.merchant/delete"]]]),e(p,{link:"",onClick:_=>Q(t)},{default:o(()=>[m(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]),e(Y,{to:{path:"bindGoods",query:{mer_id:t.mer_id}}},{default:o(()=>[e(p,{link:""},{default:o(()=>[m(" \u5546\u54C1\u7ED1\u5B9A ")]),_:1})]),_:2},1032,["to"])]),_:1})]),_:1},8,["data"])]),P("div",ke,[e(H,{modelValue:a(f),"onUpdate:modelValue":u[3]||(u[3]=t=>Fe(f)?f.value=t:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[J,a(f).loading]]),a(b)?(n(),s(we,{key:0,ref_key:"editRef",ref:h,"dict-data":a(c),onSuccess:a(v),onClose:u[4]||(u[4]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),a(F)?(n(),s(he,{key:1,ref_key:"detailRef",ref:C,"dict-data":a(c),onSuccess:a(v),onClose:u[5]||(u[5]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0)])}}});export{Eo as default};