徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
9.2 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/orderDetail/index"],{"0d4b":function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("7561");r(n("3240"));var o=r(n("8d92"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"1dba":function(e,t,n){"use strict";var r=n("5b14"),o=n.n(r);o.a},"359a":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.orderInfo.split&&e.orderInfo.split.length),r=e.orderInfo.cartInfo&&e.orderInfo.cartInfo.length,o=r?e.__map(e.orderInfo.cartInfo,(function(t,n){var r=e.__get_orig(t),o=2==e.orderInfo._status._type&&"send"==e.orderInfo.delivery_type&&!t.is_writeoff&&t.surplus_num<t.cart_num?parseInt(t.cart_num):null,i=2==e.orderInfo._status._type&&"send"==e.orderInfo.delivery_type&&!t.is_writeoff&&t.surplus_num<t.cart_num?parseInt(t.surplus_num):null;return{$orig:r,m0:o,m1:i}})):null,i=r?e.__map(e.giveData.give_coupon,(function(t,n){var r=e.__get_orig(t),o=e.giveData.give_coupon.length;return{$orig:r,g2:o}})):null,a=e.orderInfo.virtual_info&&1==e.orderInfo.product_type?e.__map(e.orderInfo.virtual_info,(function(t,n){var r=e.__get_orig(t),o=Array.isArray(e.orderInfo.virtual_info);return{$orig:r,g3:o}})):null,u=e.orderInfo.refund_img&&e.orderInfo.refund_img.length,s=e.orderInfo.refund_goods_img&&e.orderInfo.refund_goods_img.length,d="fictitious"!=e.orderInfo.delivery_type&&2===e.orderInfo._status._type&&(!e.orderInfo.split||!e.orderInfo.split.length),f=-3!=e.statusType?(parseFloat(e.orderInfo.total_price)+parseFloat(e.orderInfo.vip_true_price)).toFixed(2):null,c=e.orderInfo.vip_true_price>0?parseFloat(e.orderInfo.vip_true_price).toFixed(2):null,l=e.orderInfo.use_integral>0?parseFloat(e.orderInfo.deduction_price).toFixed(2):null,p=e.__map(e.orderInfo.promotions_detail,(function(t,n){var r=e.__get_orig(t),o=parseFloat(t.promotions_price),i=o?parseFloat(t.promotions_price).toFixed(2):null;return{$orig:r,m2:o,g10:i}})),g="looks"!=e.goname?(!e.orderInfo.refund||!e.orderInfo.refund.length)&&(0==e.orderInfo.refund_type||1==e.orderInfo.refund_type||5==e.orderInfo.refund_type)&&e.orderInfo.paid&&parseFloat(e.orderInfo.pay_price)>=0:null;e._isMounted||(e.e0=function(t){e.confirmShow=!0},e.e1=function(t){e.confirmShow=!1}),e.$mp.data=Object.assign({},{$root:{g0:n,g1:r,l0:o,l1:i,l2:a,g4:u,g5:s,g6:d,g7:f,g8:c,g9:l,l3:p,g11:g}})},o=[]},"4a8e":function(e,t,n){"use strict";n.r(t);var r=n("b6eb"),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},"5b14":function(e,t,n){},"8d92":function(e,t,n){"use strict";n.r(t);var r=n("359a"),o=n("4a8e");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("1dba");var a=n("828b"),u=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"3e1d1770",null,!1,r["a"],void 0);t["default"]=u.exports},b6eb:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7eb4")),i=r(n("ee10")),a=n("e727"),u=n("75c6"),s=n("b135"),d={name:"AdminOrder",components:{PriceChange:function(){n.e("pages/admin/components/PriceChange/index").then(function(){return resolve(n("8bb0"))}.bind(null,n)).catch(n.oe)},customForm:function(){n.e("components/customForm/index").then(function(){return resolve(n("f0f8"))}.bind(null,n)).catch(n.oe)},countDown:function(){n.e("components/countDown/index").then(function(){return resolve(n("b347"))}.bind(null,n)).catch(n.oe)},home:function(){Promise.all([n.e("common/vendor"),n.e("pages/admin/components/home/index")]).then(function(){return resolve(n("9dbc"))}.bind(null,n)).catch(n.oe)},NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("5962"))}.bind(null,n)).catch(n.oe)}},props:{},data:function(){return{openErp:!1,giveData:{give_integral:0,give_coupon:[]},giveCartInfo:[],totalNmu:0,order:!1,change:!1,order_id:"",orderInfo:{_status:{}},status:"",title:"",payType:"",types:"",statusType:"",clickNum:1,goname:"",isRefund:0,iconColor:"#FFFFFF",isScrolling:!1,getHeight:this.$util.getWXStatusHeight(),confirmShow:!1,userInfo:{},storeNum:1}},watch:{"$route.params.oid":function(e){void 0!=e&&(this.order_id=e,this.getIndex())}},onLoad:function(e){this.storeNum=parseInt(e.storeNum),this.order_id=e.id,this.goname=e.goname,this.statusType=e.types},onShow:function(){this.getIndex(),this.getErpConfig()},onPageScroll:function(e){e.scrollTop>50?(this.iconColor="#333333",this.isScrolling=!0):(this.iconColor="#FFFFFF",this.isScrolling=!1)},methods:{verify:function(){4==this.orderInfo.product_type?e.navigateTo({url:"/pages/admin/writeOffCard/index?id="+this.orderInfo.id}):e.navigateTo({url:"/pages/admin/distribution/scanning/detail/index?auth=1&id="+this.orderInfo.id+"&let=1&code="+this.orderInfo.verify_code})},statusChange:function(e){this.status=e},goLogistics:function(t){e.navigateTo({url:"/pages/admin/logistics/index?orderId="+t.order_id})},goDelivery:function(t){this.openErp||e.navigateTo({url:"/pages/admin/delivery/index?id="+t.order_id+"&listId="+t.id+"&totalNum="+t.total_num+"&orderStatus="+t.status+"&comeType=2&productType="+t.product_type})},getErpConfig:function(){var e=this;(0,u.erpConfig)().then((function(t){e.openErp=t.data.open_erp})).catch((function(t){e.$util.Tips({title:t})}))},getpreviewImage:function(t,n){e.previewImage({urls:n?this.orderInfo.refund_img:this.orderInfo.refund_goods_img,current:n?this.orderInfo.refund_img[t]:this.orderInfo.refund_goods_img[t]})},more:function(){this.order=!this.order},modify:function(t,n){1!=t&&this.openErp||(2==t?(this.isRefund=n,e.navigateTo({url:"/pages/admin/refund/index?id="+this.orderInfo.order_id+"&listId="+this.orderInfo.id})):(this.change=!0,this.status=t))},changeclose:function(e){this.change=e},getIndex:function(){var e=this,t=this,n="";if(-3==t.statusType){var r="";r=this.storeNum?(0,a.getAdminRefundDetail)(t.order_id):(0,a.getStoreRefundDetail)(t.order_id),n=r}else{var o="";o=this.storeNum?(0,a.getAdminOrderDetail)(t.order_id):(0,a.getStoreOrderDetail)(t.order_id),n=o}n.then((function(n){var r=0;t.types=n.data._status._type,t.title=n.data._status._title,t.payType=n.data._status._payType,t.giveData.give_coupon=n.data.give_coupon,t.giveData.give_integral=n.data.give_integral;var o=[],i=[];n.data.cartInfo.forEach((function(e,t){r+=e.cart_num,1==e.is_gift?i.push(e):o.push(e)})),e.totalNmu=r,n.data.cartInfo=o,t.$set(t,"giveCartInfo",i),t.orderInfo=n.data,t.getUserInfo()})).catch((function(e){return t.$util.Tips({title:e.msg})}))},objOrderRefund:function(e){var t=this,n="";n=this.storeNum?a.setOrderRefund:a.setStoreOrderRefund,n(e).then((function(e){t.change=!1,t.$util.Tips({title:e.msg}),t.getIndex()}),(function(e){t.change=!1,t.$util.Tips({title:e})}))},savePrice:function(e){var t=this;return(0,i.default)(o.default.mark((function n(){var r,i,u,d,f,c,l,p,g,_;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t,i={},u=e.price,d=e.refund_price,r.orderInfo.refund_status,f=e.remark,i.order_id=r.orderInfo.order_id,0!=r.status){n.next=11;break}if((0,s.isMoney)(u)){n.next=5;break}return n.abrupt("return",r.$util.Tips({title:"请输入正确的金额"}));case 5:i.price=u,c="",c=t.storeNum?a.setAdminOrderPrice:a.setStoreOrderPrice,c(i).then((function(){r.change=!1,r.$util.Tips({title:"改价成功",icon:"success"}),r.getIndex()}),(function(){r.change=!1,r.$util.Tips({title:"改价失败",icon:"none"})})),n.next=35;break;case 11:if(2!=r.status){n.next=23;break}if(!t.isRefund){n.next=20;break}if((0,s.isMoney)(d)){n.next=15;break}return n.abrupt("return",r.$util.Tips({title:"请输入正确的金额"}));case 15:i.price=d,i.type=e.type,t.objOrderRefund(i),n.next=21;break;case 20:1==e.type&&(l="",l=t.storeNum?a.orderRefundAgree:a.storeOrderRefundAgree,l(t.orderInfo.id).then((function(e){r.change=!1,r.$util.Tips({title:e.msg}),r.getIndex()})).catch((function(e){r.change=!1,r.$util.Tips({title:e})})));case 21:n.next=35;break;case 23:if(8!=r.status){n.next=29;break}i.type=e.type,i.refuse_reason=e.refuse_reason,t.objOrderRefund(i),n.next=35;break;case 29:if(f){n.next=31;break}return n.abrupt("return",t.$util.Tips({title:"请输入备注"}));case 31:i.remark=f,p="",-3==r.statusType?(g="",g=t.storeNum?(0,a.setAdminRefundRemark)(i):(0,a.setStoreRefundRemark)(i),p=g):(_="",_=t.storeNum?(0,a.setAdminOrderRemark)(i):(0,a.setStoreOrderRemark)(i),p=_),p.then((function(e){r.change=!1,t.$util.Tips({title:e.msg,icon:"success"}),t.orderInfo.remark=f}),(function(e){r.change=!1,r.$util.Tips({title:e})}));case 35:case"end":return n.stop()}}),n)})))()},offlinePay:function(){var e=this;if(!this.openErp){var t="";t=this.storeNum?a.setOfflinePay:a.setStoreOfflinePay,t({order_id:this.orderInfo.order_id}).then((function(t){e.confirmShow=!1,e.$util.Tips({title:t.msg,icon:"success"}),e.getIndex()}),(function(t){e.$util.Tips({title:t})}))}},copyNum:function(t){e.setClipboardData({data:t,success:function(){}})},getUserInfo:function(){var e=this,t="";t=this.storeNum?a.getUserInfo:a.getStoreUserInfo,t(this.orderInfo.uid).then((function(t){e.userInfo=t.data}))}}};t.default=d}).call(this,n("df3c")["default"])}},[["0d4b","common/runtime","common/vendor","pages/admin/common/vendor"]]]);