moreShopAdmin/dist/admin/assets/index.63881ab4.js

2 lines
8.7 KiB
JavaScript
Raw Normal View History

2024-08-02 17:47:33 +08:00
import{U as se,a2 as ne,H as re,$ as ie,C as pe,D as de,J as me,K as _e,w as ce,F as fe,L as ve,M as ye,b as De,N as Fe,O as ge}from"./element-plus.4a7d92a3.js";import{_ as Ee}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{d as P,s as K,r as m,Z as we,o as n,c as _,U as a,L as o,u,aa as be,T as S,a9 as M,K as d,j as T,R as r,M as Ce,a as L,S as D,Q as N,n as ke}from"./@vue.18505fe0.js";import{u as Be}from"./usePaging.6a6670f9.js";import{u as xe}from"./useDictOptions.fea55aea.js";import{a as Ve}from"./store_order.8a5af513.js";import"./lodash.9dc701ad.js";import{a as Se}from"./system_store.00b12af4.js";import"./index.b66d47ee.js";import{h as O}from"./moment.40bc58bf.js";import"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.955dee6f.js";import{_ as Me}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.65a850e4.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"./vue-router.101084e3.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";import"./index.a2770bcd.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./orderInfo.vue_vue_type_script_setup_true_name_orderInfo_lang.df3ffdb3.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.58d4cac6.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.b370f2c8.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.da3e6019.js";const Te={class:"mt-4"},Le={class:"truncate text-[12px]"},Ue={key:0,style:{"text-align":"left"}},Ye={class:"flex mt-4 justify-end"},Re=P({name:"storeOrderLists"}),St=P({...Re,setup($e){K();const w=K();m(!1);const b=m(!1),I=[{text:"\u8FD1\u4E00\u5468",value:()=>{const s=new Date,t=new Date;return t.setDate(t.getDate()-7),[t,s]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const s=new Date,t=new Date;return t.setMonth(t.getMonth()-1),[t,s]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const s=new Date,t=new Date;return t.setMonth(t.getMonth()-3),[t,s]}}],p=m([]),l=we({order_id:"",pay_type:"",store_id:"",start_time:"",end_time:"",paid:null,status:null,is_writeoff:null}),C=m("0"),j=s=>{s==0?(l.paid=null,l.status=null,l.is_writeoff=null):s==1?(l.paid=0,l.status=null,l.is_writeoff=null):s==2?(l.paid=1,l.status=1,l.is_writeoff=0):s==3?(l.paid=1,l.status=2,l.is_writeoff=null):s==4&&(l.paid=null,l.status=4,l.is_writeoff=null),f()},q=()=>{p.value[0]&&p.value[1]?(l.start_time=O(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=O(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),f()},F=m(!1),U=m([]),z=(s="")=>{F.value=!0,Se({name:s,page_size:50}).then(t=>{U.value=t.lists,setTimeout(()=>{F.value=!1},300)}).catch(t=>{setTimeout(()=>{F.value=!1},300)})},G=m([]),H=s=>{G.value=s.map(({id:t})=>t)},{dictData:k}=xe("pay_type"),{pager:c,getLists:f,resetParams:J,resetPage:g}=Be({fetchFun:Ve,params:l}),Q=async s=>{var t,E;b.value=!0,await ke(),(t=w.value)==null||t.open(),(E=w.value)==null||E.getDetail(s)};return f(),(s,t)=>{const E=pe,v=de,Y=me,R=_e,Z=se,B=ce,W=fe,$=ve,y=ne,X=re,i=ye,ee=De,h=ie,te=he,ae=Fe,oe=Ee,le=ge;return n(),_("div",null,[a($,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[a(W,{class:"mb-[-16px]",model:u(l),inline:""},{default:o(()=>[a(v,{label:"\u8BA