1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6357],{8437:function(e,o,l){var n=l(2180),d=l(4165),t=l(5861),i=l(3433),u=l(1413),s=l(9439),a=l(1515),r=l(7294),_=l(4184),c=l.n(_),m=l(7484),v=l.n(m),f={common_safe_area_y:"index-module__common_safe_area_y___ms4P6","flex-col":"index-module__flex-col___SPNCz","flex-row":"index-module__flex-row___UMvDl","justify-between":"index-module__justify-between___slCCM","justify-center":"index-module__justify-center___AN30N","items-center":"index-module__items-center___l1wNR","flex-item":"index-module__flex-item___Yz2LT","full-100":"index-module__full-100___vq0iZ","color-blue":"index-module__color-blue___FbIpW","color-yellow":"index-module__color-yellow___z5D8N","color-green":"index-module__color-green___LHOiC","color-grey":"index-module__color-grey___PoJC5","color-white":"index-module__color-white___x_zMY","s-w":"index-module__s-w___U3q_c","s-e":"index-module__s-e___xpK_K",filter:"index-module__filter___T04_C",refundPage:"index-module__refundPage___oIa1X",flexBox:"index-module__flexBox___iuXEY",icon_shaixuan:"index-module__icon_shaixuan____JEhF",activeshaixuan:"index-module__activeshaixuan___gIWMQ",shaixuan:"index-module__shaixuan___DhAGO",activeshai:"index-module__activeshai___Lbdpa",order_list:"index-module__order_list___it_iO",bigBpx:"index-module__bigBpx___C7ixy",scrllStyle:"index-module__scrllStyle___k_0Y4",safeBox:"index-module__safeBox___TOOTB",popupBox:"index-module__popupBox___ci7kr",thirdBox:"index-module__thirdBox___rL6xV",thirdTopfont:"index-module__thirdTopfont___kgKS2",timeBox2:"index-module__timeBox2___qTTmQ",flexModebox:"index-module__flexModebox___tAnaz",modeBox:"index-module__modeBox___hF0NB",bottomBox:"index-module__bottomBox___l21Zp",resetBox:"index-module__resetBox___MBgkx",button2:"index-module__button2___K_ys4",activeButton:"index-module__activeButton___niICH",activemodeBox:"index-module__activemodeBox___HbieI"},x=l(2954),j=l.n(x),p="index-module__itemBox___fGlr6",h="index-module__topItem___vk9m8",b="index-module__orderNo___cFpxD",g="index-module__status___IKSPk",y="index-module__pussName___Tmsmj",B="index-module__line___CS8ha",N="index-module__contBox____iQNt",Z="index-module__leftCont___C1Y79",k="index-module__leftContNums___V6MVt",R="index-module__rightCont___d1gfG",G="index-module__rightTop___GNfeU",T="index-module__productBox___WhMJP",C="index-module__productName___pS_uz",w="index-module__shipMode____o_Ty",O="index-module__colorsBox___hfJ1I",S="index-module__colorNameOne___PG4K3",M="index-module__colorName___RzzOy",z="index-module__colorNameTwo___r2EM2",A="index-module__lineOne___AXss7",D="index-module__bottomMsg___fiE5s",P="index-module__msgLeft___XbIfl",F="index-module__msgRight___kWkAV",Y="index-module__msgRightOne___Bh2Lj",q="index-module__bottomBox___H9QWT",L="index-module__seeButon___WJeYZ",I="index-module__tag___pdx2R",E=l(4812),W=l(3407),J=l(2213),K=l(5893),H=function(e){return e[e.Refunded=3]="Refunded",e[e.RefundedBefore=5]="RefundedBefore",e[e.RefundedAfter=6]="RefundedAfter",e}(H||{}),Q=function(e){return e[e.TypeOne=2]="TypeOne",e}(Q||{}),U=function ItemList(e){var o,l,n,d,t,i,u,s,_,c,m,v,f,x,U,V,X,$,ee,oe,le,ne,de,te,ie,ue,se,ae,re,_e,ce,me,ve,fe,xe=(0,r.useMemo)((function(){return(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?null==e?void 0:e.obj.product_list:null==e?void 0:e.obj.quality_check_pass_product}),[null==e?void 0:e.obj]),je=(0,r.useCallback)((function(e){return{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url}}),[]),pe=(0,r.useMemo)((function(){return(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.type)==Q.TypeOne?null==e?void 0:e.obj.total_fabrics:void 0:null==e?void 0:e.obj.total_fabrics:null==e?void 0:e.obj.quality_check_pass_fabrics}),[null==e?void 0:e.obj]),he=(0,r.useMemo)((function(){return(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.type)==Q.TypeOne?null==e?void 0:e.obj.total_colors:void 0:null==e?void 0:e.obj.total_colors:null==e?void 0:e.obj.quality_check_pass_colors}),[null==e?void 0:e.obj]),be=(0,r.useMemo)((function(){return(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0==(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||0==(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.total_number)/100:void 0:(null==e?void 0:e.obj.total_number)/100:null==e?void 0:e.obj.total_number:(null==e?void 0:e.obj.quality_check_pass_number)/100:null==e?void 0:e.obj.quality_check_pass_number}),[null==e?void 0:e.obj]),ge=(0,r.useMemo)((function(){var o,l,n,d,t,i,u,s,a,r,_,c,m,v,f;return(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0==(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||0==(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e||null===(m=e.obj)||void 0===m||null===(v=m.product_list[0])||void 0===v||null===(f=v.product_colors[0])||void 0===f?void 0:f.length)/100:void 0:(null==e||null===(r=e.obj)||void 0===r||null===(_=r.product_list[0])||void 0===_||null===(c=_.product_colors[0])||void 0===c?void 0:c.length)/100:(null==e||null===(u=e.obj)||void 0===u||null===(s=u.quality_check_pass_product[0])||void 0===s||null===(a=s.product_colors[0])||void 0===a?void 0:a.length)/100:null==e||null===(d=e.obj)||void 0===d||null===(t=d.product_list[0])||void 0===t||null===(i=t.product_colors[0])||void 0===i?void 0:i.roll:null==e||null===(o=e.obj)||void 0===o||null===(l=o.quality_check_pass_product[0])||void 0===l||null===(n=l.product_colors[0])||void 0===n?void 0:n.return_roll}),[null==e?void 0:e.obj]),ye=(0,r.useMemo)((function(){var o,l,n,d,t,i,u,s,a,r,_,c,m,v,f;return(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||0!=(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)!=H.Refunded&&(null==e?void 0:e.obj.stage)!=H.RefundedBefore&&(null==e?void 0:e.obj.stage)!=H.RefundedAfter||0==(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.stage)==H.Refunded&&(null==e?void 0:e.obj.stage)==H.RefundedBefore&&(null==e?void 0:e.obj.stage)==H.RefundedAfter||0==(null==e?void 0:e.obj.sale_mode)||(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e?void 0:e.obj.type)==Q.TypeOne?(null==e||null===(m=e.obj)||void 0===m||null===(v=m.product_list[0])||void 0===v||null===(f=v.product_colors[1])||void 0===f?void 0:f.length)/100:void 0:(null==e||null===(r=e.obj)||void 0===r||null===(_=r.product_list[0])||void 0===_||null===(c=_.product_colors[1])||void 0===c?void 0:c.length)/100:(null==e||null===(u=e.obj)||void 0===u||null===(s=u.quality_check_pass_product[0])||void 0===s||null===(a=s.product_colors[1])||void 0===a?void 0:a.length)/100:null==e||null===(d=e.obj)||void 0===d||null===(t=d.product_list[0])||void 0===t||null===(i=t.product_colors[1])||void 0===i?void 0:i.roll:null==e||null===(o=e.obj)||void 0===o||null===(l=o.quality_check_pass_product[0])||void 0===l||null===(n=l.product_colors[1])||void 0===n?void 0:n.return_roll}),[null==e?void 0:e.obj]);return console.log(xe,"wwww"),(0,K.jsxs)(a.G7,{className:p,onClick:function onClick(){return function navTo(o){var l,n;1==o.type?j().navigateTo({url:"/pages/refundDetail/index?id=".concat(null==e||null===(l=e.obj)||void 0===l?void 0:l.id)}):j().navigateTo({url:"/pages/refundMoneyDetail/index?id=".concat(null==e||null===(n=e.obj)||void 0===n?void 0:n.id)})}(e.obj)},children:[(0,K.jsxs)(a.G7,{className:h,children:[(0,K.jsxs)(a.G7,{className:b,children:["单号:",null==e||null===(o=e.obj)||void 0===o?void 0:o.order_no]}),(0,K.jsx)(a.G7,{className:g,children:null==e||null===(l=e.obj)||void 0===l?void 0:l.stage_name})]}),(0,K.jsx)(a.G7,{className:y,children:null==e||null===(n=e.obj)||void 0===n?void 0:n.purchaser_name}),(0,K.jsx)(a.G7,{className:B}),(0,K.jsxs)(a.G7,{className:N,children:[(0,K.jsx)(a.G7,{style:{minWidth:"24%"},children:(0,K.jsxs)(a.G7,{className:Z,children:[""===(null==e||null===(d=e.obj)||void 0===d||null===(t=d.product_list[0])||void 0===t?void 0:t.texture_url)&&(0,K.jsx)(a.Ee,{className:Z,mode:"aspectFill",src:"https://test.cdn.zzfzyc.com/mall/no_img.png"}),""!==(null==e||null===(i=e.obj)||void 0===i||null===(u=i.product_list[0])||void 0===u?void 0:u.texture_url)&&(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(W.Z,{value:je(null==e||null===(s=e.obj)||void 0===s||null===(_=s.product_list)||void 0===_?void 0:_[0])})}),(0,K.jsxs)(a.G7,{className:k,children:["颜色 (",null==e||null===(c=e.obj)||void 0===c?void 0:c.total_colors,")"]})]})}),(0,K.jsxs)(a.G7,{className:R,children:[(0,K.jsxs)(a.G7,{className:G,children:[(0,K.jsxs)(a.G7,{className:T,children:[(0,K.jsxs)(a.G7,{className:C,children:[null==e||null===(m=e.obj)||void 0===m||null===(v=m.product_list[0])||void 0===v?void 0:v.code," ",null==e||null===(f=e.obj)||void 0===f||null===(x=f.product_list[0])||void 0===x?void 0:x.name]}),(0,K.jsx)(J.Z,{saleMode:null==e||null===(U=e.obj)||void 0===U?void 0:U.sale_mode,size:"small",customClassName:I})]}),(0,K.jsx)(a.G7,{className:w,children:null==e||null===(V=e.obj)||void 0===V?void 0:V.shipment_mode_name})]}),(0,K.jsxs)(a.G7,{className:O,children:[(0,K.jsxs)(a.G7,{className:S,children:[null===(X=xe[0])||void 0===X||null===($=X.product_colors[0])||void 0===$?void 0:$.code," ",null===(ee=xe[0])||void 0===ee||null===(oe=ee.product_colors[0])||void 0===oe?void 0:oe.name]}),(0,K.jsxs)(a.G7,{className:M,children:["x",ge," ",0===(null==e||null===(le=e.obj)||void 0===le?void 0:le.sale_mode)?"条":"m"]}),(0,K.jsxs)(a.G7,{className:z,children:["¥ ",(null===(ne=xe[0])||void 0===ne||null===(de=ne.product_colors[0])||void 0===de?void 0:de.sale_price)/100,"/kg"]})]}),(null===(te=xe[0])||void 0===te||null===(ie=te.product_colors)||void 0===ie?void 0:ie.length)>1&&(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(a.G7,{className:O,children:[(0,K.jsxs)(a.G7,{className:S,children:[null===(ue=xe[0])||void 0===ue||null===(se=ue.product_colors[1])||void 0===se?void 0:se.code," ",null===(ae=xe[0])||void 0===ae||null===(re=ae.product_colors[1])||void 0===re?void 0:re.name]}),(0,K.jsxs)(a.G7,{className:M,children:["x",ye," ",0===(null==e||null===(_e=e.obj)||void 0===_e?void 0:_e.sale_mode)?"条":"m"]}),(0,K.jsxs)(a.G7,{className:z,children:["¥ ",(null===(ce=xe[0])||void 0===ce||null===(me=ce.product_colors[1])||void 0===me?void 0:me.sale_price)/100,"/kg"]})]})})]})]}),(0,K.jsx)(a.G7,{className:A}),(0,K.jsxs)(a.G7,{className:D,children:[(0,K.jsx)(a.G7,{className:P,children:"布料信息:"}),(0,K.jsxs)(a.G7,{className:F,children:[pe," 种面料,",he," 种颜色,共 ",be," ",0===(null==e||null===(ve=e.obj)||void 0===ve?void 0:ve.sale_mode)?"条":"m"]})]}),3==(null==e?void 0:e.obj.stage)&&(0,K.jsxs)(a.G7,{className:D,children:[(0,K.jsx)(a.G7,{className:P,children:"退款金额:"}),(0,K.jsxs)(a.G7,{className:Y,children:["¥",(0,E.yb)(null==e||null===(fe=e.obj)||void 0===fe?void 0:fe.refund_amount)]})]}),0==e.obj.sale_mode&&3==(null==e?void 0:e.obj.stage)&&(1==(null==e?void 0:e.obj.type)||3==(null==e?void 0:e.obj.type))&&(0,K.jsx)(a.G7,{className:q,children:(0,K.jsx)(a.G7,{className:L,onClick:function onClick(o){var l;null==e||null===(l=e.handSee)||void 0===l||l.call(e,o)},children:"查看码单"})})]})},V=(0,r.memo)(U),X="index-module__flexBox___POPwW",$="index-module__itemBox___hiqW7",ee="index-module__itemFont___le1sZ",oe="index-module__activeItems___dJzCf",le="index-module__borderBox___Uhjtr",ne=function Tabs(e){var o=e.list,l=void 0===o?[]:o,n=e.handChose;return(0,K.jsx)(a.G7,{className:X,children:l.map((function(e,o){return(0,K.jsxs)(a.G7,{className:$,onClick:function onClick(){return null==n?void 0:n(e)},children:[(0,K.jsx)(a.G7,{className:c()(e.showBorder?oe:ee),children:null==e?void 0:e.name}),e.showBorder&&(0,K.jsx)(a.G7,{className:le})]},o)}))})},de=(0,r.memo)(ne),te=l(4489),ie=l(7227),ue=l(5989),se=l(9335),ae=l(8184),re=l(4558),_e=l(6028),ce=l(7453),me=function RefundPage(){var e,o=(0,r.useState)({status:1,page:1,size:10,name:"",sale_mode:"不限",stage:"不限",return_type:"不限",sale_start_time:"",sale_end_time:""}),l=(0,s.Z)(o,2),n=l[0],_=l[1],m=(0,r.useRef)({size:n.size,page:n.page}),x=(0,ae.Df)(),j=x.fetchData,p=x.state,h=(0,r.useState)({list:[],total:0}),b=(0,s.Z)(h,2),g=b[0],y=b[1],B=(0,r.useCallback)((function(e){m.current.page=1,y((function(){return{list:[],total:0}})),_((function(o){return(0,u.Z)((0,u.Z)({},o),{},{name:e,size:10})}))}),[]),N=(0,r.useState)(!1),Z=(0,s.Z)(N,2),k=Z[0],R=Z[1],G=(0,r.useMemo)((function(){return(0,ie.rA)({list:g.list,total:g.total,status:p.loading})}),[g,p]),T=(0,r.useCallback)((function(){if(g.list.length<g.total){m.current.page++;var e=m.current.size*m.current.page;_((0,u.Z)((0,u.Z)({},n),{},{size:e}))}}),[g]),C=(0,r.useState)([{id:1,name:"售后申请",showBorder:!0},{id:2,name:"申请记录",showBorder:!1}]),w=(0,s.Z)(C,2),O=w[0],S=w[1],M=function handChose(e){e.id!==n.status&&O.forEach((function(o){o.id===e.id?o.showBorder=!0:o.showBorder=!1,S((0,i.Z)(O)),m.current.page=1,y((function(){return{list:[],total:0}})),_((function(o){return(0,u.Z)((0,u.Z)({},o),{},{size:10,status:e.id})}))}))},z=(0,r.useState)(!1),A=(0,s.Z)(z,2),D=A[0],P=A[1],F=function closePopup(){P(!1)},Y=(0,r.useState)([{id:"",name:"不限"},{id:0,name:"大货"},{id:1,name:"剪版"},{id:2,name:"散剪"}]),q=(0,s.Z)(Y,2),L=q[0],I=q[1],E=(0,r.useState)([]),W=(0,s.Z)(E,2),J=W[0],H=W[1],Q=(0,ae.Hf)().fetchData,U=function(){var e=(0,t.Z)((0,d.Z)().mark((function _callee(){var e;return(0,d.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Q();case 2:(e=o.sent).data&&(e.data.list.unshift({id:"",name:"不限",checked:!1}),e.data.list.map((function(e){return e.checked=!1,e})),H((0,i.Z)(e.data.list)));case 4:case"end":return o.stop()}}),_callee)})));return function getStagelist(){return e.apply(this,arguments)}}(),X=(0,r.useState)([]),$=(0,s.Z)(X,2),ee=$[0],oe=$[1],le=(0,ae.vI)().fetchData,ne=function(){var e=(0,t.Z)((0,d.Z)().mark((function _callee2(){var e;return(0,d.Z)().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,le();case 2:(e=o.sent).data&&(e.data.list.unshift({id:"",name:"不限",checked:!1}),e.data.list.map((function(e){return e.checked=!1,e})),oe((0,i.Z)(e.data.list)));case 4:case"end":return o.stop()}}),_callee2)})));return function getTypeList(){return e.apply(this,arguments)}}(),me=(0,r.useMemo)((function(){return"不限"===n.stage&&"不限"===n.sale_mode&&"不限"===n.return_type&&""===n.sale_start_time&&""===n.sale_end_time}),[n]),ve=function resetArr(e){return e.map((function(e){return e.checked=!1,e})),e},fe=(0,r.useState)(!1),xe=(0,s.Z)(fe,2),je=xe[0],pe=xe[1],he=new Date,be=(0,r.useState)(he.toLocaleDateString()),ge=(0,s.Z)(be,2),ye=ge[0],Be=ge[1],Ne=(0,r.useState)(""),Ze=(0,s.Z)(Ne,2),ke=Ze[0],Re=Ze[1],Ge=function(){var e=(0,t.Z)((0,d.Z)().mark((function _callee3(){var e;return(0,d.Z)().wrap((function _callee3$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,j((0,u.Z)({},n));case 2:e=o.sent,y((function(o){var l,n;return(0,u.Z)((0,u.Z)({},o),{},{list:null===(l=e.data)||void 0===l?void 0:l.list,total:null===(n=e.data)||void 0===n?void 0:n.total})})),R(!1);case 5:case"end":return o.stop()}}),_callee3)})));return function getOrderList(){return e.apply(this,arguments)}}(),Te=(0,r.useMemo)((function(){return""!==ke?"".concat(ye," ")+"-"+" ".concat(ke):"自定义起始时间"}),[ke]),Ce=function(){var e=(0,t.Z)((0,d.Z)().mark((function _callee4(){return(0,d.Z)().wrap((function _callee4$(e){for(;;)switch(e.prev=e.next){case 0:m.current.page=1,R(!0),_((function(e){return(0,u.Z)((0,u.Z)({},e),{},{size:10})})),Ge();case 4:case"end":return e.stop()}}),_callee4)})));return function getRefresherRefresh(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){_(n)}),[n]);var we=(0,r.useState)(!1),Oe=(0,s.Z)(we,2),Se=Oe[0],Me=Oe[1],ze=(0,r.useState)({}),Ae=(0,s.Z)(ze,2),De=Ae[0],Pe=Ae[1];return(0,r.useEffect)((function(){U(),ne()}),[]),(0,r.useEffect)((function(){Ge()}),[n.size,n.name,n.status,n.sale_start_time,n.sale_end_time,n.sale_mode,n.return_type,n.stage]),(0,K.jsxs)(a.G7,{className:f.refundPage,children:[(0,K.jsx)(a.G7,{style:{background:"#FFFFFF",paddingLeft:"20rpx",paddingBottom:"20rpx",position:"sticky",top:"0",zIndex:"99"},children:(0,K.jsx)(te.Z,{placeholder:"搜索商品/名称/颜色/订单号",showBtn:!1,changeOnSearch:B,children:(0,K.jsxs)(a.G7,{className:f.flexBox,onClick:function onClick(){return function showSelctPopup(){P(!0)}()},children:[(0,K.jsx)(_e.Z,{name:"icon-shaixuan",size:35,color:me?"":"#0D7CFF",customClassName:f.activeshaixuan}),(0,K.jsx)(a.G7,{className:c()(me?f.shaixuan:f.activeshai),children:"筛选"})]})})}),(0,K.jsx)(de,{list:O,handChose:function handChose(e){return null==M?void 0:M(e)}}),(0,K.jsx)(a.G7,{className:f.order_list,children:(0,K.jsx)(se.Z,{statusMore:G,selfonScrollToLower:T,refresherEnabled:!0,refresherTriggered:k,selfOnRefresherRefresh:Ce,children:null==g||null===(e=g.list)||void 0===e?void 0:e.map((function(e,o){return(0,K.jsx)(a.G7,{className:f.order_item_con,children:(0,K.jsx)(V,{obj:e,handSee:function handSee(o){return function handSee(e,o){e.stopPropagation(),Pe(o),Me(!0)}(o,e)}},o)},e.id)}))})}),(0,K.jsx)(ue.Z,{title:"筛选订单",show:D,onClose:F,children:(0,K.jsxs)(a.G7,{className:f.popupBox,children:[(0,K.jsxs)(a.pf,{className:f.scrllStyle,scrollY:!0,children:[(0,K.jsxs)(a.G7,{className:f.thirdBox,children:[(0,K.jsx)(a.G7,{className:f.thirdTopfont,children:"售后状态"}),(0,K.jsx)(a.G7,{className:f.flexModebox,children:J.map((function(e,o){return(0,K.jsx)(a.G7,{onClick:function onClick(){!function handCheckStange(e){J.map((function(o){return o.id===e.id?o.checked=!0:o.checked=!1,o})),H((0,i.Z)(J)),_((function(o){return(0,u.Z)((0,u.Z)({},o),{},{stage:e.id})}))}(e)},className:c()(f.modeBox,e.checked&&f.activemodeBox),children:e.name},o)}))})]}),(0,K.jsxs)(a.G7,{className:f.thirdBox,children:[(0,K.jsx)(a.G7,{className:f.thirdTopfont,children:"订单类型"}),(0,K.jsx)(a.G7,{className:f.flexModebox,children:L.map((function(e,o){return(0,K.jsx)(a.G7,{onClick:function onClick(){!function handCheckMode(e){L.map((function(o){return o.id===e.id?o.checked=!0:o.checked=!1,o})),I((0,i.Z)(L)),_((function(o){return(0,u.Z)((0,u.Z)({},o),{},{sale_mode:e.id})}))}(e)},className:c()(f.modeBox,e.checked&&f.activemodeBox),children:e.name},o)}))})]}),(0,K.jsxs)(a.G7,{className:f.thirdBox,children:[(0,K.jsx)(a.G7,{className:f.thirdTopfont,children:"退款类型"}),(0,K.jsx)(a.G7,{className:f.flexModebox,children:ee.map((function(e,o){return(0,K.jsx)(a.G7,{onClick:function onClick(){!function handType(e){ee.map((function(o){return o.id===e.id?o.checked=!0:o.checked=!1,o})),oe((0,i.Z)(ee)),_((function(o){return(0,u.Z)((0,u.Z)({},o),{},{return_type:e.id})}))}(e)},className:c()(f.modeBox,e.checked&&f.activemodeBox),children:e.name},o)}))})]}),(0,K.jsxs)(a.G7,{className:f.thirdBox,children:[(0,K.jsx)(a.G7,{className:f.thirdTopfont,children:"售后时间"}),(0,K.jsxs)(a.G7,{className:c()(f.timeBox2,"自定义起始时间"!==Te&&f.activemodeBox),onClick:function onClick(){pe(!0)},children:[Te,(0,K.jsx)(a.G7,{className:f.more,children:"自定义起始时间"==Te&&(0,K.jsx)(_e.Z,{name:"icon-chakanquanbukehu",color:"#848484",size:40,customClassName:f.more})})]})]})]}),(0,K.jsxs)(a.G7,{className:f.bottomBox,children:[(0,K.jsx)(a.zx,{className:f.resetBox,onClick:function onClick(){!function handReset(){var e=ve(L);I((0,i.Z)(e));var o=ve(ee);oe((0,i.Z)(o));var l=ve(J);H((0,i.Z)(l)),_((function(e){return(0,u.Z)((0,u.Z)({},e),{},{sale_mode:"不限",stage:"不限",return_type:"不限",sale_start_time:"",sale_end_time:""})})),Be(he.toLocaleDateString()),Re(""),F()}()},children:" 重置"}),(0,K.jsx)(a.zx,{className:c()(me?f.button2:f.activeButton),disabled:me,onClick:function onClick(){return function handSure(){m.current.page=1,_((function(e){return(0,u.Z)((0,u.Z)({},e),{},{size:10})})),null==P||P(!1),Ge()}()},children:" 确认"})]})]})}),(0,K.jsx)(re.Z,{start:ye,end:ke,showTime:je,closePopup:function handClose(){pe(!1)},onSelectDate:function onSelectDate(e){return function handTime(e){var o,l;if(0===Object.keys(e).length){var n={start:"",end:""};n.start="".concat(v()(new Date("".concat(null==he?void 0:he.toLocaleDateString()," ")+"00:00:00")).format("YYYY-MM-DD")," 00:00:00"),n.end="".concat(v()(new Date(null==n?void 0:n.start)).add(1,"day").format("YYYY-MM-DD")," 00:00:00"),e.value=n}_((function(o){var l,n;return(0,u.Z)((0,u.Z)({},o),{},{sale_start_time:null==e||null===(l=e.value)||void 0===l?void 0:l.start,sale_end_time:null==e||null===(n=e.value)||void 0===n?void 0:n.end,size:10})})),Be(null==e||null===(o=e.value)||void 0===o?void 0:o.start),Re(null==e||null===(l=e.value)||void 0===l?void 0:l.end),pe(!1),console.log(e,6666)}(e)}}),(0,K.jsx)(ce.Z,{obj:De,showPopup:Se,popupClose:function popupClose(){return Me(!1)}})]})};Page((0,n.createPageConfig)(me,"pages/refundPage/index",{root:{cn:[]}},{navigationBarTitleText:"退款/售后"}||{}))}},function(e){e.O(0,[2107,1216,8592],(function(){return o=8437,e(e.s=o);var o}));e.O()}]); |