require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/order/confirmCompanyOrder"],{833:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(834));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},834:function(e,t,n){"use strict";n.r(t);var r=n(835),o=n(837);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n(839);var i,a=n(34),u=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);u.options.__file="pages_company/order/confirmCompanyOrder.vue",t["default"]=u.exports},835:function(e,t,n){"use strict";n.r(t);var r=n(836);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},836:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return c})),n.d(t,"components",(function(){return r}));var o=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),c=t.price.toFixed(2);return{$orig:r,g0:o,g1:c}}))),r=e.price.payPrice.toFixed(2),o=e.price.totalPrice.toFixed(2);e.$mp.data=Object.assign({},{$root:{l0:n,g2:r,g3:o}})},c=!1,i=[];o._withStripped=!0},837:function(e,t,n){"use strict";n.r(t);var r=n(838),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a},838:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(763),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/20250814/3687aa8663c7479d9d75c2d203cbaa72.jpg"}},onShareTimeline:function(e){return{title:"丝路佳选-您的专属健康解决方案",query:"orderKey="+this.orderKey,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250814/3687aa8663c7479d9d75c2d203cbaa72.jpg"}},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(2)["default"])},839:function(e,t,n){"use strict";n.r(t);var r=n(840),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a},840:function(e,t,n){}},[[833,"common/runtime","common/vendor","pages_company/common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_company/order/confirmCompanyOrder.js.map