"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),c=n(5861),r=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_",p=n(6408),h=n.n(p),v=n(5513),j=(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,c=(0,d.useState)({selected:-1,tabId:""}),u=(0,r.Z)(c,2),p=u[0],j=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;j((function(e){return(0,a.Z)((0,a.Z)({},e),{},{tabId:n[o].id.toString()})}))}}j((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(p.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;j((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:h()(m,p.selected==e.id&&x),children:e.name},e.id)}))})})})})),g=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",B="index-module__topItem___p12RW",S="index-module__orderNo___ee0pt",C="index-module__status___mfwsO",T="index-module__pussName___OFHb2",I="index-module__line___bwG9I",L="index-module__contBox___z18C3",P="index-module__leftCont___lAQ2l",z="index-module__leftContNums___NYM9g",R="index-module__rightCont___zh7yE",F="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,c,r,d,u,_,m,x,f,p,h,j,g,b,N,Z,k,w,ee,oe,ne,te,le,ie,ae,ce,re,se,de,ue,_e,me,xe,fe,pe,he,ve,je,ge,be,Ne,Ze,ke,we,Ge,ye,Be,Se,Ce,Te,Ie,Le,Pe,ze,Re,Fe,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:B,children:[(0,v.jsxs)(s.G7,{className:S,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:L,children:[(0,v.jsx)(s.G7,{className:P,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===(c=a.rgb)||void 0===c?void 0:c.r," ").concat(null==e||null===(r=e.obj)||void 0===r||null===(d=r.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===(p=f.rgb)||void 0===p?void 0:p.b,")")},children:(0,v.jsxs)(s.G7,{className:z,children:["颜色 (",null==e||null===(h=e.obj)||void 0===h?void 0:h.total_colors,")"]})}),(0,v.jsxs)(s.G7,{className:R,children:[(0,v.jsxs)(s.G7,{className:F,children:[(0,v.jsxs)(s.G7,{className:D,children:[(0,v.jsxs)(s.G7,{className:O,children:[null==e||null===(j=e.obj)||void 0===j||null===(g=j.product_list[0])||void 0===g?void 0:g.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===(ce=e.obj)||void 0===ce||null===(re=ce.product_list[0])||void 0===re||null===(se=re.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===(pe=fe.product_colors[0])||void 0===pe?void 0:pe.sale_price)/100,"/kg"]})]}),(null==e||null===(he=e.obj)||void 0===he||null===(ve=he.product_list[0])||void 0===ve||null===(je=ve.product_colors)||void 0===je?void 0:je.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===(ge=e.obj)||void 0===ge||null===(be=ge.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===(Be=ye.product_list[0])||void 0===Be||null===(Se=Be.product_colors[1])||void 0===Se?void 0:Se.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===(Le=e.obj)||void 0===Le?void 0:Le.sale_mode)?"条":"m"]}),(0,v.jsxs)(s.G7,{className:J,children:["¥ ",(null==e||null===(Pe=e.obj)||void 0===Pe||null===(ze=Pe.product_list[0])||void 0===ze||null===(Re=ze.product_colors[1])||void 0===Re?void 0:Re.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===(Fe=e.obj)||void 0===Fe?void 0:Fe.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);Page((0,t.createPageConfig)((function(){var e,o=(0,d.useState)({status:-1,page:1,size:10,name:""}),n=(0,r.Z)(o,2),t=n[0],_=n[1],m=(0,u.Vy)(),x=m.fetchData,f=m.state,p=(0,d.useState)({list:[],total:0}),y=(0,r.Z)(p,2),B=y[0],S=y[1],C=function(){var e=(0,c.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)(te)));case 2:e=o.sent,S((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),P((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,r.Z)(T,2),L=I[0],P=I[1],z=function(){var e=(0,c.Z)((0,i.Z)().mark((function _callee2(){return(0,i.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:F.current.size=1,P(!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)}}(),R=(0,d.useMemo)((function(){return(0,b.rA)({list:B.list,total:B.total,status:f.loading})}),[B,f]),F=(0,d.useRef)({size:t.size,page:t.page}),D=(0,d.useCallback)((function(){if(B.list.length