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 line
7.2 KiB
1 line
7.2 KiB
3 months ago
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/refundOrderDetail/index"],{"0491":function(e,t,n){"use strict";var r=n("82fb"),o=n.n(r);o.a},"54cd":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")),u=n("e727"),s=n("75c6"),a=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)},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:"",clickNum:1,goname:"",isRefund:0,iconColor:"#FFFFFF",isScrolling:!1,getHeight:this.$util.getWXStatusHeight(),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.getIndex(),this.getErpConfig()},onPageScroll:function(e){e.scrollTop>50?(this.iconColor="#333333",this.isScrolling=!0):(this.iconColor="#FFFFFF",this.isScrolling=!1)},methods:{goLogistics:function(t){e.navigateTo({url:"/pages/admin/logistics/index?type=refund&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+"&storeNum="+this.storeNum})},getErpConfig:function(){var e=this;(0,s.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(e,t){1!=e&&this.openErp||(this.change=!0,this.status=e,2==e&&(this.isRefund=t))},changeclose:function(e){this.change=e},getIndex:function(){var e=this,t=this,n="";n=this.storeNum?u.getAdminRefundDetail:u.getStoreRefundDetail,n(t.order_id).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?u.setOrderRefund:u.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,s,d,f,c;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t,i={},e.price,s=e.refund_price,r.orderInfo.refund_status,d=e.remark,i.order_id=r.orderInfo.order_id,2!=r.status){n.next=15;break}if(!t.isRefund){n.next=11;break}if((0,a.isMoney)(s)){n.next=6;break}return n.abrupt("return",r.$util.Tips({title:"请输入正确的金额"}));case 6:i.price=s,i.type=e.type,t.objOrderRefund(i),n.next=13;break;case 11:1==e.type&&(f="",f=t.storeNum?u.orderRefundAgree:u.storeOrderRefundAgree,f(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})}))),2==e.type&&(i.type=e.type,i.refuse_reason=e.refuse_reason,t.objOrderRefund(i));case 13:n.next=27;break;case 15:if(8!=r.status){n.next=21;break}i.type=e.type,i.refuse_re
|