"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1506],{3951:function(e,n,a){var r=a(2180),t=a(4165),l=a(1413),s=a(5861),o=a(9439),i=a(1515),d=a(2954),c=a.n(d),u=a(3012),_=a(7294),m=a(4184),p=a.n(m),h=a(5273),x=a(2019),v="index-module__mainBox___mQLrM",f="index-module__content___tdDBE",N="index-module__pussBox___tLZKt",j="index-module__pussName___iBIBo",g="index-module__productBox___R04Zl",b="index-module__flexMoney___s_H6n",Z="index-module__flexTotalBox___wAhiq",G="index-module__totalFont___jSkLR",k="index-module__shoudPay___MJpPU",y="index-module__titleBox___dkGGI",w="index-module__title___EakYU",B="index-module__modeName___dnaYp",S="index-module__modeLine___Fbuuo",C="index-module__goodsProduct___a3gz3",O="index-module__goodsTitle___rIaoA",T="index-module__goodsEditIcon___hmzYu",z="index-module__itemGoods___ToL6u",D="index-module__itemPic___XAeEt",P="index-module__itemRight___YcZAz",R="index-module__item_right_top___oaSzC",E="index-module__itemName___x6xRO",I="index-module__itemNums___J_SyR",$="index-module__item_right_Bottom___vT1hw",M="index-module__flexBox___Rkh9T",J="index-module__itemMoney___O5qmx",Y="index-module__lastBox___ozfTM",F="index-module__itemMoneyOne___Gz0gg",L="index-module__remarkFont___gX_FH",q="index-module__layoutBlock___WYsqF",A="index-module__bottomBox___zkEdG",V="index-module__leftBottom___HQr6J",K="index-module__topFlex___Z6FD0",H="index-module__topFont___grB9f",U="index-module__topTotal___fZHPJ",X="index-module__bottomFlex___raRz2",Q="index-module__rightBottom___Zb7vs",W="index-module__modal___OKGY4",ee="index-module__modalTitle___V8Aqk",ne="index-module__modalContainer___CPqmw",ae="index-module__inputBar___JS4lv",re="index-module__input___KokVA",te="index-module__tips___b9mHc",le="index-module__modalButton___K5nPc",se="index-module__modalButton--cancel___VJtRq",oe="index-module__modalButton--confirm___oqrVk",ie="index-module__disabled___q7sRJ",de="index-module__errorMsg___dZVyB",ce=a(5989),ue=a(7227),_e=a(9498),me=a(1251),pe=a(1115),he=a(4812),xe=a(6028),ve=a(2185),fe=a(3407),Ne=a(4547),je=a(2128),ge=a(8260),be=a(3818),Ze=a(4262),Ge=a(8051),ke=a(5893),ye=function DefaultBox(e){var n=e.title,a=void 0===n?"标题":n,r=e.modeName,t=void 0===r?"大货":r,l=e.showMode,s=void 0!==l&&l,o=e.children,d=e.clickNode;return(0,ke.jsxs)(ge.Z,{circle:!0,customStyle:{marginTop:"24rpx"},children:[(0,ke.jsxs)(i.G7,{className:y,children:[(0,ke.jsx)(i.G7,{className:w,children:a}),s&&(0,ke.jsx)(i.G7,{className:B,onClick:function onClick(){return null==d?void 0:d()},children:t})]}),(0,ke.jsx)(i.G7,{className:S}),o]})},we=(0,_.memo)(ye),Be=function GoodsItem(e){var n=e.list,a=void 0===n?[]:n,r=e.obj,t=void 0===r?{}:r,l=e.updateData,s=(0,_.useState)(a),d=(0,o.Z)(s,2),c=d[0],m=d[1];(0,_.useEffect)((function(){m(a)}),[a]);var h=(0,_.useCallback)((function(e){return{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url}}),[]),x=(0,_.useRef)([]),v=(0,_.useState)(!1),f=(0,o.Z)(v,2),N=f[0],j=f[1],g=(0,_.useState)(!1),b=(0,o.Z)(g,2),Z=b[0],G=b[1],k=function handleCancel(){G(!1),j(!1)},y=(0,_.useState)("-1.5"),w=(0,o.Z)(y,2),B=w[0],S=w[1],L=function handleInput(e){var n=e.detail.value;return S(n),n},A=(0,_.useMemo)((function(){return console.log("errorMsg",B),/[a-zA-Z]/.test(B)||Number.isNaN(Number(B))?"请填写数字":Number(B)<-3?"不能小于-3":""}),[B]);return(0,ke.jsxs)(i.G7,{children:[c.map((function(e,n){return(0,ke.jsxs)(ge.Z,{circle:!0,customClassName:n===a.length-1?q:"",children:[(0,ke.jsxs)(i.G7,{className:C,children:[(0,ke.jsxs)(i.G7,{className:O,children:[(0,he.ZK)(e.code),"# ",e.name]}),(0,ke.jsx)(i.G7,{className:T,onClick:function onClick(){return function handleClickBulkEdit(e){x.current=[e],j(!0)}(e.id)},children:(0,ke.jsx)(be.Z,{iconName:"icon-bianji1",iconSize:30,svg:!0,color:"#3d85ff",text:"批量修改",textCustomStyle:{color:"#3d85ff"}})})]}),(0,ke.jsx)(je.Z,{direction:"horizontal",customStyles:{marginTop:"24rpx",marginBottom:"32rpx"}}),e.product_colors.map((function(n,a){return(0,ke.jsxs)(i.G7,{className:z,children:[(0,ke.jsx)(i.G7,{className:D,children:(0,ke.jsx)(fe.Z,{value:h(n)})}),(0,ke.jsxs)(i.G7,{className:P,children:[(0,ke.jsxs)(i.G7,{children:[(0,ke.jsxs)(i.G7,{className:R,children:[(0,ke.jsxs)(i.G7,{className:E,children:[(0,he.ZK)(n.code),"# ",n.name]}),(0,ke.jsxs)(i.G7,{className:I,children:["x",(null==t?void 0:t.sale_mode)===Ne.p.Bulk?n.roll:(0,he.N6)(n.length),0===(null==t?void 0:t.sale_mode)?"条":"米"]})]}),(0,ke.jsxs)(i.G7,{className:$,children:[(0,ke.jsxs)(i.G7,{className:M,children:[(0,ke.jsxs)(i.G7,{className:J,children:["¥",(0,he.yb)(n.sale_price,100,!0),"/",(null==t?void 0:t.sale_mode)===Ne.p.Plate?"m":"kg"]}),(null==t?void 0:t.sale_mode)===Ne.p.Bulk&&(null==n?void 0:n.sale_price)!==(null==n?void 0:n.standard_price)?(0,ke.jsxs)(i.G7,{className:Y,children:["¥",(0,he.yb)(null==n?void 0:n.standard_price,100,!0),"/kg"]}):null,(null==t?void 0:t.sale_mode)===Ne.p.Plate&&(null==n?void 0:n.sale_price)!==(null==n?void 0:n.standard_price)?(0,ke.jsxs)(i.G7,{className:Y,children:["¥",(0,he.yb)(null==n?void 0:n.standard_price,100,!0),"/m"]}):null,(null==t?void 0:t.sale_mode)===Ne.p.BulkCut&&(null==n?void 0:n.sale_price)!==(null==n?void 0:n.standard_price)?(0,ke.jsxs)(i.G7,{className:Y,children:["¥",(0,he.yb)(null==n?void 0:n.standard_price,100,!0),"/kg"]}):null,(0,ke.jsx)(i.G7,{onClick:function onClick(){return function handleEdit(e,n){x.current=[e,n],G(!0)}(n.id,e.id)},children:(0,ke.jsx)(xe.Z,{name:"icon-bianji1",color:"#3d85ff"})})]}),(0,ke.jsxs)(i.G7,{className:F,children:["¥",(0,he.yb)(n.estimate_amount)]})]})]}),(0,ke.jsx)(je.Z,{direction:"horizontal",customStyles:{marginTop:"20rpx",marginBottom:"0"}})]})]},a)}))]},n)})),(0,ke.jsx)(Ze.Z,{zIndex:999,show:N,onChange:function handleBulkPopupChange(e){j(e)},children:(0,ke.jsxs)(i.G7,{className:W,children:[(0,ke.jsx)(i.G7,{className:ee,children:"批量调整"}),(0,ke.jsxs)(i.G7,{className:ne,children:[(0,ke.jsx)(i.G7,{className:ae,children:(0,ke.jsx)(Ge.Z,{customInputClassName:re,value:B,onInput:L,placeholder:"请输入调价价格"})}),A&&(0,ke.jsx)(i.xv,{className:de,children:A}),(0,ke.jsx)(i.G7,{className:te,children:"批量调价是在标准报价基础上调整,增加价格则输入正数,减少则输入负数"})]}),(0,ke.jsx)(je.Z,{direction:"horizontal",customStyles:{margin:"0",opacity:"0.7",transform:"translateY(1px) scaleY(0.6)"}}),(0,ke.jsxs)(i.G7,{className:le,children:[(0,ke.jsx)(i.G7,{className:se,onClick:k,children:"取消"}),(0,ke.jsx)(je.Z,{direction:"vertical",customStyles:{margin:"0",height:"100rpx",opacity:"0.7",transform:"scaleX(0.6)"}}),(0,ke.jsx)(i.G7,{className:p()(oe,A&&ie),onClick:function handleBulkConfirm(){if(!A){var e=a.map((function(e){return e.id===x.current[0]&&(e.product_colors=e.product_colors.map((function(e){return e.sale_price=(0,u.Z)(e.origin_price).add((0,he.$m)(B)),(null==t?void 0:t.sale_mode)===Ne.p.Bulk?e.estimate_amount=(0,he.$m)(Number((0,he.yb)(e.sale_price))*(0,he.$y)(e.estimate_weight)*e.roll):(null==t?void 0:t.sale_mode)===Ne.p.Plate?e.estimate_amount=(0,he.$m)(Number((0,he.yb)(e.sale_price))*(0,he.N6)(e.length)):e.estimate_amount=(0,he.$m)(Number((0,he.yb)(e.sale_price))*(0,he.N6)(e.length)/(0,he.N6)(e.length_to_weight_rate)),e}))),e}));m(e),k(),l({product_list:e,estimate_amount:e.reduce((function(e,n){return e+n.product_colors.reduce((function(e,n){return e+n.estimate_amount}),0)}),0)})}},children:"确认"})]})]})}),(0,ke.jsx)(Ze.Z,{zIndex:999,show:Z,onChange:function handleChange(e){G(e)},children:(0,ke.jsxs)(i.G7,{className:W,children:[(0,ke.jsx)(i.G7,{className:ee,children:"单价调整"}),(0,ke.jsxs)(i.G7,{className:ne,children:[(0,ke.jsx)(i.G7,{className:ae,children:(0,ke.jsx)(Ge.Z,{customInputClassName:re,value:B,onInput:L,placeholder:"请输入调价价格"})}),A&&(0,ke.jsx)(i.xv,{className:de,children:A}),(0,ke.jsx)(i.G7,{className:te,children:"调价是在标准报价基础上调整,增加价格则输入正数,减少则输入负数"})]}),(0,ke.jsx)(je.Z,{direction:"horizontal",customStyles:{margin:"0",opacity:"0.7",transform:"translateY(1px) scaleY(0.6)"}}),(0,ke.jsxs)(i.G7,{className:le,children:[(0,ke.jsx)(i.G7,{className:se,onClick:k,children:"取消"}),(0,ke.jsx)(je.Z,{direction:"vertical",customStyles:{margin:"0",height:"100rpx",opacity:"0.7",transform:"scaleX(0.6)"}}),(0,ke.jsx)(i.G7,{className:p()(oe,A&&ie),onClick:function handleConfirm(){if(!A){var e=a.map((function(e){return e.id===x.current[1]&&(e.product_colors=e.product_colors.map((function(e){return e.id===x.current[0]&&(e.sale_price=(0,u.Z)(e.origin_price).add((0,he.$m)(B)),(null==t?void 0:t.sale_mode)===Ne.p.Bulk?e.estimate_amount=(0,he.$m)(Number((0,he.yb)(e.sale_price))*(0,he.$y)(e.estimate_weight)*e.roll):(null==t?void 0:t.sale_mode)===Ne.p.Plate?e.estimate_amount=(0,he.$m)(Number((0,he.yb)(e.sale_price))*(0,he.N6)(e.length)):(e.estimate_amount=(0,he.$m)(Number((0,he.yb)(e.sale_price))*(0,he.N6)(e.length)/(0,he.N6)(e.length_to_weight_rate)).toFixed(0),console.log("estimate_amount",e.estimate_amount,(0,he.yb)(e.estimate_amount,100,!0)))),e}))),e}));m(e),k(),l({product_list:e,estimate_amount:e.reduce((function(e,n){return e+n.product_colors.reduce((function(e,n){return e+n.estimate_amount}),0)}),0)})}},children:"确认"})]})]})})]})},Se=(0,_.memo)(Be),Ce=function SubmitOrder(){var e,n=(0,_.useRef)([]),a=c().getCurrentPages(),r=a[a.length-1],u=(0,ve.gV)().fetchData,m=(0,d.useRouter)(),p=(0,_.useState)({}),y=(0,o.Z)(p,2),w=y[0],B=y[1],S=-1,C=(0,_.useRef)(!1),O=(0,_.useState)(null),T=(0,o.Z)(O,2),z=T[0],D=T[1],P=(0,ue.Ds)(function(){var e=(0,s.Z)((0,t.Z)().mark((function _callee(e,a){var s;return(0,t.Z)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:if(e.stopPropagation(),z!=a){t.next=4;break}return pe.Z9.error("不能选择相同的方式"),t.abrupt("return",!1);case 4:c().showLoading({title:"请稍等...",mask:!0}),2===a&&n.current.length>0&&(null===(s=r.data)||void 0===s||!s.addressObj)&&B((function(e){var a,r,t,s,o,i,d;return(0,l.Z)((0,l.Z)({},e),{},{province_name:null===(a=n.current[0])||void 0===a?void 0:a.province_name,address_id:null===(r=n.current[0])||void 0===r?void 0:r.id,city_name:null===(t=n.current[0])||void 0===t?void 0:t.city_name,address_detail:null===(s=n.current[0])||void 0===s?void 0:s.address_detail,district_name:null===(o=n.current[0])||void 0===o?void 0:o.district_name,target_user_name:null===(i=n.current[0])||void 0===i?void 0:i.name,purchaser_phone:null===(d=n.current[0])||void 0===d?void 0:d.phone})})),2!==a||n.current.length||null!=w&&w.province_name||pe.Z9.error("请选择地址"),D(a),c().hideLoading();case 9:case"end":return t.stop()}}),_callee)})));return function(n,a){return e.apply(this,arguments)}}(),300),R=(0,me.vw)().fetchData,E=(0,_.useState)(""),I=(0,o.Z)(E,2),$=I[0],M=I[1],J=function(){var e=(0,s.Z)((0,t.Z)().mark((function _callee2(){var e,n,a,r,s;return(0,t.Z)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:return[],console.log("purchaser_name",m.params.purchaser_name),n=JSON.parse(decodeURIComponent(m.params.shopping_cart_product_color_list)),a=[],null===(e=n)||void 0===e||e.forEach((function(e){a.push({shopping_cart_product_color_id:parseInt(e),sale_price:0})})),r={purchaser_id:Number(m.params.purchaser_id),sale_mode:Number(m.params.sale_mode),shopping_cart_product_color_list:a},t.next=8,R(r);case 8:s=t.sent,B((0,l.Z)((0,l.Z)({},s.data),{},{product_list:s.data.product_list.map((function(e){return e.product_colors=e.product_colors.map((function(e){return e.origin_price=e.standard_price,e})),e}))}));case 10:case"end":return t.stop()}}),_callee2)})));return function getDetail(){return e.apply(this,arguments)}}(),Y=(0,me.gD)().fetchData,F=function(){var e=(0,s.Z)((0,t.Z)().mark((function _callee3(){var e,n,a,r,s,o;return(0,t.Z)().wrap((function _callee3$(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==(n=JSON.parse(null==m||null===(e=m.params)||void 0===e?void 0:e.sale_order_product_color_list)||[])?void 0:n.length)>0)){t.next=9;break}return r=[],s=Number(null==m?void 0:m.params.sale_mode),n.forEach((function(e){r.push({length:(null==e?void 0:e.length)||0,roll:e.roll,product_color_id:e.id,sale_price:s===Ne.p.Bulk?e.bulk_price:s===Ne.p.Plate?e.length_cut_price:e.weight_cut_price})})),t.next=7,Y({sale_mode:s,sale_order_product_color_list:r,purchaser_id:Number(null==m?void 0:m.params.purchaser_id)});case 7:o=t.sent,B((0,l.Z)((0,l.Z)({},o.data),{},{product_list:null===(a=o.data.product_list)||void 0===a?void 0:a.map((function(e){return e.product_colors=e.product_colors.map((function(e){return e.origin_price=e.standard_price,e})),e}))}));case 9:case"end":return t.stop()}}),_callee3)})));return function getOnceDetail(){return e.apply(this,arguments)}}(),q=(0,_.useState)(!1),W=(0,o.Z)(q,2),ee=W[0],ne=W[1],ae=(0,_.useCallback)(function(){var e=(0,s.Z)((0,t.Z)().mark((function _callee4(e){return(0,t.Z)().wrap((function _callee4$(n){for(;;)switch(n.prev=n.next){case 0:ne(!1),B((function(n){return(0,l.Z)((0,l.Z)({},n),{},{remark:e})}));case 2:case"end":return n.stop()}}),_callee4)})));return function(n){return e.apply(this,arguments)}}(),[]),re=(0,_e.Yw)().openSubscriptionMessage,te=(0,me.we)().fetchData,le=(0,me.NJ)().fetchData,se=function(){var e=(0,s.Z)((0,t.Z)().mark((function _callee6(){var e,a;return(0,t.Z)().wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,u({purchaser_id:m.params.purchaser_id});case 2:a=r.sent,n.current=null==a||null===(e=a.data)||void 0===e?void 0:e.list.filter((function(e){return e.is_default}));case 4:case"end":return r.stop()}}),_callee6)})));return function getAddress(){return e.apply(this,arguments)}}();(0,_.useEffect)((function(){B(w)}),[w]),(0,d.useDidShow)((function(){var e,n,a,t,s,o;B((function(e){var n,a,t,s,o,i,d,c,u,_,p,h,x,v,f,N,j,g,b,Z,G,k,y,w,B,S,C,O;return(0,l.Z)((0,l.Z)({},e),{},{sale_mode:Number(m.params.sale_mode),province_name:null!==(n=r.data)&&void 0!==n&&null!==(a=n.addressObj)&&void 0!==a&&a.province_name?null===(t=r.data)||void 0===t||null===(s=t.addressObj)||void 0===s?void 0:s.province_name:"",address_id:null!==(o=r.data)&&void 0!==o&&null!==(i=o.addressObj)&&void 0!==i&&i.id?null===(d=r.data)||void 0===d||null===(c=d.addressObj)||void 0===c?void 0:c.id:"",city_name:null!==(u=r.data)&&void 0!==u&&null!==(_=u.addressObj)&&void 0!==_&&_.city_name?null===(p=r.data)||void 0===p||null===(h=p.addressObj)||void 0===h?void 0:h.city_name:"",address_detail:null!==(x=r.data)&&void 0!==x&&null!==(v=x.addressObj)&&void 0!==v&&v.address_detail?null===(f=r.data)||void 0===f||null===(N=f.addressObj)||void 0===N?void 0:N.address_detail:"",district_name:null!==(j=r.data)&&void 0!==j&&null!==(g=j.addressObj)&&void 0!==g&&g.district_name?null===(b=r.data)||void 0===b||null===(Z=b.addressObj)||void 0===Z?void 0:Z.district_name:"",target_user_name:null!==(G=r.data)&&void 0!==G&&null!==(k=G.addressObj)&&void 0!==k&&k.name?null===(y=r.data)||void 0===y||null===(w=y.addressObj)||void 0===w?void 0:w.name:"",purchaser_phone:null!==(B=r.data)&&void 0!==B&&null!==(S=B.addressObj)&&void 0!==S&&S.phone?null===(C=r.data)||void 0===C||null===(O=C.addressObj)||void 0===O?void 0:O.phone:""})})),S=null===(e=r.data)||void 0===e||null===(n=e.addressObj)||void 0===n?void 0:n.id;var i=null==r||null===(a=r.data)||void 0===a||null===(t=a.ids)||void 0===t?void 0:t.filter((function(e){return e==S}));null!=r&&null!==(s=r.data)&&void 0!==s&&s.ids&&0===i.length&&B((function(e){return(0,l.Z)((0,l.Z)({},e),{},{sale_mode:Number(m.params.sale_mode),province_name:"",address_id:"",city_name:"",address_detail:"",district_name:"",target_user_name:"",purchaser_phone:""})})),null!==(o=r.data)&&void 0!==o&&o.addressObj?D(2):D(1)})),(0,_.useEffect)((function(){se(),console.log("isBuyNew",m.params.isBuyNew),M(decodeURIComponent(m.params.purchaser_name)),C.current=JSON.parse(m.params.isBuyNew),C.current?F():J()}),[]);return(0,ke.jsxs)(i.G7,{className:v,children:[(0,ke.jsxs)(i.G7,{className:f,children:[(0,ke.jsx)(h.Z,{navSelect:function navSelect(e){return function handSelect(e){if(1==z)return!1;c().navigateTo({url:"/pages/addressManager/index?orderId=-100"+"&purchaser_id=".concat(m.params.purchaser_id)})}()},obj:w,receivingStatus:z,onReceivingStatus:function onReceivingStatus(e,n){return P(e,n)}}),(0,ke.jsx)(we,{showMode:!0,title:"客户信息",modeName:w.sale_mode_name,children:(0,ke.jsx)(i.G7,{className:N,children:(0,ke.jsx)(i.G7,{className:j,children:$})})}),(0,ke.jsxs)(i.G7,{className:g,children:[(0,ke.jsx)(Se,{list:null==w?void 0:w.product_list,obj:w,updateData:function updateData(e){B((function(n){return(0,l.Z)((0,l.Z)({},n),e)}))}}),(0,ke.jsxs)(i.G7,{className:b,children:[(0,ke.jsxs)(i.G7,{className:Z,children:[(0,ke.jsx)(i.G7,{className:G,children:"合计金额"}),(0,ke.jsx)(xe.Z,{name:"icon-tishi",size:28})]}),(0,ke.jsxs)(i.G7,{className:k,children:["¥",(0,he.yb)(w.estimate_amount,100,!0)]})]})]}),(0,ke.jsx)(we,{title:"备注信息",showMode:!0,modeName:"填写/修改备注".concat(" >"),clickNode:function clickNode(){return ne(!0)},children:(0,ke.jsx)(i.G7,{className:L,children:w.remark?w.remark:"暂无"})})]}),(0,ke.jsxs)(i.G7,{className:A,children:[(0,ke.jsxs)(i.G7,{className:V,children:[(0,ke.jsxs)(i.G7,{className:K,children:[(0,ke.jsx)(i.G7,{className:H,children:"预估金额:"}),(0,ke.jsxs)(i.G7,{className:U,children:["¥",(0,he.yb)(w.estimate_amount,100,!0)]})]}),(0,ke.jsxs)(i.G7,{className:X,children:[null===(e=w.product_list)||void 0===e?void 0:e.length," 种面料,",w.total_colors," 种颜色,共 ",0===w.sale_mode?w.total_number:w.total_number/100," ",0===w.sale_mode?"条":"m"]})]}),(0,ke.jsx)(i.G7,{className:Q,onClick:function handSure(){if(2==z&&!w.address_id)return pe.Z9.error("请选择地址");var e=[];C.current?w.product_list.forEach((function(n){n.product_colors.forEach((function(n){e.push({length:n.length,roll:n.roll,sale_price:Number(n.sale_price),product_color_id:Number(n.id)})}))})):w.product_list.forEach((function(n){n.product_colors.forEach((function(n){e.push({sale_price:Number(n.sale_price),shopping_cart_product_color_id:Number(n.id)})}))}));var n={address_id:Number(w.address_id)?Number(w.address_id):0,list:e,physical_warehouse:w.physical_warehouse,purchaser_id:Number(m.params.purchaser_id),remark:w.remark,sale_mode:w.sale_mode,shipment_mode:z};c().showModal({content:"确认提交吗?",confirmText:"确认",cancelText:"取消",success:function success(e){return(0,s.Z)((0,t.Z)().mark((function _callee5(){var a,r,l;return(0,t.Z)().wrap((function _callee5$(t){for(;;)switch(t.prev=t.next){case 0:if(!e.confirm){t.next=14;break}return t.next=3,re({scenes:5});case 3:if(c().showLoading({title:"请稍等...",mask:!0}),!C.current){t.next=10;break}return t.next=7,le(n);case 7:r=t.sent,t.next=13;break;case 10:return t.next=12,te(n);case 12:r=t.sent;case 13:"success"===(null===(a=r)||void 0===a?void 0:a.msg)?(c().showToast({title:"成功"}),c().hideLoading(),c().redirectTo({url:"/pages/orderDetails/index?id=".concat(r.data.id)})):(c().hideLoading(),c().showToast({title:null===(l=r)||void 0===l?void 0:l.msg,icon:"error"}));case 14:case"end":return t.stop()}}),_callee5)})))()}})},children:"提交订单"})]}),(0,ke.jsx)(ce.Z,{show:ee,showTitle:!1,onClose:function onClose(){return ne(!1)},children:ee&&(0,ke.jsx)(x.Z,{onSave:function onSave(e){return ae(e)},defaultValue:w.remark})})]})};Page((0,r.createPageConfig)(Ce,"pages/submitOrder/index",{root:{cn:[]}},{navigationBarTitleText:"确认订单"}||{}))}},function(e){e.O(0,[2107,1216,8592],(function(){return n=3951,e(e.s=n);var n}));e.O()}]);