2024-08-14 22:04:26 +08:00
|
|
|
import{U as de,a2 as me,H as _e,$ as ce,C as fe,D as ve,J as ye,K as De,w as Fe,F as Ee,L as he,M as ge,b as we,N as be,O as ke}from"./element-plus.a63a26dd.js";import{_ as Ce}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as Be}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{d as q,s as P,r as c,Z as xe,af as Ve,o as n,c as d,U as o,L as a,u,aa as Se,T as A,a9 as T,K as p,j as $,R as r,M as Me,a as L,S as h,Q as R,n as I}from"./@vue.18505fe0.js";import{u as Ae}from"./usePaging.6a6670f9.js";import{u as Te}from"./useDictOptions.3cac3739.js";import{b as $e}from"./store_order.e40d2c32.js";import"./lodash.2473fc51.js";import{a as Le}from"./system_store.2e10935c.js";import"./index.92d8c5bb.js";import{h as j}from"./moment.40bc58bf.js";import{_ as Re}from"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.10b03534.js";import{_ as Ue}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.eb733ab6.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.575aa0c6.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./delivery_service.6deacbe0.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.eb5b425d.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.4a71ba72.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.957130b0.js";const Ye={class:"mt-4"},Ke={class:"truncate text-[12px]"},Ne={key:0,style:{"text-align":"left"}},Oe={key:0},Pe={key:1},Ie={class:"flex mt-4 justify-end"},je=q({name:"storeOrderLists"}),Kt=q({...je,setup(qe){const C=P(),B=P(),x=c(!1),V=c(!1),z=[{text:"\u8FD1\u4E00\u5468",value:()=>{const s=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,s]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,s]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,s]}}],m=c([]),l=xe({order_id:"",pay_type:"",store_id:"",start_time:"",end_time:"",paid:null,status:null,is_writeoff:null}),S=c("0"),G=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):s==60&&(l.is_delivery=1,l.status=null,l.paid=null,l.is_writeoff=null),f()},H=()=>{m.value[0]&&m.value[1]?(l.start_time=j(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=j(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),f()},g=c(!1),U=c([]),J=(s="")=>{g.value=!0,Le({name:s,page_size:50}).then(e=>{U.value=e.lists,setTimeout(()=>{g.value=!1},300)}).catch(e=>{setTimeout(()=>{g.value=!1},300)})},Q=c([]),Z=s=>{Q.value=s.map(({id:e})=>e)},{dictData:w}=Te("pay_type"),{pager:y,getLists:f,resetParams:W,resetPage:b}=Ae({fetchFun:$e,params:l}),X=async s=>{var e,_;V.value=!0,await I(),(e=B.value)==null||e.open(),(_=B.value)==null||_.getDetail(s)},ee=async s=>{var e,_;x.value=!0,await I(),(e=C.value)==null||e.open("edit"),(_=C.value)==null||_.setFormData(s)};return f(),(s,e)=>{co
|