ERP-admin/build/admin/assets/bindGoods.a11e2b6d.js

2 lines
3.8 KiB
JavaScript
Raw Normal View History

2024-05-20 18:04:36 +08:00
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.c0c1189d.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_name_goodsLists_lang.91e47d10.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.79ff4a10.js";import{b as O}from"./index.13b023cd.js";import{u as S}from"./usePaging.6a6670f9.js";import{u as I}from"./useDictOptions.4b8bdc26.js";import{a as K}from"./merchant.47788c72.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.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./goods.6504e3b0.js";import"./lodash.403d4198.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.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.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"}),Go=w({...X,setup(Y){const v=M(),i=_(!1);let u=v.query.mer_id;const h=Q({mer_id:u}),C=_([]),b=m=>{C.value=m.map(({mer_id:t})=>t)};I("mer_category_type,merchat_type,show_status,off_status,financial_type");const{pager:r,getLists:n,resetParams:oo,resetPage:eo}=S({fetchFun:K,params:h});return n(),(m,t)=>{const D=O,E=k,e=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:t[0]||(t[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(e,{type:"selection",width:"55"}),o(e,{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(e,{label:"\u5546\u54C1\u540D\u79F0",prop:"goods_info.name","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C\u578B\u53F7",prop:"goods_info.spec","show-overflow-tooltip":""}),o(e,{label:"\u5546\u54C1\u5206\u7C7B",prop:"goods_info.class_name","show-overflow-tooltip":""}),o(e,{label:"\u5546\u54C1\u54C1\u724C",prop:"goods_info.brand_name","show-overflow-tooltip":""}),o(e,{label:"\u5546\u54C1\u5355\u4F4D",prop:"goods_info.unit_name","show-overflow-tooltip":""}),o(e,{label:"\u8D2D\u8D27\u4EF7\u683C",prop:"goods_info.buy","show-overflow-tooltip":""}),o(e,{label:"\u9500\u8D27\u4EF7\u683C",prop:"goods_info.sell","show-overflow-tooltip":""}),o(e,{label:"\u96F6\u552E\u4EF7\u683C",prop:"goods_info.retail","show-overflow-tooltip":""}),o(e,{label:"\u6807\u7B7E",prop:"goods_info.sys_labels_text","show-overflow-tooltip":""}),o(e,{label:"\u6570\u91CF",prop:"nums",width:"170"})]),_:1},8,["data"])]),f("div",W,[o(F,{modelValue:s(r),"onUpdate:modelValue":t[1]||(t[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":t[3]||(t[3]=a=>g(i)?i.value=a:null),title:"\u7ED1\u5B9A\u5546\u54C1",width:"70%"},{default:l(()=>[o(x,{onOffPop:t[2]||(t[2]=a=>(i.value=!1,s(n)())),mer_id:s(u)},null,8,["mer_id"])]),_:1},8,["modelValue"])])}}});export{Go as default};