1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-goods_return-index"],{"11ed":function(t,e,n){var r=n("fe91");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("26560dac",r,!0,{sourceMap:!1,shadowMode:!1})},"39ed":function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.adminExpress=function(t,e){return i.default.get("admin/order/express/"+t+"".concat(e?"/refund":""))},e.aliPay=function(t,e){return i.default.get("ali_pay",{key:t,quitUrl:e},{noAuth:!0})},e.cancelRefundOrder=function(t){return i.default.post("order/refund/cancel/"+t)},e.cartDel=function(t){"object"===(0,a.default)(t)&&(t=t.join(","));return i.default.post("cart/del",{ids:t})},e.changeCartNum=function(t,e){return i.default.post("cart/num",{id:t,number:e})},e.checkShipping=function(t,e){return i.default.post("order/check_shipping",{cartId:t,new:e})},e.express=function(t,e){return i.default.get("order/express/"+t+"".concat(e?"/refund":""))},e.getCartCounts=function(t){return i.default.get("cart/count",{numType:void 0===t?0:t})},e.getCartList=function(t){return i.default.get("cart/list",t)},e.getCashierOrder=function(t,e){return i.default.get("order/cashier/".concat(t,"/").concat(e))},e.getCouponsOrderPrice=function(t,e){return i.default.get("coupons/order/"+t,e)},e.getNewOrderList=function(t){return i.default.get("order/refund/list",t)},e.getOrderDetail=function(t,e){return i.default.get("order/detail/"+t+"".concat(e?"/".concat(e):""))},e.getOrderList=function(t){return i.default.get("order/list",t)},e.getRefundOrderDetail=function(t,e){return i.default.get("order/refund_detail/"+t+"".concat(e?"/".concat(e):""))},e.getResetCart=function(t){return i.default.post("v2/reset_cart",t)},e.offlineCheckPrice=function(t){return i.default.post("order/offline/check/price",t)},e.offlineCreate=function(t){return i.default.post("order/offline/create",t)},e.ordeRefundReason=function(){return i.default.get("order/refund/reason")},e.orderAgain=function(t){return i.default.post("order/again",{uni:t})},e.orderCancel=function(t){return i.default.post("order/cancel",{id:t})},e.orderComment=function(t){return i.default.post("order/comment",t)},e.orderConfirm=function(t,e,n,r){return i.default.post("order/confirm",{cartId:t,new:e,addressId:n,shipping_type:r})},e.orderCoupon=function(t){return i.default.post("v2/order/product_coupon/"+t)},e.orderCreate=function(t,e){return i.default.post("order/create/"+t,e)},e.orderData=function(){return i.default.get("order/data")},e.orderDel=function(t){return i.default.post("order/del",{uni:t})},e.orderInvoiceDetail=function(t){return i.default.get("v2/order/invoice_detail/".concat(t))},e.orderInvoiceList=function(t){return i.default.get("v2/order/invoice_list",t)},e.orderOfflinePayType=function(){return i.default.get("order/offline/pay/type")},e.orderPay=function(t){return i.default.post("order/pay",t)},e.orderProduct=function(t){return i.default.post("order/product",{unique:t})},e.orderRefundVerify=function(t){return i.default.post("order/refund/verify",t)},e.orderTake=function(t){return i.default.post("order/take",{uni:t})},e.postOrderComputed=function(t,e){return i.default.post("order/computed/"+t,e)},e.postRefundGoods=function(t){return i.default.post("order/refund/cart_info",t)},e.refundExpress=function(t){return i.default.post("order/refund/express",t)},e.refundGoodsList=function(t){return i.default.get("order/refund/cart_info/".concat(t))},e.refundOrderDel=function(t){return i.default.get("order/refund/del/"+t,{})},e.refundOrderDetail=function(t){return i.default.get("order/refund/detail/"+t)},e.returnGoodsSubmit=function(t,e){return i.default.post("order/refund/apply/".concat(t),e)},e.vcartList=function(){return i.default.get("v2/cart_list")},n("99af");var a=r(n("53ca")),i=r(n("fb81"))},"858a":function(t,e,n){"use strict";var r=n("11ed"),a=n.n(r);a.a},a572:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.colorStyle},[n("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.subRefund.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"apply-return"},[t._l(t.refundCartInfo,(function(e,r){return n("v-uni-view",{key:r,staticClass:"goodsStyle acea-row row-between"},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e.productInfo.attrInfo?e.productInfo.attrInfo.image:e.productInfo.image}})],1),n("v-uni-view",{staticClass:"text acea-row row-between"},[n("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.productInfo.store_name))]),n("v-uni-view",{staticClass:"money"},[n("v-uni-view",[t._v(t._s(t.$t("¥"))+t._s((parseFloat(e.truePrice)+parseFloat(e.postage_price/e.cart_num)).toFixed(2)))]),n("v-uni-view",{staticClass:"num"},[t._v("x"+t._s(e.cart_num))])],1)],1)],1)})),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v(t._s(t.$t("退货件数")))]),1!==t.refundCartInfo.length||1==t.refund_total_num?n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.refund_total_num))]):n("v-uni-picker",{staticClass:"num",attrs:{value:t.refund_num_index,range:t.refundNumData},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.returnGoodsNum.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"reason"},[t._v(t._s(t.refundNumData[t.refund_num_index]))]),n("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1)],1),t.status&&1!==t.status._type?n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v(t._s(t.$t("退款类型")))]),t.status._is_back?n("v-uni-picker",{staticClass:"num",attrs:{value:t.returnGoods,range:t.returnGoodsData},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.returnGoodsChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"reason"},[t._v(t._s(t.returnGoodsData[t.returnGoods]))]),n("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1):n("v-uni-view",{},[t._v("仅退款")])],1):t._e(),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v(t._s(t.$t("退款原因")))]),n("v-uni-picker",{staticClass:"num",attrs:{value:t.index,range:t.RefundArray},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"reason"},[t._v(t._s(t.RefundArray[t.index]))]),n("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1)],1),n("v-uni-view",{staticClass:"item textarea acea-row row-between"},[n("v-uni-view",[t._v(t._s(t.$t("备注说明")))]),n("v-uni-textarea",{staticClass:"num",attrs:{placeholder:t.$t("填写备注信息,100字以内"),name:"refund_reason_wap_explain","placeholder-class":t.$t("填写备注信息,100字以内")}})],1),n("v-uni-view",{staticClass:"item acea-row row-between upload"},[n("v-uni-view",{staticClass:"title acea-row row-between-wrapper"},[n("v-uni-view",[t._v(t._s(t.$t("上传图片")))]),n("v-uni-view",{staticClass:"tip"})],1),n("v-uni-view",{staticClass:"upload acea-row row-middle"},[t._l(t.refund_reason_wap_img,(function(e,r){return n("v-uni-view",{key:r,staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e}}),n("v-uni-view",{staticClass:"iconfont icon-guanbi1 font-num",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.DelPic(r)}}})],1)})),t.refund_reason_wap_img.length<3?n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-icon25201"}),n("v-uni-view",[t._v(t._s(t.$t("上传图片")))])],1):t._e()],2)],1)],1),n("v-uni-button",{staticClass:"returnBnt bg-color",attrs:{"form-type":"submit"}},[t._v(t._s(t.$t("申请退款")))])],2)],1)],1)},a=[]},b679:function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d3b7"),n("159b"),n("d81d"),n("cb29"),n("a434"),n("14d9"),n("a9e3");var a=n("39ed"),i=n("86eb"),u=n("26cb"),o=r(n("19b6")),s={components:{},mixins:[o.default],data:function(){return{id:0,cartIds:[],refund_reason_wap_img:[],status:{},RefundArray:[],refundCartInfo:[],returnGoodsData:[this.$t("仅退款"),this.$t("退货并退款")],refund_total_num:0,index:0,returnGoods:0,orderId:0,refundNumData:[],refund_num_index:0,isRes:!1}},computed:(0,u.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.refundGoodsInfo(),this.getRefundReason())},deep:!0}},onLoad:function(t){this.orderId=t.orderId,this.id=t.id,t.cartIds&&(this.cartIds=JSON.parse(t.cartIds)||[]),this.isLogin?(this.refundGoodsInfo(),this.getRefundReason()):(0,i.toLogin)()},methods:{refundGoodsInfo:function(){var t=this;(0,a.postRefundGoods)({id:this.id,cart_ids:this.cartIds}).then((function(e){var n=e.data;t.status=n._status,t.refundCartInfo=n.cartInfo,t.refundCartInfo.forEach((function(e){t.refund_total_num=t.$util.$h.Add(t.refund_total_num,e.cart_num)})),t.refundNumData=Array(t.refund_total_num).fill(0).map((function(t,e){return e+1})),1===t.refundCartInfo.length&&(t.refund_num_index=t.refundNumData.length-1)})).catch((function(e){return t.$util.Tips({title:e})}))},getRefundReason:function(){var t=this;(0,a.ordeRefundReason)().then((function(e){t.$set(t,"RefundArray",e.data)}))},DelPic:function(t){var e=t;this.refund_reason_wap_img[e];this.refund_reason_wap_img.splice(e,1),this.$set(this,"refund_reason_wap_img",this.refund_reason_wap_img)},uploadpic:function(){var t=this;this.$util.uploadImageOne("upload/image",(function(e){t.refund_reason_wap_img.push(e.data.url),t.$set(t,"refund_reason_wap_img",t.refund_reason_wap_img)}))},subRefund:function(t){var e=this;if(!this.isRes){uni.showLoading({title:this.$t("申请中")});var n=t.detail.value;if(!n.refund_reason_wap_explain)return this.$util.Tips({title:this.$t("请输入备注")});var r=this.refundCartInfo;1===r.length&&(this.cartIds=[{cart_id:r[0].id,cart_num:this.refund_num_index+1}]),this.isRes=!0,(0,a.returnGoodsSubmit)(this.id,{text:this.RefundArray[this.index]||"",refund_reason_wap_explain:n.refund_reason_wap_explain,refund_reason_wap_img:this.refund_reason_wap_img.join(","),refund_type:1==this.returnGoods?2:1,uni:this.orderId,cart_ids:this.cartIds}).then((function(t){return uni.hideLoading(),e.isRes=!1,e.$util.Tips({title:e.$t("申请成功"),icon:"success"},{tab:5,url:"/pages/users/user_return_list/index?isT=1"})})).catch((function(t){return uni.hideLoading(),e.isRes=!1,e.$util.Tips({title:t})}))}},bindPickerChange:function(t){this.$set(this,"index",t.detail.value)},returnGoodsChange:function(t){this.$set(this,"returnGoods",t.detail.value)},returnGoodsNum:function(t){this.$set(this,"refund_num_index",Number(t.detail.value))}}};e.default=s},cb29:function(t,e,n){var r=n("23e7"),a=n("81d5"),i=n("44d2");r({target:"Array",proto:!0},{fill:a}),i("fill")},e241:function(t,e,n){"use strict";n.r(e);var r=n("b679"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},ed4b:function(t,e,n){"use strict";n.r(e);var r=n("a572"),a=n("e241");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("858a");var u=n("f0c5"),o=Object(u["a"])(a["default"],r["b"],r["c"],!1,null,"5a18cc17",null,!1,r["a"],void 0);e["default"]=o.exports},fe91:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.apply-return .list[data-v-5a18cc17]{background-color:#fff;margin-top:%?18?%}.apply-return .list .item[data-v-5a18cc17]{margin-left:%?30?%;padding-right:%?30?%;min-height:%?90?%;border-bottom:%?1?% solid #eee;font-size:%?30?%;color:#333}.apply-return .list .item .num[data-v-5a18cc17]{color:#282828;width:%?427?%;text-align:right}.apply-return .list .item .num .picker .reason[data-v-5a18cc17]{width:%?385?%}.apply-return .list .item .num .picker .iconfont[data-v-5a18cc17]{color:#666;font-size:%?30?%;margin-top:%?2?%}.apply-return .list .item.textarea[data-v-5a18cc17]{padding:%?30?% %?30?% %?30?% 0}.apply-return .list .item uni-textarea[data-v-5a18cc17]{height:%?100?%;font-size:%?30?%}.apply-return .list .item .placeholder[data-v-5a18cc17]{color:#bbb}.apply-return .list .item .title[data-v-5a18cc17]{height:%?95?%;width:100%}.apply-return .list .item .title .tip[data-v-5a18cc17]{font-size:%?30?%;color:#bbb}.apply-return .list .item .upload[data-v-5a18cc17]{padding-bottom:%?36?%}.apply-return .list .item .upload .pictrue[data-v-5a18cc17]{margin:%?22?% %?23?% 0 0;width:%?156?%;height:%?156?%;position:relative;font-size:%?24?%;color:#bbb}.apply-return .list .item .upload .pictrue[data-v-5a18cc17]:nth-of-type(4n){margin-right:0}.apply-return .list .item .upload .pictrue uni-image[data-v-5a18cc17]{width:100%;height:100%;border-radius:%?3?%}.apply-return .list .item .upload .pictrue .icon-guanbi1[data-v-5a18cc17]{position:absolute;font-size:%?45?%;top:%?-10?%;right:%?-10?%}.apply-return .list .item .upload .pictrue .icon-icon25201[data-v-5a18cc17]{color:#bfbfbf;font-size:%?50?%}.apply-return .list .item .upload .pictrue[data-v-5a18cc17]:nth-last-child(1){border:%?1?% solid #ddd;box-sizing:border-box}.apply-return .returnBnt[data-v-5a18cc17]{font-size:%?32?%;color:#fff;width:%?690?%;height:%?86?%;border-radius:%?50?%;text-align:center;line-height:%?86?%;margin:%?43?% auto}.goodsStyle .text .name[data-v-5a18cc17]{align-self:flex-start}.list[data-v-5a18cc17] .uni-input-input{text-align:right}.acea-row[data-v-5a18cc17]{flex-wrap:nowrap}.upload[data-v-5a18cc17]{flex-wrap:wrap}',""]),t.exports=e}}]);
|