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.
1 lines
18 KiB
1 lines
18 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31ec257a"],{"2da9":function(e,t,n){(function(n){var a,i;(function(t,n){e.exports=n(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:this,(function(n){"use strict";n=n||{};var r,s=n.Base64,o="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},n=0,a=e.length;n<a;n++)t[e.charAt(n)]=n;return t}(c),u=String.fromCharCode,d=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(f,d)},v=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),a=[c.charAt(n>>>18),c.charAt(n>>>12&63),t>=2?"=":c.charAt(n>>>6&63),t>=1?"=":c.charAt(63&n)];return a.join("")},m=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,v)},_=function(e){return m(p(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},h=function(e,t){return t?g(_(e)):_(e)},y=function(e){return h(e,!0)};n.Uint8Array&&(r=function(e,t){for(var n="",a=0,i=e.length;a<i;a+=3){var r=e[a],s=e[a+1],o=e[a+2],l=r<<16|s<<8|o;n+=c.charAt(l>>>18)+c.charAt(l>>>12&63)+("undefined"!=typeof s?c.charAt(l>>>6&63):"=")+("undefined"!=typeof o?c.charAt(63&l):"=")}return t?g(n):n});var b,C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return u(55296+(n>>>10))+u(56320+(1023&n));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},A=function(e){return e.replace(C,k)},x=function(e){var t=e.length,n=t%4,a=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),i=[u(a>>>16),u(a>>>8&255),u(255&a)];return i.length-=[0,0,2,1][n],i.join("")},I=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,x)},S=function(e){return I(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},N=function(e){return A(I(e))},j=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},w=function(e){return N(j(e))};n.Uint8Array&&(b=function(e){return Uint8Array.from(S(j(e)),(function(e){return e.charCodeAt(0)}))});var O=function(){var e=n.Base64;return n.Base64=s,e};if(n.Base64={VERSION:o,atob:S,btoa:m,fromBase64:w,toBase64:h,utob:p,encode:h,encodeURI:y,btou:A,decode:w,noConflict:O,fromUint8Array:r,toUint8Array:b},"function"===typeof Object.defineProperty){var F=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",F((function(){return w(this)}))),Object.defineProperty(String.prototype,"toBase64",F((function(e){return h(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",F((function(){return h(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:(a=[],i=function(){return n.Base64}.apply(t,a),void 0===i||(e.exports=i)),{Base64:n.Base64}}))}).call(this,n("2409"))},3928:function(e,t,n){},"3d1e7":function(e,t,n){"use strict";n("e94e")},"595d":function(e,t,n){"use strict";n("c42c")},"6d78":function(e,t,n){"use strict";n("7139")},7139:function(e,t,n){},"884a":function(e,t,n){"use strict";n("3928")},"8c07":function(e,t,n){},9256:function(e,t,n){"use strict";n("51d7"),n("5cff"),n("4318"),n("9358"),n("4d20"),n("dcd4");var a=n("d211"),i=n("5976"),r=n.n(i),s=n("e1fd"),o=n("5657"),c=n("2da9");function l(e,t){"ECONNABORTED"===e.code?Object(s["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(s["Message"])({message:e.response.data}):e.message&&Object(s["Message"])({message:e.message}),t(e)}function u(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?s["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):s["Message"].error(e.data.msg)),t(e)}r.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],n=o["a"].get("TOKEN","");n&&t&&(e.headers.token="Bearer "+n);var a="ceres_admin_web",i="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat(c["Base64"].encode("".concat(a,":").concat(i))),e}),(function(e){return Promise.reject(e)})),r.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var d=function(e){var t={ts:Date.now()},n=e.method.toUpperCase(),i={method:n,url:"".concat("https://pos.admin.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},s=["PUT","POST","PATCH"];s.includes(n)?i.data=e.data||{}:i.params=Object(a["a"])(Object(a["a"])({},t),e.data||{}),e.formData&&(i.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var o=new Promise((function(e,t){r()(i).then((function(t){u(t,e)})).catch((function(e){l(e,t)}))}));return o};t["a"]=d},9358:function(e,t,n){var a=n("bbcf"),i=n("df66").entries;a({target:"Object",stat:!0},{entries:function(e){return i(e)}})},"9e62":function(e,t,n){"use strict";n("8c07")},c42c:function(e,t,n){},df66:function(e,t,n){var a=n("6921"),i=n("cfd0"),r=n("e855"),s=n("04fd").f,o=function(e){return function(t){var n,o=r(t),c=i(o),l=c.length,u=0,d=[];while(l>u)n=c[u++],a&&!s.call(o,n)||d.push(e?[n,o[n]]:o[n]);return d}};e.exports={entries:o(!0),values:o(!1)}},e94e:function(e,t,n){},f102:function(e,t,n){"use strict";n("51d7");var a=n("9256"),i={getList:"/order/findReturnInterventionList",getInfo:"/order/getReturnInterventionDetail"};t["a"]={getList:function(e){return Object(a["a"])({method:"POST",url:i.getList,data:e})},getInfo:function(e){return Object(a["a"])({method:"GET",url:"".concat(i.getInfo,"/").concat(e)})}}},f16b:function(e,t,n){},f56c:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"detail_page"},[n("div",{staticClass:"content"},[n("div",{staticClass:"head_box"},[e._v(" 售后详情 "),n("div",{staticClass:"btn_list"},[n("el-button",{on:{click:e.refuse}},[e._v("拒绝售后")]),n("el-button",{attrs:{type:"primary"},on:{click:e.handle}},[e._v("同意售后")])],1)]),n("div",{staticClass:"detail"},[n("div",{staticClass:"order_info"},[n("p",{staticClass:"detail_title"},[e._v("订单信息")]),n("ul",{staticClass:"order_list"},e._l(e.orderInfo,(function(t,a){return n("li",{key:a},[n("p",[e._v(e._s(t.name)+":")]),n("p",{class:[{active:1===t.type||2===t.type||4===t.type}]},[n("span",{on:{click:function(n){return e.getInfo(t)}}},[e._v(e._s(t.value))]),3===t.type?n("span",{staticClass:"active",on:{click:function(n){return e.getInfo(t)}}},[e._v(" 查看物流 ")]):e._e()])])})),0)]),n("div",{staticClass:"after_sale_shop"},[n("p",{staticClass:"detail_title"},[e._v("售后商品")]),e._l(e.shopList,(function(t,a){return n("div",{key:a,staticClass:"goods_list"},[n("div",{staticClass:"good_details"},[n("ul",[n("li",[n("img",{attrs:{src:t.skuImg}})]),n("li",[n("p",[e._v(e._s(t.productName))]),n("p",[e._v(e._s(t.skuNameStr))]),n("p",[e._v("SKU: "+e._s(t.skuId))])]),n("li",[n("p",[e._v("¥"+e._s(t.sellPrice*t.buyNum))]),n("p",[e._v("¥"+e._s(t.sellPrice+"*"+t.buyNum))])]),n("li",[e._v(" ¥"+e._s(t.applyPrice*t.buyNum))])])])])})),n("div",{staticClass:"total"},[n("ul",[n("li"),n("li"),n("li",[e._v("退款总金额 ")]),n("li",[e._v("¥"+e._s(e.total))])])])],2)]),n("div",{staticClass:"after_sales_record"},[n("p",{staticClass:"detail_title"},[e._v("协商历史")]),e._l(e.recordList,(function(t,a){return n("div",{key:a,staticClass:"record_list"},[n("div",{staticClass:"record_list_title"},[n("p",[e._v(e._s(t.title))]),n("p",[e._v(e._s(t.name))]),n("p",[e._v(e._s(t.createTime))])]),n("div",{staticClass:"record_list_content"},[n("p",[n("span",[e._v(e._s(t.type)+":")]),n("span",[e._v(e._s(t.actionNote))])]),t.img?n("p",[n("span",[e._v("举证图片:")]),n("img",{attrs:{src:t.imgSrc,alt:""}})]):e._e()])])}))],2)]),n("Dialog",{attrs:{title:e.dialog.title,visible:e.dialog.visible,fullscreen:!1,"before-close":e.close,width:"55%"},on:{"update:visible":function(t){return e.$set(e.dialog,"visible",t)}}},[1===e.dialog.type?n("orderInfo"):e._e(),2===e.dialog.type?n("storeInfo"):e._e(),3===e.dialog.type?n("logistics"):e._e(),4===e.dialog.type?n("buyer"):e._e(),5===e.dialog.type?n("afterSale",{attrs:{dialog:e.dialog},on:{close:e.close}}):e._e()],1)],1)},i=[],r=(n("5cff"),n("957b"),n("dcd4"),n("6a61"),n("2e91")),s=n("e1fd"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.dialog.allow?n("div",{staticClass:"allow"},[n("h1",[e._v("建议联系商家,由商家操作同意退款。")]),n("p",[e._v(" 若你同意售后,客户申请的类型为仅退款时,将自动从商家账户退款给买家 若客户申请的类型为退款退货时,本售后将转为待买家退回物品的状态,有可能被商家拒收 ")])]):n("div",{staticClass:"refuse"},[n("p",[e._v("拒绝售后,本售后将自动关闭,但买家有权再次发起。")])]),n("el-form",{attrs:{"label-width":"120px",model:e.form}},[n("el-form-item",{attrs:{label:"备注内容"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请填写相关内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),n("div",{staticClass:"btn_list"},[n("el-button",{attrs:{type:"primary"}},[e._v(e._s(e.dialog.btnName))]),n("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)],1)},c=[],l={props:{dialog:{type:Object,default:function(){}}},data:function(){return{form:{remark:""}}},methods:{cancel:function(){this.$emit("close")}}},u=l,d=(n("6d78"),n("5d22")),f=Object(d["a"])(u,o,c,!1,null,"534af995",null),p=f.exports,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"store_info_page"},e._l(e.storeInfo,(function(t,a){return n("p",{key:a},[n("span",[e._v(e._s(t.name)+":")]),n("span",[e._v(e._s(t.value))])])})),0)},m=[],_={data:function(){return{storeInfo:[{name:"下单账户",value:"和理智上",field:""},{name:"注册时间",value:"2020-06-30",field:""},{name:"手机号",value:"13966781258",field:""},{name:"订单总数",value:"12个",field:""},{name:"售后单数",value:"5个",field:""},{name:"售后成功率",value:"68%",field:""}]}}},g=_,h=(n("fbf5"),Object(d["a"])(g,v,m,!1,null,"118814a8",null)),y=h.exports,b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"logistics_info"},[n("div",{staticClass:"logistics_com"},e._l(e.list,(function(t,a){return n("p",{key:a},[n("span",[e._v(e._s(t.name)+":")]),n("span",[e._v(e._s(t.value))])])})),0),n("div",{staticClass:"logistics_status"},[n("div",[e._v("物流信息:")]),n("div",e._l(e.logisticsList,(function(t,a){return n("p",{key:a},[n("span",[e._v(e._s(t.time))]),n("span",[e._v(e._s(t.status))])])})),0)])])},C=[],k={data:function(){return{list:[{name:"物流公司",value:"中通",field:""},{name:"运单号",value:"123123",field:""}],logisticsList:[{time:"2020/12/20 15:20:23",status:"正在派件",field:""},{time:"2020/12/20 15:20:23",status:"已从廊坊发货",field:""},{time:" 2020/12/20 15:20:23",status:"已到达目的地",field:""}]}}},A=k,x=(n("884a"),Object(d["a"])(A,b,C,!1,null,"14e9bba9",null)),I=x.exports,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"order_info_page"},[n("div",{staticClass:"order_info"},e._l(e.orderInfo,(function(t,a){return n("p",{key:a},[n("span",[e._v(e._s(t.name)+":")]),n("span",[e._v(e._s(t.value))])])})),0),n("div",{staticClass:"detail_title"},[e._v(" 商品信息 ")]),e._l(e.shopList,(function(t,a){return n("div",{key:a,staticClass:"goods_list"},[n("div",{staticClass:"good_details"},[n("ul",[n("li",[n("img",{attrs:{src:t.skuImg}})]),n("li",[n("p",[e._v(e._s(t.productName))]),n("p",[e._v(e._s(t.skuNameStr))]),n("p",[e._v("SKU: "+e._s(t.skuId))])]),n("li",[n("p",[e._v("¥"+e._s(t.sellPrice*t.buyNum))]),n("p",[e._v("¥"+e._s(t.sellPrice+"*"+t.buyNum))])]),n("li",[e._v(" ¥"+e._s(t.salePrice*t.buyNum))])])])])})),e._m(0)],2)},N=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"total"},[n("ul",[n("li"),n("li"),n("li"),n("li",[n("p",[n("span",[e._v("订单总金额")]),e._v(" "),n("span",[e._v("¥240")])]),n("p",[n("span",[e._v("物流费用")]),e._v(" "),n("span",[e._v("¥40")])]),n("p",[n("span",[e._v("平台优惠(618活动)")]),e._v(" "),n("span",[e._v("-¥100")])]),n("p",[n("span",[e._v("实付")]),e._v(" "),n("span",[e._v("¥180")])])])])])}],j={data:function(){return{orderInfo:[{name:"订单ID",value:"542543543",field:""},{name:"支付单号",value:"12353563",field:""},{name:"支付状态",value:"待发货",field:""},{name:"售后状态",value:"售后中",field:""}],shopList:[{skuImg:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg",productName:"DAD 气垫霜",skuNameStr:"粉色, 中瓶",skuId:"2525",sellPrice:"60",buyNum:"2",salePrice:"50"},{skuImg:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg",productName:"DAD 气垫霜",skuNameStr:"粉色, 中瓶",skuId:"2525",sellPrice:"60",buyNum:"2",salePrice:"50"}],recordList:[{title:"申请平台介入",name:"刘十",time:"2020-05-08 15:30:56",type:"问题描述",value:"不退款",img:"举证图片",imgSrc:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg"},{title:"拒绝退款",name:"王辉",time:"2020-04-08 17:30:20",type:"卖家留言",value:"不退款",img:"",imgSrc:""},{title:"发起了售后",name:"张强",time:"2020-03-25 13:25:45",type:"买家留言",value:"不要了, 买到的宝贝不符合预期",img:"",imgSrc:""}],total:200}}},w=j,O=(n("595d"),Object(d["a"])(w,S,N,!1,null,"50e36088",null)),F=O.exports,D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"store_info_page"},e._l(e.storeInfo,(function(t,a){return n("p",{key:a},[n("span",[e._v(e._s(t.name)+":")]),n("span",[e._v(e._s(t.value))])])})),0)},P=[],B={data:function(){return{storeInfo:[{name:"店铺名称",value:"江山的店铺",field:""},{name:"合同有效期",value:"2020-06-30──2022-07-23",field:""},{name:"负责人",value:"江山",field:""},{name:"联系电话",value:"0755-56894556",field:""},{name:"联系地址",value:"广东省深圳市南山区科技园",field:""}]}}},T=B,E=(n("3d1e7"),Object(d["a"])(T,D,P,!1,null,"3504ab05",null)),L=E.exports,H=n("f102"),R={components:{Dialog:s["Dialog"],afterSale:p,buyer:y,logistics:I,orderInfo:F,storeInfo:L},data:function(){return{orderInfo:[{name:"订单ID",value:"",type:1,field:"orderCode"},{name:"售后订单ID",value:"",type:"",field:"orderCode"},{name:"支付时间",value:"",type:"",field:"createTime"},{name:"支付方式",value:"",type:"",field:"payChannel"},{name:"订单总金额",value:"",type:"",field:""},{name:"店铺名称",value:"",type:2,field:"memberAccount"},{name:"物流单号",value:"",type:3,field:"logisticsNum"},{name:"售后类型",value:"",type:"",field:"returnType"},{name:"买家账户",value:"",type:4,field:"recName"}],shopList:[{skuImg:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg",productName:"DAD 气垫霜",skuNameStr:"粉色, 中瓶",skuId:"2525",sellPrice:"60",buyNum:"2",salePrice:"50"},{skuImg:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg",productName:"DAD 气垫霜",skuNameStr:"粉色, 中瓶",skuId:"2525",sellPrice:"60",buyNum:"2",salePrice:"50"}],recordList:[{title:"申请平台介入",name:"刘十",time:"2020-05-08 15:30:56",type:"问题描述",value:"不退款",img:"举证图片",imgSrc:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=137628589,3436980029&fm=26&gp=0.jpg"},{title:"拒绝退款",name:"王辉",time:"2020-04-08 17:30:20",type:"卖家留言",value:"不退款",img:"",imgSrc:""},{title:"发起了售后",name:"张强",time:"2020-03-25 13:25:45",type:"买家留言",value:"不要了, 买到的宝贝不符合预期",img:"",imgSrc:""}],total:0,dialog:{}}},computed:{query:function(){return this.$route.query}},created:function(){this.getDetails()},methods:{getDetails:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,H["a"].getInfo(e.query.id);case 2:n=t.sent,a=n.data,0===a.code&&(i=a.data,e.getOrderInfo(i),e.shopList=i.orderProductDTOList,e.getTotal(i.orderProductDTOList),e.recordList=i.moneyReturnActionHistoryList,console.log(i,"rr"));case 5:case"end":return t.stop()}}),t)})))()},getTotal:function(e){var t=this;e&&e.length&&e.forEach((function(e){t.total+=e.applyPrice*e.buyNum}))},getOrderInfo:function(e){var t={1:"微信支付",2:"支付宝支付",3:"余额支付"},n={1:"无售后",2:"退款",3:"退货"};this.orderInfo.map((function(a){a.value=e[a.field]||"","payChannel"===a.field&&(a.value=t[a.value]),"returnType"===a.field&&(a.value=n[a.value])}))},handle:function(){this.dialog={title:"同意售后",visible:!0,type:5,btnName:"同意售后",allow:!0}},refuse:function(){this.dialog={title:"拒绝售后",visible:!0,type:5,btnName:"拒绝售后"}},getInfo:function(e){1===e.type&&(this.dialog={title:"订单信息",visible:!0,type:e.type}),2===e.type&&(this.dialog={title:"店铺信息",visible:!0,type:e.type}),3===e.type&&(this.dialog={title:"物流信息",visible:!0,type:e.type}),4===e.type&&(this.dialog={title:"买家信息",visible:!0,type:e.type})},close:function(){this.dialog={}}}},U=R,$=(n("9e62"),Object(d["a"])(U,a,i,!1,null,"14ac8051",null));t["default"]=$.exports},fbf5:function(e,t,n){"use strict";n("f16b")}}]); |