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.
 
 
 
 
 
crmeb_php/public/static/js/pages-users-refund-goods-in...

1 lines
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-refund-goods-index"],{"1dcb":function(e,t,r){"use strict";var n=r("729e"),a=r.n(n);a.a},"2bb4":function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("d3b7"),r("3ca3"),r("ddb0"),r("a434"),r("14d9");var a=n(r("c7eb")),i=n(r("1da1")),o=n(r("5530")),u=r("a60b"),d=r("3c86"),c=n(r("b7ba")),s=r("26cb"),f={components:{alertBox:c.default},data:function(){return{order_id:0,isShowBox:!1,uploadImg:[],numArray:[],numIndex:0,id:"",productData:[],con:"",refund_price:"",msg:"",number:"",phone:""}},computed:(0,o.default)({},(0,s.mapGetters)(["viewColor"])),onLoad:function(e){this.id=e.id,this.refund_type=e.refund_type,this.type=e.type,this.order_id=e.order_id,Promise.all([this.refundProduct(),this.expressList()])},methods:{expressList:function(){var e=this;(0,u.expressList)().then((function(t){e.numArray=t.data}))},refundProduct:function(){var e=this;(0,u.refundDetail)(this.id).then((function(t){var r=t.data;e.productData=r.refundProduct}))},bindPickerChange:function(e){this.qsIndex=e.target.value},bindNumChange:function(e){this.numIndex=e.target.value,this.refund_price=this.unitPrice*this.numArray[e.target.value]},deleteImg:function(e){this.uploadImg.splice(e,1)},uploadpic:function(){if(this.uploadImg.length<9){var e=this;e.$util.uploadImageOne("upload/image",(function(t){e.uploadImg.push(t.data.path),e.$set(e,"uploadImg",e.uploadImg)}))}else uni.showToast({title:"最多可上传9张",icon:"none"})},bindComfirm:function(){var e=this;return(0,i.default)((0,a.default)().mark((function t(){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e.number){t.next=4;break}return uni.showToast({title:"请填写快递单号",icon:"none"}),t.abrupt("return");case 4:if((0,d.checkPhone)(e.phone)){t.next=7;break}return uni.showToast({title:"请填写正确的手机号码",icon:"none"}),t.abrupt("return");case 7:return t.next=9,(0,u.refundBackGoods)(e.id,{delivery_type:e.numArray[e.numIndex].label,delivery_id:e.number,delivery_phone:e.phone,ids:e.ids,delivery_mark:e.con,delivery_pics:e.uploadImg});case 9:r=t.sent,e.msg=r.message,e.isShowBox=!0,t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](0),uni.showToast({title:t.t0,icon:"none"});case 17:case"end":return t.stop()}}),t,null,[[0,14]])})))()},bindClose:function(){this.isShowBox=!1,uni.redirectTo({url:"/pages/users/refund/detail?id="+this.id})}}};t.default=f},"3c86":function(e,t,r){"use strict";r("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkPhone=function(e){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(e)},t.isEmailAvailable=function(e){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(e)},t.isMoney=function(e){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(e)},r("ac1f"),r("00b4")},"729e":function(e,t,r){var n=r("b36f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("39561c36",n,!0,{sourceMap:!1,shadowMode:!1})},"82b8":function(e,t,r){"use strict";r("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("26cb"),a=r("8342"),i={data:function(){return{domain:a.HTTP_REQUEST_URL}},props:{msg:{type:String,default:""}},computed:(0,n.mapGetters)(["viewColor","keyColor"]),methods:{close:function(){this.$emit("bindClose")}}};t.default=i},"90af":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return a})),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:"alert-wrapper",style:e.viewColor},[r("v-uni-view",{staticClass:"alert-box"},[r("v-uni-image",{attrs:{src:e.domain+"/static/diy/success"+e.keyColor+".png",mode:""}}),r("v-uni-view",{staticClass:"txt"},[e._v(e._s(e.msg))]),r("v-uni-view",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}},[e._v("我知道了")])],1)],1)},a=[]},a60b:function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.applyInvoiceApi=function(e,t){return a.default.post("order/receipt/".concat(e),t)},t.cartDel=function(e){return a.default.post("user/cart/delete",e)},t.changeCartNum=function(e,t){return a.default.post("user/cart/change/"+e,t)},t.createOrder=function(e){return a.default.post("v2/order/create",e,{noAuth:!0})},t.develiveryDetail=function(e){return a.default.get("order/delivery/".concat(e))},t.express=function(e){return a.default.post("order/express/"+e)},t.expressList=function(){return a.default.get("common/express")},t.getCallBackUrlApi=function(e){return a.default.get("common/pay_key/"+e,{},{noAuth:!0})},t.getCartCounts=function(){return a.default.get("user/cart/count")},t.getCartList=function(){return a.default.get("user/cart/lst")},t.getCouponsOrderPrice=function(e,t){return a.default.get("coupons/order/"+e,t)},t.getOrderConfirm=function(e){return a.default.post("v2/order/check",e)},t.getOrderDetail=function(e){return a.default.get("order/detail/"+e)},t.getOrderList=function(e){return a.default.get("order/list",e)},t.getPayOrder=function(e){return a.default.get("order/status/"+e)},t.getReceiptOrder=function(e){return a.default.get("user/receipt/order/"+e)},t.groupOrderDetail=function(e){return a.default.get("order/group_order_detail/"+e)},t.groupOrderList=function(e){return a.default.get("order/group_order_list",e,{noAuth:!0})},t.ordeRefundReason=function(){return a.default.get("order/refund/reason")},t.orderAgain=function(e){return a.default.post("user/cart/again",e)},t.orderComment=function(e,t){return a.default.post("reply/"+e,t)},t.orderConfirm=function(e){return a.default.post("order/check",e)},t.orderCreate=function(e){return a.default.post("order/create",e,{noAuth:!0})},t.orderData=function(){return a.default.get("order/number")},t.orderDel=function(e){return a.default.post("order/del/"+e)},t.orderPay=function(e,t){return a.default.post("order/pay/"+e,t)},t.orderProduct=function(e){return a.default.get("reply/product/"+e)},t.orderRefundVerify=function(e){return a.default.post("order/refund/verify",e)},t.orderTake=function(e){return a.default.post("order/take/"+e)},t.postOrderComputed=function(e,t){return a.default.post("/order/computed/"+e,t)},t.presellOrderPay=function(e,t){return a.default.post("presell/pay/"+e,t)},t.receiptOrder=function(e){return a.default.get("user/receipt/order",e)},t.refundApply=function(e,t){return a.default.post("refund/apply/"+e,t,{noAuth:!0})},t.refundBackGoods=function(e,t){return a.default.post("refund/back_goods/"+e,t,{noAuth:!0})},t.refundBatch=function(e){return a.default.get("refund/batch_product/"+e,{noAuth:!0})},t.refundCancelApi=function(e){return a.default.post("refund/cancel/".concat(e))},t.refundDel=function(e){return a.default.post("refund/del/"+e,{noAuth:!0})},t.refundDetail=function(e){return a.default.get("refund/detail/"+e,{noAuth:!0})},t.refundExpress=function(e){return a.default.get("refund/express/"+e,{noAuth:!0})},t.refundList=function(e){return a.default.get("refund/list",e,{noAuth:!0})},t.refundMessage=function(){return a.default.get("common/refund_message",{noAuth:!0})},t.refundOrderExpress=function(e,t){return a.default.get("server/".concat(e,"/refund/express/").concat(t))},t.refundProduct=function(e,t){return a.default.get("refund/product/"+e,t,{noAuth:!0})},t.unOrderCancel=function(e){return a.default.post("order/cancel/"+e)},t.verifyCode=function(e){return a.default.get("order/verify_code/"+e)},r("99af");var a=n(r("b5ef"))},b36f:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.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/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.refund-wrapper .item[data-v-473bd2bc]{position:relative;display:flex;padding:%?25?% %?30?%;background-color:#fff}.refund-wrapper .item[data-v-473bd2bc]:after{content:" ";position:absolute;right:0;bottom:0;width:%?657?%;height:1px;background:#f0f0f0}.refund-wrapper .item .img-box[data-v-473bd2bc]{width:%?130?%;height:%?130?%}.refund-wrapper .item .img-box uni-image[data-v-473bd2bc]{width:%?130?%;height:%?130?%;border-radius:%?16?%}.refund-wrapper .item .info[data-v-473bd2bc]{display:flex;flex-direction:column;width:%?440?%;margin-left:%?26?%}.refund-wrapper .item .info .tips[data-v-473bd2bc]{color:#868686;font-size:%?20?%}.refund-wrapper .item .info .price[data-v-473bd2bc]{margin-top:%?15?%;font-size:%?26?%}.refund-wrapper .item .check-box[data-v-473bd2bc]{display:flex;align-items:center;justify-content:center;flex:1}.refund-wrapper .item .check-box .iconfont[data-v-473bd2bc]{font-size:%?40?%;color:#ccc}.refund-wrapper .item .check-box .icon-xuanzhong1[data-v-473bd2bc]{color:#e93323}.refund-wrapper .form-box[data-v-473bd2bc]{padding-left:%?30?%;margin-top:%?18?%;background-color:#fff}.refund-wrapper .form-box .form-item[data-v-473bd2bc]{display:flex;justify-content:space-between;border-bottom:1px solid #f0f0f0;font-size:%?30?%}.refund-wrapper .form-box .item-txt[data-v-473bd2bc]{align-items:center;width:100%;padding:%?30?% %?30?% %?30?% 0}.refund-wrapper .form-box .item-txtarea[data-v-473bd2bc]{padding:%?30?% %?30?% %?30?% 0}.refund-wrapper .form-box .item-txtarea uni-textarea[data-v-473bd2bc]{display:block;width:%?400?%;height:%?100?%;font-size:%?30?%;text-align:right}.refund-wrapper .form-box .icon-jiantou[data-v-473bd2bc]{margin-left:%?10?%;font-size:%?28?%;color:#bbb}.refund-wrapper .upload-box[data-v-473bd2bc]{padding:%?30?%;background-color:#fff}.refund-wrapper .upload-box .title[data-v-473bd2bc]{display:flex;align-items:center;justify-content:space-between;font-size:%?30?%}.refund-wrapper .upload-box .title .des[data-v-473bd2bc]{color:#bbb}.refund-wrapper .upload-box .upload-img[data-v-473bd2bc]{display:flex;flex-wrap:wrap;margin-top:%?20?%}.refund-wrapper .upload-box .upload-img .img-item[data-v-473bd2bc]{position:relative;width:%?156?%;height:%?156?%;margin-right:%?24?%;margin-top:%?20?%}.refund-wrapper .upload-box .upload-img .img-item uni-image[data-v-473bd2bc]{width:%?156?%;height:%?156?%;border-radius:%?8?%}.refund-wrapper .upload-box .upload-img .img-item .iconfont[data-v-473bd2bc]{position:absolute;right:%?-15?%;top:%?-20?%;font-size:%?40?%;color:#e93323}.refund-wrapper .upload-box .upload-img .add-img[data-v-473bd2bc]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?156?%;height:%?156?%;margin-top:%?20?%;border:1px solid #ddd;border-radius:%?3?%;color:#bbb;font-size:%?24?%}.refund-wrapper .upload-box .upload-img .add-img .iconfont[data-v-473bd2bc]{margin-bottom:%?10?%;font-size:%?50?%}.refund-wrapper .btn-box[data-v-473bd2bc]{width:%?690?%;height:%?86?%;margin:%?70?% auto;line-height:%?86?%;text-align:center;color:#fff;background:var(--view-theme);border-radius:%?43?%;font-size:%?32?%}',""]),e.exports=t},b3df:function(e,t,r){var n=r("c609");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("cf009c28",n,!0,{sourceMap:!1,shadowMode:!1})},b7b6:function(e,t,r){"use strict";r.r(t);var n=r("2bb4"),a=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},b7ba:function(e,t,r){"use strict";r.r(t);var n=r("90af"),a=r("bc54");for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("d780");var o=r("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"8ba13732",null,!1,n["a"],void 0);t["default"]=u.exports},bc54:function(e,t,r){"use strict";r.r(t);var n=r("82b8"),a=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},c609:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.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/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.alert-wrapper[data-v-8ba13732]{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:10}.alert-wrapper .alert-box[data-v-8ba13732]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?500?%;height:%?540?%;background-color:#fff;border-radius:%?10?%;font-size:%?34?%}.alert-wrapper .alert-box uni-image[data-v-8ba13732]{width:%?149?%;height:%?230?%}.alert-wrapper .alert-box .txt[data-v-8ba13732]{margin-bottom:%?20?%}.alert-wrapper .alert-box .btn[data-v-8ba13732]{width:%?340?%;height:%?90?%;line-height:%?90?%;text-align:center;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));border-radius:%?45?%;color:#fff}',""]),e.exports=t},d780:function(e,t,r){"use strict";var n=r("b3df"),a=r.n(n);a.a},e743:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return a})),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},[e._l(e.productData,(function(t,n){return r("v-uni-view",{key:n,staticClass:"item"},[r("v-uni-view",{staticClass:"img-box"},[r("v-uni-image",{attrs:{src:t.product.cart_info.product.image}})],1),r("v-uni-view",{staticClass:"info"},[r("v-uni-view",{staticClass:"name line1"},[e._v(e._s(t.product.cart_info.product.store_name))]),r("v-uni-view",{staticClass:"price",staticStyle:{color:"#868686"}},[e._v(e._s(t.product.cart_info.productAttr.sku))])],1)],1)})),r("v-uni-view",{staticClass:"form-box"},[r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[e._v("物流公司")]),e.numArray.length>0?r("v-uni-view",{staticClass:"picker"},[r("v-uni-picker",{attrs:{value:e.numIndex,range:e.numArray,"range-key":"label"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindNumChange.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"picker-box"},[e._v(e._s(e.numArray[e.numIndex]["label"])),r("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1)],1):e._e()],1),r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[e._v("物流单号")]),r("v-uni-input",{staticStyle:{"text-align":"right"},attrs:{type:"text",placeholder:"请输入物流单号"},model:{value:e.number,callback:function(t){e.number=t},expression:"number"}})],1),r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[e._v("联系电话")]),r("v-uni-input",{staticStyle:{"text-align":"right"},attrs:{type:"text",placeholder:"请输入电话"},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1)],1),r("v-uni-view",{staticClass:"btn-box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.bindComfirm.apply(void 0,arguments)}}},[e._v("提交")]),e.isShowBox?r("alertBox",{attrs:{msg:e.msg},on:{bindClose:function(t){arguments[0]=t=e.$handleEvent(t),e.bindClose.apply(void 0,arguments)}}}):e._e()],2)},a=[]},fb7e:function(e,t,r){"use strict";r.r(t);var n=r("e743"),a=r("b7b6");for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("1dcb");var o=r("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"473bd2bc",null,!1,n["a"],void 0);t["default"]=u.exports}}]);