moreShopAdmin/dist/admin/assets/index.697d4d65.js

2 lines
8.7 KiB
JavaScript

import{_ 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.3c0fdbfa.js";import{_ as Ee}from"./index.vue_vue_type_script_setup_true_lang.851e89b1.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.23a3dc80.js";import{a as Ve}from"./store_order.17b3be3d.js";import"./lodash.60201f64.js";import{a as Se}from"./system_store.aa586947.js";import"./index.2f90f44b.js";import{h as O}from"./moment.40bc58bf.js";import"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.eb5f367a.js";import{_ as Me}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.343721ef.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.8780c1b6.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.a75fd89f.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.3e1221d1.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.1aa46989.js";const Te={class:"mt-4"},Le={class:"truncate text-[12px]"},Ye={key:0,style:{"text-align":"left"}},Re={class:"flex mt-4 justify-end"},Ue=P({name:"storeOrderLists"}),St=P({...Ue,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),Y=m([]),z=(s="")=>{F.value=!0,Se({name:s,page_size:50}).then(t=>{Y.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,R=me,U=_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:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:o(()=>[a(E,{class:"w-[280px]",modelValue:u(l).order_id,"onUpdate:modelValue":t[0]||(t[0]=e=>u(l).order_id=e),onKeydown:be(u(g),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),a(v,{label:"\u95E8\u5E97",prop:"store_id"},{default:o(()=>[a(U,{modelValue:u(l).store_id,"onUpdate:modelValue":t[1]||(t[1]=e=>u(l).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":z,loading:u(F),style:{width:"240px"},onChange:u(g)},{default:o(()=>[(n(!0),_(S,null,M(u(Y),e=>(n(),d(R,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),a(v,{label:"\u65E5\u671F",prop:"order_id"},{default:o(()=>[a(Z,{modelValue:u(p),"onUpdate:modelValue":t[2]||(t[2]=e=>T(p)?p.value=e:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:I,onChange:q},null,8,["modelValue"])]),_:1}),a(v,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:o(()=>[a(U,{class:"w-[280px]",modelValue:u(l).pay_type,"onUpdate:modelValue":t[3]||(t[3]=e=>u(l).pay_type=e),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",onChange:u(g)},{default:o(()=>[(n(!0),_(S,null,M(u(k).pay_type,e=>(n(),d(R,{label:e.name,value:e.value,key:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),a(v,null,{default:o(()=>[a(B,{type:"primary",onClick:u(g)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),a(B,{onClick:t[4]||(t[4]=e=>{p.value=[],u(J)()})},{default:o(()=>[r("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),Ce((n(),d($,{class:"!border-none",shadow:"never"},{default:o(()=>[a(X,{modelValue:u(C),"onUpdate:modelValue":t[5]||(t[5]=e=>T(C)?C.value=e:null),onChange:j},{default:o(()=>[a(y,{label:"0"},{default:o(()=>[r("\u5168\u90E8")]),_:1}),a(y,{label:"1"},{default:o(()=>[r("\u5F85\u652F\u4ED8")]),_:1}),a(y,{label:"2"},{default:o(()=>[r("\u5F85\u6838\u9500")]),_:1}),a(y,{label:"3"},{default:o(()=>[r("\u5DF2\u5B8C\u6210")]),_:1}),a(y,{label:"4"},{default:o(()=>[r("\u5DF2\u9000\u6B3E")]),_:1})]),_:1},8,["modelValue"]),L("div",Te,[a(ae,{data:u(c).lists,onSelectionChange:H},{default:o(()=>[a(i,{type:"selection",width:"55"}),a(i,{label:"\u8BA2\u5355ID",prop:"id","show-overflow-tooltip":""}),a(i,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),a(i,{label:"\u5546\u54C1\u4FE1\u606F",prop:"order_id","min-width":"150","show-overflow-tooltip":""},{default:o(({row:e})=>{var x,A;return[(n(!0),_(S,null,M((x=e.product)==null?void 0:x.slice(0,3),(V,ue)=>(n(),_("div",{class:"flex items-center mb-2",key:ue},[a(ee,{class:"w-[30px] h-[30px] mr-2 flex-shrink-0",src:V.image,fit:"cover","preview-src-list":[V.image],"preview-teleported":!0},null,8,["src","preview-src-list"]),L("p",Le,D(V.store_name),1)]))),128)),((A=e.product)==null?void 0:A.length)>3?(n(),_("div",Ye,"...")):N("",!0)]}),_:1}),a(i,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),a(i,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":""}),a(i,{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),a(i,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status_name"},{default:o(({row:e})=>[e.status_name=="\u5F85\u6536\u8D27"?(n(),d(h,{key:0,type:"success"},{default:o(()=>[r(D(e.status_name),1)]),_:2},1024)):e.status_name=="\u5DF2\u6536\u8D27"||e.status_name=="\u5DF2\u5B8C\u6210"?(n(),d(h,{key:1,type:"info"},{default:o(()=>[r(D(e.status_name),1)]),_:2},1024)):e.status_name=="\u5F85\u53D1\u8D27"||e.status_name=="\u5F85\u6838\u9500"?(n(),d(h,{key:2,type:"warning"},{default:o(()=>[r(D(e.status_name),1)]),_:2},1024)):(n(),d(h,{key:3,type:"danger"},{default:o(()=>[r(D(e.status_name),1)]),_:2},1024))]),_:1}),a(i,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":""},{default:o(({row:e})=>[a(te,{options:u(k).pay_type,value:e.pay_type},null,8,["options","value"])]),_:1}),a(i,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""}),a(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:e})=>[a(B,{type:"primary",link:"",onClick:x=>Q(e)},{default:o(()=>[r("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),L("div",Re,[a(oe,{modelValue:u(c),"onUpdate:modelValue":t[6]||(t[6]=e=>T(c)?c.value=e:null),onChange:u(f)},null,8,["modelValue","onChange"])])]),_:1})),[[le,u(c).loading]]),u(b)?(n(),d(Me,{key:0,ref_key:"detailsRef",ref:w,onSuccess:u(f),onClose:t[7]||(t[7]=e=>b.value=!1),dictData:u(k)},null,8,["onSuccess","dictData"])):N("",!0)])}}});export{St as default};