moreShopAdmin/build/admin/assets/index.d1e7e626.js

2 lines
5.8 KiB
JavaScript

import{U as R,k as K,J as $,K as J,D as Z,w as G,F as H,L as Q,M as W,b as X,N as ee,O as oe}from"./element-plus.4a7d92a3.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.fc7847db.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.9ec13c7b.js";import{i as k,j as ne}from"./store_order.65472187.js";import"./lodash.9dc701ad.js";import"./index.2d3bad82.js";import{u as se}from"./vue-router.101084e3.js";import{a as ue}from"./system_store.ffc99544.js";import{h as _}from"./moment.40bc58bf.js";import{d as V,r as u,Z as ie,i as pe,o as c,c as y,U as e,L as t,u as o,T as me,a9 as de,K as B,j as Y,R as v,M as _e,a as x}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.dc950a49.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const ce={class:"mt-4"},fe={class:"flex mt-4 justify-end"},he=V({name:"storeProductLists"}),lo=V({...he,setup(we){const E=se();u(null);const s=u([new Date,new Date]),r=ie({start_time:_(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:_(s.value[1]).format("YYYY-MM-DD")+" 23:59:59",is_group:"",store_id:""}),M=()=>{s.value[0]&&s.value[1]?(r.start_time=_(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=_(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),f()},m=u(!1),C=u([]),T=(p="")=>{m.value=!0,ue({name:p,page_size:50}).then(a=>{C.value=a.lists,setTimeout(()=>{m.value=!1},300)}).catch(a=>{setTimeout(()=>{m.value=!1},300)})},L=u([]),S=p=>{L.value=p.map(({id:a})=>a)};re("");let F=1;E.query.page_no&&(F=parseInt(E.query.page_no));const{pager:i,getLists:f,resetParams:A,resetPage:h}=le({page:F,fetchFun:k,params:r}),I=()=>{ne(r).then(p=>{window.open(p.url,"_blank"),K.success("\u5BFC\u51FA\u6210\u529F")})};return u(!1),u("primary"),u(""),pe(()=>{f()}),(p,a)=>{const w=$,b=J,d=Z,P=R,g=G,U=ae,z=H,D=Q,n=W,N=X,O=ee,j=te,q=oe;return c(),y("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(z,{class:"mb-[-16px]",model:o(r),inline:""},{default:t(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:t(()=>[e(b,{modelValue:o(r).store_id,"onUpdate:modelValue":a[0]||(a[0]=l=>o(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":T,loading:o(m),style:{width:"240px"},onChange:o(h)},{default:t(()=>[(c(!0),y(me,null,de(o(C),l=>(c(),B(w,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(d,{label:"\u7EDF\u8BA1",prop:"is_group"},{default:t(()=>[e(b,{modelValue:o(r).is_group,"onUpdate:modelValue":a[1]||(a[1]=l=>o(r).is_group=l),placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7EDF\u8BA1",style:{width:"240px"},onChange:o(h)},{default:t(()=>[e(w,{label:"\u7EDF\u8BA1",value:"1"}),e(w,{label:"\u4E0D\u7EDF\u8BA1",value:"0"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(d,{label:"",prop:"create_time"},{default:t(()=>[e(P,{modelValue:o(s),"onUpdate:modelValue":a[2]||(a[2]=l=>Y(s)?s.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:M},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(g,{type:"primary",onClick:o(h)},{default:t(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(g,{onClick:o(A)},{default:t(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(U,{class:"ml-2.5","fetch-fun":o(k),params:o(r),"page-size":o(i).size},null,8,["fetch-fun","params","page-size"]),e(g,{onClick:I},{default:t(()=>[v("\u5BFC\u51FA\u914D\u9001\u8868\u683C")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),_e((c(),B(D,{class:"!border-none",shadow:"never"},{default:t(()=>[x("div",ce,[e(O,{data:o(i).lists,onSelectionChange:S},{default:t(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:l})=>[e(N,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(n,{label:"\u95E8\u5E97",prop:"system_store","min-width":"200","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(n,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(n,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(n,{label:"\u89C4\u683C",prop:"store_info","min-width":"100","show-overflow-tooltip":""}),e(n,{label:"\u6570\u91CF",prop:"cart_num","min-width":"100","show-overflow-tooltip":""}),e(n,{label:"\u5355\u4EF7",prop:"price","min-width":"120","show-overflow-tooltip":""}),e(n,{label:"\u603B\u4EF7",prop:"total_price","min-width":"120","show-overflow-tooltip":""})]),_:1},8,["data"])]),x("div",fe,[e(j,{modelValue:o(i),"onUpdate:modelValue":a[3]||(a[3]=l=>Y(i)?i.value=l:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(i).loading]])])}}});export{lo as default};