zx/public/static/js/pages-admin-orderRefund-ind...

1 line
13 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-orderRefund-index"],{"108e":function(e,t,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("bf0f"),r("18f7"),r("de6c"),r("5c47"),r("0506");var i=n(r("2634")),a=n(r("2fdc")),o=n(r("39d8")),s=r("d542"),u=r("8f59"),d={components:{},computed:(0,u.mapGetters)(["viewColor"]),data:function(){var e;return e={order_id:0,mer_id:0,type:0,isShowBox:!1,refund_price:"",refund_order_id:"",status:"",order_status:!1},(0,o.default)(e,"status",1),(0,o.default)(e,"fail_message",""),(0,o.default)(e,"refundInfo",{mer_delivery_user:"",mer_delivery_address:"",phone:""}),(0,o.default)(e,"orderInfo",{}),e},onLoad:function(e){this.order_id=e.id,this.mer_id=e.merId,Promise.all([this.getOrderInfo()])},methods:{getOrderInfo:function(){var e=this;(0,s.getRefundOrderInfo)(e.mer_id,e.order_id).then((function(t){e.orderInfo=t.data,e.refundInfo=t.data.refund_info}),(function(t){e.$util.Tips({title:t})}))},bindComfirm:function(){var e=this;return(0,a.default)((0,i.default)().mark((function t(){var r,n;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e,-1!=r.status){t.next=4;break}if(r.fail_message){t.next=4;break}return t.abrupt("return",r.$util.Tips({title:"请填写拒绝理由"}));case 4:if(n={status:r.status,fail_message:r.fail_message},2!=r.orderInfo.refund_type){t.next=19;break}if(r.refundInfo.mer_delivery_user){t.next=8;break}return t.abrupt("return",r.$util.Tips({title:"请填写收货人姓名"}));case 8:if(r.refundInfo.mer_delivery_address){t.next=10;break}return t.abrupt("return",r.$util.Tips({title:"请填写收货地址"}));case 10:if(r.refundInfo.phone){t.next=14;break}return t.abrupt("return",r.$util.Tips({title:"请填写手机号"}));case 14:if(/^1[3456789]\d{9}$/.test(r.refundInfo.phone)){t.next=16;break}return t.abrupt("return",r.$util.Tips({title:"请填写正确的手机号码"}));case 16:n.mer_delivery_user=r.refundInfo.mer_delivery_user,n.mer_delivery_address=r.refundInfo.mer_delivery_address,n.phone=r.refundInfo.phone;case 19:(0,s.refundOrderSubmit)(r.mer_id,r.order_id,n).then((function(e){r.$util.Tips({title:e.message}),setTimeout((function(e){uni.redirectTo({url:"/pages/admin/orderList/index?types=6&merId=".concat(r.mer_id)})}),1e3)}),(function(e){r.$util.Tips({title:e})}));case 20:case"end":return t.stop()}}),t)})))()}}};t.default=d},1358:function(e,t,r){var n=r("9128");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("967d").default;i("2ad0c93c",n,!0,{sourceMap:!1,shadowMode:!1})},3804:function(e,t,r){"use strict";var n=r("1358"),i=r.n(n);i.a},4296:function(e,t,r){"use strict";r.r(t);var n=r("8fa5"),i=r("681b");for(var a in i)["default"].indexOf(a)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(a);r("3804");var o=r("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"4e5a2bb8",null,!1,n["a"],void 0);t["default"]=s.exports},"681b":function(e,t,r){"use strict";r.r(t);var n=r("108e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},"8fa5":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"refund-wrapper",style:e.viewColor},[r("v-uni-view",{staticClass:"form-box"},[r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[e._v("审核")]),r("v-uni-view",{staticClass:"picker acea-row"},[r("v-uni-view",{staticClass:"agree-count",class:1==e.status?"on":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.status=1}}},[r("v-uni-text",{staticClass:"icon-agree"}),e._v("同意")],1),r("v-uni-view",{staticClass:"agree-count",class:-1==e.status?"on":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.status=-1}}},[r("v-uni-text",{staticClass:"icon-agree"}),e._v("拒绝")],1)],1)],1)],1),1==e.status?r("v-uni-view",{staticCla