moreShopAdmin/build/admin/assets/index.d5da1837.js

2 lines
12 KiB
JavaScript

import{U as De,a4 as Fe,H as ge,$ as we,C as Ee,D as be,J as Ce,K as ke,w as Be,F as Ve,L as xe,M as Se,b as $e,N as Ae,O as Te}from"./element-plus.7e347b00.js";import{_ as Me}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{_ as Ue}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{_ as Le}from"./index.vue_vue_type_script_setup_true_lang.20c46991.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 l,u as a,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 E,Q as $,n as G}from"./@vue.18505fe0.js";import{u as Ie}from"./usePaging.6a6670f9.js";import{u as Ke}from"./useDictOptions.69d89711.js";import{a as H}from"./store_order.d3e36701.js";import{o as Ne}from"./beforehand_order.45d9821e.js";import"./lodash.4e6d2a38.js";import{a as je}from"./system_store.ca3ec039.js";import{h as qe}from"./index.e8dd0072.js";import{h as J}from"./moment.40bc58bf.js";import{_ as Ge}from"./edit.vue_vue_type_script_setup_true_name_storeOrderEdit_lang.872298e3.js";import{_ as He}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.1e8c7e9e.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.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.6f70f589.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.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.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.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.1a0e8512.js";import"./orderInfo.vue_vue_type_script_setup_true_name_orderInfo_lang.143e1eec.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.73fc4a3f.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.babc10d3.js";import"./store_product.cad732c6.js";import"./store_branch_product.5203c3a7.js";import"./warehouse_product_storege.e8ac9c80.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.3ecca6d9.js";import"./refundOrderProduct.vue_vue_type_script_setup_true_name_refundOrderProduct_lang.9cb9c593.js";import"./warehouse.ffc2b5be.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,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([]),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()},b=p(!1),z=p([]),ee=(s="")=>{b.value=!0,je({name:s,page_size:50}).then(t=>{z.value=t.lists,setTimeout(()=>{b.value=!1},300)}).catch(t=>{setTimeout(()=>{b.value=!1},300)})},te=p([]),oe=s=>{te.value=s.map(({id:t})=>t)},{dictData:C}=Ke("pay_type"),{pager:v,getLists:y,resetParams:ae,resetPage:h}=Ie({fetchFun:H,params:u}),le=async s=>{var t,c;U.value=!0,await G(),(t=T.value)==null||t.open(),(c=T.value)==null||c.getDetail(s)},ue=async s=>{var t,c;M.value=!0,await G(),(t=A.value)==null||t.open("edit"),(c=A.value)==null||c.setFormData(s)},k=p(!1),I=p([]),se=(s="")=>{k.value=!0,qe({nickname:s,page_size:50}).then(t=>{I.value=t.lists,setTimeout(()=>{k.value=!1},300)}).catch(t=>{setTimeout(()=>{k.value=!1},300)})},ne=s=>{Ne(s)};return Oe(()=>{y()}),(s,t)=>{const c=Ee,f=be,B=Ce,V=ke,re=De,D=Be,ie=Le,de=Ve,K=xe,pe=Ye("router-link"),F=Fe,me=ge,d=Se,_e=$e,g=we,ce=Ue,fe=Ae,ve=Me,N=Pe("perms"),ye=Te;return n(),m("div",null,[o(K,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(de,{class:"mb-[-16px]",model:a(u),inline:""},{default:l(()=>[o(f,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:l(()=>[o(c,{class:"w-[280px]",modelValue:a(u).order_id,"onUpdate:modelValue":t[0]||(t[0]=e=>a(u).order_id=e),onKeydown:ze(a(h),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),o(f,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[o(V,{modelValue:a(u).store_id,"onUpdate:modelValue":t[1]||(t[1]=e=>a(u).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ee,loading:a(b),style:{width:"240px"},onChange:a(h)},{default:l(()=>[(n(!0),m(x,null,S(a(z),e=>(n(),i(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(f,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[o(V,{modelValue:a(u).uid,"onUpdate:modelValue":t[2]||(t[2]=e=>a(u).uid=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":se,loading:a(k),style:{width:"240px"},onChange:a(h)},{default:l(()=>[(n(!0),m(x,null,S(a(I),e=>(n(),i(B,{key:e.id,label:`${e.real_name}|${e.mobile} (ID:${e.id})`,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(f,{label:"\u65E5\u671F",prop:"order_id"},{default:l(()=>[o(re,{modelValue:a(_),"onUpdate:modelValue":t[3]||(t[3]=e=>O(_)?_.value=e: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(f,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:l(()=>[o(V,{class:"w-[280px]",modelValue:a(u).pay_type,"onUpdate:modelValue":t[4]||(t[4]=e=>a(u).pay_type=e),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",onChange:a(h)},{default:l(()=>[(n(!0),m(x,null,S(a(C).pay_type,e=>(n(),i(B,{label:e.name,value:e.value,key:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),o(f,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"source"},{default:l(()=>[o(V,{class:"w-[280px]",modelValue:a(u).source,"onUpdate:modelValue":t[5]||(t[5]=e=>a(u).source=e),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",onChange:a(h)},{default:l(()=>[o(B,{label:"\u6279\u53D1\u8BA2\u5355",value:"4"})]),_:1},8,["modelValue","onChange"])]),_:1}),o(f,null,{default:l(()=>[o(D,{type:"primary",onClick:a(h)},{default:l(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(D,{onClick:t[6]||(t[6]=e=>a(ae)())},{default:l(()=>[r("\u91CD\u7F6E")]),_:1}),o(ie,{class:"ml-2.5","fetch-fun":a(H),params:a(u),"page-size":a(v).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),Y((n(),i(K,{class:"!border-none",shadow:"never"},{default:l(()=>[o(me,{modelValue:a(L),"onUpdate:modelValue":t[7]||(t[7]=e=>O(L)?L.value=e:null),onChange:W},{default:l(()=>[Y((n(),i(pe,{to:{path:"store_order/add"},class:"ml-4 mr-4"},{default:l(()=>[o(D,{type:"primary"},{default:l(()=>[r(" \u6DFB\u52A0\u8BA2\u5355 ")]),_:1})]),_:1})),[[N,["order/store_order/add"]]]),o(F,{label:"0"},{default:l(()=>[r("\u5168\u90E8")]),_:1}),o(F,{label:"1"},{default:l(()=>[r("\u5F85\u652F\u4ED8")]),_:1}),o(F,{label:"2"},{default:l(()=>[r("\u5F85\u6838\u9500")]),_:1}),o(F,{label:"60"},{default:l(()=>[r("\u5DF2\u8BBE\u7F6E\u914D\u9001\u4EBA\u5458")]),_:1}),o(F,{label:"3"},{default:l(()=>[r("\u5DF2\u5B8C\u6210")]),_:1}),o(F,{label:"4"},{default:l(()=>[r("\u5DF2\u9000\u6B3E")]),_:1})]),_:1},8,["modelValue"]),P("div",Je,[o(fe,{data:a(v).lists,onSelectionChange:oe},{default:l(()=>[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:l(({row:e})=>{var w,j;return[(n(!0),m(x,null,S((w=e.product)==null?void 0:w.slice(0,3),(R,he)=>(n(),m("div",{class:"flex items-center mb-2",key:he},[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,E(R.store_name),1)]))),128)),((j=e.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:l(({row:e})=>[e.refund_status==2?(n(),m("div",We,[o(g,{type:"danger"},{default:l(()=>[r("\u5DF2\u9000\u6B3E")]),_:1})])):(n(),m("div",Xe,[e.status_name=="\u5F85\u6536\u8D27"?(n(),i(g,{key:0,type:"success"},{default:l(()=>[r(E(e.status_name),1)]),_:2},1024)):e.status_name=="\u5DF2\u6536\u8D27"||e.status_name=="\u5DF2\u5B8C\u6210"?(n(),i(g,{key:1,type:"info"},{default:l(()=>[r(E(e.status_name),1)]),_:2},1024)):e.status_name=="\u5F85\u53D1\u8D27"||e.status_name=="\u5F85\u6838\u9500"?(n(),i(g,{key:2,type:"warning"},{default:l(()=>[r(E(e.status_name),1)]),_:2},1024)):(n(),i(g,{key:3,type:"danger"},{default:l(()=>[r(E(e.status_name),1)]),_:2},1024))]))]),_:1}),o(d,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":"",width:"100"},{default:l(({row:e})=>[o(ce,{options:a(C).pay_type,value:e.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:l(({row:e})=>[o(D,{type:"primary",link:"",onClick:w=>le(e)},{default:l(()=>[r("\u8BE6\u60C5")]),_:2},1032,["onClick"]),o(D,{type:"primary",link:"",onClick:w=>ne(e)},{default:l(()=>[r("\u8F6C\u9884\u5B9A\u5355")]),_:2},1032,["onClick"]),e.status!=2?Y((n(),i(D,{key:0,type:"primary",link:"",onClick:w=>ue(e)},{default:l(()=>[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:a(v),"onUpdate:modelValue":t[8]||(t[8]=e=>O(v)?v.value=e:null),onChange:a(y)},null,8,["modelValue","onChange"])])]),_:1})),[[ye,a(v).loading]]),a(M)?(n(),i(Ge,{key:0,ref_key:"editRef",ref:A,"dict-data":a(C),onSuccess:a(y),onClose:t[9]||(t[9]=e=>M.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),a(U)?(n(),i(He,{key:1,ref_key:"detailsRef",ref:T,onSuccess:a(y),onClose:t[10]||(t[10]=e=>U.value=!1),dictData:a(C)},null,8,["onSuccess","dictData"])):$("",!0)])}}});export{so as default};