2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
import{a0 as ae,a1 as le,x as ue,y as oe,b as G,M as W,N as X,g as ne,S as se,U as ie,T as re,$ as de,J as _e,K as me,D as pe,C as ce,w as fe,F as ve,L as Ee,O as Fe}from"./element-plus.a63a26dd.js";import{_ as De}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{d as J,r as D,o as n,K as h,L as t,a,U as e,S as r,c,Q as T,T as H,a9 as q,M as ee,R as g,V as he,Z as we,s as Be,aa as be,u as F,j as ye,n as Ce}from"./@vue.18505fe0.js";import{u as ge}from"./usePaging.6a6670f9.js";import{u as xe}from"./useDictOptions.8542fd46.js";import{h as ke}from"./moment.40bc58bf.js";import{g as Ve}from"./store_order.ca41fa16.js";import{_ as Ae}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.588fd34b.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"./index.7673de78.js";import"./lodash.2473fc51.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.vue_vue_type_script_setup_true_lang.ab7008c1.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.b87dbf79.js";import"./orderTable.vue_vue_type_script_setup_true_name_orderTable_lang.033de0b8.js";import"./deliverTable.vue_vue_type_script_setup_true_name_deliverTable_lang.fe4ae64d.js";const Te=a("h4",null,"\u8BA2\u5355\u8BE6\u60C5",-1),Se={class:"flex"},Re={class:"flex flex-col ml-3 justify-between"},$e={style:{"font-size":"16px"}},je={class:"flex justify-between w-[70%] mt-[20px]"},Pe=a("div",null,"\u8BA2\u5355\u72B6\u6001",-1),Ue=a("div",null,"\u5B9E\u9645\u652F\u4ED8",-1),Ye=a("div",null,"\u652F\u4ED8\u65B9\u5F0F",-1),Le={key:0},Ne=a("div",null,"\u652F\u4ED8\u65F6\u95F4",-1),Me={key:1},Ie=a("div",null,"\u9000\u6B3E\u4EF6\u6570",-1),Ke=[Ie],Oe={key:2},ze=a("div",null,"\u9000\u6B3E\u65F6\u95F4",-1),He=[ze],qe={class:"flex w-[300px] items-center"},Je="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",Z="first",Qe=J({__name:"index",props:{detailData:{type:Object},orderType:{type:Number,default:1}},setup(i,{expose:p}){var B,S,R,f,$,j,P,b,U,k,o,d,Y,v,E;const m=D(!1),u=i,x=D([{title:"\u9000\u6B3E\u539F\u56E0",isShow:u.orderType==0,child:[{name:"\u9000\u6B3E\u539F\u56E0",value:(B=u.detailData)==null?void 0:B.refund_reason},{name:"\u9000\u6B3E\u91D1\u989D",value:(S=u.detailData)==null?void 0:S.refund_price},{name:"\u9000\u6B3E\u8BF4\u660E",value:(R=u.detailData)==null?void 0:R.refund_reason_wap_explain}]},{title:"\u7528\u6237\u4FE1\u606F",isShow:!0,child:[{name:"\u7528\u6237\u6635\u79F0",value:(f=u.detailData)==null?void 0:f.nickname},{name:"\u7ED1\u5B9A\u7535\u8BDD",value:($=u.detailData)==null?void 0:$.mobile}]},{title:"\u6536\u8D27\u4EBA\u4FE1\u606F",isShow:!0,child:[{name:"\u6536\u8D27\u4EBA",value:(j=u.detailData)==null?void 0:j.real_name},{name:"\u6536\u83B7\u7535\u8BDD",value:(P=u.detailData)==null?void 0:P.user_phone},{name:"\u6536\u83B7\u5730\u5740",value:(b=u.detailData)==null?void 0:b.user_address}]},{title:"\u8BA2\u5355\u4FE1\u606F",isShow:!0,child:[{name:"\u521B\u5EFA\u65F6\u95F4",value:(U=u.detailData)==null?void 0:U.create_time},{name:"\u5546\u54C1\u603B\u6570",value:(k=u.detailData)==null?void 0:k.total_num},{name:"\u5546\u54C1\u603B\u4EF7",value:(o=u.detailData)==null?void 0:o.total_price},{name:"\u5E97\u5458\u540D\u79F0",value:(d=u.detailData)==null?void 0:d.staff_name},{name:"\u652F\u4ED8\u65F6\u95F4",value:(Y=u.detailData)==null?void 0:Y.pay_time},{name:"\u652F\u4ED8\u65B9\u5F0F",value:(v=u.detailData)==null?void 0:v.pay_type}]},{title:"\u8BA2\u5355\u5907\u6CE8",isShow:!0,child:[{name:"\u5907\u6CE8",value:(E=u.detailData)==null?void 0:E.remark}]}]);return p({open:()=>{m.value=!0},close:()=>{m.value=!1}}),(N,y)=>{const C=G,M=ae,I=le,V=ue,s=W,K=X,L=oe,O=ne;return n(),h(O,{modelValue:m.value,"onUpdate:modelValue":y[1]||(y[1]=_=>m.value=_),direction:"rtl","destroy-on-close":!0,title:"\u8BA2\u5355\u8BE6\u60C5",size:"50%"},{header:t(()=>[Te]),default:t(()=>[a("div",Se,[e(C,{class:"w-[50px] h-[50px]",src:Je,fit:N.fit,"preview-teleported":!0},null,8,["fit"]),a("div",Re,[a("div",$e,r(i.orderType?"\u3010\u6536\u94F6\u8BA2\u5355\u3011":"\u552E\u540E\u8BA2\u5355"),1),a("div",null," \u8BA2\u5355\u7F16\u53F7\uFF1A "+r(i.detailData.order_id),1)])]),a("ul",je,[a("li",null,[Pe,a("div",null,r(i.orderType?i.detailData.status_name:i.detailData.refund_status_name),1)]),a("li",null,[Ue,a("div",null,r(i.detailData.pay_price),1)]),a("li",null,[Ye,a("div",null,r(i.detailData.pay_type),1)]),i.orderType?(n(),c("li",Le,[Ne,a("div",null,r(i.detailData.pay_time),1)])):T("",!0),i.orderType?T("",!0):(n(),c("li",Me,Ke)),i.orderType?T("",!0):(n(),c("li",Oe,He))]),e(L,{modelValue:Z,"onUpdate:modelValue":y[0]||(y[0]=_=>Z=_),class:"mt-[20px]"},{default:t(()=>[e(V,{label:"\u8BA2\u5355\u4FE1\u606F",name:"first"},{default:t(()=>[(n(!0),c(H,null,q(x.value,(_,z)=>ee((n(),h(I,{column:3,border:"",title:_.title,class:"mb-[30px]",key:z},{default:t(()=>[(n(!0),c(H,null,q(_.child,l=>(n(),h(M,{label:l.name,"label-class-name":"my-label"},{default:t(()=>[g(r(l.value),1)]),_:2},1032,["label"]))),256))]),_:2},1032,["title"])),[[he,_.isShow]])),128))]),_:1}),e(V,{label:"\u5546\u54C1\u4FE1\u606F",name:"second"},{default:t(()=>[e(K,{border:"",data:i.detailData.product},{default:t(()=>[e(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"build_area_text","show-overflow-tooltip":""},{default:t(({row:_})=>[a("div",qe,[e(C,{class:"w-[50px] h-[50px] mr-2",src:_.cart_info.image,"preview-teleported":!0},null,8,["src"]),a("span",null,r(_.cart_info.name),1)])]),_:1}),e(s,{label:"\u4EF7\u683C",prop:"cart_info.price","show-overflow-tooltip":""}),e(s,{label:"\u6570\u91CF",prop:"cart_info.cart_num","show-overflow-tooltip":"",width:"120"}),e(s,{label:"\u5C0F\u8BA1",prop:"cart_info.total","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Ze={class:"mt-4"},Ge={class:"text-[12px]"},We={class:"flex mt-4 justify-end"},Xe={key:0},et=J({name:"manageProjectLists"}),Ot=J({...et,setup(i){const p=we({order_id:"",pay_type:"",start_time:"",end_time:"",refund_type:""}),m=D([]),u=D(!1),x=Be(),{dictData:Q}=xe("pay_type"),{pager:w,getLists:B,resetParams:S,resetPage:R}=ge({fetchFun:Ve,params:p}),f=()=>{m.value.length&&(p.start_time=m.value[0],p.end_time=m.value[1]),R()},$=()=>{m.value=[],S()},j=D(null),P=D({}),b=D(!1),U=async k=>{var o,d;b.value=!0,await Ce(),(o=x.value)==null||o.open(),(d=x.value)==null||d.getDetail(k)};return B(),(k,o)=>{const d=_e,Y=me,v=pe,E=se,N=ie,y=ce,C=fe,M=re,I=ve,V=Ee,s=W,K=G,L=de,O=X,_=De,z=Fe;return n(),c("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(I,{class:"mb-[-16px]",model:p,"label-width":"80px"},{default:t(()=>[e(M,null,{default:t(()=>[e(E,{span:6},{default:t(()=>[e(v,{label:"\u8BA2\u5355\u72B6\u6001"},{default:t(()=>[e(Y,{class:"flex-1",modelValue:p.refund_type,"onUpdate:modelValue":o[0]||(o[0]=l=>p.refund_type=l),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u72B6\u6001",onChange:f},{default:t(()=>[e(d,{label:"\u4EC5\u9000\u6B3E",value:"1"}),e(d,{label:"\u4EC5\u9000\u6B3E",value:"2"}),e(d,{label:"\u62D2\u7EDD\u9000\u6B3E",value:"3"}),e(d,{label:"\u5546\u54C1\u5F85\u9000\u8D27",value:"4"}),e(d,{label:"\u9000\u8D27\u5F85\u6536\u8D27",value:"5"}),e(d,{label:"\u5DF2\u9000\u6B3E",value:"6"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:t(()=>[e(v,{label:"\u9000\u6B3E\u65F6\u95F4"},{default:t(()=>[e(N,{modelValue:m.value,"onUpdate:modelValue":o[1]||(o[1]=l=>m.value=l),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",onChange:f},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:t(()=>[e(v,{label:"\u8BA2\u5355\u641C\u7D22"},{default:t(()=>[e(y,{modelValue:p.order_id,"onUpdate:modelValue":o[2]||(o[2]=l=>p.order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7",onKeydown:be(f,["enter"])},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:6},{default:t(()=>[e(v,null,{default:t(()=>[e(C,{type:"primary",onClick:f},{default:t(()=>[g("\u67E5\u8BE2")]),_:1}),e(C,{onClick:$},{default:t(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ee((n(),h(V,{class:"!border-none",shadow:"never"},{default:t(()=>[a("div",Ze,[e(O,{data:F(w).lists},{default:t(()=>[e(s,{label:"\u8BA2\u5355\u53F7",prop:"order_id","min-width":"150","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u4FE1\u606F",prop:"nickname","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"project_level_text","show-overflow-tooltip":"","min-width":"180"},{default:t(({row:l})=>[(n(!0),c(H,null,q(l.product,(A,te)=>(n(),c("div",{key:te,class:"flex items-center"},[e(K,{src:A.cart_info.image,class:"mr-2 w-[40px] h-[40px] !flex-shrink-0","preview-teleported":!0},null,8,["src"]),a("div",Ge,[a("p",null,r(A.cart_info.name),1),a("p",null,"\uFFE5"+r(A.cart_info.price)+" x "+r(A.cart_info.cart_num),1)])]))),128))]),_:1}),e(s,{label:"\u5B9E\u9645\u652F\u4ED8",prop:"pay_price","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u53D1\u8D77\u9000\u6B3E\u65F6\u95F4",prop:"refund_reason_time","min-width":"150","show-overflow-tooltip":""},{default:t(({row:l})=>[a("span",null,r(l.refund_reason_time?F(ke)(l.refund_reason_time<10**10?l.refund_reason_time*1e3:l.refund_reason_time).format("YYYY-MM-DD HH:mm:ss"):"-"),1)]),_:1}),e(s,{label:"\u9000\u6B3E\u72B6\u6001",prop:"refund_status_name","min-width":"100","show-overflow-tooltip":""},{default:t(({row:l})=>[l.refund_status_name=="\u5DF2\u9000\u6B3E"?(n(),h(L,{key:0,type:"success"},{default:t(()=>[g(r(l.refund_status_name),1)]),_:2},1024)):(n(),h(L,{key:1,type:"danger"},{default:t(()=>[g(r(l.refund_status_name),1)]),_:2},1024))]),_:1}),e(s,{label:"\u9000\u6B3E\u4FE1\u606F",prop:"","show-overflow-tooltip":""}),e(s,{label:"\u9000\u8D27\u4FE1\u606F",prop:"","show-overflow-tooltip":""}),e(s,{label:"\u552E\u540E\u5907\u6CE8",prop:"","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right",align:"center"},{default:t(({row:l})=>[e(C,{type:"primary",link:"",onClick:A=>U(l)},{default:t(()=>[g(" \u8BA2\u5355\u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),a("div",We,[e(_,{modelValue:F(w),"onUpdate:modelValue":o[3]||(o[3]=l=>ye(w)?w.value=l:null),onChange:F(B)},null,8,["modelValue","onChange"])])]),_:1})),[[z,F(w).loading]]),u.value?(n(),c("div",Xe,[e(Qe,{ref_key:"detailRef",ref:j,detailData:P.value,onClose:o[4]||(o[4]=l=>u.value=!1),orderType:0},null,8,["detailData"])])):T("",!0),b.value?(n(),h(Ae,{key:1,ref_key:"detailsRef",ref:x,onSuccess:F(B),onClose:o[5]||(o[5]=l=>b.value=!1),dictData:F(Q)},null,8,["onSuccess","dictData"])):T("",!0)])}}});export{Ot as default};
|