moreShopAdmin/build/admin/assets/index.55d0381f.js

2 lines
12 KiB
JavaScript

import{U as Fe,a4 as ge,H as we,$ as Ee,C as be,D as Ce,J as ke,K as Be,w as he,F as Ve,L as xe,M as Se,b as $e,N as Ae,O as Te}from"./element-plus.91c68cc0.js";import{_ as Me}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as Ue}from"./index.vue_vue_type_script_setup_true_lang.20e90b1a.js";import{_ as Le}from"./index.vue_vue_type_script_setup_true_lang.9a62fd20.js";import{d as Q,s as q,r as p,Z as Re,i as Oe,af as Ye,ap as Pe,o as n,c as m,U as o,L as a,u as l,aa as ze,T as x,a9 as S,K as i,j as O,R as r,M as Y,a as P,S as b,Q as $,n as G}from"./@vue.76ce7aa3.js";import{u as Ie}from"./usePaging.f8c888e4.js";import{u as Ke}from"./useDictOptions.55a5f7ca.js";import{a as H}from"./store_order.6bfce358.js";import{p as Ne}from"./beforehand_order.be98528b.js";import"./lodash.4e6d2a38.js";import{a as je}from"./system_store.7a4ecbcf.js";import{h as qe}from"./index.45e3c1f0.js";import{h as J}from"./moment.40bc58bf.js";import{_ as Ge}from"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.d3870423.js";import{_ as He}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.a2f73080.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.b0600572.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.377dcf90.js";import"./orderInfo.vue_vue_type_script_setup_true_name_orderInfo_lang.b69d9111.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.b3a4d7c7.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.922c0e0d.js";import"./store_product.4b77192d.js";import"./store_branch_product.fd82e9de.js";import"./warehouse_product_storege.c5e43166.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.892bac2a.js";import"./refundOrderProduct.vue_vue_type_script_setup_true_name_refundOrderProduct_lang.07c96f9d.js";import"./warehouse.16c7cc4d.js";const Je={class:"mt-4"},Qe={class:"truncate text-[12px]"},Ze={key:0,style:{"text-align":"left"}},We={key:0},Xe={key:1},et={class:"flex mt-4 justify-end"},tt=Q({name:"storeOrderLists"}),so=Q({...tt,setup(ot){const A=q(),T=q(),M=p(!1),U=p(!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]}}],_=p([]),u=Re({order_id:"",uid:"",pay_type:"",store_id:"",start_time:"",end_time:"",paid:null,status:null,is_writeoff:null,source:""}),L=p("0"),W=s=>{s==0?(u.paid=null,u.status=null,u.is_writeoff=null):s==1?(u.paid=0,u.status=null,u.is_writeoff=null):s==2?(u.paid=1,u.status=1,u.is_writeoff=0):s==3?(u.paid=1,u.status=2,u.is_writeoff=null):s==4?(u.paid=null,u.status=4,u.is_writeoff=null):s==60&&(u.is_delivery=1,u.status=null,u.paid=null,u.is_writeoff=null),y()},X=()=>{_.value[0]&&_.value[1]?(u.start_time=J(_.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=J(_.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),y()},C=p(!1),z=p([]),ee=(s="")=>{C.value=!0,je({name:s,page_size:50}).then(e=>{z.value=e.lists,setTimeout(()=>{C.value=!1},300)}).catch(e=>{setTimeout(()=>{C.value=!1},300)})},te=p([]),oe=s=>{te.value=s.map(({id:e})=>e)},{dictData:k}=Ke("pay_type"),{pager:v,getLists:y,resetParams:le,resetPage:D}=Ie({fetchFun:H,params:u}),ae=async s=>{var e,f;U.value=!0,await G(),(e=T.value)==null||e.open(),(f=T.value)==null||f.getDetail(s)},ue=async s=>{var e,f;M.value=!0,await G(),(e=A.value)==null||e.open("edit"),(f=A.value)==null||f.setFormData(s)},B=p(!1),I=p([]),se=(s="")=>{B.value=!0,qe({nickname:s,page_size:50}).then(e=>{I.value=e.lists,setTimeout(()=>{B.value=!1},300)}).catch(e=>{setTimeout(()=>{B.value=!1},300)})},ne=s=>{Ne(s)};return Oe(()=>{y()}),(s,e)=>{const f=be,c=Ce,h=ke,V=Be,re=Fe,F=he,ie=Le,de=Ve,K=xe,pe=Ye("router-link"),g=ge,me=we,d=Se,_e=$e,w=Ee,fe=Ue,ce=Ae,ve=Me,N=Pe("perms"),ye=Te;return n(),m("div",null,[o(K,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(de,{class:"mb-[-16px]",model:l(u),inline:""},{default:a(()=>[o(c,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[o(f,{class:"w-[280px]",modelValue:l(u).order_id,"onUpdate:modelValue":e[0]||(e[0]=t=>l(u).order_id=t),onKeydown:ze(l(D),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),o(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[o(V,{modelValue:l(u).store_id,"onUpdate:modelValue":e[1]||(e[1]=t=>l(u).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ee,loading:l(C),style:{width:"240px"},onChange:l(D)},{default:a(()=>[(n(!0),m(x,null,S(l(z),t=>(n(),i(h,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(c,{label:"\u7528\u6237",prop:"uid"},{default:a(()=>[o(V,{modelValue:l(u).uid,"onUpdate:modelValue":e[2]||(e[2]=t=>l(u).uid=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":se,loading:l(B),style:{width:"240px"},onChange:l(D)},{default:a(()=>[(n(!0),m(x,null,S(l(I),t=>(n(),i(h,{key:t.id,label:`${t.real_name}|${t.mobile} (ID:${t.id})`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(c,{label:"\u65E5\u671F",prop:"order_id"},{default:a(()=>[o(re,{modelValue:l(_),"onUpdate:modelValue":e[3]||(e[3]=t=>O(_)?_.value=t:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:Z,onChange:X},null,8,["modelValue"])]),_:1}),o(c,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[o(V,{class:"w-[280px]",modelValue:l(u).pay_type,"onUpdate:modelValue":e[4]||(e[4]=t=>l(u).pay_type=t),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",onChange:l(D)},{default:a(()=>[(n(!0),m(x,null,S(l(k).pay_type,t=>(n(),i(h,{label:t.name,value:t.value,key:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),o(c,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"source"},{default:a(()=>[o(V,{class:"w-[280px]",modelValue:l(u).source,"onUpdate:modelValue":e[5]||(e[5]=t=>l(u).source=t),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",onChange:l(D)},{default:a(()=>[o(h,{label:"\u6279\u53D1\u8BA2\u5355",value:"4"})]),_:1},8,["modelValue","onChange"])]),_:1}),o(c,null,{default:a(()=>[o(F,{type:"primary",onClick:l(D)},{default:a(()=>e[11]||(e[11]=[r("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(F,{onClick:e[6]||(e[6]=t=>l(le)())},{default:a(()=>e[12]||(e[12]=[r("\u91CD\u7F6E")])),_:1}),o(ie,{class:"ml-2.5","fetch-fun":l(H),params:l(u),"page-size":l(v).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),Y((n(),i(K,{class:"!border-none",shadow:"never"},{default:a(()=>[o(me,{modelValue:l(L),"onUpdate:modelValue":e[7]||(e[7]=t=>O(L)?L.value=t:null),onChange:W},{default:a(()=>[Y((n(),i(pe,{to:{path:"store_order/add"},class:"ml-4 mr-4"},{default:a(()=>[o(F,{type:"primary"},{default:a(()=>e[13]||(e[13]=[r(" \u6DFB\u52A0\u8BA2\u5355 ")])),_:1})]),_:1})),[[N,["order/store_order/add"]]]),o(g,{label:"0"},{default:a(()=>e[14]||(e[14]=[r("\u5168\u90E8")])),_:1}),o(g,{label:"1"},{default:a(()=>e[15]||(e[15]=[r("\u5F85\u652F\u4ED8")])),_:1}),o(g,{label:"2"},{default:a(()=>e[16]||(e[16]=[r("\u5F85\u6838\u9500")])),_:1}),o(g,{label:"60"},{default:a(()=>e[17]||(e[17]=[r("\u5DF2\u8BBE\u7F6E\u914D\u9001\u4EBA\u5458")])),_:1}),o(g,{label:"3"},{default:a(()=>e[18]||(e[18]=[r("\u5DF2\u5B8C\u6210")])),_:1}),o(g,{label:"4"},{default:a(()=>e[19]||(e[19]=[r("\u5DF2\u9000\u6B3E")])),_:1})]),_:1},8,["modelValue"]),P("div",Je,[o(ce,{data:l(v).lists,onSelectionChange:oe},{default:a(()=>[o(d,{label:"ID",prop:"id","show-overflow-tooltip":"",width:"100"}),o(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":"",width:"200"}),o(d,{label:"\u5546\u54C1\u4FE1\u606F",prop:"order_id",width:"150","show-overflow-tooltip":""},{default:a(({row:t})=>{var E,j;return[(n(!0),m(x,null,S((E=t.product)==null?void 0:E.slice(0,3),(R,De)=>(n(),m("div",{class:"flex items-center mb-2",key:De},[o(_e,{class:"w-[30px] h-[30px] mr-2 flex-shrink-0",src:R.image,fit:"cover","preview-src-list":[R.image],"preview-teleported":!0},null,8,["src","preview-src-list"]),P("p",Qe,b(R.store_name),1)]))),128)),((j=t.product)==null?void 0:j.length)>3?(n(),m("div",Ze,"...")):$("",!0)]}),_:1}),o(d,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":"",width:"150"}),o(d,{label:"\u7528\u6237",prop:"nickname","show-overflow-tooltip":"",width:"150"}),o(d,{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":"",width:"150"}),o(d,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status_name",width:"100"},{default:a(({row:t})=>[t.refund_status==2?(n(),m("div",We,[o(w,{type:"danger"},{default:a(()=>e[20]||(e[20]=[r("\u5DF2\u9000\u6B3E")])),_:1})])):(n(),m("div",Xe,[t.status_name=="\u5F85\u6536\u8D27"?(n(),i(w,{key:0,type:"success"},{default:a(()=>[r(b(t.status_name),1)]),_:2},1024)):t.status_name=="\u5DF2\u6536\u8D27"||t.status_name=="\u5DF2\u5B8C\u6210"?(n(),i(w,{key:1,type:"info"},{default:a(()=>[r(b(t.status_name),1)]),_:2},1024)):t.status_name=="\u5F85\u53D1\u8D27"||t.status_name=="\u5F85\u6838\u9500"?(n(),i(w,{key:2,type:"warning"},{default:a(()=>[r(b(t.status_name),1)]),_:2},1024)):(n(),i(w,{key:3,type:"danger"},{default:a(()=>[r(b(t.status_name),1)]),_:2},1024))]))]),_:1}),o(d,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":"",width:"100"},{default:a(({row:t})=>[o(fe,{options:l(k).pay_type,value:t.pay_type},null,8,["options","value"])]),_:1}),o(d,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"source_name","show-overflow-tooltip":"",width:"100"}),o(d,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":"",width:"200"}),o(d,{label:"\u64CD\u4F5C",fixed:"right"},{default:a(({row:t})=>[o(F,{type:"primary",link:"",onClick:E=>ae(t)},{default:a(()=>e[21]||(e[21]=[r("\u8BE6\u60C5")])),_:2},1032,["onClick"]),o(F,{type:"primary",link:"",onClick:E=>ne(t)},{default:a(()=>e[22]||(e[22]=[r("\u8F6C\u9884\u5B9A\u5355")])),_:2},1032,["onClick"]),t.status!=2?Y((n(),i(F,{key:0,type:"primary",link:"",onClick:E=>ue(t)},{default:a(()=>e[23]||(e[23]=[r("\u8BBE\u7F6E\u95E8\u5E97")])),_:2},1032,["onClick"])),[[N,["store_order.store_order/system_store"]]]):$("",!0)]),_:1})]),_:1},8,["data"])]),P("div",et,[o(ve,{modelValue:l(v),"onUpdate:modelValue":e[8]||(e[8]=t=>O(v)?v.value=t:null),onChange:l(y)},null,8,["modelValue","onChange"])])]),_:1})),[[ye,l(v).loading]]),l(M)?(n(),i(Ge,{key:0,ref_key:"editRef",ref:A,"dict-data":l(k),onSuccess:l(y),onClose:e[9]||(e[9]=t=>M.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),l(U)?(n(),i(He,{key:1,ref_key:"detailsRef",ref:T,onSuccess:l(y),onClose:e[10]||(e[10]=t=>U.value=!1),dictData:l(k)},null,8,["onSuccess","dictData"])):$("",!0)])}}});export{so as default};