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
11 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44608278"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=o(),c=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=s;var o=Math.easeInOutQuad(u,i,c,t);a(o),u<t?n(e):r&&"function"===typeof r&&r()};l()}},"19d1":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"after_sale_service_page"},[r("div",{staticClass:"content"},[r("el-tabs",{on:{"tab-click":e.selectItem},model:{value:e.formParams.queryType,callback:function(t){e.$set(e.formParams,"queryType",t)},expression:"formParams.queryType"}},e._l(e.tabList,(function(e,t){return r("el-tab-pane",{key:t,attrs:{label:e.name,name:e.id}})})),1),r("div",{staticClass:"toolbar"},[r("el-form",{attrs:{inline:!0,model:e.formParams}},[r("el-form-item",{attrs:{label:"店铺名称/编号"}},[r("el-input",{attrs:{size:"mini"},model:{value:e.formParams.keyword,callback:function(t){e.$set(e.formParams,"keyword",t)},expression:"formParams.keyword"}})],1),r("el-form-item",{attrs:{label:"订单id"}},[r("el-input",{attrs:{size:"mini"},model:{value:e.formParams.orderCode,callback:function(t){e.$set(e.formParams,"orderCode",t)},expression:"formParams.orderCode"}})],1),r("el-form-item",{attrs:{label:"下单时间"}},[r("el-date-picker",{attrs:{size:"mini",type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd"},on:{change:e.handleChange},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.query}},[e._v(" 查询 ")]),r("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.reset}},[e._v(" 重置 ")])],1)],1)],1),r("div",{staticClass:"content_table"},[r("div",{staticClass:"table"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData.returnInterventionDTOList,border:""}},[r("el-table-column",{attrs:{prop:"id",label:"订单id"}}),r("el-table-column",{attrs:{prop:"storeName",label:"店铺名称"}}),r("el-table-column",{attrs:{prop:"tenantCode",label:"店铺编码"}}),r("el-table-column",{attrs:{prop:"returnProductCount",label:"售后商品数量"}}),"1"===e.formParams.queryType?r("el-table-column",{attrs:{prop:"applySum",formatter:e.getPrice,label:"退款金额"}}):r("el-table-column",{attrs:{prop:"value5",formatter:e.getPrice,label:"订单金额"}}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===e.formParams.queryType?r("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(r){return r.preventDefault(),e.handle(t.row.id)}}},[e._v(" 处理 ")]):e._e(),r("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(r){return r.preventDefault(),e.details(t.row.id)}}},[e._v(" 查看 ")])]}}])})],1)],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.formParams.pageSize,page:e.formParams.pageIndex,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.formParams,"pageSize",t)},"update:page":function(t){return e.$set(e.formParams,"pageIndex",t)},pagination:e.fetch}})],1)],1)])},a=[],o=(r("96cf"),r("1da1")),i=r("333d"),c=r("f102"),s={components:{Pagination:i["a"]},data:function(){return{formParams:{keyword:"",orderCode:"",startTime:"",endTime:"",pageSize:10,pageIndex:1,queryType:"1"},date:[],tableData:{},tabList:[{name:"待处理",id:"1"},{name:"已处理",id:"2"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].getList(e.formParams);case 2:r=t.sent,n=r.data,0===n.code&&(e.tableData=n.data);case 5:case"end":return t.stop()}}),t)})))()},getPrice:function(e,t,r){return r/100},query:function(){this.getList()},details:function(e){this.$router.push({path:"/after-sale-service/details",query:{id:e}})},handle:function(e){this.$router.push({path:"/after-sale-service/details",query:{id:e}})},reset:function(){this.formParams={keyword:"",orderCode:"",startTime:"",endTime:"",pageSize:10,pageIndex:1,queryType:"1"}},fetch:function(){this.getList()},selectItem:function(){this.getList()},handleChange:function(e){this.formParams.startTime=e&&e[0]||"",this.formParams.endTime=e&&e[1]||""}}},u=s,l=(r("728a"),r("2877")),d=Object(l["a"])(u,n,a,!1,null,"62549d78",null);t["default"]=d.exports},"27ae":function(e,t,r){(function(r){var n,a;(function(t,r){e.exports=r(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r?r:this,(function(r){"use strict";r=r||{};var o,i=r.Base64,c="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(s),l=String.fromCharCode,d=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(e){return e.replace(f,d)},p=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[s.charAt(r>>>18),s.charAt(r>>>12&63),t>=2?"=":s.charAt(r>>>6&63),t>=1?"=":s.charAt(63&r)];return n.join("")},h=r.btoa&&"function"==typeof r.btoa?function(e){return r.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,p)},b=function(e){return h(m(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?g(b(e)):b(e)},y=function(e){return v(e,!0)};r.Uint8Array&&(o=function(e,t){for(var r="",n=0,a=e.length;n<a;n+=3){var o=e[n],i=e[n+1],c=e[n+2],u=o<<16|i<<8|c;r+=s.charAt(u>>>18)+s.charAt(u>>>12&63)+("undefined"!=typeof i?s.charAt(u>>>6&63):"=")+("undefined"!=typeof c?s.charAt(63&u):"=")}return t?g(r):r});var w,A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=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),r=t-65536;return l(55296+(r>>>10))+l(56320+(1023&r));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},C=function(e){return e.replace(A,x)},P=function(e){var t=e.length,r=t%4,n=(t>0?u[e.charAt(0)]<<18:0)|(t>1?u[e.charAt(1)]<<12:0)|(t>2?u[e.charAt(2)]<<6:0)|(t>3?u[e.charAt(3)]:0),a=[l(n>>>16),l(n>>>8&255),l(255&n)];return a.length-=[0,0,2,1][r],a.join("")},T=r.atob&&"function"==typeof r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/\S{1,4}/g,P)},k=function(e){return T(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},B=function(e){return C(T(e))},O=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},F=function(e){return B(O(e))};r.Uint8Array&&(w=function(e){return Uint8Array.from(k(O(e)),(function(e){return e.charCodeAt(0)}))});var S=function(){var e=r.Base64;return r.Base64=i,e};if(r.Base64={VERSION:c,atob:k,btoa:h,fromBase64:F,toBase64:v,utob:m,encode:v,encodeURI:y,btou:C,decode:F,noConflict:S,fromUint8Array:o,toUint8Array:w},"function"===typeof Object.defineProperty){var j=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",j((function(){return F(this)}))),Object.defineProperty(String.prototype,"toBase64",j((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",j((function(){return v(this,!0)})))}}return r["Meteor"]&&(Base64=r.Base64),e.exports?e.exports.Base64=r.Base64:(n=[],a=function(){return r.Base64}.apply(t,n),void 0===a||(e.exports=a)),{Base64:r.Base64}}))}).call(this,r("c8ba"))},3553:function(e,t,r){},"4fad":function(e,t,r){var n=r("23e7"),a=r("6f53").entries;n({target:"Object",stat:!0},{entries:function(e){return a(e)}})},"6f53":function(e,t,r){var n=r("83ab"),a=r("df75"),o=r("fc6a"),i=r("d1e7").f,c=function(e){return function(t){var r,c=o(t),s=a(c),u=s.length,l=0,d=[];while(u>l)r=s[l++],n&&!i.call(c,r)||d.push(e?[r,c[r]]:c[r]);return d}};e.exports={entries:c(!0),values:c(!1)}},"728a":function(e,t,r){"use strict";var n=r("3553"),a=r.n(n);a.a},9256:function(e,t,r){"use strict";r("99af"),r("4160"),r("caad"),r("4fad"),r("d3b7"),r("159b");var n=r("5530"),a=r("bc3a"),o=r.n(a),i=r("5c96"),c=r("5657");r("27ae");function s(e,t){"ECONNABORTED"===e.code?Object(i["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(i["Message"])({message:e.response.data}):e.message&&Object(i["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?i["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(e.data.msg)),t(e)}o.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],r=c["a"].get("TOKEN","");r&&t&&(e.headers.token="Bearer "+r);var n="ceres_admin_web",a="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat("".concat(n,":").concat(a)),e}),(function(e){return Promise.reject(e)})),o.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var l=function(e){console.log(e,"opts");var t={ts:Date.now()},r=e.method.toUpperCase(),a={method:r,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(r)?a.data=e.data||{}:a.params=Object(n["a"])(Object(n["a"])({},t),e.data||{}),e.formData&&(a.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var c=new Promise((function(e,t){o()(a).then((function(t){u(t,e)})).catch((function(e){s(e,t)}))}));return c};t["a"]=l},f102:function(e,t,r){"use strict";r("99af");var n=r("9256"),a={getList:"/order/findReturnInterventionList",getInfo:"/order/getReturnInterventionDetail"};t["a"]={getList:function(e){return Object(n["a"])({method:"POST",url:a.getList,data:e})},getInfo:function(e){return Object(n["a"])({method:"GET",url:"".concat(a.getInfo,"/").concat(e)})}}}}]);