2 lines
3.8 KiB
JavaScript
2 lines
3.8 KiB
JavaScript
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.d8e0827b.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_name_goodsLists_lang.5d746453.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.b67c1046.js";import{b as O}from"./index.58242ff9.js";import{u as S}from"./usePaging.6a6670f9.js";import{u as I}from"./useDictOptions.f8f89444.js";import{a as K}from"./merchant.7f9c3ffd.js";import{u as M}from"./vue-router.101084e3.js";import{d as w,r as _,Z as Q,ap as Z,o as p,c as z,M as d,u as s,K as c,L as l,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.e58e8560.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"./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"}),Io=w({...X,setup(Y){const v=M(),i=_(!1);let m=v.query.mer_id;const h=Q({mer_id:m}),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:r,getLists:n,resetParams:oo,resetPage:to}=S({fetchFun:K,params:h});return n(),(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 p(),z("div",null,[d((p(),c(V,{class:"!border-none",shadow:"never"},{default:l(()=>[d((p(),c(E,{type:"primary",onClick:e[0]||(e[0]=a=>i.value=!0)},{icon:l(()=>[o(D,{name:"el-icon-Plus"})]),default:l(()=>[H(" \u5546\u54C1\u7ED1\u5B9A ")]),_:1})),[[L,["merchat.merchant/add"]]]),f("div",J,[o(B,{data:s(r).lists,onSelectionChange:b},{default:l(()=>[o(t,{type:"selection",width:"55"}),o(t,{label:"\u5546\u54C1\u56FE\u7247",prop:"imgs"},{default:l(({row:a})=>[o(y,{style:{width:"50px",height:"50px"},src:a.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:s(r),"onUpdate:modelValue":e[1]||(e[1]=a=>g(r)?r.value=a:null),onChange:s(n)},null,8,["modelValue","onChange"])])]),_:1})),[[$,s(r).loading]]),o(P,{modelValue:s(i),"onUpdate:modelValue":e[3]||(e[3]=a=>g(i)?i.value=a:null),title:"\u7ED1\u5B9A\u5546\u54C1",width:"70%"},{default:l(()=>[o(x,{onOffPop:e[2]||(e[2]=a=>(i.value=!1,s(n)())),mer_id:s(m)},null,8,["mer_id"])]),_:1},8,["modelValue"])])}}});export{Io as default};
|