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.352c7be0.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.567dc22a.js";import{u as A}from"./usePaging.f8c888e4.js";import{u as J}from"./useDictOptions.e4cad3dc.js";import{d as O}from"./store_product_group_price.d84da06f.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 e,L as r,u as t,R as w,M as b,K as g,a as h,T as Y,a9 as oo,S as k,j as eo,Q as to,n as ro}from"./@vue.76ce7aa3.js";import"./lodash.41b9567d.js";import"./index.742fa617.js";import"./edit.vue_vue_type_script_setup_true_name_storeProductGroupPriceEdit_lang.0814ef1b.js";import{_ as ao}from"./details.vue_vue_type_script_setup_true_name_storeProductGroupPriceDETAILS_lang.da6fa489.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.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.a623973e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const lo={class:"mt-4"},so={class:"flex mt-4 justify-end"},io=y({name:"storeProductGroupPriceLists"}),Xo=y({...io,setup(no){const m=F();F(),v(!1);const c=v(!1),n=W({product_id:""}),V=v([]),x=p=>{V.value=p.map(({id:o})=>o)},{dictData:B}=J(""),{pager:i,getLists:d,resetParams:P,resetPage:S}=A({fetchFun:O,params:n}),L=async p=>{var o,u;c.value=!0,await ro(),(o=m.value)==null||o.open(),(u=m.value)==null||u.getDetail(p)};return d(),(p,o)=>{const u=U,D=j,_=K,R=q,E=H,a=M,T=Q,N=z,$=X("perms"),G=Z;return s(),C("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(R,{class:"mb-[-16px]",model:t(n),inline:""},{default:r(()=>[e(D,{label:"\u5546\u54C1\u540D\u79F0",prop:"product_id"},{default:r(()=>[e(u,{class:"w-[280px]",modelValue:t(n).product_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(n).product_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(D,null,{default:r(()=>[e(_,{type:"primary",onClick:t(S)},{default:r(()=>o[3]||(o[3]=[w("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(_,{onClick:t(P)},{default:r(()=>o[4]||(o[4]=[w("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),b((s(),g(E,{class:"!border-none",shadow:"never"},{default:r(()=>[h("div",lo,[e(T,{data:t(i).lists,onSelectionChange:x},{default:r(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(a,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(a,{label:"\u7528\u6237vip\u4EF7",prop:"vip_price","show-overflow-tooltip":""}),e(a,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(a,{label:"\u5206\u7EC4\u4EF7\u683C"},{default:r(({row:l})=>[(s(!0),C(Y,null,oo(l.lists,(f,I)=>(s(),C("div",{key:I},k(f.group_name)+":"+k(f.price),1))),128))]),_:1}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:r(({row:l})=>[b((s(),g(_,{type:"primary",link:"",onClick:f=>L(l)},{default:r(()=>o[5]||(o[5]=[w("\u8BE6\u60C5")])),_:2},1032,["onClick"])),[[$,["store_product_group_price.store_product_group_price/edit"]]])]),_:1})]),_:1},8,["data"])]),h("div",so,[e(N,{modelValue:t(i),"onUpdate:modelValue":o[1]||(o[1]=l=>eo(i)?i.value=l:null),onChange:t(d)},null,8,["modelValue","onChange"])])]),_:1})),[[G,t(i).loading]]),t(c)?(s(),g(ao,{key:0,ref_key:"detailsRef",ref:m,onSuccess:t(d),onClose:o[2]||(o[2]=l=>c.value=!1),dictData:t(B)},null,8,["onSuccess","dictData"])):to("",!0)])}}});export{Xo as default};
|