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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-540c9bd4"],{1998:function(e,t,a){"use strict";var n=a("9dc6"),i=a.n(n);i.a},"27ae":function(e,t,a){(function(a){var n,i;(function(t,a){e.exports=a(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof a?a:this,(function(a){"use strict";a=a||{};var r,s=a.Base64,o="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},a=0,n=e.length;a<n;a++)t[e.charAt(a)]=a;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],a=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[c.charAt(a>>>18),c.charAt(a>>>12&63),t>=2?"=":c.charAt(a>>>6&63),t>=1?"=":c.charAt(63&a)];return n.join("")},m=a.btoa&&"function"==typeof a.btoa?function(e){return a.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)};a.Uint8Array&&(r=function(e,t){for(var a="",n=0,i=e.length;n<i;n+=3){var r=e[n],s=e[n+1],o=e[n+2],l=r<<16|s<<8|o;a+=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(a):a});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),a=t-65536;return u(55296+(a>>>10))+u(56320+(1023&a));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,a=t%4,n=(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(n>>>16),u(n>>>8&255),u(255&n)];return i.length-=[0,0,2,1][a],i.join("")},I=a.atob&&"function"==typeof a.atob?function(e){return a.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))};a.Uint8Array&&(b=function(e){return Uint8Array.from(S(j(e)),(function(e){return e.charCodeAt(0)}))});var O=function(){var e=a.Base64;return a.Base64=s,e};if(a.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}};a.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 a["Meteor"]&&(Base64=a.Base64),e.exports?e.exports.Base64=a.Base64:(n=[],i=function(){return a.Base64}.apply(t,n),void 0===i||(e.exports=i)),{Base64:a.Base64}}))}).call(this,a("c8ba"))},"308f":function(e,t,a){"use strict";var n=a("d8bb"),i=a.n(n);i.a},"4fad":function(e,t,a){var n=a("23e7"),i=a("6f53").entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},5123:function(e,t,a){},"6e25":function(e,t,a){},"6f53":function(e,t,a){var n=a("83ab"),i=a("df75"),r=a("fc6a"),s=a("d1e7").f,o=function(e){return function(t){var a,o=r(t),c=i(o),l=c.length,u=0,d=[];while(l>u)a=c[u++],n&&!s.call(o,a)||d.push(e?[a,o[a]]:o[a]);return d}};e.exports={entries:o(!0),values:o(!1)}},9256:function(e,t,a){"use strict";a("99af"),a("4160"),a("caad"),a("4fad"),a("d3b7"),a("159b");var n=a("5530"),i=a("bc3a"),r=a.n(i),s=a("5c96"),o=a("5657");a("27ae");function c(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 l(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"],a=o["a"].get("TOKEN","");a&&t&&(e.headers.token="Bearer "+a);var n="ceres_admin_web",i="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat("".concat(n,":").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 u=function(e){console.log(e,"opts");var t={ts:Date.now()},a=e.method.toUpperCase(),i={method:a,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},s=["PUT","POST","PATCH"];s.includes(a)?i.data=e.data||{}:i.params=Object(n["a"])(Object(n["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){l(t,e)})).catch((function(e){c(e,t)}))}));return o};t["a"]=u},"9dc6":function(e,t,a){},a4ee:function(e,t,a){"use strict";var n=a("6e25"),i=a.n(n);i.a},a5b8:function(e,t,a){"use strict";var n=a("bc0b"),i=a.n(n);i.a},bc0b:function(e,t,a){},cfd7:function(e,t,a){"use strict";var n=a("e544"),i=a.n(n);i.a},d45d:function(e,t,a){"use strict";var n=a("5123"),i=a.n(n);i.a},d8bb:function(e,t,a){},e544:function(e,t,a){},f102:function(e,t,a){"use strict";a("99af");var n=a("9256"),i={getList:"/order/findReturnInterventionList",getInfo:"/order/getReturnInterventionDetail"};t["a"]={getList:function(e){return Object(n["a"])({method:"POST",url:i.getList,data:e})},getInfo:function(e){return Object(n["a"])({method:"GET",url:"".concat(i.getInfo,"/").concat(e)})}}},f56c:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"detail_page"},[a("div",{staticClass:"content"},[a("div",{staticClass:"head_box"},[e._v(" 售后详情 "),a("div",{staticClass:"btn_list"},[a("el-button",{on:{click:e.refuse}},[e._v("拒绝售后")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handle}},[e._v("同意售后")])],1)]),a("div",{staticClass:"detail"},[a("div",{staticClass:"order_info"},[a("p",{staticClass:"detail_title"},[e._v("订单信息")]),a("ul",{staticClass:"order_list"},e._l(e.orderInfo,(function(t,n){return a("li",{key:n},[a("p",[e._v(e._s(t.name)+":")]),a("p",{class:[{active:1===t.type||2===t.type||4===t.type}]},[a("span",{on:{click:function(a){return e.getInfo(t)}}},[e._v(e._s(t.value))]),3===t.type?a("span",{staticClass:"active",on:{click:function(a){return e.getInfo(t)}}},[e._v(" 查看物流 ")]):e._e()])])})),0)]),a("div",{staticClass:"after_sale_shop"},[a("p",{staticClass:"detail_title"},[e._v("售后商品")]),e._l(e.shopList,(function(t,n){return a("div",{key:n,staticClass:"goods_list"},[a("div",{staticClass:"good_details"},[a("ul",[a("li",[a("img",{attrs:{src:t.skuImg}})]),a("li",[a("p",[e._v(e._s(t.productName))]),a("p",[e._v(e._s(t.skuNameStr))]),a("p",[e._v("SKU: "+e._s(t.skuId))])]),a("li",[a("p",[e._v("¥"+e._s(t.sellPrice*t.buyNum))]),a("p",[e._v("¥"+e._s(t.sellPrice+"*"+t.buyNum))])]),a("li",[e._v(" ¥"+e._s(t.applyPrice*t.buyNum))])])])])})),a("div",{staticClass:"total"},[a("ul",[a("li"),a("li"),a("li",[e._v("退款总金额 ")]),a("li",[e._v("¥"+e._s(e.total))])])])],2)]),a("div",{staticClass:"after_sales_record"},[a("p",{staticClass:"detail_title"},[e._v("协商历史")]),e._l(e.recordList,(function(t,n){return a("div",{key:n,staticClass:"record_list"},[a("div",{staticClass:"record_list_title"},[a("p",[e._v(e._s(t.title))]),a("p",[e._v(e._s(t.name))]),a("p",[e._v(e._s(t.createTime))])]),a("div",{staticClass:"record_list_content"},[a("p",[a("span",[e._v(e._s(t.type)+":")]),a("span",[e._v(e._s(t.actionNote))])]),t.img?a("p",[a("span",[e._v("举证图片:")]),a("img",{attrs:{src:t.imgSrc,alt:""}})]):e._e()])])}))],2)]),a("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?a("orderInfo"):e._e(),2===e.dialog.type?a("storeInfo"):e._e(),3===e.dialog.type?a("logistics"):e._e(),4===e.dialog.type?a("buyer"):e._e(),5===e.dialog.type?a("afterSale",{attrs:{dialog:e.dialog},on:{close:e.close}}):e._e()],1)],1)},i=[],r=(a("4160"),a("d81d"),a("159b"),a("96cf"),a("1da1")),s=a("5c96"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.dialog.allow?a("div",{staticClass:"allow"},[a("h1",[e._v("建议联系商家,由商家操作同意退款。")]),a("p",[e._v(" 若你同意售后,客户申请的类型为仅退款时,将自动从商家账户退款给买家 若客户申请的类型为退款退货时,本售后将转为待买家退回物品的状态,有可能被商家拒收 ")])]):a("div",{staticClass:"refuse"},[a("p",[e._v("拒绝售后,本售后将自动关闭,但买家有权再次发起。")])]),a("el-form",{attrs:{"label-width":"120px",model:e.form}},[a("el-form-item",{attrs:{label:"备注内容"}},[a("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),a("div",{staticClass:"btn_list"},[a("el-button",{attrs:{type:"primary"}},[e._v(e._s(e.dialog.btnName))]),a("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=(a("cfd7"),a("2877")),f=Object(d["a"])(u,o,c,!1,null,"192b0248",null),p=f.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"store_info_page"},e._l(e.storeInfo,(function(t,n){return a("p",{key:n},[a("span",[e._v(e._s(t.name)+":")]),a("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=(a("d45d"),Object(d["a"])(g,v,m,!1,null,"d4e6dfdc",null)),y=h.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"logistics_info"},[a("div",{staticClass:"logistics_com"},e._l(e.list,(function(t,n){return a("p",{key:n},[a("span",[e._v(e._s(t.name)+":")]),a("span",[e._v(e._s(t.value))])])})),0),a("div",{staticClass:"logistics_status"},[a("div",[e._v("物流信息:")]),a("div",e._l(e.logisticsList,(function(t,n){return a("p",{key:n},[a("span",[e._v(e._s(t.time))]),a("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=(a("a4ee"),Object(d["a"])(A,b,C,!1,null,"302068d0",null)),I=x.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"order_info_page"},[a("div",{staticClass:"order_info"},e._l(e.orderInfo,(function(t,n){return a("p",{key:n},[a("span",[e._v(e._s(t.name)+":")]),a("span",[e._v(e._s(t.value))])])})),0),a("div",{staticClass:"detail_title"},[e._v(" 商品信息 ")]),e._l(e.shopList,(function(t,n){return a("div",{key:n,staticClass:"goods_list"},[a("div",{staticClass:"good_details"},[a("ul",[a("li",[a("img",{attrs:{src:t.skuImg}})]),a("li",[a("p",[e._v(e._s(t.productName))]),a("p",[e._v(e._s(t.skuNameStr))]),a("p",[e._v("SKU: "+e._s(t.skuId))])]),a("li",[a("p",[e._v("¥"+e._s(t.sellPrice*t.buyNum))]),a("p",[e._v("¥"+e._s(t.sellPrice+"*"+t.buyNum))])]),a("li",[e._v(" ¥"+e._s(t.salePrice*t.buyNum))])])])])})),e._m(0)],2)},N=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"total"},[a("ul",[a("li"),a("li"),a("li"),a("li",[a("p",[a("span",[e._v("订单总金额")]),e._v(" "),a("span",[e._v("¥240")])]),a("p",[a("span",[e._v("物流费用")]),e._v(" "),a("span",[e._v("¥40")])]),a("p",[a("span",[e._v("平台优惠(618活动)")]),e._v(" "),a("span",[e._v("-¥100")])]),a("p",[a("span",[e._v("实付")]),e._v(" "),a("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=(a("a5b8"),Object(d["a"])(w,S,N,!1,null,"06d65bbe",null)),F=O.exports,D=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"store_info_page"},e._l(e.storeInfo,(function(t,n){return a("p",{key:n},[a("span",[e._v(e._s(t.name)+":")]),a("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=(a("308f"),Object(d["a"])(T,D,P,!1,null,"48bc925f",null)),L=E.exports,H=a("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 a,n,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:a=t.sent,n=a.data,0===n.code&&(i=n.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:"余额支付"},a={1:"无售后",2:"退款",3:"退货"};this.orderInfo.map((function(n){n.value=e[n.field]||"","payChannel"===n.field&&(n.value=t[n.value]),"returnType"===n.field&&(n.value=a[n.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,$=(a("1998"),Object(d["a"])(U,n,i,!1,null,"94064db6",null));t["default"]=$.exports}}]);