"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6563],{9030:function(e,o,n){var t=n(9975),l=n(2982),i=n(4165),a=n(1413),r=n(5861),c=n(885),s=n(1515),d=n(9792),u=n(1251),_="index-module__order_status_list___k66cU",m="index-module__order_status_item___rcQLA",x="index-module__selected___RLILI",f="index-module__order_list_scroll___mbA1_",h=n(6408),p=n.n(h),v=n(5513),g=(0,d.memo)((function(e){var o=e.list,n=void 0===o?[]:o,t=e.defaultId,l=void 0===t?null:t,i=e.onSelect,r=(0,d.useState)({selected:-1,tabId:""}),u=(0,c.Z)(r,2),h=u[0],g=u[1];(0,d.useEffect)((function(){if("number"==typeof l&&l>=0){var e=null==n?void 0:n.findIndex((function(e){return e.id==l}));if(-1!==e){var o=e>0?e-1:0;g((function(e){return(0,a.Z)((0,a.Z)({},e),{},{tabId:n[o].id.toString()})}))}}g((function(e){return(0,a.Z)((0,a.Z)({},e),{},{selected:l||-1})}))}),[l]);return(0,v.jsx)(s.G7,{className:_,children:(0,v.jsx)(s.pf,{scrollX:!0,scrollIntoView:"tabs_".concat(h.tabId),scrollWithAnimation:!0,children:(0,v.jsx)(s.G7,{className:f,children:n.map((function(e,o){return(0,v.jsx)(s.G7,{id:"tabs_".concat(e.id),onClick:function onClick(){return function clickEvent(e){var o=e.item,t=e.index,l=t>0?t-1:0;g((function(e){return(0,a.Z)((0,a.Z)({},e),{},{tabId:n[l].id.toString(),selected:o.id})})),null==i||i(o.id)}({item:e,index:o})},className:p()(m,h.selected==e.id&&x),children:e.name},e.id)}))})})})})),j=n(5032),b=n(7227),N={common_safe_area_y:"index-module__common_safe_area_y___P1Do_","flex-col":"index-module__flex-col___JnRad","flex-row":"index-module__flex-row___lBkWj","justify-between":"index-module__justify-between___Eoh75","items-center":"index-module__items-center___Q9UGv","flex-item":"index-module__flex-item___G8khT","full-100":"index-module__full-100___Dh8iF","color-blue":"index-module__color-blue___SV3iG","color-yellow":"index-module__color-yellow___cQjXZ","color-green":"index-module__color-green___ib23v","color-grey":"index-module__color-grey___KVUuL","color-white":"index-module__color-white___CcsbJ",flexBox:"index-module__flexBox___zJAJh",icon_shaixuan:"index-module__icon_shaixuan___ZLiRQ",activeshaixuan:"index-module__activeshaixuan___rHn4Q",shaixuan:"index-module__shaixuan___Hlvjt",activeshai:"index-module__activeshai___Nf47_",popupBox:"index-module__popupBox___NrHv7",topBox:"index-module__topBox___lVlZ6",leftTop:"index-module__leftTop___RoELY",lefttopTitle:"index-module__lefttopTitle___Rv_iD",lefttopSelectBox:"index-module__lefttopSelectBox___X26l6",lefttopSelectName:"index-module__lefttopSelectName___jWuQz",icon_more:"index-module__icon_more___ZuQ9q",activelefttopSelectBox:"index-module__activelefttopSelectBox___bu1fh",secondBox:"index-module__secondBox___BoNjH",secondTopfont:"index-module__secondTopfont___zdFhL",inputBox:"index-module__inputBox___ynOAj",orderInput:"index-module__orderInput___pjQvs",saomiao:"index-module__saomiao___xFk0W",thirdBox:"index-module__thirdBox___PWSQH",thirdTopfont:"index-module__thirdTopfont___Gs7HO",flexModebox:"index-module__flexModebox___rs5Sr",activemodeBox:"index-module__activemodeBox___mVovb",modeBox:"index-module__modeBox___kcNx0",bottomBox:"index-module__bottomBox___sebvs",resetBox:"index-module__resetBox___fGGEZ",button:"index-module__button___GU26e",activeButton:"index-module__activeButton___D0M1j",order_list:"index-module__order_list___RoU_W",bigBpx:"index-module__bigBpx___pO8tV",kongboxTwo:"index-module__kongboxTwo____wJnY"},Z=n(5854),k=n(4909),w=n(2535),G=n.n(w),y="index-module__itemBox___r2hfd",S="index-module__topItem___p12RW",B="index-module__orderNo___ee0pt",C="index-module__status___mfwsO",T="index-module__pussName___OFHb2",I="index-module__line___bwG9I",z="index-module__contBox___z18C3",L="index-module__leftCont___lAQ2l",P="index-module__leftContNums___NYM9g",F="index-module__rightCont___zh7yE",R="index-module__rightTop___CTR2z",D="index-module__productBox___ZRAps",O="index-module__productName___BYyH2",M="index-module__productMode___FoG3x",E="index-module__shipMode___m7eRw",$="index-module__colorsBox___AGf69",A="index-module__colorNameOne___DByBc",Q="index-module__colorName___J5hr_",J="index-module__colorNameTwo___DxtPY",H="index-module__lineOne___AvPrw",U="index-module__bottomMsg___Ol2O_",V="index-module__msgLeft____ZLLS",W="index-module__msgRight___SR_rw",Y="index-module__msgRightOne___IJhUL",q="index-module__bottomBox___rpUFB",X=n(6631),K=n(4812),ee=(0,d.memo)((function(e){var o,n,t,l,i,a,r,c,d,u,_,m,x,f,h,p,g,j,b,N,Z,k,w,ee,oe,ne,te,le,ie,ae,re,ce,se,de,ue,_e,me,xe,fe,he,pe,ve,ge,je,be,Ne,Ze,ke,we,Ge,ye,Se,Be,Ce,Te,Ie,ze,Le,Pe,Fe,Re,De,Oe,Me,Ee,$e,Ae;return(0,v.jsxs)(s.G7,{className:y,onClick:function onClick(o){return function navTo(o){var n;G().navigateTo({url:"/pages/orderDetails/index?id="+(null==e||null===(n=e.obj)||void 0===n?void 0:n.id)})}()},children:[(0,v.jsxs)(s.G7,{className:S,children:[(0,v.jsxs)(s.G7,{className:B,children:["单号:",null==e||null===(o=e.obj)||void 0===o?void 0:o.order_no]}),(0,v.jsx)(s.G7,{className:C,children:null==e||null===(n=e.obj)||void 0===n?void 0:n.status_name})]}),(0,v.jsx)(s.G7,{className:T,children:null==e||null===(t=e.obj)||void 0===t?void 0:t.purchaser_name}),(0,v.jsx)(s.G7,{className:I}),(0,v.jsxs)(s.G7,{className:z,children:[(0,v.jsx)(s.G7,{className:L,style:{backgroundColor:"rgb(".concat(null==e||null===(l=e.obj)||void 0===l||null===(i=l.product_list[0])||void 0===i||null===(a=i.product_colors[0])||void 0===a||null===(r=a.rgb)||void 0===r?void 0:r.r," ").concat(null==e||null===(c=e.obj)||void 0===c||null===(d=c.product_list[0])||void 0===d||null===(u=d.product_colors[0])||void 0===u||null===(_=u.rgb)||void 0===_?void 0:_.g," ").concat(null==e||null===(m=e.obj)||void 0===m||null===(x=m.product_list[0])||void 0===x||null===(f=x.product_colors[0])||void 0===f||null===(h=f.rgb)||void 0===h?void 0:h.b,")")},children:(0,v.jsxs)(s.G7,{className:P,children:["颜色 (",null==e||null===(p=e.obj)||void 0===p?void 0:p.total_colors,")"]})}),(0,v.jsxs)(s.G7,{className:F,children:[(0,v.jsxs)(s.G7,{className:R,children:[(0,v.jsxs)(s.G7,{className:D,children:[(0,v.jsxs)(s.G7,{className:O,children:[null==e||null===(g=e.obj)||void 0===g||null===(j=g.product_list[0])||void 0===j?void 0:j.code," ",null==e||null===(b=e.obj)||void 0===b||null===(N=b.product_list[0])||void 0===N?void 0:N.name]}),(0,v.jsx)(s.G7,{className:M,children:0===(null==e||null===(Z=e.obj)||void 0===Z?void 0:Z.sale_mode)?"大货":1===(null==e||null===(k=e.obj)||void 0===k?void 0:k.sale_mode)?"剪版":"散剪"})]}),(0,v.jsx)(s.G7,{className:E,children:null==e||null===(w=e.obj)||void 0===w?void 0:w.shipment_mode_name})]}),(0,v.jsxs)(s.G7,{className:$,children:[(0,v.jsxs)(s.G7,{className:A,children:[null==e||null===(ee=e.obj)||void 0===ee||null===(oe=ee.product_list[0])||void 0===oe||null===(ne=oe.product_colors[0])||void 0===ne?void 0:ne.code," ",null==e||null===(te=e.obj)||void 0===te||null===(le=te.product_list[0])||void 0===le||null===(ie=le.product_colors[0])||void 0===ie?void 0:ie.name]}),(0,v.jsxs)(s.G7,{className:Q,children:["x",0===(null==e||null===(ae=e.obj)||void 0===ae?void 0:ae.sale_mode)?null==e||null===(re=e.obj)||void 0===re||null===(ce=re.product_list[0])||void 0===ce||null===(se=ce.product_colors[0])||void 0===se?void 0:se.roll:(null==e||null===(de=e.obj)||void 0===de||null===(ue=de.product_list[0])||void 0===ue||null===(_e=ue.product_colors[0])||void 0===_e?void 0:_e.length)/100," ",0===(null==e||null===(me=e.obj)||void 0===me?void 0:me.sale_mode)?"条":"m"]}),(0,v.jsxs)(s.G7,{className:J,children:["¥ ",(null==e||null===(xe=e.obj)||void 0===xe||null===(fe=xe.product_list[0])||void 0===fe||null===(he=fe.product_colors[0])||void 0===he?void 0:he.sale_price)/100,"/kg"]})]}),(null==e||null===(pe=e.obj)||void 0===pe||null===(ve=pe.product_list[0])||void 0===ve||null===(ge=ve.product_colors)||void 0===ge?void 0:ge.length)>1&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(s.G7,{className:$,children:[(0,v.jsxs)(s.G7,{className:A,children:[null==e||null===(je=e.obj)||void 0===je||null===(be=je.product_list[0])||void 0===be||null===(Ne=be.product_colors[1])||void 0===Ne?void 0:Ne.code," ",null==e||null===(Ze=e.obj)||void 0===Ze||null===(ke=Ze.product_list[0])||void 0===ke||null===(we=ke.product_colors[1])||void 0===we?void 0:we.name]}),(0,v.jsxs)(s.G7,{className:Q,children:["x",0===(null==e||null===(Ge=e.obj)||void 0===Ge?void 0:Ge.sale_mode)?null==e||null===(ye=e.obj)||void 0===ye||null===(Se=ye.product_list[0])||void 0===Se||null===(Be=Se.product_colors[1])||void 0===Be?void 0:Be.roll:(null==e||null===(Ce=e.obj)||void 0===Ce||null===(Te=Ce.product_list[0])||void 0===Te||null===(Ie=Te.product_colors[1])||void 0===Ie?void 0:Ie.length)/100," ",0===(null==e||null===(ze=e.obj)||void 0===ze?void 0:ze.sale_mode)?"条":"m"]}),(0,v.jsxs)(s.G7,{className:J,children:["¥ ",(null==e||null===(Le=e.obj)||void 0===Le||null===(Pe=Le.product_list[0])||void 0===Pe||null===(Fe=Pe.product_colors[1])||void 0===Fe?void 0:Fe.sale_price)/100,"/kg"]})]})})]})]}),(0,v.jsx)(s.G7,{className:H}),(0,v.jsxs)(s.G7,{className:U,children:[(0,v.jsx)(s.G7,{className:V,children:"布料信息:"}),(0,v.jsxs)(s.G7,{className:W,children:[null==e||null===(Re=e.obj)||void 0===Re?void 0:Re.total_fabrics," 种面料,",null==e||null===(De=e.obj)||void 0===De?void 0:De.total_colors," 种颜色,共 ",0===(null==e||null===(Oe=e.obj)||void 0===Oe?void 0:Oe.sale_mode)?null==e||null===(Me=e.obj)||void 0===Me?void 0:Me.total_number:(null==e||null===(Ee=e.obj)||void 0===Ee?void 0:Ee.total_number)/100," ",0===(null==e||null===($e=e.obj)||void 0===$e?void 0:$e.sale_mode)?"条":"m"]})]}),(0,v.jsxs)(s.G7,{className:U,children:[(0,v.jsx)(s.G7,{className:V,children:"预估金额:"}),(0,v.jsxs)(s.G7,{className:Y,children:["¥",(0,K.yb)(null==e||null===(Ae=e.obj)||void 0===Ae?void 0:Ae.estimate_amount)]})]}),(0,v.jsx)(s.G7,{className:q,children:(0,v.jsx)(X.Z,{obj:null==e?void 0:e.obj,cancle:function cancle(o){var n;return null==e||null===(n=e.cancle)||void 0===n?void 0:n.call(e,o,null==e?void 0:e.obj)},nextBuy:function nextBuy(o){var n;return null==e||null===(n=e.nextBuy)||void 0===n?void 0:n.call(e,o,null==e?void 0:e.obj)},toPay:function toPay(o){var n;return null==e||null===(n=e.toPay)||void 0===n?void 0:n.call(e,o,null==e?void 0:e.obj)}})})]})})),oe=n(1062),ne=n(3772),te=n(6028);Page((0,t.createPageConfig)((function(){var e,o=(0,d.useState)({status:-1,page:1,size:10,order_no:""}),n=(0,c.Z)(o,2),t=n[0],_=n[1],m=(0,u.Vy)(),x=m.fetchData,f=m.state,h=(0,d.useState)({list:[],total:0}),y=(0,c.Z)(h,2),S=y[0],B=y[1],C=function(){var e=(0,r.Z)((0,i.Z)().mark((function _callee(){var e;return(0,i.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,x((0,a.Z)((0,a.Z)({},(0,b.mB)(t)),(0,b.mB)(le)));case 2:e=o.sent,B((function(o){var n,t;return(0,a.Z)((0,a.Z)({},o),{},{list:null===(n=e.data)||void 0===n?void 0:n.list,total:null===(t=e.data)||void 0===t?void 0:t.total})})),Y(!1),L((function(){return!1}));case 6:case"end":return o.stop()}}),_callee)})));return function getOrderList(){return e.apply(this,arguments)}}(),T=(0,d.useState)(!1),I=(0,c.Z)(T,2),z=I[0],L=I[1],P=function(){var e=(0,r.Z)((0,i.Z)().mark((function _callee2(){return(0,i.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:R.current.size=1,L(!0),_((function(e){return(0,a.Z)((0,a.Z)({},e),{},{size:10})}));case 3:case"end":return e.stop()}}),_callee2)})));return function getRefresherRefresh(){return e.apply(this,arguments)}}(),F=(0,d.useMemo)((function(){return(0,b.rA)({list:S.list,total:S.total,status:f.loading})}),[S,f]),R=(0,d.useRef)({size:t.size,page:t.page}),D=(0,d.useCallback)((function(){if(S.list.length