require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/storeOrderDetail"],{"0194":function(e,r,n){"use strict";n.d(r,"b",(function(){return o})),n.d(r,"c",(function(){return t})),n.d(r,"a",(function(){}));var o=function(){var e=this,r=e.$createElement,n=(e._self._c,null!=e.order.userPhone?e.utils.parsePhone(e.order.userPhone):null),o=e.__map(e.items,(function(r,n){var o=e.__get_orig(r),t=1!=e.order.isPackage?JSON.parse(r.jsonInfo):null,a=1!=e.order.isPackage?JSON.parse(r.jsonInfo):null,i=1!=e.order.isPackage?JSON.parse(r.jsonInfo):null,s=1!=e.order.isPackage?JSON.parse(r.jsonInfo).price.toFixed(2):null,d=1!=e.order.isPackage?JSON.parse(r.jsonInfo):null;return{$orig:o,g1:t,g2:a,g3:i,g4:s,g5:d}})),t=1==e.order.isPackage&&null!=e.order.packageJson?JSON.parse(e.order.packageJson):null,a=1==e.order.isPackage&&null!=e.order.packageJson?JSON.parse(e.order.packageJson):null,i=1==e.order.isPackage&&null!=e.order.packageJson?JSON.parse(e.order.packageJson):null,s=null!=e.order.payMoney?e.order.payMoney.toFixed(2):null,d=null!=e.order.payDelivery?e.order.payDelivery.toFixed(2):null;e.$mp.data=Object.assign({},{$root:{g0:n,l0:o,g6:t,g7:a,g8:i,g9:s,g10:d}})},t=[]},"1b3e":function(e,r,n){"use strict";n.r(r);var o=n("6026"),t=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(r,e,(function(){return o[e]}))}(a);r["default"]=t.a},6026:function(e,r,n){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n("98ea"),t=n("9dab"),a={data:function(){return{payMoney:0,payDelivery:0,editShow:!1,payLimitTime:null,orderId:null,order:{},items:[],prescribe:null,statusBarHeight:e.getStorageSync("menuInfo").statusBarHeight}},onLoad:function(e){this.orderId=e.id,this.getMyStoreOrderById()},onShareAppMessage:function(e){return{title:"订单:"+this.order.orderCode,path:"/pages/shopping/paymentOrder?orderId=".concat(this.order.id)}},methods:{moneyChange:function(){this.payDelivery=this.order.payPrice-this.payMoney},openEditMoney:function(){console.log(1),this.editShow=!0},cancelEditMoney:function(){this.editShow=!1},confirmEditMoney:function(){var r=this;if(parseFloat(this.payMoney)>=0){var n={orderId:this.order.id,token:e.getStorageSync("CompanyUserToken"),money:this.payMoney};(0,t.editOrderMoney)(n).then((function(n){200==n.code?(r.editShow=!1,r.getMyStoreOrderById()):e.showToast({icon:"none",title:n.msg})}),(function(e){}))}else e.showToast({icon:"none",title:"支付金额应大于等于0"})},showImg:function(){var r=[];r.push(this.prescribe.rpUrl),e.previewImage({urls:r,current:r[0]})},getMyStoreOrderById:function(){var r=this,n={orderId:this.orderId};(0,o.getMyStoreOrderById)(n).then((function(n){200==n.code?(r.order=n.order,r.items=n.items,r.payLimitTime=n.payLimitTime,r.prescribe=n.prescribe,r.payMoney=r.order.payMoney,r.payDelivery=r.order.payDelivery):e.showToast({icon:"none",title:"请求失败"})}))},express:function(){e.navigateTo({url:"./storeOrderDelivery?orderId="+this.order.orderId})},back:function(){e.navigateBack()},copyOrderSn:function(r){e.setClipboardData({data:r,success:function(){e.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})}}};r.default=a}).call(this,n("df3c")["default"])},"940b":function(e,r,n){"use strict";var o=n("9ff0"),t=n.n(o);t.a},9489:function(e,r,n){"use strict";(function(e,r){var o=n("47a9");n("584a");o(n("3240"));var t=o(n("e1c9"));e.__webpack_require_UNI_MP_PLUGIN__=n,r(t.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"9ff0":function(e,r,n){},e1c9:function(e,r,n){"use strict";n.r(r);var o=n("0194"),t=n("1b3e");for(var a in t)["default"].indexOf(a)<0&&function(e){n.d(r,e,(function(){return t[e]}))}(a);n("940b");var i=n("828b"),s=Object(i["a"])(t["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);r["default"]=s.exports}},[["9489","common/runtime","common/vendor","pages_company/common/vendor"]]]);