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
7.2 KiB
1 lines
7.2 KiB
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_reason=e.refuse_reason,t.objOrderRefund(i),n.next=27;break;case 21:if(d){n.next=23;break}return n.abrupt("return",t.$util.Tips({title:"请输入备注"}));case 23:i.remark=d,c="",c=t.storeNum?u.setAdminRefundRemark:u.setStoreRefundRemark,c(i).then((function(e){r.change=!1,t.$util.Tips({title:e.msg,icon:"success"}),t.orderInfo.remark=d}),(function(e){r.change=!1,r.$util.Tips({title:e})}));case 27:case"end":return n.stop()}}),n)})))()},offlinePay:function(){var e=this;if(!this.openErp){var t="";t=this.storeNum?u.setOfflinePay:u.setStoreOfflinePay,t({order_id:this.orderInfo.order_id}).then((function(t){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?u.getUserInfo:u.getStoreUserInfo,t(this.orderInfo.uid).then((function(t){e.userInfo=t.data}))}}};t.default=d}).call(this,n("df3c")["default"])},"82fb":function(e,t,n){},a580:function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("7561");r(n("3240"));var o=r(n("fb3f"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},c893: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,u=e.orderInfo.refund_img&&e.orderInfo.refund_img.length,s=e.orderInfo.refund_goods_img&&e.orderInfo.refund_goods_img.length,a="fictitious"!=e.orderInfo.delivery_type&&2===e.orderInfo._status._type&&(!e.orderInfo.split||!e.orderInfo.split.length),d="looks"!=e.goname?[1].includes(e.orderInfo.apply_type)&&[0].includes(e.orderInfo.refund_type):null,f="looks"!=e.goname?[2,3].includes(e.orderInfo.apply_type)&&[0].includes(e.orderInfo.refund_type):null,c="looks"!=e.goname?[2].includes(e.orderInfo.apply_type)&&[5].includes(e.orderInfo.refund_type):null,l="looks"!=e.goname?[1,2,3].includes(e.orderInfo.apply_type)&&[4,5].includes(e.orderInfo.refund_type):null;e.$mp.data=Object.assign({},{$root:{g0:n,g1:r,l0:o,l1:i,g3:u,g4:s,g5:a,g6:d,g7:f,g8:c,g9:l}})},o=[]},fb3f:function(e,t,n){"use strict";n.r(t);var r=n("c893"),o=n("fe57");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("0491");var u=n("828b"),s=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"7a7ff872",null,!1,r["a"],void 0);t["default"]=s.exports},fe57:function(e,t,n){"use strict";n.r(t);var r=n("54cd"),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}},[["a580","common/runtime","common/vendor","pages/admin/common/vendor"]]]); |