multiStoreAdmin/build/store/assets/index.dabfe3c0.js

2 lines
4.5 KiB
JavaScript

import{_ as $,$ as j,x as A,y as M,C as S,D as q,w as G,F as O,I as W,L as z,b as H,M as J,N as K}from"./element-plus.0a93cab1.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.3863431c.js";import{u as X}from"./usePaging.d25ebf19.js";import{a as Y}from"./goodsList.d0092360.js";import{_ as Z}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.e8812864.js";import{a as ee}from"./index.0c6a0c3c.js";import{d as B,s as oe,r as C,a0 as h,o as c,c as te,W as e,O as o,u as n,T as F,P as le,M as g,a as d,U as ae,j as se,S as ne}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.28471a1a.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const re={class:"mt-4"},ue={style:{"white-space":"pre"}},ie={class:"flex mt-4 justify-end"},pe=B({name:"manageProjectLists"}),Ke=B({...pe,setup(me){const V=oe(),f=C(!1),p=C("all"),k=m=>{p.value=="all"?s.status="":s.status=p.value,_()},s=h({status:"",store_name:"",cate_id:""}),{pager:r,getLists:_,resetParams:D,resetPage:x}=X({fetchFun:Y,params:s});ee().userInfo.store_id;const y=m=>m?m.replace(/(\d{5,})/g,t=>{let u;return t.length>=11?u=t.slice(0,-8)+"****"+t.slice(-4):u=t.slice(0,-4)+"****",u}):"-";return h([]),_(),(m,t)=>{const u=S,b=q,E=$,w=G,P=j,T=O,v=W,i=A,L=M,l=z,N=H,I=J,R=Q,U=K;return c(),te("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(T,{class:"mb-[-16px]",model:s,"label-width":"80px"},{default:o(()=>[e(P,null,{default:o(()=>[e(E,{span:6},{default:o(()=>[e(b,{label:"\u5546\u54C1\u641C\u7D22"},{default:o(()=>[e(u,{modelValue:s.store_name,"onUpdate:modelValue":t[0]||(t[0]=a=>s.store_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:o(()=>[e(b,null,{default:o(()=>[e(w,{type:"primary",onClick:n(x)},{default:o(()=>[F("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(w,{onClick:n(D)},{default:o(()=>[F("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),le((c(),g(v,{class:"!border-none",shadow:"never"},{default:o(()=>[e(L,{modelValue:p.value,"onUpdate:modelValue":t[1]||(t[1]=a=>p.value=a),class:"demo-tabs",onTabChange:k},{default:o(()=>[e(i,{label:"\u5168\u90E8",name:"all"}),e(i,{label:"\u4E0A\u67B6\u4E2D",name:"1"}),e(i,{label:"\u4E0B\u67B6\u4E2D",name:"2"}),e(i,{label:"\u5DF2\u552E\u7F44",name:"3"}),e(i,{label:"\u5E93\u5B58\u9884\u8B66",name:"4"})]),_:1},8,["modelValue"]),d("div",re,[e(I,{data:n(r).lists},{default:o(()=>[e(l,{label:"\u5546\u54C1id",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1\u56FE","show-overflow-tooltip":""},{default:o(({row:a})=>[e(N,{style:{width:"50px",height:"50px"},src:a.image},null,8,["src"])]),_:1}),e(l,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(l,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(l,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(l,{label:"\u4F1A\u5458\u4EF7",prop:"vip_price","show-overflow-tooltip":""}),e(l,{label:"\u7EC8\u7AEF\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(l,{label:"\u9500\u91CF",prop:"sales","show-overflow-tooltip":""}),e(l,{label:"\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(l,{label:"\u5382\u5BB6\u5907\u6CE8",prop:"manufacturer_information","min-width":"200"},{default:o(({row:a})=>[d("div",ue,ae(y(a.manufacturer_information)),1)]),_:1})]),_:1},8,["data"])]),d("div",ie,[e(R,{modelValue:n(r),"onUpdate:modelValue":t[2]||(t[2]=a=>se(r)?r.value=a:null),onChange:n(_)},null,8,["modelValue","onChange"])])]),_:1})),[[U,n(r).loading]]),f.value?(c(),g(Z,{key:0,ref_key:"editRef",ref:V,onClose:t[3]||(t[3]=a=>f.value=!1)},null,512)):ne("",!0)])}}});export{Ke as default};