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