multiStoreAdmin/dist/store/assets/index.02d258d2.js

2 lines
4.7 KiB
JavaScript

import{_ as M,$ as q,x as G,y as O,C as W,D as z,w as H,F as J,I as K,L as Q,b as X,t as Y,M as Z,N as ee}from"./element-plus.eb2e53ea.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.f75f9565.js";import{u as te}from"./usePaging.d25ebf19.js";import{a as ae,b as le}from"./goodsList.8b033c8e.js";import{_ as se}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.dcf690a3.js";import{a as ne}from"./index.710daa76.js";import{d as k,s as ue,r as g,a0 as V,o as v,c as ie,W as e,O as o,u as n,T as C,P as re,M as B,a as F,j as me,S as pe,n as _e}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.d17701d9.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 de={class:"mt-4"},ce={class:"flex mt-4 justify-end"},fe=k({name:"manageProjectLists"}),eo=k({...fe,setup(be){const d=ue(),c=g(!1),m=g("all"),x=i=>{m.value=="all"?s.status="":s.status=m.value,p()},s=V({status:"",store_name:"",cate_id:""}),{pager:u,getLists:p,resetParams:y,resetPage:D}=te({fetchFun:le,params:s}),T=i=>{ae({id:i.id}).finally(()=>{p()})};let L=ne().userInfo.store_id;const P=async i=>{var a,_;c.value=!0,await _e(),(a=d.value)==null||a.open("edit"),(_=d.value)==null||_.getTableLists({product_id:i.product_id,store_id:L})};return V([]),p(),(i,a)=>{const _=W,E=z,w=M,f=H,N=q,U=J,h=K,r=G,$=O,l=Q,I=X,R=Y,S=Z,j=oe,A=ee;return v(),ie("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:s,"label-width":"80px"},{default:o(()=>[e(N,null,{default:o(()=>[e(w,{span:6},{default:o(()=>[e(E,{label:"\u5546\u54C1\u641C\u7D22"},{default:o(()=>[e(_,{modelValue:s.store_name,"onUpdate:modelValue":a[0]||(a[0]=t=>s.store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:6},{default:o(()=>[e(E,null,{default:o(()=>[e(f,{type:"primary",onClick:n(D)},{default:o(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:n(y)},{default:o(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),re((v(),B(h,{class:"!border-none",shadow:"never"},{default:o(()=>[e($,{modelValue:m.value,"onUpdate:modelValue":a[1]||(a[1]=t=>m.value=t),class:"demo-tabs",onTabChange:x},{default:o(()=>[e(r,{label:"\u5168\u90E8",name:"all"}),e(r,{label:"\u4E0A\u67B6\u4E2D",name:"1"}),e(r,{label:"\u4E0B\u67B6\u4E2D",name:"2"}),e(r,{label:"\u5DF2\u552E\u7F44",name:"3"}),e(r,{label:"\u5E93\u5B58\u9884\u8B66",name:"4"})]),_:1},8,["modelValue"]),F("div",de,[e(S,{data:n(u).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:t})=>[e(I,{style:{width:"50px",height:"50px"},src:t.image},null,8,["src"])]),_:1}),e(l,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1\u6279\u53D1\u4EF7",prop:"wholesale_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:"\u72B6\u6001",prop:"engineering_status_text","show-overflow-tooltip":""},{default:o(({row:t})=>[e(R,{modelValue:t.status,"onUpdate:modelValue":b=>t.status=b,"active-value":1,"inactive-value":0,onChange:b=>T(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(l,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:t})=>[e(f,{type:"primary",link:"",onClick:b=>P(t)},{default:o(()=>[C(" \u5E93\u5B58\u7BA1\u7406 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),F("div",ce,[e(j,{modelValue:n(u),"onUpdate:modelValue":a[2]||(a[2]=t=>me(u)?u.value=t:null),onChange:n(p)},null,8,["modelValue","onChange"])])]),_:1})),[[A,n(u).loading]]),c.value?(v(),B(se,{key:0,ref_key:"editRef",ref:d,onClose:a[3]||(a[3]=t=>c.value=!1)},null,512)):pe("",!0)])}}});export{eo as default};