2023-05-15 14:13:36 +08:00

1 line
22 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";require("./sub-vendors.js");require("./sub-common/db6cc8fba2c34d36042a60bcf5f10485.js");require("./sub-common/510d0e7078f44d770a0720344fb06369.js");require("./sub-common/0762d0d2445fe1200cae192cedb39f4b.js");require("./sub-common/cf216475951e5960bcea5b5b9d46933b.js");require("./sub-common/5203ee5b6c7f4a9fb1ae172eb73f138a.js");require("./sub-common/37c8d87e96c04e575f72be683de6cceb.js");require("./sub-common/ba01bce307afcc9a88c0b242d7eb7cf5.js");require("./sub-common/87c86f7f5784eb6df1c3449a346aa652.js");require("./sub-common/004f11aaa141116253254b2d9892879c.js");require("./sub-common/e4015d998cf50ca1ca7b34bced9738a8.js");require("./sub-common/63bf87d821bca5788c0f93a9e30ef482.js");require("./sub-common/46fea72589f2422b6f2b110cd2878dd5.js");require("./sub-common/cfc73dead13629e0abcc62d612a93153.js");require("./sub-common/79dce9cedae514998e78ea49450e892a.js");require("./sub-common/2d6c1e74d7f6aeec909c38802e94be4d.js");require("./sub-common/e2bfd15678b26a24e9970acd7bc73315.js");require("./sub-common/bd58a99800ec9985133b8fafd773d720.js");require("./sub-common/c1ac499864f8adb168cc162c3e25e504.js");require("./sub-common/42aa399095655e26e89ff8601d93d33a.js");require("./sub-common/26f66b4953f388c7812a8993ef58cdc3.js");require("./sub-common/1560f0b0875ace1edafcce378337baf8.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6563],{4363:function(e,n,r){var t=r(2180),a=r(1413),o=r(4165),s=r(5861),i=r(9439),_=r(1515),l=r(2954),d=r.n(l),c=r(4184),u=r.n(c),m=r(7294),h=r(1826),p="index-module__advance_main___D3TYG",f="index-module__time_con___sSWMj",x="index-module__times___WbwOU",g="index-module__text___Iw5WB",v="index-module__num___KGU7N",y="index-module__separate___q_92p",j="index-module__cardIcon___sJzTq",w="index-module__image___HA12k",S="index-module__refresh___CW_kX",b="index-module__mconfont___hjTYR",k="index-module__refresh_text___k4WMO",N=r(4158),Z=r(9498),C=r(8629),G=r(5893),D=function AdvanceOrderState(e){var n=e.orderInfo,r=e.onRefresh,t=(0,Z.y3)(),a=t.showTime,o=t.onStart,s=t.timeStatus,i=C.DF.SaleorderstatusWaitingPrePayment,l=(0,m.useMemo)((function(){return(null==n?void 0:n.status)==i.value&&n.logistics_details.length>0?n.logistics_details[0].expire_time:""}),[n]);return(0,m.useEffect)((function(){l&&o(l)}),[l]),(0,m.useEffect)((function(){2==s&&(null==r||r())}),[s]),(0,G.jsxs)(_.G7,{className:p,children:[(0,G.jsxs)(_.G7,{className:f,children:[(0,G.jsxs)(_.G7,{className:x,children:[(0,G.jsx)(_.xv,{className:g,children:"剩"}),(0,G.jsx)(_.xv,{className:v,children:a.HH}),(0,G.jsx)(_.xv,{className:y,children:":"}),(0,G.jsx)(_.xv,{className:v,children:a.MM}),(0,G.jsx)(_.xv,{className:y,children:":"}),(0,G.jsx)(_.xv,{className:v,children:a.SS})]}),(0,G.jsx)(_.xv,{children:"支付关闭,订单自动取消"})]}),(0,G.jsx)(_.G7,{className:j,children:(0,G.jsx)(_.Ee,{className:w,src:(0,N.z)("/mall/my_cart.png")})}),(0,G.jsxs)(_.G7,{className:S,onClick:function onClick(){return null==r?void 0:r()},children:[(0,G.jsx)(_.xv,{className:u()(b,"iconfont icon-shuaxin")}),(0,G.jsx)(_.xv,{className:u()(k),children:"刷新"})]})]})},I=(0,m.memo)(D),P=r(5066),U=r(3474),R="index-module__order_flow_state___LfFts",O="index-module__order_status_list___VeAhY",A="index-module__order_status_list_show___kC3ij",F="index-module__order_status_item___j9VA5",T="index-module__order_status_tail_end___KYVk_",E="index-module__order_status_tail___hsS6k",M="index-module__order_status_line___WFscG",B="index-module__order_status_content___DkXIX",W="index-module__flexBox___GXzPG",L="index-module__order_status_title___xbVH_",z="index-module__order_status_time___c2r3g",K="index-module__order_status_select___TBDDJ",V="index-module__picBox___LaQ_c",$="index-module__pic___B4y8B",H="index-module__order_status_des___u31UU",J="index-module__order_status_des_select___VTV3W",X="index-module__more___auGbg",Y="index-module__miconfonts___MD3uy",q="index-module__open_miconfonts___leeke",Q="index-module__image_tag___sZLtd",ee="index-module__image___uV7kc",ne="index-module__pay_title_tag___UeD6J",re="index-module__miconfont___KasrX",te=function OrderState(e){var n=e.orderInfo,r=void 0===n?{logistics_details:[],payment_method:0,status:0}:n,t=(e.onRefresh,e.picUrl),a=void 0===t?[]:t;(0,m.useEffect)((function(){console.log("orderInfo33::",r)}),[r]);var o=(0,m.useState)(!1),s=(0,i.Z)(o,2),l=s[0],c=s[1],h=(0,m.useMemo)((function(){return r.logistics_details?null==r?void 0:r.logistics_details.reverse():[]}),[r.logistics_details]),p=(C.DF.SaleorderstatusWaitingPrePayment,C.hL.PaymentMethodAccountPeriod),f=C.hL.PaymentMethodCashOnDelivery;return(0,G.jsxs)(G.Fragment,{children:[(null==h?void 0:h.length)>0&&(0,G.jsxs)(_.G7,{className:R,children:[(0,G.jsx)(_.G7,{className:u()(O,l&&A),children:h.map((function(e,n){var r;return(0,G.jsxs)(_.G7,{className:F,children:[h.length>1&&(0,G.jsx)(_.G7,{className:u()(E,0==n&&T)}),h.length!=n+1&&(0,G.jsx)(_.G7,{className:M}),(0,G.jsxs)(_.G7,{className:B,children:[(0,G.jsxs)(_.G7,{className:W,children:[(0,G.jsx)(_.G7,{className:u()(L,0==n&&K),children:e.status}),(0,G.jsx)(_.G7,{className:u()(z,0==n&&K),children:(0,N.o0)(e.time)})]}),(0,G.jsx)(_.G7,{className:V,children:null===(r=e.delivery_appendix_url)||void 0===r?void 0:r.map((function(e,n){return(0,G.jsx)(_.Ee,{mode:"aspectFit",src:e,className:$,onClick:function onClick(){return function handSee(e){console.log(e,"itemmmm"),d().previewImage({current:e,urls:a})}(e)}},n)}))})]}),(0,G.jsx)(_.xv,{className:u()(H,0==n&&J),children:e.desc})]},n)}))}),h.length>2&&(0,G.jsxs)(_.G7,{className:X,onClick:function onClick(){return function changeMore(){c((function(){return!l}))}()},children:[(0,G.jsx)(_.xv,{children:l?"收起详情":"点击查看详情"}),(0,G.jsx)(_.xv,{className:u()("iconfont icon-a-moreback",Y,l&&q)})]}),(0,G.jsxs)(_.G7,{className:Q,children:[r.payment_method==f.value&&(0,G.jsx)(_.Ee,{mode:"aspectFit",src:(0,N.z)("/mall/order_pay_status.png"),className:ee}),r.payment_method==p.value&&(0,G.jsx)(_.Ee,{mode:"aspectFit",src:(0,N.z)("/mall/order_pay_status_day.png"),className:ee})]})]}),r.payment_method==p.value&&(0,G.jsxs)(_.G7,{className:ne,children:[(0,G.jsx)(_.xv,{className:u()(re,"iconfont icon-zhuyi")}),"您使用了",r.account_period,"天账期支付,还款日期为",(0,N.o0)(r.account_period_time)]})]})},ae=(0,m.memo)(te),oe=r(9835),se=r(7178),ie=r(4938),_e="index-module__scanPay_main___Iy3Rl",le="index-module__scanPay_con___DMYl8",de="index-module__miconfont_title___j0c9N",ce="index-module__title___x4AG_",ue="index-module__scanPay_list___KU2Ns",me="index-module__btns___Wzzrd",he=r(5679),pe=r(1115),fe=r(4856),xe=r(5547),ge=r(4508),ve=r(9576),ye=r(6028),je=r(1341),we=r(9194),Se=function ScanPayCheck(e){var n=e.show,r=void 0===n||n,t=e.onClose,a=(e.company,e.orderInfo),l=(0,m.useState)(),c=(0,i.Z)(l,2),u=c[0],h=c[1],p=function address(e){return 2==(null==e?void 0:e.shipment_mode)?null!=e&&e.province_name?e.province_name+e.city_name+e.district_name+e.address_detail:"":null==e?void 0:e.take_goods_address},f=function userName(e){return 2==(null==e?void 0:e.shipment_mode)?a.target_user_name:""},x=function userPhone(e){return 2==(null==e?void 0:e.shipment_mode)?a.target_user_phone:a.take_goods_phone},g=(0,m.useState)(""),v=(0,i.Z)(g,2),y=v[0],j=v[1],w=(0,m.useRef)({filePath:"",base64:""}),S=(0,xe.fs)(),b=S.fetchData,k=S.state,Z=function(){var e=(0,s.Z)((0,o.Z)().mark((function _callee(){var e,n,r,t,a,s,_,l;return(0,o.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,b(u);case 2:e=o.sent,n=e.data.base64,j((function(){return n})),r=(new Date).valueOf(),t=/data:image\/(\w+);base64,(.*)/.exec(n)||[],a=(0,i.Z)(t,3),s=a[1],_=a[2],l="".concat(d().env.USER_DATA_PATH,"/img").concat(r,".").concat(s),w.current.filePath=l,w.current.base64=_,d().getFileSystemManager().writeFile({filePath:w.current.filePath,data:w.current.base64,encoding:"base64"});case 12:case"end":return o.stop()}}),_callee)})));return function getCore(){return e.apply(this,arguments)}}();(0,fe.Z)({scope:"scope.writePhotosAlbum",msg:"您没授权,无法保存图片"}).check;(0,m.useEffect)((function(){r&&Z()}),[r]),(0,m.useEffect)((function(){if(a){var e,n=[];null===(e=a.product_list)||void 0===e||e.forEach((function(e){var r;null==e||null===(r=e.product_colors)||void 0===r||r.forEach((function(r){n.push({product_code:(0,N.ZK)(e.code),product_name:e.name,product_color_code:(0,N.ZK)(r.code),product_color_name:r.name,num:r.roll.toString(),length:(r.length/100).toString(),weight:(0,N.$y)(r.actual_weight||r.estimate_weight).toString(),sale_price:(0,N.yb)(r.sale_price).toString(),total_price:(0,N.yb)(r.total_sale_price||r.estimate_amount).toString(),weight_error:(0,N.$y)(r.weight_error).toString()})}))})),h((function(){return{title:"面料销售电子确认单",company:"面料优选A+",order_type:a.sale_mode_name,sale_user:a.sale_user_name,order_created_time:(0,N.o0)(a.create_time),order_no:a.order_no,shipment_mode:a.shipment_mode_name,target_user_name:f(a),target_address:p(a),target_description:a.remark,pay_account:a.transfer_remittance_account,bank_account_name:a.account_name,bank_name:a.bank_of_deposit,pay_type:"",client:a.purchaser_name,phone:x(a),order_total_length:(a.total_number/100).toString(),order_total_price:(0,N.yb)(a.bill_total_sale_price).toString(),order_total_num:a.total_number.toString(),qrcode:"",order_total_weight:(0,N.$y)(a.total_weight||a.total_estimate_weight).toString(),list:n,estimate_amount:(0,N.yb)(a.estimate_amount).toString(),show_estimate_amount:a.estimate_amount>0&&a.total_sale_price<=0&&a.is_display_price,total_sale_price:(0,N.yb)(a.total_sale_price).toString(),show_total_sale_price:a.total_sale_price>0&&a.is_display_price,total_weight_error_discount:(0,N.yb)(a.total_weight_error_discount).toString(),show_total_weight_error_discount:a.total_weight_error_discount>0&&a.is_display_price,actual_amount:(0,N.yb)(a.actual_amount).toString(),show_actual_amount:a.actual_amount>0&&a.is_display_price,wait_pay_amount:(0,N.yb)(a.wait_pay_amount).toString(),show_wait_pay_amount:a.wait_pay_amount>0&&a.is_display_price,show_barcode:!0,order_total_weight_error:(0,N.$y)(a.total_weight_error).toString(),show_total_price:a.is_display_price,show_sale_price:a.is_display_price,show_tips:!0,tips:"请核对本单后验收, <b>如发现质量问题请于收到货之日起3天内与平台客服联系协商解决</b>逾期不作处理即表示购方默认对货物无异议;<b>购方确认无任何问题方可裁剪/加工,一经裁剪,缩水等工艺,平台概不负责;</b>\n 看布购货,请先试缩水,并注意分缸裁布!如需撞色拼接,请先试色牢度。非质量问题,恕不退换,谢谢合作!"}}))}}),[a]);var D=(0,m.useState)(!1),I=(0,i.Z)(D,2),P=I[0],U=I[1],R=(0,we.v)((function(e){return e.userInfo}));return(0,G.jsxs)(_.G7,{className:_e,children:[(0,G.jsx)(he.Z,{show:r,showTitle:!1,onClose:t,children:(0,G.jsxs)(_.G7,{className:le,children:[(0,G.jsx)(_.G7,{className:de,onClick:t,children:(0,G.jsx)(ye.Z,{name:"icon-rukou",size:37,color:"#707070"})}),(0,G.jsx)(_.G7,{className:ce,children:"查看销售码单"}),(0,G.jsx)(_.G7,{className:ue,children:k.loading&&(0,G.jsx)(ge.Z,{})||(0,G.jsx)(_.pf,{scrollY:!0,className:ue,children:(0,G.jsx)(_.Ee,{mode:"widthFix",src:y,onClick:function showImage(){console.log("fileData.current.filePath::",w.current.filePath),d().previewImage({current:w.current.filePath,urls:[w.current.filePath]})}})})}),(0,G.jsx)(_.G7,{className:me,onClick:function onClick(){return function onCloseEven(){if(a.sale_mode!==C.zs.SALE_MODE_BULK)return d().showToast({title:"该功能开发中",icon:"none"});U(!0),(0,je._e)({order_type:a.sale_mode_nam,order_number:a.order_no,trigger_time:(0,N.o0)(new Date),purchaser_name:R.adminUserInfo.user_name||"未知用户",purchaser_id:R.adminUserInfo.user_id||0}),null==t||t()}()},children:"查看横版码单"})]})}),(0,G.jsx)(ve.Z,{orderObj:a,showPopup:P,handClose:function handClose(){return U(!1)}})]})},be=(0,m.memo)(Se),ke="index-module__order_main___c3Eb5",Ne="index-module__order_content___ma_H_",Ze="index-module__order_desc___Li1ec",Ce="index-module__order_desc_con___QmXIa",Ge="index-module__order_desc_text___dliNJ",De="index-module__order_desc_text_hint___coHFT",Ie="index-module__miconfont___LHZ_t",Pe="index-module__submit_order_con___qBKqS",Ue="index-module__order_info___Jcn3f",Re="index-module__order_info_title___melnh",Oe="index-module__order_num___uHdVv",Ae="index-module__order_num_btn___adLjA",Fe=r(4408),Te=r(4722),Ee=r(6027),Me=r(7660),Be=r(9612),We=r(1251),Le=r(6353),ze=r(2495),Ke=function Order(){(0,Fe.Z)(),(0,Z.av)("pages/order/index");var e=(0,m.useState)(!1),n=(0,i.Z)(e,2),r=n[0],t=n[1],c=(0,l.useRouter)(),p=(0,m.useRef)(Number(c.params.id)),f=C.DF.SaleOrderStatusTaking,x=C.DF.SaleOrderStatusWaitingDelivery,g=C.DF.SaleOrderStatusWaitingReceipt,v=C.DF.SaleOrderStatusAlreadyReceipt,y=C.DF.SaleOrderStatusComplete,j=C.DF.SaleOrderStatusRefund,w=C.DF.SaleOrderStatusCancel,S=C.DF.SaleorderstatusWaitingPrePayment,b=(0,m.useRef)(!0),k=(0,m.useState)(),D=(0,i.Z)(k,2),R=D[0],O=D[1],A=(0,We.yW)().fetchData,F=(0,m.useState)(""),T=(0,i.Z)(F,2),E=T[0],M=T[1],B=(0,m.useState)(!1),W=(0,i.Z)(B,2),L=W[0],z=W[1],K=function toPay(){z(!0),(0,je.Xp)({page_name:"pages/order/index",trigger_time:(0,N.o0)(new Date),purchaser_name:sn.adminUserInfo.user_name||"未知用户",purchaser_id:sn.adminUserInfo.user_id||0})},V=function(){var e=(0,s.Z)((0,o.Z)().mark((function _callee(){var e,n,r;return(0,o.Z)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:if(!p.current){t.next=9;break}return t.next=3,A({id:p.current});case 3:(r=t.sent).data.picUrl=null===(e=r.data.delivery_appendix_url)||void 0===e?void 0:e.map((function(e){return e=ze.KC+e})),null===(n=r.data.logistics_details)||void 0===n||n.map((function(e){var n;"待收货"==e.status&&(e.delivery_appendix_url=null===(n=r.data.delivery_appendix_url)||void 0===n?void 0:n.map((function(e){return e=ze.KC+e})));return e})),O(r.data),M(r.data.remark),b.current&&S.value==r.data.status&&(b.current=!1,K());case 9:d().stopPullDownRefresh();case 10:case"end":return t.stop()}}),_callee)})));return function getSaleOrderPreView(){return e.apply(this,arguments)}}(),$=(0,m.useState)(),H=(0,i.Z)($,2),J=H[0],X=H[1],Y=(0,m.useMemo)((function(){return{province_name:null==R?void 0:R.province_name,city_name:null==R?void 0:R.city_name,district_name:null==R?void 0:R.district_name,address_detail:null==R?void 0:R.address_detail,target_user_name:null==R?void 0:R.target_user_name,target_user_phone:null==R?void 0:R.target_user_phone,shipment_mode:null==R?void 0:R.shipment_mode,id:null==R?void 0:R.id,sale_mode:null==R?void 0:R.sale_mode,status:null==R?void 0:R.status,take_goods_address:null==R?void 0:R.take_goods_address,take_goods_phone:null==R?void 0:R.take_goods_phone}}),[R]),q=(0,We.qm)().fetchData,Q=(0,m.useCallback)(function(){var e=(0,s.Z)((0,o.Z)().mark((function _callee2(e){var n;return(0,o.Z)().wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return M((function(){return e})),r.next=3,q({remark:e,id:p.current});case 3:(n=r.sent).success?(V(),pe.Z9.success("提交成功")):pe.Z9.error(n.msg),t((function(){return!1}));case 6:case"end":return r.stop()}}),_callee2)})));return function(n){return e.apply(this,arguments)}}(),[]),ee=(0,m.useRef)([f.value,x.value,g.value,v.value,y.value,j.value,w.value]),ne=(0,m.useRef)(null),re=(0,m.useCallback)((function(){V()}),[R]),te=(0,m.useCallback)((function(){V()}),[R]);(0,l.usePullDownRefresh)((function(){V()})),(0,l.useDidShow)((function(){V()}));var _e=(0,m.useCallback)((function(){z((function(){return!1}))}),[R]),le=(0,m.useCallback)((function(){pe.Z9.success("支付成功"),V(),_e()}),[R]),de=(0,m.useMemo)((function(){return(0,a.Z)({orderId:null==R?void 0:R.id},R)}),[R]),ce=(0,m.useCallback)((function(){pe.Z9.loading("刷新中"),V()}),[R]),ue=(0,m.useState)(!1),me=(0,i.Z)(ue,2),fe=me[0],xe=me[1],ge=(0,m.useCallback)((function(){xe(!1)}),[]),ve=(0,m.useCallback)((function(){V()}),[]),ye=(0,m.useCallback)((function(){if(null!=R&&R.delivery_appendix_url){var e,n=null==R||null===(e=R.delivery_appendix_url)||void 0===e?void 0:e.map((function(e){return(0,N.z)(e,"!w800")}));if((null==n?void 0:n.length)<=0)return pe.Z9.error("暂无图片");d().previewImage({current:n[0],urls:n})}}),[R]),Se=(0,m.useState)(!1),Ke=(0,i.Z)(Se,2),Ve=Ke[0],$e=Ke[1],He=(0,Be.RX)().fetchData,Je=function(){var e=(0,s.Z)((0,o.Z)().mark((function _callee3(){var e,n;return(0,o.Z)().wrap((function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:return e=[],null==R||R.product_list.forEach((function(n){null==n||n.product_colors.map((function(n){return 0==(null==R?void 0:R.sale_mode)?e.push({product_color_id:n.id,roll:n.roll}):e.push({product_color_id:n.id,length:n.length})}))})),r.next=4,He({sale_mode:null==R?void 0:R.sale_mode,color_list:e});case 4:(n=r.sent).success?(d().showToast({title:"已加入购物车"}),$e(!0)):d().showToast({icon:"none",title:n.msg});case 6:case"end":return r.stop()}}),_callee3)})));return function addShopCart(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){R&&function formatData(){console.log("formatData",R),X((0,a.Z)((0,a.Z)({},R),{},{unit:0==R.sale_mode?"条":"m",list:R.product_list}))}()}),[R]);var Xe=(0,m.useState)(!1),Ye=(0,i.Z)(Xe,2),qe=Ye[0],Qe=Ye[1],en=(0,m.useCallback)((function(){Qe(!0)}),[]),nn=(0,m.useCallback)((function(){Qe(!1)}),[]),rn=(0,m.useState)(!1),tn=(0,i.Z)(rn,2),an=tn[0],on=tn[1],sn=(0,we.v)((function(e){return e.userInfo})),_n=(0,m.useCallback)((function(e){if(e===Me.s.CancelOrder||e===Me.s.ConfirmReceipt||e===Me.s.Refund)e===Me.s.CancelOrder&&(0,je.cJ)({order_type:de.sale_mode_name,order_number:de.order_no,province:de.province_name,city:de.city_name,area:de.district_name,trigger_time:(0,N.o0)(new Date),purchaser_name:sn.adminUserInfo.user_name||"未知用户",purchaser_id:sn.adminUserInfo.user_id||0}),V();else if(e===Me.s.Pay)K();else if(e===Me.s.ApplyRefund){if(null==R||!R.av_return_roll)return pe.Z9.none("该订单已申请过退款");(0,je.$$)({order_type:de.sale_mode_name,order_number:de.order_no,province:de.province_name,city:de.city_name,area:de.district_name,trigger_time:(0,N.o0)(new Date),purchaser_name:sn.adminUserInfo.user_name||"未知用户",purchaser_id:sn.adminUserInfo.user_id||0}),xe(!0)}else e===Me.s.ApplyReturn?(0,je.XA)({order_type:de.sale_mode_name,order_number:de.order_no,province:de.province_name,city:de.city_name,area:de.district_name,trigger_time:(0,N.o0)(new Date),purchaser_name:sn.adminUserInfo.user_name||"未知用户",purchaser_id:sn.adminUserInfo.user_id||0}):e===Me.s.BuyAgain?((0,je.J8)({order_type:de.sale_mode_nam,order_number:de.order_no,trigger_time:(0,N.o0)(new Date),purchaser_name:sn.adminUserInfo.user_name||"未知用户",purchaser_id:sn.adminUserInfo.user_id||0}),Je()):e===Me.s.AfterSalesRecord?en():e===Me.s.SalesCodeList&&(on(!0),(0,je.Y8)({order_type:de.sale_mode_nam,order_number:de.order_no,trigger_time:(0,N.o0)(new Date),purchaser_name:sn.adminUserInfo.user_name||"未知用户",purchaser_id:sn.adminUserInfo.user_id||0}))}),[R]);return(0,G.jsx)(Le.Z,{pageName:"pages/order/index",orderObj:R,showList:["order"],messageTitle:null==R?void 0:R.order_no,messagePath:"/pages/order/index?id=".concat(null==R?void 0:R.id),showCart:!0,children:(0,G.jsxs)(_.G7,{className:ke,children:[(0,G.jsxs)(_.G7,{className:Ne,children:[(0,G.jsx)(_.G7,{style:{margin:"20rpx",marginBottom:"0"},children:(null==R?void 0:R.status)!=S.value&&(0,G.jsx)(ae,{picUrl:null==R?void 0:R.picUrl,orderInfo:R})||(0,G.jsx)(I,{orderInfo:R,onRefresh:ce})}),(0,G.jsx)(_.G7,{style:{margin:"0 20rpx"},children:(0,G.jsx)(h.Z,{orderInfo:Y,onLogistics:ye,onSelect:te,onChangeShipmentMode:re,ref:ne})}),(0,G.jsx)(_.G7,{style:{margin:"0 20rpx"},children:(0,G.jsx)(U.Z,{order:J})}),(0,G.jsx)(_.G7,{style:{margin:"0 20rpx"},children:(0,G.jsxs)(_.G7,{className:Ue,children:[(0,G.jsx)(_.G7,{className:Re,children:"订单信息"}),(0,G.jsx)(Ee.Z,{showBorder:!1,title:"单号",height:"50rpx",children:(0,G.jsxs)(_.G7,{className:Oe,children:[(0,G.jsx)(_.xv,{children:null==R?void 0:R.order_no}),(0,G.jsx)(_.G7,{className:Ae,onClick:function onClick(){return function clipboardData(){d().setClipboardData({data:(null==R?void 0:R.order_no)||"",success:function success(e){d().showToast({icon:"none",title:"复制成功"})}})}()},children:"复制"})]})}),(0,G.jsx)(Ee.Z,{showBorder:!1,title:"下单时间",height:"50rpx",children:(0,G.jsx)(_.xv,{children:(0,N.o0)(null==R?void 0:R.create_time)})}),(null==R?void 0:R.payment_time)&&(0,G.jsx)(Ee.Z,{showBorder:!1,title:"付款时间",height:"50rpx",children:(0,G.jsx)(_.xv,{children:(0,N.o0)(null==R?void 0:R.payment_time)})})]})}),(0,G.jsx)(_.G7,{style:{margin:"0 20rpx"},children:(0,G.jsxs)(_.G7,{className:Ze,onClick:function descOpen(){if(ee.current.includes(null==R?void 0:R.status))return pe.Z9.none("该订单状态不能修改备注");t((function(){return!0}))},children:[(0,G.jsx)(_.G7,{className:Ce,children:"订单备注"}),E&&(0,G.jsx)(_.G7,{className:Ge,children:null==R?void 0:R.remark})||(0,G.jsx)(_.G7,{className:De,children:"填写备注"}),(0,G.jsx)(_.G7,{className:u()(Ie,"iconfont icon-a-moreback")})]})})]}),(null==R?void 0:R.status)!=w.value&&(0,G.jsx)(_.G7,{className:Pe,children:(0,G.jsx)(Me.Z,{orderInfo:de,onClick:_n})}),(0,G.jsx)(he.Z,{show:r,showTitle:!1,onClose:function onClose(){return t(!1)},children:r&&(0,G.jsx)(se.Z,{onSave:function onSave(e){return Q(e)},defaultValue:null==R?void 0:R.remark})}),(0,G.jsx)(oe.Z,{pageName:"pages/order/index",onSubmitSuccess:le,show:L,onClose:_e,orderInfo:R}),(0,G.jsx)(be,{show:an,onClose:function onClose(){return on(!1)},orderInfo:R}),(0,G.jsx)(P.Z,{show:fe,onSuccess:ve,onClose:ge,orderId:null==R?void 0:R.id}),(0,G.jsx)(Te.Z,{intoStatus:"again",show:Ve,onClose:function onClose(){return $e(!1)}}),(0,G.jsx)(ie.Z,{show:qe,onClose:nn,id:null==R?void 0:R.id})]})})};Ke.enableShareAppMessage=!0;Page((0,t.createPageConfig)(Ke,"pages/order/index",{root:{cn:[]}},{navigationBarTitleText:"订单详情",enablePullDownRefresh:!0,backgroundTextStyle:"dark",enableShareAppMessage:!0}||{}))}},function(e){e.O(0,[1680,4634,6878,3560,9315,4271,635,9907,2977,4423,9760,586,9498,7563,8556,1515,5848,9972,8515,1167,7706,1287,9303,1977,4044,5541,7758,9082,9590,3851,1262,2107,1216,8592],(function(){return n=4363,e(e.s=n);var n}));e.O()}]);