(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-sales-return-sales-return"],{"32f0":function(e,t,n){"use strict";n.r(t);var r=n("6a2a"),o=n("3904");for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("6a78"),n("66b5");var d,u=n("f0c5"),a=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"5557ecc9",null,!1,r["a"],d);t["default"]=a.exports},3904:function(e,t,n){"use strict";n.r(t);var r=n("f5ed"),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},"66b5":function(e,t,n){"use strict";var r=n("72cf"),o=n.n(r);o.a},6731:function(e,t,n){var r=n("24fb");t=r(!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/*字体大小*/.sales_return[data-v-5557ecc9]{position:relative;padding-bottom:%?150?%}.sales_return .goods_box .goods_con[data-v-5557ecc9]{width:%?690?%;margin:0 auto;padding:%?30?% %?20?%;box-sizing:border-box;border-radius:%?24?%;background:#fff;margin-top:%?30?%}.sales_return .goods_box .goods_con .goods_img[data-v-5557ecc9]{width:%?180?%;height:%?144?%;border-radius:%?8?%;margin-right:%?20?%}.sales_return .goods_box .goods_con .goods_info .goods_name[data-v-5557ecc9]{font-size:%?30?%;font-weight:700}.sales_return .goods_box .goods_con .goods_info .year[data-v-5557ecc9]{margin:%?10?% 0}.sales_return .goods_box .goods_con .goods_intr[data-v-5557ecc9]{width:100%;padding:%?15?% 0;margin-top:%?15?%;border-bottom:%?2?% solid #eee}.sales_return .goods_box .goods_con .goods_intr uni-view[data-v-5557ecc9]{width:20%;font-size:%?28?%;color:#999;text-align:center}.sales_return .goods_box .goods_con .goods_intr .modified[data-v-5557ecc9]{width:30%}.sales_return .goods_box .goods_con .goods_size[data-v-5557ecc9]{padding:%?15?% 0;font-size:%?32?%;font-weight:700}.sales_return .goods_box .goods_con .goods_size uni-view[data-v-5557ecc9]{width:15%;text-align:center}.sales_return .goods_box .goods_con .goods_size .modified[data-v-5557ecc9]{width:30%}.sales_return .goods_box .goods_con .goods_size .modified .iconfont[data-v-5557ecc9]{font-size:%?55?%;color:#999}.sales_return .goods_box .goods_con .goods_size .modified .plus[data-v-5557ecc9],\r\n.sales_return .goods_box .goods_con .goods_size .modified .minus[data-v-5557ecc9]{width:%?52?%;height:%?52?%;border:%?2?% solid #999;border-radius:50%;font-size:%?50?%}.sales_return .goods_box .goods_con .goods_size .modified .num[data-v-5557ecc9]{min-width:%?70?%;text-align:center;color:#999;font-size:%?36?%}.sales_return .sure[data-v-5557ecc9]{position:fixed;left:0;bottom:0;width:100%;height:%?100?%;background:linear-gradient(93deg,#ff232c,#ff571b);color:#fff;font-size:%?32?%}',""]),e.exports=t},"6a2a":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"sales_return"},[r("v-uni-view",{staticClass:"goods_box"},[e._l(e.goods,(function(t,n){return r("v-uni-view",{key:t.id,staticClass:"goods_con"},[r("v-uni-view",{staticClass:"flexS"},[r("v-uni-image",{staticClass:"goods_img",attrs:{src:t.img}}),r("v-uni-view",{staticClass:"goods_info"},[r("v-uni-view",{staticClass:"goods_name"},[e._v(e._s(t.name))]),r("v-uni-view",{staticClass:"year"},[e._v("3条装")]),r("v-uni-view",{staticClass:"flexB"},[r("v-uni-view",{staticClass:"total"},[r("v-uni-text",[e._v("¥")]),r("v-uni-text",[e._v(e._s(t.price))])],1),r("v-uni-text",[e._v("X "+e._s(e._f("refundNum")(t))+"套")])],1)],1)],1),r("v-uni-view",{staticClass:"goods_intr flexB"},[r("v-uni-view",[e._v("规格")]),r("v-uni-view",[e._v("尺码")]),r("v-uni-view",[e._v("购买数量")]),r("v-uni-view",{staticClass:"modified"},[e._v("退货数量")])],1),e._l(t.newSku,(function(t,o){return r("v-uni-view",{key:t.id,staticClass:"goods_size flexB"},[r("v-uni-view",[e._v(e._s(t.type))]),r("v-uni-view",[e._v(e._s(t.size))]),r("v-uni-view",[e._v(e._s(t.num))]),r("v-uni-view",{staticClass:"modified flexC"},[r("v-uni-text",{staticClass:"iconfont iconxianxingtubiaozhizuomoban-02",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.minus(n,o)}}}),r("v-uni-input",{staticClass:"num",style:{color:t.quitNum>0?"#FB231F":"#999"},attrs:{type:"number"},on:{input:function(r){arguments[0]=r=e.$handleEvent(r),e.getVal(r,n,o,t.num)}},model:{value:t.quitNum,callback:function(n){e.$set(t,"quitNum",n)},expression:"temp.quitNum"}}),r("v-uni-text",{staticClass:"iconfont iconxianxingtubiaozhizuomoban-01",on:{click:function(r){arguments[0]=r=e.$handleEvent(r),e.plus(n,o,t.num)}}})],1)],1)}))],2)})),0==e.goods.length?r("v-uni-view",{staticClass:"noData"},[r("v-uni-image",{attrs:{src:n("903b")}}),r("v-uni-view",[e._v("--暂无可退货数据--")])],1):e._e()],2),e.goods.length>0?r("v-uni-view",{staticClass:"sure flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v("确认")]):e._e()],1)},i=[]},"6a78":function(e,t,n){"use strict";var r=n("8fb8"),o=n.n(r);o.a},"72cf":function(e,t,n){var r=n("6731");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("4f06").default;o("5ac13f3e",r,!0,{sourceMap:!1,shadowMode:!1})},7575:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.refundDetail=t.cancelRefund=t.delRefund=t.refundOrderDetail=t.refundOrderInfo=t.refundOrder=t.submitRefund=void 0;var o=r(n("57f7")),i=function(e){return o.default.post("/refund/submit_refund_order",e)};t.submitRefund=i;var d=function(e){return o.default.get("/refund/get_all_refund_order",e)};t.refundOrder=d;var u=function(e){return o.default.get("/refund/get_origin_order_info",e)};t.refundOrderInfo=u;var a=function(e){return o.default.get("/refund/get_refund_order_detail",e)};t.refundOrderDetail=a;var s=function(e){return o.default.post("/refund/delete_origin_order",e)};t.delRefund=s;var c=function(e){return o.default.post("/refund/cancel_refund_order",e)};t.cancelRefund=c;var f=function(e){return o.default.get("/order/get_refund_order_detail",e)};t.refundDetail=f},"8fb8":function(e,t,n){var r=n("c01b");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("4f06").default;o("a5f8aeec",r,!0,{sourceMap:!1,shadowMode:!1})},"903b":function(e,t,n){e.exports=n.p+"static/img/no_record.51341960.png"},c01b:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,"uni-page-body[data-v-5557ecc9]{width:100%;min-height:100%;background:#f9f9fb}body.?%PAGE?%[data-v-5557ecc9]{background:#f9f9fb}",""]),e.exports=t},f5ed:function(e,t,n){"use strict";n("d81d"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("f6ca");var r=n("7575"),o=(n("25ad"),{data:function(){return{goods:"",order_no:""}},onLoad:function(e){this.order_no=e.order_no,this.getOrder(e.order_no)},filters:{refundNum:function(e){var t=0;return e.newSku.map((function(e){t+=e.num})),t}},methods:{getOrder:function(e){var t=this;(0,r.refundOrderInfo)({order_no:e}).then((function(e){if(200==e.code){t.order_no=e.data.order_no;var n=e.data.products,r=[];for(var o in n){var i=n[o].sku;for(var d in n[o].newSku=[],i)n[o].id==i[d].goods_id&&(i[d].quitNum=0,n[o].newSku.push(i[d]));r.push(n[o])}t.goods=r,console.log(t.goods,"goods")}else uni.showModal({content:e.msg||"获取订单信息失败",showCancel:!1})}))},getVal:function(e,t,n,r){var o=Number(e.detail.value);if(o>r)return uni.showToast({title:"超出已购买数量",icon:"none"}),this.goods[t].newSku[n].quitNum=0,!1;this.goods[t].newSku[n].quitNum=Number(e.detail.value)},plus:function(e,t,n){if(this.goods[e].newSku[t].quitNum==n)return uni.showToast({title:"超出已购买数量",icon:"none"}),!1;this.goods[e].newSku[t].quitNum++},minus:function(e,t){if(0==this.goods[e].newSku[t].quitNum)return uni.showToast({title:"没有可减的啦~",icon:"none"}),!1;this.goods[e].newSku[t].quitNum--},confirm:function(){var e=this.goods,t=[];if(e.map((function(e){e.newSku.map((function(e){e.quitNum>0&&t.push(e)}))})),0==t.length)return uni.showModal({content:"请选择退货数量",showCancel:!1}),!1;uni.setStorageSync("goodsInfo",this.goods),uni.navigateTo({url:"../return-request/return-request?order_no="+this.order_no})}}});t.default=o},f6ca:function(e,t,n){"use strict";var r=n("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 o=r(n("57f7")),i=function(e){return o.default.get("/order/get_order_list",e)};t.getOrderList=i;var d=function(e){return o.default.get("/order/get_order_info",e)};t.getOrderInfo=d;var u=function(e){return o.default.get("/order/get_order_no_info",e)};t.orderQuery=u;var a=function(e){return o.default.post("/order/submit_order_info",e)};t.subOrder=a;var s=function(e){return o.default.post("/payment/pay",e)};t.payOrder=s;var c=function(e){return o.default.get("/order/get_order_index",e)};t.orderIndex=c;var f=function(e){return o.default.post("/order/sure_pick_up",e)};t.pickUp=f;var l=function(e){return o.default.post("/order/tip_send",e)};t.tipSend=l;var _=function(e){return o.default.get("/order/get_order_express",e)};t.getLogs=_;var g=function(e){return o.default.post("/order/sure_one_self_take",e)};t.getSelf=g;var v=function(e){return o.default.post("/order/add_comment",e)};t.addComment=v;var p=function(e){return o.default.get("/order/get_comment",e)};t.getComment=p;var m=function(e){return o.default.get("/order/get_share_order",e)};t.getShareOrder=m;var b=function(e){return o.default.get("/order/get_user_store_diff",e)};t.diffStore=b;var h=function(e){return o.default.post("/order/replace_store",e)};t.replaceStore=h;var w=function(e){return o.default.post("/order/cancel_order",e)};t.orderCancel=w;var x=function(e){return o.default.get("/cancel/get_cancel_order_list",e)};t.cancelList=x;var k=function(e){return o.default.post("/cancel/delete_origin_order",e)};t.delCancel=k;var C=function(e){return o.default.post("/order/edit_order_remark",e)};t.editRemark=C;var O=function(e){return o.default.get("/order/get_scan_order",e)};t.scanOrder=O;var S=function(e){return o.default.get("/order/get_order_status_num",e)};t.getOrderNum=S}}]);