require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/order/confirmCompanyOrder"],{"53aa":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.carts,(function(t,n){var r=e.__get_orig(t),o=e.utils.getDictLabelName("storeProductType",t.productType),a=t.price.toFixed(2);return{$orig:r,g0:o,g1:a}}))),r=e.price.payPrice.toFixed(2),o=e.price.totalPrice.toFixed(2);e.$mp.data=Object.assign({},{$root:{l0:n,g2:r,g3:o}})},o=[]},"555f":function(e,t,n){"use strict";var r=n("903f"),o=n.n(r);o.a},"63ff":function(e,t,n){"use strict";n.r(t);var r=n("53aa"),o=n("6d27");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("555f");var c=n("828b"),i=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=i.exports},"6d27":function(e,t,n){"use strict";n.r(t);var r=n("aa3a"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},"903f":function(e,t,n){},aa3a:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("9dab"),o={data:function(){return{inputShow:!1,inputTxt:null,orderKey:null,price:{payPrice:0,totalPrice:0},carts:[]}},onLoad:function(e){this.orderKey=e.orderKey,this.getSalesOrder()},onShareAppMessage:function(e){return{title:"御君方-您的专属健康解决方案",path:"/pages_company/order/confirmOrder?orderKey="+this.orderKey,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},onShareTimeline:function(e){return{title:"御君方-您的专属健康解决方案",query:"orderKey="+this.orderKey,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},methods:{openUpdateMoney:function(){console.log(1),this.inputShow=!0},cancelUpdateMoney:function(){this.inputShow=!1},confirmUpdateMoney:function(){var t=this;if(parseFloat(this.inputTxt)>0){var n={createOrderKey:this.orderKey,token:e.getStorageSync("CompanyUserToken"),money:this.inputTxt};(0,r.updateSalseOrderMoney)(n).then((function(n){200==n.code?(t.inputShow=!1,t.getSalesOrder()):e.showToast({icon:"none",title:n.msg})}),(function(e){}))}else e.showToast({icon:"none",title:"价格应大于0"})},showDetail:function(t){e.navigateTo({url:"productDetails?productId="+t.productId})},getSalesOrder:function(){var t=this,n=this;n.price.payPrice=0,n.price.totalPrice=0;var o={createOrderKey:this.orderKey};(0,r.getSalesOrder)(o).then((function(r){200==r.code?(t.carts=r.carts,t.carts.forEach((function(e){n.price.payPrice+=e.price*e.cartNum})),n.price.totalPrice=r.totalMoney):e.showToast({icon:"none",title:r.msg})}),(function(e){}))}}};t.default=o}).call(this,n("df3c")["default"])},aef6:function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("584a");r(n("3240"));var o=r(n("63ff"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["aef6","common/runtime","common/vendor","pages_company/common/vendor"]]]);