1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-after-sale-after-sale"],{"00cc":function(e,t,r){"use strict";var n=r("ea42"),a=r.n(n);a.a},"0a5e":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"after_sale"},[n("v-uni-view",{staticClass:"top"},[n("v-uni-view",{staticClass:"inp flexB"},[0==e.current?n("v-uni-view",{staticClass:"search_inp flexB"},[n("v-uni-text",{staticClass:"iconfont iconsearch"}),n("v-uni-input",{attrs:{placeholder:"请输入订单号查询","placeholder-style":"color:#999;font-size:28rpx;"},model:{value:e.orderNo,callback:function(t){e.orderNo=t},expression:"orderNo"}}),n("v-uni-text",{staticClass:"iconfont icondelete",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear()}}})],1):n("v-uni-view",{staticClass:"search_inp flexB"},[n("v-uni-text",{staticClass:"iconfont iconsearch"}),n("v-uni-input",{attrs:{placeholder:"请输入退单号查询","placeholder-style":"color:#999;font-size:28rpx;"},model:{value:e.refundNo,callback:function(t){e.refundNo=t},expression:"refundNo"}}),n("v-uni-text",{staticClass:"iconfont icondelete",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear()}}})],1),n("v-uni-view",{staticClass:"search_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.search()}}},[e._v("查询")])],1),n("v-uni-view",{staticClass:"tabs flexA"},[n("v-uni-view",{staticClass:"tab_item ",class:0==e.current?"tab_active":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.choose(0)}}},[n("v-uni-text",[e._v("取消订单")]),e.cancelTotal>0?n("v-uni-text",{staticClass:"num"},[e._v("("+e._s(e.cancelTotal)+")")]):e._e()],1),n("v-uni-view",{staticClass:"tab_item ",class:1==e.current?"tab_active":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.choose(1)}}},[n("v-uni-text",[e._v("退货订单")]),e.refundTotal>0?n("v-uni-text",{staticClass:"num"},[e._v("("+e._s(e.refundTotal)+")")]):e._e()],1)],1)],1),n("v-uni-view",{staticClass:"order_list"},[e._l(e.orderList,(function(t,a){return n("v-uni-view",{key:t.id,staticClass:"list_con",on:{click:function(r){arguments[0]=r=e.$handleEvent(r),e.skipDel(t.id,t.order_no)}}},[1==t.status&&1==e.current?n("v-uni-image",{staticClass:"refund_icon",attrs:{src:r("1202")}}):e._e(),2==t.status&&1==e.current?n("v-uni-image",{staticClass:"refund_icon",attrs:{src:r("4e85")}}):e._e(),2==t.apply_cancel&&0==e.current?n("v-uni-image",{staticClass:"cancel_icon",attrs:{src:r("2450")}}):e._e(),3==t.apply_cancel&&0==e.current?n("v-uni-image",{staticClass:"cancel_icon",attrs:{src:r("87ff")}}):e._e(),n("v-uni-view",{staticClass:"flexB order_num"},[n("v-uni-text",[n("v-uni-text",[e._v(e._s(0==e.current?"订单号:":"退单号:"))]),n("v-uni-text",[e._v(e._s(0==e.current?t.order_no:t.refund_no))])],1),1==t.is_help?n("v-uni-text",{staticClass:"ident"},[e._v("代下单")]):e._e()],1),n("v-uni-view",{staticClass:"goods_info"},[e._l(t.goods,(function(t){return n("v-uni-view",{key:t.id,staticStyle:{"margin-top":"20rpx"}},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-image",{staticClass:"goods_img",attrs:{src:t.img}}),n("v-uni-view",{staticClass:"goods_con"},[n("v-uni-view",{staticClass:"goods_name"},[e._v(e._s(t.name))]),n("v-uni-view",{staticClass:"flexB"},[n("v-uni-view",{staticClass:"year"},[e._v("3条装")]),n("v-uni-view",{staticClass:"price"},[n("v-uni-view",{staticStyle:{color:"#999","text-align":"right"}},[e._v("X"+e._s(e._f("subNum")(t)))]),t.sku?n("v-uni-view",{staticStyle:{"margin-top":"10rpx"}},[e._v("¥"+e._s(t.sku[0].price))]):e._e()],1)],1)],1)],1)],1)})),n("v-uni-view",{staticClass:"flexE"},[n("v-uni-text",{staticStyle:{color:"#999"}},[e._v("共"+e._s(e._f("totalNum")(t.goods))+"件,")]),n("v-uni-text",[e._v("合计:")]),n("v-uni-text",{staticClass:"total"},[n("v-uni-text",[e._v("¥")]),n("v-uni-text",[e._v(e._s(e._f("totalPrice")(t.goods)))])],1)],1)],2),n("v-uni-view",{class:t.store?"flexB":"flexE"},[t.store?n("v-uni-view",[e._v("店铺:"+e._s(e._f("getName")(t.store.name,5))+"的店铺")]):e._e(),n("v-uni-view",[1==t.apply_cancel&&0==e.current||0==t.status&&1==e.current?n("v-uni-view",{staticClass:"flexS"},[0==t.status&&1==e.current?n("v-uni-view",{staticClass:"base_btn",staticStyle:{"margin-right":"15rpx"},on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.cancelRefund(t.id,a)}}},[e._v("取消退货")]):e._e(),n("v-uni-view",{staticClass:"audit"},[e._v("审核中")])],1):e._e(),1!=t.apply_cancel&&0==e.current?n("v-uni-view",{staticClass:"cancel_order_btn",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.delRecord(t.id,a)}}},[e._v("删除记录")]):e._e()],1)],1)],1)})),0==e.orderList.length?n("v-uni-view",{staticClass:"noData"},[n("v-uni-image",{attrs:{src:r("c246")}}),n("v-uni-view",[e._v("--暂无订单--")])],1):e._e()],2)],1)},i=[]},1202:function(e,t,r){e.exports=r.p+"static/img/refund_suce.2640ce74.png"},2450:function(e,t,r){e.exports=r.p+"static/img/cancel_suce.a72eec4d.png"},"2a16":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.after_sale[data-v-80332474]{padding-bottom:%?40?%}.after_sale .top[data-v-80332474]{position:fixed;top:0;left:0;width:100%;background:#fff;z-index:9999}.after_sale .top .inp[data-v-80332474]{width:100%;height:%?140?%;padding:0 %?30?%;box-sizing:border-box;background-color:#fff}.after_sale .top .inp .search_inp[data-v-80332474]{width:%?540?%;height:%?80?%;border:%?2?% solid #ccc;border-radius:%?44?%;padding:0 %?30?%;box-sizing:border-box}.after_sale .top .inp .search_inp uni-input[data-v-80332474]{width:80%;height:%?80?%;line-height:%?80?%;color:#333}.after_sale .top .inp .search_inp .iconfont[data-v-80332474]{color:#ccc;font-size:%?40?%}.after_sale .top .inp .search_btn[data-v-80332474]{width:%?124?%;height:%?64?%;text-align:center;line-height:%?64?%;background:linear-gradient(93deg,#ff232c,#ff571b);font-size:%?28?%;color:#fff;border-radius:%?44?%}.after_sale .top .tabs[data-v-80332474]{height:%?89?%}.after_sale .top .tabs .tab_item[data-v-80332474]{font-size:%?32?%;font-weight:700;text-align:center;position:relative}.after_sale .top .tabs .tab_active uni-text[data-v-80332474]{color:#fb231f}.after_sale .top .tabs .tab_active[data-v-80332474]::after{content:"";display:block;position:absolute;width:%?42?%;height:%?8?%;background:linear-gradient(93deg,#ff232c,#ff571b);margin-top:%?6?%;margin-left:%?60?%;border-radius:%?8?%}.after_sale .order_list[data-v-80332474]{margin:%?270?% 0 %?180?%}.after_sale .order_list .list_con[data-v-80332474]{width:%?700?%;margin:%?30?% auto 0;background-color:#fff;font-size:%?28?%;border-radius:%?24?%;position:relative}.after_sale .order_list .list_con > uni-view[data-v-80332474]{padding:%?20?% %?15?%;box-sizing:border-box}.after_sale .order_list .list_con .goods_info[data-v-80332474]{border-bottom:%?1?% solid #e9e9e9;border-top:%?1?% solid #e9e9e9}.after_sale .order_list .list_con .goods_info > uni-view[data-v-80332474]{margin-top:%?15?%}.after_sale .order_list .list_con .goods_info .goods_con[data-v-80332474]{flex:1}.after_sale .order_list .list_con .goods_info .goods_img[data-v-80332474]{width:%?188?%;height:%?144?%;border-radius:%?24?%;margin-right:%?15?%;flex-shrink:0}.after_sale .order_list .list_con .goods_info .goods_name[data-v-80332474]{font-size:%?30?%;font-weight:700}.after_sale .order_list .list_con .order_num[data-v-80332474]{padding:%?20?% %?15?%}.after_sale .order_list .list_con .refund_icon[data-v-80332474]{width:%?202?%;height:%?170?%;position:absolute;top:0;right:%?30?%}.after_sale .order_list .list_con .cancel_icon[data-v-80332474]{width:%?195?%;height:%?125?%;position:absolute;top:0;right:%?30?%}.after_sale .order_list .list_con .audit[data-v-80332474]{color:#fc912d;font-size:%?32?%;font-weight:700}',""]),e.exports=t},"309a":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,"uni-page-body[data-v-80332474]{min-height:100%;width:100%;background-color:#f9f9fb}body.?%PAGE?%[data-v-80332474]{background-color:#f9f9fb}",""]),e.exports=t},"424d":function(e,t,r){"use strict";var n=r("ef7d"),a=r.n(n);a.a},"4e85":function(e,t,r){e.exports=r.p+"static/img/refund_fail.b34a56b3.png"},"57c6":function(e,t,r){"use strict";r.r(t);var n=r("0a5e"),a=r("8ad3");for(var i in a)"default"!==i&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("00cc"),r("424d");var o,s=r("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"80332474",null,!1,n["a"],o);t["default"]=c.exports},"6fa1":function(e,t,r){"use strict";r("99af"),r("a434"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("7575"),a=r("f6ca"),i={data:function(){return{searchName:"",list:[{name:"取消订单"},{name:"退货订单"}],params:{page_size:20,page_index:1},orderList:[],current:0,orderNo:"",refundNo:"",cancelTotal:0,refundTotal:0,totalPage:0}},onLoad:function(e){e.status&&(this.current=e.status),this.getData(),this.getList()},methods:{getData:function(){var e=this,t=this.params,r=t.page_index,i=t.page_size;(0,a.cancelList)({page_index:r,page_size:i}).then((function(t){200==t.code?e.cancelTotal=t.data.total:uni.showModal({content:t.data||"获取取消订单总数失败",showCancel:!1})})),(0,n.refundOrder)({page_index:r,page_size:i}).then((function(t){200==t.code?e.refundTotal=t.data.total:uni.showModal({content:t.data||"获取退货订单总数失败",showCancel:!1})}))},choose:function(e){this.orderNo=this.refundNo="",this.current=e,this.params.page_index=1,this.orderList=[],this.getList(),this.goTop()},clear:function(){this.orderNo=this.refundNo="",this.getList()},cancelRefund:function(e,t){var r=this;uni.showModal({content:"你确定要取消退货吗?",success:function(a){a.confirm&&(0,n.cancelRefund)({refund_id:e}).then((function(e){if(200==e.code){var n=r.orderList;n.splice(n[t],1),uni.showToast({title:"取消退货成功",duration:2e3})}else uni.showModal({content:e.data||"取消退货失败",showCancel:!1})}))}})},search:function(){var e=this,t=this.orderNo,r=this.refundNo;if(!t&&!r)return uni.showModal({content:"请输入订单号查询",showCancel:!1}),!1;var i=t?a.cancelList:n.refundOrder,o=this.params,s=o.page_index,c=o.page_size,d=t?{page_index:s,page_size:c,order_no:t}:{page_index:s,page_size:c,refund_no:r};i(d).then((function(t){200==t.code?e.orderList=t.data.list:uni.showModal({content:t.msg||"搜索订单失败",showCancel:!1})}))},skipDel:function(e,t){uni.navigateTo({url:0==this.current?"../order-audit/order-audit?order_no=".concat(t,"&type=0"):"../order-audit/order-audit?refund_id=".concat(e,"&type=1")})},getList:function(e){var t=this,r=0==this.current?a.cancelList:n.refundOrder,i=this.params;r(i).then((function(r){200==r.code?(t.orderList=e?t.orderList.concat(r.data.list):r.data.list,t.totalPage=Math.ceil(r.data.total/t.params.page_size),0==t.current&&(t.cancelTotal=r.data.total),1==t.current&&(t.refundTotal=r.data.total)):uni.showModal({content:r.msg,showCancel:!1})}))},getMore:function(){if(this.params.page_index>=this.totalPage)return uni.showToast({title:"没有更多啦~",icon:"none"}),!1;this.params.page_index++,this.getList(!0)},delRecord:function(e,t){var r=this;uni.showModal({content:"你确定要删除此条记录吗?",success:function(n){n.confirm&&(0,a.delCancel)({order_id:e}).then((function(e){if(200==e.code){var n=r.orderList;n.splice(t,1),uni.showToast({title:"删除成功!"})}else uni.showModal({content:e.msg,showCancel:!1})}))}})},change:function(e){this.current=e,this.params.page_index=1,this.orderList=this.orderNo=this.refundNo="",this.getList(),this.goTop()},goTop:function(){uni.pageScrollTo&&uni.pageScrollTo({scrollTop:0})}},onReachBottom:function(){this.getMore()}};t.default=i},7575:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.refundDetail=t.cancelRefund=t.delRefund=t.refundOrderDetail=t.refundOrderInfo=t.refundOrder=t.submitRefund=void 0;var a=n(r("57f7")),i=function(e){return a.default.post("/refund/submit_refund_order",e)};t.submitRefund=i;var o=function(e){return a.default.get("/refund/get_all_refund_order",e)};t.refundOrder=o;var s=function(e){return a.default.get("/refund/get_origin_order_info",e)};t.refundOrderInfo=s;var c=function(e){return a.default.get("/refund/get_refund_order_detail",e)};t.refundOrderDetail=c;var d=function(e){return a.default.post("/refund/delete_origin_order",e)};t.delRefund=d;var u=function(e){return a.default.post("/refund/cancel_refund_order",e)};t.cancelRefund=u;var l=function(e){return a.default.get("/order/get_refund_order_detail",e)};t.refundDetail=l},"87ff":function(e,t,r){e.exports=r.p+"static/img/reject.43ba1031.png"},"8ad3":function(e,t,r){"use strict";r.r(t);var n=r("6fa1"),a=r.n(n);for(var i in n)"default"!==i&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},c246:function(e,t,r){e.exports=r.p+"static/img/no_order.b014ed4b.png"},ea42:function(e,t,r){var n=r("309a");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("45b82524",n,!0,{sourceMap:!1,shadowMode:!1})},ef7d:function(e,t,r){var n=r("2a16");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("f98b22f2",n,!0,{sourceMap:!1,shadowMode:!1})},f6ca:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderNum=t.scanOrder=t.editRemark=t.delCancel=t.cancelList=t.orderCancel=t.replaceStore=t.diffStore=t.getShareOrder=t.getComment=t.addComment=t.getSelf=t.getLogs=t.tipSend=t.pickUp=t.orderIndex=t.payOrder=t.subOrder=t.orderQuery=t.getOrderInfo=t.getOrderList=void 0;var a=n(r("57f7")),i=function(e){return a.default.get("/order/get_order_list",e)};t.getOrderList=i;var o=function(e){return a.default.get("/order/get_order_info",e)};t.getOrderInfo=o;var s=function(e){return a.default.get("/order/get_order_no_info",e)};t.orderQuery=s;var c=function(e){return a.default.post("/order/submit_order_info",e)};t.subOrder=c;var d=function(e){return a.default.post("/payment/pay",e)};t.payOrder=d;var u=function(e){return a.default.get("/order/get_order_index",e)};t.orderIndex=u;var l=function(e){return a.default.post("/order/sure_pick_up",e)};t.pickUp=l;var f=function(e){return a.default.post("/order/tip_send",e)};t.tipSend=f;var _=function(e){return a.default.get("/order/get_order_express",e)};t.getLogs=_;var v=function(e){return a.default.post("/order/sure_one_self_take",e)};t.getSelf=v;var p=function(e){return a.default.post("/order/add_comment",e)};t.addComment=p;var g=function(e){return a.default.get("/order/get_comment",e)};t.getComment=g;var h=function(e){return a.default.get("/order/get_share_order",e)};t.getShareOrder=h;var m=function(e){return a.default.get("/order/get_user_store_diff",e)};t.diffStore=m;var b=function(e){return a.default.post("/order/replace_store",e)};t.replaceStore=b;var w=function(e){return a.default.post("/order/cancel_order",e)};t.orderCancel=w;var x=function(e){return a.default.get("/cancel/get_cancel_order_list",e)};t.cancelList=x;var C=function(e){return a.default.post("/cancel/delete_origin_order",e)};t.delCancel=C;var k=function(e){return a.default.post("/order/edit_order_remark",e)};t.editRemark=k;var y=function(e){return a.default.get("/order/get_scan_order",e)};t.scanOrder=y;var O=function(e){return a.default.get("/order/get_order_status_num",e)};t.getOrderNum=O}}]);
|