2 lines
7.9 KiB
JavaScript
2 lines
7.9 KiB
JavaScript
|
import{_ as oe,a5 as le,H as ue,$ as ne,C as se,D as re,J as ie,K as pe,w as me,F as de,L as _e,M as ce,b as fe,N as ve,O as De}from"./element-plus.573d45d4.js";import{_ as ye}from"./index.vue_vue_type_script_setup_true_lang.ffc076c1.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{d as A,s as Y,r as f,Z as ge,o as s,c as v,U as t,L as o,u,aa as Ee,j as V,T as L,a9 as R,K as m,R as r,M as we,a as S,S as D,Q as $,n as he}from"./@vue.18505fe0.js";import{u as be}from"./usePaging.6a6670f9.js";import{u as Ce}from"./useDictOptions.b4111099.js";import{a as ke}from"./store_order.677b85c4.js";import"./lodash.60201f64.js";import"./index.e4415b2d.js";import{h as U}from"./moment.40bc58bf.js";import"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.d41507aa.js";import{_ as Be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.3c4f3ef2.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.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.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.1746d761.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.d1baa7a8.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.bfab6a34.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.f9fccf26.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.c38d1a61.js";const xe={class:"mt-4"},Ve={class:"truncate text-[12px]"},Se={key:0,style:{"text-align":"left"}},Me={class:"flex mt-4 justify-end"},Te=A({name:"storeOrderLists"}),Ct=A({...Te,setup(Ye){Y();const E=Y();f(!1);const w=f(!1),K=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,a=new Date;return a.setDate(a.getDate()-7),[a,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,a=new Date;return a.setMonth(a.getMonth()-1),[a,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,a=new Date;return a.setMonth(a.getMonth()-3),[a,n]}}],p=f([]),l=ge({order_id:"",pay_type:"",start_time:"",end_time:"",paid:null,status:null,is_writeoff:null}),h=f("0"),N=n=>{n==0?(l.paid=null,l.status=null,l.is_writeoff=null):n==1?(l.paid=0,l.status=null,l.is_writeoff=null):n==2?(l.paid=1,l.status=1,l.is_writeoff=0):n==3?(l.paid=1,l.status=2,l.is_writeoff=null):n==4&&(l.paid=null,l.status=4,l.is_writeoff=null),_()},O=()=>{p.value[0]&&p.value[1]?(l.start_time=U(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=U(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),_()},P=f([]),I=n=>{P.value=n.map(({id:a})=>a)},{dictData:b}=Ce("pay_type"),{pager:d,getLists:_,resetParams:j,resetPage:C}=be({fetchFun:ke,params:l}),q=async n=>{var a,y;w.value=!0,await he(),(a=E.value)==null||a.open(),(y=E.value)==null||y.getDetail(n)};return _(),(n,a)=>{const y=se,F=re,G=oe,H=ie,J=pe,k=me,Q=de,M=_e,c=le,Z=ue,i=ce,z=fe,g=ne,W=Fe,X=ve,ee=ye,te=De;return s(),v("div",null,[t(M,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(Q,{class:"mb-[-16px]",model:u(l),inline:""},{default:o(()=>[t(F,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:o(()=>[t(y,{class:"w-[280px]",modelValue:u(l).order_id,"onUpdate:modelValue":a[0]||(a[0]=e=>u(l).order_id=e),onKeydown:Ee(u(C),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u53
|