2022-09-28 15:23:32 +08:00

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