|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-saleAfter-saleAfterEdit"],{"0ca9":function(e,t,r){"use strict";r.r(t);var n=r("9845"),a=r.n(n);for(var u in n)"default"!==u&&function(e){r.d(t,e,(function(){return n[e]}))}(u);t["default"]=a.a},"41ba":function(e,t,r){"use strict";r("ac1f"),r("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};t.ToAsyncAwait=n;var a=function(e,t){var r;return function(){var n=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){e.apply(n,a)}),t)}};t.Debounce=a;var u=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=u;var i=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=i;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=s;var o=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=o},5767:function(e,t,r){"use strict";var n=r("dbce"),a=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var u={};t.default=void 0;var i=a(r("5530")),s=n(r("41ba"));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var o=n(r("d071"));Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var c=(0,i.default)((0,i.default)({},s),{},{requset:o});t.default=c},"5f75":function(e,t,r){var n=r("c10d");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("05faa385",n,!0,{sourceMap:!1,shadowMode:!1})},"72e3":function(e,t,r){"use strict";r.r(t);var n=r("c79a"),a=r("0ca9");for(var u in a)"default"!==u&&function(e){r.d(t,e,(function(){return a[e]}))}(u);r("dacf"),r("d685");var i,s=r("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"ce247a16",null,!1,n["a"],i);t["default"]=o.exports},9845:function(e,t,r){"use strict";var n=r("4ea4");r("99af"),r("7db0"),r("d81d"),r("a434"),r("ac1f"),r("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r("5530"));r("96cf");var u=n(r("1da1")),i=n(r("359f")),s=n(r("f196")),o=n(r("1687")),c=r("ed1e"),d=r("c0d4"),l={components:{UiCell:s.default,UiButton:i.default,UiRadioPicker:o.default},data:function(){return{fileList:[],params:{receiveStatus:"",refundReason:"",refundType:this.$Route.query.type,refundId:this.$Route.query.id,problemDescribe:"",evidenceImages:null},refundAmount:0,refundShow:!1,refundSelected:{},refundReasonData:[{label:"7天无理由退款",value:"1"},{label:"不喜欢/效果不满意",value:"2"},{label:"商品不符合描述",value:"3"},{label:"其它原因",value:"4"}],receiveSelected:{},receiveShow:!1,receiveStatusData:[{label:"未收到货",value:"1"},{label:"已收到货",value:"2"}]}},onShow:function(){this.getSaleAfterInfo()},methods:{getSaleAfterInfo:function(){var e=this;return(0,u.default)(regeneratorRuntime.mark((function t(){var r,n,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,d.ApiGetSaleAfterOrderDetail)({refundId:e.params.refundId});case 2:if(r=t.sent,n=r.error,u=r.result,!n){t.next=8;break}return uni.$u.toast(n.message),t.abrupt("return",!1);case 8:e.params=(0,a.default)((0,a.default)({},e.params),{},{receiveStatus:u.receiveStatus,refundType:u.refundType,refundReason:u.refundReason,problemDescribe:u.problemDescribe,evidenceImages:u.refundEvidences.map((function(e){return{url:e.fileUrl}}))}),e.refundAmount=u.refundAmount,e.fileList=e.params.evidenceImages,e.receiveSelected=e.receiveStatusData.find((function(t){return t.value==e.params.receiveStatus}))||{},e.refundSelected=e.refundReasonData.find((function(t){return t.value==e.params.refundType}))||{},2==u.refundType?uni.setNavigationBarTitle({title:"修改退货退款申请"}):uni.setNavigationBarTitle({title:"修改退款申请"});case 14:case"end":return t.stop()}}),t)})))()},getOssCon:function(){return(0,u.default)(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.ApiPostGetOssConfig)({configId:"refund-evidence/",serviceName:"mall-trade"});case 2:if(t=e.sent,r=t.error,n=t.result,!r){e.next=8;break}return uni.$u.toast(r.message),e.abrupt("return",!1);case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))()},upload:function(e){var t=this;return(0,u.default)(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.file[0],r.next=3,t.getOssCon();case 3:if(a=r.sent,a){r.next=6;break}return r.abrupt("return",!1);case 6:uni.uploadFile({name:"file",filePath:n.url,url:a.host,formData:{name:n.name,key:"".concat(a.dir,"${filename}"),policy:a.policy,OSSAccessKeyId:a.accessId,success_action_status:200,signature:a.signature},success:function(e){t.fileList.push({url:"".concat(a.host,"/").concat(a.dir).concat(n.name)})}});case 7:case"end":return r.stop()}}),r)})))()},delImage:function(e){this.fileList.splice(e.index,1)},apply:function(){var e=this;return(0,u.default)(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.receiveSelected.value){t.next=3;break}return uni.$u.toast("请选择货物状态"),t.abrupt("return",!1);case 3:if(e.refundSelected.value){t.next=6;break}return uni.$u.toast("请选择退货原因"),t.abrupt("return",!1);case 6:return e.params.receiveStatus=e.receiveSelected.value,e.params.refundReason=e.refundSelected.value,e.params.evidenceImages=e.fileList.map((function(e){return e.url})),t.next=11,(0,d.ApiPostEditSaleAfter)(e.params);case 11:if(r=t.sent,n=r.error,r.result,!n){t.next=17;break}return uni.$u.toast(n.message),t.abrupt("return",!1);case 17:e.$Router.replace("/saleAfterDetail?id=".concat(e.params.refundId));case 18:case"end":return t.stop()}}),t)})))()}}};t.default=l},b1da: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/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.box[data-v-ce247a16]{padding:0 %?40?%;margin:%?20?% 0;background:#fff}.input[data-v-ce247a16]{font-size:%?28?%;text-align:right;flex:1}.price[data-v-ce247a16]{color:#ff512b}.title[data-v-ce247a16]{padding:%?30?% 0;display:flex;justify-content:space-between}.title--min[data-v-ce247a16]{font-size:%?24?%;color:#999}uni-textarea[data-v-ce247a16]{height:%?100?%}.upload[data-v-ce247a16]{padding-bottom:%?20?%}.btn[data-v-ce247a16]{position:fixed;bottom:%?40?%;left:%?30?%;width:%?670?%}',""]),e.exports=t},c0d4:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiPutLogisticsInfo=t.ApiGetLogisticsCompanylist=t.ApiGetSaleAfterOrderDetail=t.ApiGetSaleAfterOrderList=t.ApiPostCancelSaleAfter=t.ApiPostEditSaleAfter=t.ApiPostApplySaleAfter=t.ApiGetOrderStatistics=t.ApiPostWxPay=t.ApiPutCancelOrder=t.ApiPostSubmitOrder=t.ApiPutOrderReceive=t.ApiGetOrderLogistics=t.ApiGetOrderProductDetail=t.ApiGetOrderDetail=t.ApiGetBeforeCartOrder=t.ApiGetBeforeOrder=t.ApiGetOrderList=void 0;var n=r("5767"),a="/mall/trade",u=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/page"),e))};t.ApiGetOrderList=u;var i=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/buyAdvanceOrder"),e))};t.ApiGetBeforeOrder=i;var s=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/cartAdvanceOrder"),e))};t.ApiGetBeforeCartOrder=s;var o=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/").concat(e)))};t.ApiGetOrderDetail=o;var c=function(e){var t=e.orderProductId;return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/product/").concat(t)))};t.ApiGetOrderProductDetail=c;var d=function(e){var t=e.orderId;return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/logistics/").concat(t)))};t.ApiGetOrderLogistics=d;var l=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/tradeOrder/receive"),e))};t.ApiPutOrderReceive=l;var f=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/tradeOrder/submitOrder"),e))};t.ApiPostSubmitOrder=f;var p=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/tradeOrder/cancel"),e))};t.ApiPutCancelOrder=p;var v=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/pay/payTest"),e))};t.ApiPostWxPay=v;var h=function(){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/tradeOrder/statistics")))};t.ApiGetOrderStatistics=h;var b=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.post("".concat(a,"/app/refundOrder/applyRefund"),e))};t.ApiPostApplySaleAfter=b;var m=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/updateRefund"),e))};t.ApiPostEditSaleAfter=m;var A=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/cancelRefund"),e))};t.ApiPostCancelSaleAfter=A;var g=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/page"),e))};t.ApiGetSaleAfterOrderList=g;var y=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/refundInfo"),e))};t.ApiGetSaleAfterOrderDetail=y;var w=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.get("".concat(a,"/app/refundOrder/logisticsCompany")))};t.ApiGetLogisticsCompanylist=w;var O=function(e){return(0,n.ToAsyncAwait)(n.MsbRequestTk.put("".concat(a,"/app/refundOrder/completeRefund"),e))};t.ApiPutLogisticsInfo=O},c10d: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/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-ce247a16]{background:#f8f8f8}body.?%PAGE?%[data-v-ce247a16]{background:#f8f8f8}',""]),e.exports=t},c79a:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return u})),r.d(t,"a",(function(){return n}));var n={uUpload:r("ab87").default},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("v-uni-view",{staticClass:"box"},[1==e.params.refundType?r("UiCell",{attrs:{title:"货物状态"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.receiveShow=!0}}},[r("v-uni-input",{staticClass:"input",attrs:{slot:"value",disabled:!0,placeholder:"请选择",value:e.receiveSelected.label},slot:"value"})],1):e._e(),r("UiCell",{attrs:{title:"退款原因"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refundShow=!0}}},[r("v-uni-input",{staticClass:"input",attrs:{slot:"value",disabled:!0,placeholder:"请选择",value:e.refundSelected.label},slot:"value"})],1),r("UiCell",{attrs:{title:"退款金额",rightIcon:!1}},[r("v-uni-text",{staticClass:"price",attrs:{slot:"value"},slot:"value"},[e._v("¥"+e._s(e.refundAmount))])],1),r("v-uni-view",{staticClass:"title"},[r("v-uni-view",[r("v-uni-text",[e._v("问题描述")]),r("v-uni-text",{staticClass:"title--min"},[e._v("(选填)")])],1),r("v-uni-text",{staticClass:"title--min"},[e._v(e._s(e.params.problemDescribe.length)+"/45")])],1),r("v-uni-textarea",{staticClass:"textarea",attrs:{maxlength:"45",placeholder:"请输入您申请退款的问题"},model:{value:e.params.problemDescribe,callback:function(t){e.$set(e.params,"problemDescribe",t)},expression:"params.problemDescribe"}})],1),r("v-uni-view",{staticClass:"box upload"},[r("v-uni-view",{staticClass:"title"},[r("v-uni-text",[e._v("上传凭证")]),r("v-uni-text",{staticClass:"title--min"},[e._v("("+e._s(e.fileList.length)+"/9)")])],1),r("u-upload",{attrs:{fileList:e.fileList,multiple:!0,maxCount:9,previewFullImage:!0},on:{afterRead:function(t){arguments[0]=t=e.$handleEvent(t),e.upload.apply(void 0,arguments)},delete:function(t){arguments[0]=t=e.$handleEvent(t),e.delImage.apply(void 0,arguments)}}})],1),r("UiButton",{staticClass:"btn",attrs:{size:"max",type:"gradual"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.apply.apply(void 0,arguments)}}},[e._v("提交申请")]),r("UiRadioPicker",{attrs:{title:"退款原因",show:e.refundShow,options:e.refundReasonData},on:{"update:show":function(t){arguments[0]=t=e.$handleEvent(t),e.refundShow=t}},model:{value:e.refundSelected,callback:function(t){e.refundSelected=t},expression:"refundSelected"}}),r("UiRadioPicker",{attrs:{title:"货物状态",show:e.receiveShow,options:e.receiveStatusData},on:{"update:show":function(t){arguments[0]=t=e.$handleEvent(t),e.receiveShow=t}},model:{value:e.receiveSelected,callback:function(t){e.receiveSelected=t},expression:"receiveSelected"}})],1)},u=[]},d071:function(e,t,r){"use strict";var n=r("4ea4");r("4de4"),r("caad"),r("d3b7"),r("ac1f"),r("2532"),r("38cf"),r("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var a=n(r("5530")),u=n(r("fda4")),i=n(r("4308")),s="test",o={test:"https://k8s-horse-gateway.mashibing.cn",release:"",prod:""},c=function(e,t){if(p(t),200===e.statusCode){var r=e.data;return"SUCCESS"===r.code?r.data:"TOKEN_EXPIRE"===r.code?(uni.navigateTo({url:"/login"}),r):Promise.reject(r)}return e},d=function(e,t){return p(t),{message:e.errMsg,code:e.statusCode}},l=[],f=function(e){var t={url:e.url,method:e.method,data:e.data};return l.includes(JSON.stringify(t))?Promise.reject({message:"请勿频繁操作"}):(l.push(JSON.stringify(t)),!1)},p=function(e){l=l.filter((function(t){return t!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},v=new u.default;t.MsbRequest=v,v.baseUrl=o[s],v.use("request",(function(e){if(e.header.repeat){var t=f(e);if(t)return t}return e})),v.use("success",c),v.use("error",d);var h=new u.default;t.MsbRequestTk=h,h.baseUrl=o[s],h.use("request",(function(e){var t=i.default.state.token;if(t){if(e.header=(0,a.default)((0,a.default)({},e.header),{},{Authorization:t}),e.header.repeat){var r=f(e);if(r)return r}return e}var n=getCurrentPages(),u=n[n.length-1];return u.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),h.use("success",c),h.use("error",d)},d685:function(e,t,r){"use strict";var n=r("f09d"),a=r.n(n);a.a},dacf:function(e,t,r){"use strict";var n=r("5f75"),a=r.n(n);a.a},f09d:function(e,t,r){var n=r("b1da");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("31172cc6",n,!0,{sourceMap:!1,shadowMode:!1})},fda4:function(e,t,r){"use strict";var n=r("4ea4");r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r("5530")),u=n(r("d4ec")),i=n(r("bee2")),s=function(){function e(t){(0,u.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,i.default)(e,[{key:"method",value:function(e){var t=this;if(e.header=(0,a.default)((0,a.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(r,n){uni.request((0,a.default)((0,a.default)({},e),{},{success:function(a){var u=a||a[1];if(u.statusCode>=200&&u.statusCode<400){if(t.hook.success){var i=t.hook.success(u,e);i&&i.constructor===Promise?i.then((function(e){r(e)}),(function(e){n(e)})):r(i)}else r(u);return!1}n(t.hook.error?t.hook.error(u,e):u)},fail:function(r){n(t.hook.error?t.hook.error(r,e):r)}}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,r){return this.method({method:"GET",url:e,data:t,header:r})}},{key:"post",value:function(e,t,r){return this.method({method:"POST",url:e,data:t,header:r})}},{key:"put",value:function(e,t,r){return this.method({method:"PUT",url:e,data:t,header:r})}},{key:"delete",value:function(e,t,r){return this.method({method:"DELETE",url:e,data:t,header:r})}}]),e}(),o=s;t.default=o}}]); |