1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
"use strict";require("./sub-common/0faae082e61997f12841426745de246a.js");require("./sub-common/b636e942651e29772c7a776b65f107ba.js");require("./sub-common/c72852a5454e8568977bc06e1e0e4ee9.js");require("./sub-common/554304a60565dcd42c478a76f25c75ef.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4813],{1703:function(e,t,n){var o=n(9975),s=n(2982),a=n(4165),i=n(5861),l=n(885),_=n(1515),r=n(9792),c="index-module__mainBox___L6pDq",u="index-module__pussBox___WdG0v",d="index-module__pussName___NQyJL",m="index-module__pussPhone___iG45_",x="index-module__total___Z8ixa",h="index-module__productBox___G9asj",f="index-module__flexMoney___nn1h3",p="index-module__flexTotalBox___4GcZM",g="index-module__totalFont___Y2unZ",j="index-module__tishi___orwTH",v="index-module__shoudPay____CNT4",N="index-module__defaltBox___WynPs",w="index-module__titleBox___MbXwH",y="index-module__title___OmDr_",G="index-module__modeName___VVr4p",k="index-module__modeLine___MtffW",b="index-module__goodsBox___JnMIj",Z="index-module__goodsProduct___YuM6v",S="index-module__goodsLine___NlY3a",T="index-module__itemGoods____mQzB",C="index-module__itemPic___GP2mQ",P="index-module__itemRight___Hq3AH",B="index-module__item_right_top___fVQbB",D="index-module__itemName___kX5ZP",M="index-module__itemNums____kapv",L="index-module__item_right_Bottom___xXme6",R="index-module__itemMoney___zLaAj",z="index-module__itemMoneyOne___dG2mK",E="index-module__detailBox___Tn4vt",F="index-module__detailRightFlex___Hfz9j",I="index-module__detailRight____ifae",H="index-module__detailBtn___uePDy",$="index-module__detailFont___rWsKA",q="index-module__remarkFont___WDPsx",J="index-module__safeBottom___cRxNR",O="index-module__bottomBox___PbBxu",A="index-module__moreFont___xxzbg",W="index-module__posssBox___xiujZ",V=n(6408),X=n.n(V),Q=n(2535),K=n.n(Q),Y=n(4812),U="index-module__advance_main___c60x7",ee="index-module__time_con___iqnuN",te="index-module__times___ReaPH",ne="index-module__text___jNCOO",oe="index-module__num___I8Xo7",se="index-module__separate___RFMl3",ae="index-module__cardIcon___UTuoG",ie="index-module__image___vTt8w",le="index-module__refresh___L1B6H",_e="index-module__mconfont___ubWlS",re="index-module__refresh_text___NVhyb",ce=n(9498),ue={value:10,label:"预付款"},de={value:3,label:"账期"},me={value:5,label:"货到付款"},xe=n(5513),he=(0,r.memo)((function(e){var t=e.orderInfo,n=e.onRefresh,o=(0,ce.y)(),s=o.showTime,a=o.onStart,i=o.timeStatus,l=ue,c=(0,r.useMemo)((function(){return(null==t?void 0:t.status)==l.value&&t.logistics_details.length>0?t.logistics_details[0].expire_time:""}),[t]);return(0,r.useEffect)((function(){c&&a(c)}),[c]),(0,r.useEffect)((function(){2==i&&(null==n||n())}),[i]),(0,xe.jsxs)(_.G7,{className:U,children:[(0,xe.jsxs)(_.G7,{className:ee,children:[(0,xe.jsxs)(_.G7,{className:te,children:[(0,xe.jsx)(_.xv,{className:ne,children:"剩"}),(0,xe.jsx)(_.xv,{className:oe,children:s.HH}),(0,xe.jsx)(_.xv,{className:se,children:":"}),(0,xe.jsx)(_.xv,{className:oe,children:s.MM}),(0,xe.jsx)(_.xv,{className:se,children:":"}),(0,xe.jsx)(_.xv,{className:oe,children:s.SS})]}),(0,xe.jsx)(_.xv,{children:"等待买家付款,超时自动取消"})]}),(0,xe.jsx)(_.G7,{className:ae,children:(0,xe.jsx)(_.Ee,{className:ie,src:(0,Y.z)("/mall/my_cart.png")})}),(0,xe.jsxs)(_.G7,{className:le,onClick:function onClick(){return null==n?void 0:n()},children:[(0,xe.jsx)(_.xv,{className:X()(_e,"iconfont icon-shuaxin")}),(0,xe.jsx)(_.xv,{className:X()(re),children:"刷新"})]})]})})),fe=n(2193),pe=n(5376),ge=n(5854),je=n(6631),ve={common_safe_area_y:"index-module__common_safe_area_y___iESrN","flex-col":"index-module__flex-col___DRVj_","flex-row":"index-module__flex-row___JUsTh","justify-between":"index-module__justify-between___TXtjt","items-center":"index-module__items-center___p2hQ8","flex-item":"index-module__flex-item___LHujH","full-100":"index-module__full-100___KBBGZ","color-blue":"index-module__color-blue___JCD_p","color-yellow":"index-module__color-yellow___bAtfL","color-green":"index-module__color-green___Ods3q","color-grey":"index-module__color-grey___cZFBe","color-white":"index-module__color-white___mjThz",title:"index-module__title___v_O0t"},Ne=(0,r.memo)((function(e){var t=e.obj,n=void 0===t?{sale_mode:0,collect_status:"",status:"",payment_method:0}:t,o=e.handApplyGoods,s=e.handApplyMoney,a=e.handSureGoods,i=(0,r.useMemo)((function(){return 0===n.sale_mode&&9===n.status&&2==n.collect_status||0===n.sale_mode&&9===n.status&&(3==n.payment_method||5==n.payment_method||1===n.collect_status)||2===n.sale_mode&&9===n.status}),[n]),l=(0,r.useMemo)((function(){return 0===n.sale_mode&&11===n.status&&(1==n.collect_status||2==n.collect_status)||0===n.sale_mode&&7===n.status&&2==n.collect_status||0===n.sale_mode&&7===n.status&&1==n.collect_status||0===n.sale_mode&&3===n.status&&2==n.collect_status||0===n.sale_mode&&3===n.status&&1==n.collect_status||1===n.sale_mode&&0===n.status||1===n.sale_mode&&9===n.status||2===n.sale_mode&&0===n.status}),[n]),c=(0,r.useMemo)((function(){return 0===n.sale_mode&&8===n.status&&2==n.collect_status||0===n.sale_mode&&8===n.status&&(3==n.payment_method||5==n.payment_method||1==n.collect_status)||1===n.sale_mode&&8===n.status||2===n.sale_mode&&8===n.status}),[n]);return(0,xe.jsxs)(xe.Fragment,{children:[i&&(0,xe.jsx)(_.G7,{className:ve.title,onClick:function onClick(){return null==o?void 0:o()},children:"申请退货"}),l&&(0,xe.jsx)(_.G7,{className:ve.tuikuan,onClick:function onClick(){return null==s?void 0:s()},children:"申请退款"}),c&&(0,xe.jsx)(_.G7,{className:ve.tuikuan,onClick:function onClick(){return null==a?void 0:a()},children:"确认收货"}),!i&&!l&&!c&&(0,xe.jsx)(_.G7,{className:ve.title,children:"暂无更多"})]})})),we=n(7227),ye=n(1062),Ge="index-module__order_flow_state___LcDRn",ke="index-module__order_status_list___lqscW",be="index-module__order_status_list_show___mBCE5",Ze="index-module__order_status_item___q4RWe",Se="index-module__order_status_tail_end___mc6N3",Te="index-module__order_status_tail___xoe3h",Ce="index-module__order_status_line___tssSh",Pe="index-module__order_status_content___osIlz",Be="index-module__order_status_title___jXwJC",De="index-module__order_status_time___pAiS0",Me="index-module__order_status_select___PxFui",Le="index-module__order_status_des___w7lVZ",Re="index-module__order_status_des_select___vL2OI",ze="index-module__more___D2euv",Ee="index-module__miconfonts___Fhnl6",Fe="index-module__open_miconfonts___jAmEF",Ie="index-module__image_tag___kz5JR",He="index-module__image___qJkYf",$e="index-module__pay_title_tag___znE07",qe="index-module__miconfont___LGs0b",Je=(0,r.memo)((function(e){var t=e.orderInfo,n=void 0===t?{logistics_details:[],payment_method:0,status:0}:t;e.onRefresh;(0,r.useEffect)((function(){}),[n]);var o=(0,r.useState)(!1),s=(0,l.Z)(o,2),a=s[0],i=s[1],c=(0,r.useMemo)((function(){return n.logistics_details?null==n?void 0:n.logistics_details.reverse():[]}),[n.logistics_details]),u=de,d=me;return(0,xe.jsxs)(xe.Fragment,{children:[(null==c?void 0:c.length)>0&&(0,xe.jsxs)(_.G7,{className:Ge,children:[(0,xe.jsx)(_.G7,{className:X()(ke,a&&be),children:c.map((function(e,t){return(0,xe.jsxs)(_.G7,{className:Ze,children:[c.length>1&&(0,xe.jsx)(_.G7,{className:X()(Te,0==t&&Se)}),c.length!=t+1&&(0,xe.jsx)(_.G7,{className:Ce}),(0,xe.jsxs)(_.G7,{className:Pe,children:[(0,xe.jsx)(_.G7,{className:X()(Be,0==t&&Me),children:e.status}),(0,xe.jsx)(_.G7,{className:X()(De,0==t&&Me),children:(0,Y.o0)(e.time)})]}),(0,xe.jsx)(_.xv,{className:X()(Le,0==t&&Re),children:e.desc})]})}))}),c.length>2&&(0,xe.jsxs)(_.G7,{className:ze,onClick:function onClick(){return function changeMore(){i((function(){return!a}))}()},children:[(0,xe.jsx)(_.xv,{children:a?"收起详情":"点击查看详情"}),(0,xe.jsx)(_.xv,{className:X()("iconfont icon-a-moreback",Ee,a&&Fe)})]}),(0,xe.jsxs)(_.G7,{className:Ie,children:[n.payment_method==d.value&&(0,xe.jsx)(_.Ee,{mode:"aspectFit",src:(0,Y.z)("/mall/order_pay_status.png"),className:He}),n.payment_method==u.value&&(0,xe.jsx)(_.Ee,{mode:"aspectFit",src:(0,Y.z)("/mall/order_pay_status_day.png"),className:He})]})]}),n.payment_method==u.value&&(0,xe.jsxs)(_.G7,{className:$e,children:[(0,xe.jsx)(_.xv,{className:X()(qe,"iconfont icon-zhuyi")}),"您使用了",n.account_period,"天账期支付,还款日期为",(0,Y.o0)(n.account_period_time)]})]})})),Oe=n(1251),Ae=n(1115),We=n(3772),Ve=(0,r.memo)((function(e){var t=e.title,n=void 0===t?"标题":t,o=e.modeName,s=void 0===o?"大货":o,a=e.showMode,i=void 0!==a&&a,l=e.children,r=e.clickNode;return(0,xe.jsxs)(_.G7,{className:N,children:[(0,xe.jsxs)(_.G7,{className:w,children:[(0,xe.jsx)(_.G7,{className:y,children:n}),i&&(0,xe.jsx)(_.G7,{className:G,onClick:function onClick(){return null==r?void 0:r()},children:s})]}),(0,xe.jsx)(_.G7,{className:k}),l]})})),Xe=(0,r.memo)((function(e){var t=e.list,n=void 0===t?[]:t,o=e.obj,s=void 0===o?{}:o;return(0,xe.jsx)(xe.Fragment,{children:n.map((function(e,t){return(0,xe.jsxs)(_.G7,{className:b,children:[(0,xe.jsxs)(_.G7,{className:Z,children:[e.code,"# ",e.name]}),(0,xe.jsx)(_.G7,{className:S}),e.product_colors.map((function(e,t){var n,o,a;return(0,xe.jsxs)(_.G7,{className:T,children:[(0,xe.jsx)(_.G7,{className:C,style:{backgroundColor:"rgb(".concat(null==e||null===(n=e.rgb)||void 0===n?void 0:n.r," ").concat(null==e||null===(o=e.rgb)||void 0===o?void 0:o.g," ").concat(null==e||null===(a=e.rgb)||void 0===a?void 0:a.b,")")}}),(0,xe.jsxs)(_.G7,{className:P,children:[(0,xe.jsxs)(_.G7,{className:B,children:[(0,xe.jsxs)(_.G7,{className:D,children:[e.code,"# ",e.name]}),(0,xe.jsxs)(_.G7,{className:M,children:["x",0===(null==s?void 0:s.sale_mode)?e.roll:e.length/100,0===(null==s?void 0:s.sale_mode)?"条":"m"]})]}),(0,xe.jsxs)(_.G7,{className:L,children:[(0,xe.jsxs)(_.G7,{className:R,children:["¥",e.sale_price/100,"/",0===(null==s?void 0:s.sale_mode)?"条":"m"]}),(0,xe.jsxs)(_.G7,{className:z,children:["¥",(0,Y.yb)(e.total_sale_price)]})]})]})]})}))]},t)}))})}));Page((0,o.createPageConfig)((function(){var e=(0,Q.useRouter)();(0,Q.useDidShow)((function(){T()})),(0,Q.usePullDownRefresh)((function(){T()}));var t=(0,r.useState)(null),n=(0,l.Z)(t,2),o=n[0],N=n[1],w=(0,Oe.ER)().fetchData,y=(0,we.Ds)(function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee(e,t){var n;return(0,a.Z)().wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:if(8!==Z.status&&9!==Z.status&&4!==Z.status&&5!==Z.status){s.next=3;break}return Ae.Z9.error("不允许更改"),s.abrupt("return",!1);case 3:if(e.stopPropagation(),o!==t){s.next=7;break}return Ae.Z9.error("不能选择相同的方式"),s.abrupt("return",!1);case 7:return K().showLoading({title:"请稍等...",mask:!0}),s.next=10,w({id:Number(Z.id),shipment_mode:t});case 10:"success"===(n=s.sent).msg?(K().hideLoading(),K().showToast({title:"成功",icon:"success"}),N(t)):(K().hideLoading(),K().showToast({title:n.msg,icon:"error"}));case 12:case"end":return s.stop()}}),_callee)})));return function(t,n){return e.apply(this,arguments)}}(),300),G=(0,Oe.Pt)().fetchData,k=(0,r.useState)({}),b=(0,l.Z)(k,2),Z=b[0],S=b[1],T=function(){var t=(0,i.Z)((0,a.Z)().mark((function _callee2(){var t;return(0,a.Z)().wrap((function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,G({id:e.params.id});case 2:t=n.sent,S(t.data),B.map((function(e){"订单编号:"===e.leftTitle&&(e.rightTitle=t.data.order_no),"创建时间:"===e.leftTitle&&(e.rightTitle=(0,Y.o0)(t.data.create_time)),"发货时间:"===e.leftTitle&&(e.rightTitle=(0,Y.o0)(t.data.delivery_time)),"业务员:"===e.leftTitle&&(e.rightTitle=t.data.sale_user_name)})),D((0,s.Z)(B)),N(t.data.shipment_mode);case 7:case"end":return n.stop()}}),_callee2)})));return function getDetail(){return t.apply(this,arguments)}}(),C=(0,r.useState)([{leftTitle:"订单编号:",rightTitle:"------",showBtn:!0},{leftTitle:"创建时间:",rightTitle:"------"},{leftTitle:"发货时间:",rightTitle:"------"},{leftTitle:"业务员:",rightTitle:"------"}]),P=(0,l.Z)(C,2),B=P[0],D=P[1],M=(0,r.useState)(!1),L=(0,l.Z)(M,2),R=L[0],z=L[1],V=(0,Oe.rr)().fetchData,U=(0,r.useCallback)(function(){var t=(0,i.Z)((0,a.Z)().mark((function _callee3(t){return(0,a.Z)().wrap((function _callee3$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,V({remark:t,id:Number(e.params.id)});case 2:"success"===n.sent.msg&&(K().showToast({title:"成功",icon:"success"}),z(!1),T());case 4:case"end":return n.stop()}}),_callee3)})));return function(e){return t.apply(this,arguments)}}(),[]),ee=(0,r.useState)(!1),te=(0,l.Z)(ee,2),ne=te[0],oe=te[1],se=(0,r.useCallback)((function(){Ae.Z9.loading("刷新中"),T()}),[]),ae=(0,Oe.Rv)().fetchData,ie=function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee5(e,t){return(0,a.Z)().wrap((function _callee5$(n){for(;;)switch(n.prev=n.next){case 0:e.stopPropagation(),K().showModal({content:"确定要取消吗?",confirmText:"确认",cancelText:"取消",success:function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee4(e){var n;return(0,a.Z)().wrap((function _callee4$(o){for(;;)switch(o.prev=o.next){case 0:if(!e.confirm){o.next=6;break}return K().showLoading({title:"请稍等...",mask:!0}),o.next=4,ae({id:t.id});case 4:"success"===(n=o.sent).msg?(K().showToast({title:"取消成功"}),K().hideLoading(),T()):K().showToast({title:n.msg,icon:"error"});case 6:case"end":return o.stop()}}),_callee4)})));return function success(t){return e.apply(this,arguments)}}()});case 2:case"end":return n.stop()}}),_callee5)})));return function cancle(t,n){return e.apply(this,arguments)}}(),le=(0,Oe.eS)().fetchData,_e=function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee6(e,t){var n,o,s;return(0,a.Z)().wrap((function _callee6$(a){for(;;)switch(a.prev=a.next){case 0:return e.stopPropagation(),K().showLoading({title:"请稍等...",mask:!0}),n=[],t.product_list.forEach((function(e){e.product_colors.forEach((function(e){n.push({length:e.length,roll:e.roll,product_color_id:e.id})}))})),o={purchaser_id:t.purchaser_id,sale_mode:t.sale_mode,color_list:n},a.next=7,le(o);case 7:"success"===(s=a.sent).msg?(K().showToast({title:"加入购物车成功!"}),K().hideLoading(),T()):K().showToast({title:s.msg,icon:"error"});case 9:case"end":return a.stop()}}),_callee6)})));return function nextBuy(t,n){return e.apply(this,arguments)}}(),re=(0,Oe.Gg)().fetchData,ce=(0,Oe.fu)().fetchData,ue=(0,r.useState)([{id:2,iconfont:"icon-yufukuan1",name:"预存款",fonts:"可用额度 ",money:"",isCheck:!1},{id:5,iconfont:"icon-xianxiahuizong",name:"货到付款",fonts:"发货后3天内付款",isCheck:!1,money:""},{id:3,iconfont:"icon-xianxiahuizong",name:"x天账期",fonts:"可用额度 ",money:"",isCheck:!1},{iconfont:"icon-yue",name:"线下汇款"},{iconfont:"icon-saomiao",name:"扫码支付"}]),de=(0,l.Z)(ue,2),me=de[0],ve=de[1],Ge=function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee7(e,t){var n,o,i,l,_;return(0,a.Z)().wrap((function _callee7$(a){for(;;)switch(a.prev=a.next){case 0:if(e.stopPropagation(),10===t.status){a.next=10;break}return a.next=4,re({id:t.should_collect_order_id});case 4:n=a.sent,me.map((function(e){return 3===e.id&&(e.name="".concat(n.data.account_period,"天账期"),e.fonts="可用额度".concat((0,Y.yb)(n.data.account_period_credit_available_line).toLocaleString())),2===e.id&&(e.fonts="可用额度".concat((0,Y.yb)(n.data.advance_deposit_balance).toLocaleString())),e})),ve((0,s.Z)(me)),t.is_shipper_picks_up&&(o=me.filter((function(e){return 6===e.id})),0===o.length&&(me.unshift({id:6,iconfont:"icon-xianxiahuizong",name:"货主自提",fonts:"",money:"",isCheck:!1}),ve((0,s.Z)(me)))),a.next=17;break;case 10:return a.next=12,ce({id:t.pre_collect_order_id});case 12:i=a.sent,(l=[]).push({id:2,iconfont:"icon-yufukuan1",name:"预存款",fonts:"可用额度".concat((0,Y.yb)(i.data.advance_deposit_balance).toLocaleString()),money:"",isCheck:!1},{iconfont:"icon-yue",name:"线下汇款"},{iconfont:"icon-saomiao",name:"扫码支付"}),t.is_shipper_picks_up&&(_=l.filter((function(e){return 6===e.id})),0===_.length&&l.unshift({id:6,iconfont:"icon-xianxiahuizong",name:"货主自提",fonts:"",money:"",isCheck:!1})),ve([].concat(l));case 17:Se(!0),Be("待支付款项"),Qe(!0);case 20:case"end":return a.stop()}}),_callee7)})));return function toPay(t,n){return e.apply(this,arguments)}}(),ke=(0,r.useState)(!0),be=(0,l.Z)(ke,2),Ze=be[0],Se=be[1],Te=(0,r.useState)(""),Ce=(0,l.Z)(Te,2),Pe=Ce[0],Be=Ce[1],De=(0,r.useState)(""),Me=(0,l.Z)(De,2),Le=Me[0],Re=Me[1],ze=(0,Oe.fs)().fetchData,Ee=function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee8(){var e,t,n;return(0,a.Z)().wrap((function _callee8$(o){for(;;)switch(o.prev=o.next){case 0:return e=[],Z.product_list.forEach((function(t){t.product_colors.forEach((function(n){e.push({product_code:t.code,product_name:t.name,product_color_code:n.product_color_code,product_color_name:n.product_color_name,num:n.roll.toString(),weight:(0,Y.$y)(n.actual_weight).toString(),sale_price:(n.sale_price/100).toString(),total_price:0!==n.total_sale_price?(n.total_sale_price/100).toString():(n.estimate_amount/100).toString(),length:(n.length/100).toString(),weight_error:(0,Y.$y)(n.weight_error).toString()})}))})),t={list:e,title:"面料销售电子确认单",show_qrcode:!0,show_barcode:!0,show_wait_pay_amount:!0,order_type:Z.sale_mode_name,shipment_mode:Z.shipment_mode_name,company:Z.title_purchaser_name,sale_user:Z.sale_user_name,order_created_time:(0,Y.o0)(Z.create_time),order_no:Z.order_no,target_user_name:Z.target_user_name,target_address:Z.address_detail,target_description:Z.remark,pay_account:Z.transfer_remittance_account,bank_account_name:Z.account_name,bank_name:Z.bank_of_deposit,pay_type:Z.settle_mode_name,client:Z.purchaser_name,phone:Z.target_user_phone,order_total_length:(Z.total_number/100).toString(),order_total_price:(Z.bill_total_sale_price/100).toString(),total_weight_error_discount:(Z.total_weight_error_discount/100).toString(),order_total_num:Z.total_number.toString(),qrcode:"",order_total_weight:(Z.total_weight/1e3).toString(),estimate_amount:(Z.estimate_amount/100).toString(),total_sale_price:(Z.total_sale_price/100).toString(),show_total_sale_price:!0,show_total_weight_error_discount:!0,actual_amount:(Z.actual_amount/100).toString(),wait_pay_amount:(Z.wait_pay_amount/100).toString(),order_total_weight_error:(Z.total_weight_error/1e3).toString()},o.next=5,ze(t);case 5:(n=o.sent).data&&(Se(!1),Be("查看销售码单"),Re(n.data.base64));case 7:case"end":return o.stop()}}),_callee8)})));return function handScanpay(){return e.apply(this,arguments)}}(),Fe=(0,Oe.a3)().fetchData,Ie=(0,Oe.ot)().fetchData,He=(0,r.useState)(!1),$e=(0,l.Z)(He,2),qe=$e[0],Qe=$e[1],Ke=(0,r.useState)(!1),Ye=(0,l.Z)(Ke,2),Ue=Ye[0],et=Ye[1];return(0,xe.jsxs)(_.G7,{className:c,children:[10!=(null==Z?void 0:Z.status)&&(0,xe.jsx)(Je,{orderInfo:Z}),10===Z.status&&(0,xe.jsx)(he,{orderInfo:Z,onRefresh:function onRefresh(){return se()}}),(0,xe.jsx)(fe.Z,{navSelect:function navSelect(e){return function handSelect(e){if(1===o||8===Z.status||9===Z.status||4===Z.status||5===Z.status)return Ae.Z9.error("不允许更改"),!1;K().navigateTo({url:"/pages/addressManager/index?orderId="+e.id+"&purchaser_id="+e.purchaser_id})}(e)},obj:Z,receivingStatus:o,onReceivingStatus:function onReceivingStatus(e,t){return y(e,t)}}),(0,xe.jsx)(Ve,{showMode:!0,title:"客户信息",modeName:Z.sale_mode_name,children:(0,xe.jsxs)(_.G7,{className:u,children:[(0,xe.jsx)(_.G7,{className:d,children:Z.purchaser_name}),(0,xe.jsx)(_.G7,{className:m,children:Z.purchaser_phone})]})}),(0,xe.jsxs)(_.G7,{className:x,children:[" ",Z.total_fabrics," 种面料,",Z.total_colors," 个颜色,共 ",0===Z.sale_mode?Z.total_number:Z.total_number/100," ",0===Z.sale_mode?"条":"m"]}),(0,xe.jsxs)(_.G7,{className:h,children:[(0,xe.jsx)(Xe,{list:null==Z?void 0:Z.product_list,obj:Z}),(0,xe.jsxs)(_.G7,{className:f,children:[(0,xe.jsxs)(_.G7,{className:p,children:[(0,xe.jsx)(_.G7,{className:g,children:"合计金额"}),(0,xe.jsx)(_.G7,{className:X()("iconfont","icon-tishi",j)})]}),(0,xe.jsx)(_.G7,{className:v,children:(0,Y.yb)(Z.total_should_collect_money)})]}),(0,xe.jsxs)(_.G7,{className:f,children:[(0,xe.jsxs)(_.G7,{className:p,children:[(0,xe.jsx)(_.G7,{className:g,children:"实付金额"}),(0,xe.jsx)(_.G7,{className:X()("iconfont","icon-tishi",j)})]}),(0,xe.jsx)(_.G7,{className:v,children:(0,Y.yb)(Z.actual_amount)})]}),(0,xe.jsxs)(_.G7,{className:f,children:[(0,xe.jsxs)(_.G7,{className:p,children:[(0,xe.jsx)(_.G7,{className:g,children:"待付金额"}),(0,xe.jsx)(_.G7,{className:X()("iconfont","icon-tishi",j)})]}),(0,xe.jsx)(_.G7,{className:v,children:(0,Y.yb)(Z.wait_pay_amount)})]})]}),(0,xe.jsx)(Ve,{title:"订单信息",children:B.map((function(e,t){return(0,xe.jsxs)(_.G7,{className:E,children:[(0,xe.jsx)(_.G7,{className:$,children:e.leftTitle}),(0,xe.jsxs)(_.G7,{className:F,children:[(0,xe.jsx)(_.G7,{className:I,children:e.rightTitle}),e.showBtn&&(0,xe.jsx)(_.G7,{className:H,onClick:function onClick(){return function clipboardData(){K().setClipboardData({data:(null==Z?void 0:Z.order_no)||"",success:function success(e){K().showToast({icon:"none",title:"复制成功"})}})}()},children:"复制"})]})]},t)}))}),(0,xe.jsx)(Ve,{title:"备注信息",showMode:!0,modeName:"填写/修改备注".concat(" >"),clickNode:function clickNode(){return z(!0)},children:(0,xe.jsx)(_.G7,{className:q,children:""===Z.remark?"暂无":Z.remark})}),(0,xe.jsx)(ge.Z,{show:R,showTitle:!1,onClose:function onClose(){return z(!1)},children:(0,xe.jsx)(pe.Z,{onSave:function onSave(e){return U(e)},defaultValue:Z.remark})}),(0,xe.jsx)(_.G7,{className:J}),(0,xe.jsxs)(_.G7,{className:O,children:[!ne&&(0,xe.jsx)(_.G7,{className:A,onClick:function onClick(){return oe(!0)},children:"更多"}),ne&&(0,xe.jsx)(_.G7,{className:A,onClick:function onClick(){return oe(!1)},children:"关闭"}),ne&&(0,xe.jsx)(_.G7,{className:W,children:(0,xe.jsx)(Ne,{obj:Z})}),(0,xe.jsx)(je.Z,{obj:Z,cancle:function cancle(e){return null==ie?void 0:ie(e,Z)},nextBuy:function nextBuy(e){return null==_e?void 0:_e(e,Z)},toPay:function toPay(e){return null==Ge?void 0:Ge(e,Z)}})]}),(0,xe.jsx)(We.Z,{list:me,obj:Z,showPopup:qe,popupClose:function popupClose(){return Qe(!1)},clickItem:function clickItem(e){return function clickItem(e){"扫码支付"===e.name&&Ee(),"线下汇款"===e.name&&et(!0),me.map((function(t){return e.id===t.id?t.checked=!0:t.checked=!1,t})),ve((0,s.Z)(me))}(e)},handsurePay:function handsurePay(e){return function handsurePay(e){var t,n;if(!(t=me.filter((function(e){return e.checked}))).length)return K().showToast({title:"请选择后再提交",icon:"error"}),!1;K().showModal({content:"确定交易吗?",confirmText:"确认",cancelText:"取消",success:(n=(0,i.Z)((0,a.Z)().mark((function _callee9(n){var o,s,i;return(0,a.Z)().wrap((function _callee9$(a){for(;;)switch(a.prev=a.next){case 0:if(!n.confirm){a.next=12;break}return K().showLoading({title:"请稍等...",mask:!0}),a.next=4,e.status;case 4:if(a.t0=a.sent,10===a.t0){a.next=9;break}a.t1=Fe({id:Number(e.should_collect_order_id),payment_method:Number(null===(o=t[0])||void 0===o?void 0:o.id)}),a.next=10;break;case 9:a.t1=Ie({id:Number(e.pre_collect_order_id),payment_method:Number(null===(s=t[0])||void 0===s?void 0:s.id)});case 10:"success"===(null==(i=a.t1)?void 0:i.msg)?(K().showToast({title:"交易成功"}),K().hideLoading(),Qe(!1),T()):K().showToast({title:null==i?void 0:i.msg,icon:"error"});case 12:case"end":return a.stop()}}),_callee9)}))),function success(e){return n.apply(this,arguments)})})}(e)},showSide:Ze,title:Pe,picUrl:Le}),(0,xe.jsx)(ye.Z,{showKong:!1,show:Ue,onClose:function onClose(){return et(!1)},offlineInfo:Z})]})}),"pages/orderDetails/index",{root:{cn:[]}},{navigationBarTitleText:"订单详情",enablePullDownRefresh:!0,backgroundTextStyle:"dark"}||{}))}},function(e){e.O(0,[7241,5324,3215,288,9132,8522,2107,1216,8592],(function(){return t=1703,e(e.s=t);var t}));e.O()}]); |