2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
import{C as U,D as j,w as K,F as q,K as H,G as M,H as Q,I as Z}from"./element-plus.8e273e86.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{u as A}from"./usePaging.f8c888e4.js";import{u as J}from"./useDictOptions.067a1b39.js";import{d as O}from"./store_product_group_price.279366ea.js";import{d as y,s as F,r as v,Z as W,ap as X,o as s,c as C,U as o,L as a,u as t,R as w,M as b,K as g,a as h,T as Y,a9 as ee,S as k,j as oe,Q as te,n as ae}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import"./index.3f6de77c.js";import"./edit.vue_vue_type_script_setup_true_name_storeProductGroupPriceEdit_lang.2a9c4fc8.js";import{_ as re}from"./details.vue_vue_type_script_setup_true_name_storeProductGroupPriceDETAILS_lang.dc45675f.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.42678949.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const le={class:"mt-4"},se={class:"flex mt-4 justify-end"},ie=y({name:"storeProductGroupPriceLists"}),We=y({...ie,setup(ne){const m=F();F(),v(!1);const c=v(!1),n=W({store_name:""}),V=v([]),x=p=>{V.value=p.map(({id:e})=>e)},{dictData:B}=J(""),{pager:i,getLists:d,resetParams:P,resetPage:S}=A({fetchFun:O,params:n}),L=async p=>{var e,u;c.value=!0,await ae(),(e=m.value)==null||e.open(),(u=m.value)==null||u.getDetail(p)};return d(),(p,e)=>{const u=U,D=j,_=K,R=q,E=H,r=M,T=Q,N=z,$=X("perms"),G=Z;return s(),C("div",null,[o(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(R,{class:"mb-[-16px]",model:t(n),inline:""},{default:a(()=>[o(D,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:t(n).store_name,"onUpdate:modelValue":e[0]||(e[0]=l=>t(n).store_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(D,null,{default:a(()=>[o(_,{type:"primary",onClick:t(S)},{default:a(()=>e[3]||(e[3]=[w("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(_,{onClick:t(P)},{default:a(()=>e[4]||(e[4]=[w("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),b((s(),g(E,{class:"!border-none",shadow:"never"},{default:a(()=>[h("div",le,[o(T,{data:t(i).lists,onSelectionChange:x},{default:a(()=>[o(r,{type:"selection",width:"55"}),o(r,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),o(r,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),o(r,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),o(r,{label:"\u7528\u6237vip\u4EF7",prop:"vip_price","show-overflow-tooltip":""}),o(r,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),o(r,{label:"\u5206\u7EC4\u4EF7\u683C"},{default:a(({row:l})=>[(s(!0),C(Y,null,ee(l.lists,(f,I)=>(s(),C("div",{key:I},k(f.group_name)+":"+k(f.price),1))),128))]),_:1}),o(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[b((s(),g(_,{type:"primary",link:"",onClick:f=>L(l)},{default:a(()=>e[5]||(e[5]=[w("\u8BE6\u60C5")])),_:2},1032,["onClick"])),[[$,["store_product_group_price.store_product_group_price/edit"]]])]),_:1})]),_:1},8,["data"])]),h("div",se,[o(N,{modelValue:t(i),"onUpdate:modelValue":e[1]||(e[1]=l=>oe(i)?i.value=l:null),onChange:t(d)},null,8,["modelValue","onChange"])])]),_:1})),[[G,t(i).loading]]),t(c)?(s(),g(re,{key:0,ref_key:"detailsRef",ref:m,onSuccess:t(d),onClose:e[2]||(e[2]=l=>c.value=!1),dictData:t(B)},null,8,["onSuccess","dictData"])):te("",!0)])}}});export{We as default};
|