require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/order/confirmOrder"],{823:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(824));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},824:function(e,t,n){"use strict";n.r(t);var r=n(825),o=n(827);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n(829),n(831);var c,a=n(34),u=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"72138f4a",null,!1,r["components"],c);u.options.__file="pages_company/order/confirmOrder.vue",t["default"]=u.exports},825:function(e,t,n){"use strict";n.r(t);var r=n(826);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"]}))},826:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return i})),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),i=t.price.toFixed(2);return{$orig:r,g0:o,g1:i}}))),r=e.price.totalPrice.toFixed(2),o=e.price.payPrice.toFixed(2),i=e.price.payPrice.toFixed(2);e.$mp.data=Object.assign({},{$root:{l0:n,g2:r,g3:o,g4:i}})},i=!1,c=[];o._withStripped=!0},827:function(e,t,n){"use strict";n.r(t);var r=n(828),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},828:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(273),o=n(763),i={data:function(){return{count0:0,messageShow:!1,orderKey:null,price:{totalPrice:0,payPrice:0},carts:[]}},onLoad:function(e){this.orderKey=e.orderKey},onShow:function(){this.utils.isLogin()&&this.getOrderCount(),this.getSalesOrder()},methods:{showOrder:function(){this.utils.isLogin().then((function(t){t&&e.navigateTo({url:"/pages_user/user/storeOrder?status=0"})}))},closeOrder:function(){this.messageShow=!1},getOrderCount:function(){var e=this;(0,r.getOrderCount)().then((function(t){200==t.code&&(e.count0=t.count0,e.count0>0&&(e.messageShow=!0))}),(function(e){}))},showDetail:function(t){e.navigateTo({url:"./productShowDetails?productId="+t.productId})},getSalesOrder:function(t){var n=this,r=this;r.totalPrice=0,r.payPrice=0;var i={createOrderKey:this.orderKey};(0,o.getSalesOrder)(i).then((function(t){200==t.code?(n.carts=t.carts,n.carts.forEach((function(e){r.price.totalPrice+=e.price*e.cartNum})),r.price.payPrice=t.totalMoney):e.showToast({icon:"none",title:t.msg})}),(function(e){}))},submitOrder:function(){var t=this;this.utils.isLogin().then((function(n){if(n){var r={createOrderKey:t.orderKey};(0,o.addUserCart)(r).then((function(n){200==n.code?e.navigateTo({url:"/pages/shopping/confirmCreateOrder?type=buy&cartIds="+n.cartIds.toString()+"&companyId="+n.companyId+"&companyUserId="+n.companyUserId+"&createOrderKey="+t.orderKey}):e.showToast({icon:"none",title:n.msg})}),(function(e){}))}}))}}};t.default=i}).call(this,n(2)["default"])},829:function(e,t,n){"use strict";n.r(t);var r=n(830),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},830:function(e,t,n){},831:function(e,t,n){"use strict";n.r(t);var r=n(832),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},832:function(e,t,n){}},[[823,"common/runtime","common/vendor","pages_company/common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_company/order/confirmOrder.js.map