2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
import{Y as Q,Z,K as q,L as I,D as Y,w as z,F as G,T as H,O as J,Q as W,R as X}from"./element-plus.bccb9376.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{u as te}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.f22931fb.js";import{f as ae}from"./merchant.2839885f.js";import{t as le}from"./index.ac7c1248.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_merchantEdit_lang.d2856638.js";import{_ as se}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.40f952f2.js";import{d as S,s as A,r as g,Z as ue,o as r,c as m,U as t,L as o,u as a,T as V,a9 as x,K as i,R as _,M as ie,a as R,Q as h,S as ne,j as me,n as pe}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"./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"./picker.24e47292.js";import"./index.8f1b3064.js";import"./index.0453baa9.js";import"./index.54cf1246.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./address.1b087e8f.js";const ce={class:"mt-4"},_e={key:0,type:"info"},de={key:1,type:"success"},fe={key:2,type:"danger"},ye={class:"flex mt-4 justify-end"},ve=S({name:"merchantLists"}),xt=S({...ve,setup(he){const L=A(),C=A(),E=g(!1),k=g(!1),n=ue({category_id:"",type_id:"",mer_name:"",credit_buy:"",status:"",commission_rate:"",service_phone:"",mer_money:"",financial_bank:"",financial_wechat:"",financial_alipay:""}),$=g([]),T=y=>{$.value=y.map(({mer_id:l})=>l)},{dictData:d}=oe("mer_category_type,merchat_type,show_status,off_status,financial_type"),{pager:p,getLists:f,resetParams:M,resetPage:N}=te({fetchFun:ae,params:n}),w=async y=>{var l,u;k.value=!0,await pe(),(l=C.value)==null||l.open("edit"),(u=C.value)==null||u.setFormData(y)};return f(),(y,l)=>{const u=q,F=I,b=Y,B=Q,v=z,P=Z,U=G,D=H,s=J,j=W,K=ee,O=X;return r(),m("div",null,[t(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(U,{class:"mb-[-16px]",model:a(n),"label-width":"160px"},{default:o(()=>[t(P,null,{default:o(()=>[t(B,{span:6},{default:o(()=>[t(b,{label:"\u5546\u6237\u5206\u7C7B",prop:"category_id"},{default:o(()=>[t(F,{class:"w-[280px]",modelValue:a(n).category_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(n).category_id=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u5206\u7C7B"},{default:o(()=>[t(u,{label:"\u5168\u90E8",value:""}),(r(!0),m(V,null,x(a(d).mer_category_type,(e,c)=>(r(),i(u,{key:c,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(B,{span:6},{default:o(()=>[t(b,{label:"\u5E97\u94FA\u7C7B\u578B",prop:"type_id"},{default:o(()=>[t(F,{class:"w-[280px]",modelValue:a(n).type_id,"onUpdate:modelValue":l[1]||(l[1]=e=>a(n).type_id=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u7C7B\u578B"},{default:o(()=>[t(u,{label:"\u5168\u90E8",value:""}),(r(!0),m(V,null,x(a(d).merchat_type,(e,c)=>(r(),i(u,{key:c,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(B,{span:6},{default:o(()=>[t(b,null,{default:o(()=>[t(v,{type:"primary",onClick:a(N)},{default:o(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(v,{onClick:a(M)},{default:o(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ie((r(),i(D,{class:"!border-none",shadow:"never"},{default:o(()=>[R("div",ce,[t(j,{data:a(p).lists,onSelectionChange:T},{default:o(()=>[t(s,{label:"\u5546\u6237id",prop:"id","show-overflow-tooltip":""}),t(s,{label:"\u5546\u6237\u540D\u79F0",prop:"merchant.mer_name","show-overflow-tooltip":""}),t(s,{label:"\u8054\u7CFB\u4EBA",prop:"merchant.service_user","show-overflow-tooltip":""}),t(s,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"merchant.service_phone","show-overflow-tooltip":""}),t(s,{label:"\u5165\u9A7B\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:o(({row:e})=>[e.status===0&&(e.mark==""||e.mark==null)?(r(),m("span",_e,"\u5F85\u5BA1\u6838")):e.status===1?(r(),m("span",de,"\u5BA1\u6838\u901A\u8FC7")):e.status===0?(r(),m("span",fe,"\u5BA1\u6838\u4E0D\u901A\u8FC7")):h("",!0)]),_:1}),t(s,{label:"\u5BA1\u6838\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),t(s,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""},{default:o(({row:e})=>[_(ne(a(le)(e.create_time,"yyyy-mm-dd hh:MM:ss")),1)]),_:1}),t(s,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:e})=>[!e.status&&(e.mark==""||e.mark==null)?(r(),i(v,{key:0,link:"",type:"primary",onClick:c=>w(e)},{default:o(()=>[_(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])):!e.status&&!e.mark?(r(),i(v,{key:1,link:"",type:"warning",onClick:c=>w(e)},{default:o(()=>[_(" \u91CD\u65B0\u5BA1\u6838 ")]),_:2},1032,["onClick"])):h("",!0)]),_:1})]),_:1},8,["data"])]),R("div",ye,[t(K,{modelValue:a(p),"onUpdate:modelValue":l[2]||(l[2]=e=>me(p)?p.value=e:null),onChange:a(f)},null,8,["modelValue","onChange"])])]),_:1})),[[O,a(p).loading]]),a(E)?(r(),i(re,{key:0,ref_key:"editRef",ref:L,"dict-data":a(d),onSuccess:a(f),onClose:l[3]||(l[3]=e=>E.value=!1)},null,8,["dict-data","onSuccess"])):h("",!0),a(k)?(r(),i(se,{key:1,ref_key:"detailRef",ref:C,"dict-data":a(d),onSuccess:a(f),onClose:l[4]||(l[4]=e=>k.value=!1)},null,8,["dict-data","onSuccess"])):h("",!0)])}}});export{xt as default};
|