import{w as k,O as R,b as T,Q as N,T as U,G as j,R as q}from"./element-plus.681b9893.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_name_goodsLists_lang.d1fb770b.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{b as O}from"./index.5f655476.js";import{u as S}from"./usePaging.6a6670f9.js";import{u as I}from"./useDictOptions.f9c59dc2.js";import{a as K}from"./merchant.ca4e704d.js";import{u as M}from"./vue-router.101084e3.js";import{d as w,r as _,Z as Q,ap as Z,o as m,c as z,M as d,u as r,K as c,L as a,U as o,R as H,a as f,j as g}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"./goods.9abb307d.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.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";const J={class:"mt-4"},W={class:"flex mt-4 justify-end"},X=w({name:"merchantLists"}),st=w({...X,setup(Y){const v=M(),s=_(!1);let n=v.query.mer_id;const h=Q({mer_id:n}),C=_([]),b=u=>{C.value=u.map(({mer_id:e})=>e)};I("mer_category_type,merchat_type,show_status,off_status,financial_type");const{pager:l,getLists:p,resetParams:oo,resetPage:to}=S({fetchFun:K,params:h});return p(),(u,e)=>{const D=O,E=k,t=R,y=T,B=N,F=G,V=U,x=A,P=j,L=Z("perms"),$=q;return m(),z("div",null,[d((m(),c(V,{class:"!border-none",shadow:"never"},{default:a(()=>[d((m(),c(E,{type:"primary",onClick:e[0]||(e[0]=i=>s.value=!0)},{icon:a(()=>[o(D,{name:"el-icon-Plus"})]),default:a(()=>[H(" \u5546\u54C1\u7ED1\u5B9A ")]),_:1})),[[L,["merchat.merchant/add"]]]),f("div",J,[o(B,{data:r(l).lists,onSelectionChange:b},{default:a(()=>[o(t,{type:"selection",width:"55"}),o(t,{label:"\u5546\u54C1\u56FE\u7247",prop:"imgs"},{default:a(({row:i})=>[o(y,{style:{width:"50px",height:"50px"},src:i.goods_info.imgs},null,8,["src"])]),_:1}),o(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"goods_info.name","show-overflow-tooltip":""}),o(t,{label:"\u89C4\u683C\u578B\u53F7",prop:"goods_info.spec","show-overflow-tooltip":""}),o(t,{label:"\u5546\u54C1\u5206\u7C7B",prop:"goods_info.class_name","show-overflow-tooltip":""}),o(t,{label:"\u5546\u54C1\u54C1\u724C",prop:"goods_info.brand_name","show-overflow-tooltip":""}),o(t,{label:"\u5546\u54C1\u5355\u4F4D",prop:"goods_info.unit_name","show-overflow-tooltip":""}),o(t,{label:"\u8D2D\u8D27\u4EF7\u683C",prop:"goods_info.buy","show-overflow-tooltip":""}),o(t,{label:"\u9500\u8D27\u4EF7\u683C",prop:"goods_info.sell","show-overflow-tooltip":""}),o(t,{label:"\u96F6\u552E\u4EF7\u683C",prop:"goods_info.retail","show-overflow-tooltip":""}),o(t,{label:"\u6807\u7B7E",prop:"goods_info.sys_labels_text","show-overflow-tooltip":""}),o(t,{label:"\u6570\u91CF",prop:"nums",width:"170"})]),_:1},8,["data"])]),f("div",W,[o(F,{modelValue:r(l),"onUpdate:modelValue":e[1]||(e[1]=i=>g(l)?l.value=i:null),onChange:r(p)},null,8,["modelValue","onChange"])])]),_:1})),[[$,r(l).loading]]),o(P,{modelValue:r(s),"onUpdate:modelValue":e[3]||(e[3]=i=>g(s)?s.value=i:null),title:"\u7ED1\u5B9A\u5546\u54C1",width:"70%"},{default:a(()=>[o(x,{onOffPop:e[2]||(e[2]=i=>(s.value=!1,r(p)())),mer_id:r(n)},null,8,["mer_id"])]),_:1},8,["modelValue"])])}}});export{st as default};