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
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45e21eed"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=o(),u=t-i,c=20,s=0;e="undefined"===typeof e?500:e;var l=function t(){s+=c;var o=Math.easeInOutQuad(s,i,u,e);r(o),s<e?a(t):n&&"function"===typeof n&&n()};l()}},"0c7f":function(t,e,n){"use strict";var a=n("833f"),r=n.n(a);r.a},"27ae":function(t,e,n){(function(n){var a,r;(function(e,n){t.exports=n(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:this,(function(n){"use strict";n=n||{};var o,i=n.Base64,u="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(t){for(var e={},n=0,a=t.length;n<a;n++)e[t.charAt(n)]=n;return e}(c),l=String.fromCharCode,d=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?l(192|e>>>6)+l(128|63&e):l(224|e>>>12&15)+l(128|e>>>6&63)+l(128|63&e)}e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return l(240|e>>>18&7)+l(128|e>>>12&63)+l(128|e>>>6&63)+l(128|63&e)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(t){return t.replace(f,d)},p=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0),a=[c.charAt(n>>>18),c.charAt(n>>>12&63),e>=2?"=":c.charAt(n>>>6&63),e>=1?"=":c.charAt(63&n)];return a.join("")},h=n.btoa&&"function"==typeof n.btoa?function(t){return n.btoa(t)}:function(t){if(t.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return t.replace(/[\s\S]{1,3}/g,p)},g=function(t){return h(m(String(t)))},b=function(t){return t.replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"})).replace(/=/g,"")},v=function(t,e){return e?b(g(t)):g(t)},A=function(t){return v(t,!0)};n.Uint8Array&&(o=function(t,e){for(var n="",a=0,r=t.length;a<r;a+=3){var o=t[a],i=t[a+1],u=t[a+2],s=o<<16|i<<8|u;n+=c.charAt(s>>>18)+c.charAt(s>>>12&63)+("undefined"!=typeof i?c.charAt(s>>>6&63):"=")+("undefined"!=typeof u?c.charAt(63&s):"=")}return e?b(n):n});var w,y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return l(55296+(n>>>10))+l(56320+(1023&n));case 3:return l((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return l((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},O=function(t){return t.replace(y,C)},D=function(t){var e=t.length,n=e%4,a=(e>0?s[t.charAt(0)]<<18:0)|(e>1?s[t.charAt(1)]<<12:0)|(e>2?s[t.charAt(2)]<<6:0)|(e>3?s[t.charAt(3)]:0),r=[l(a>>>16),l(a>>>8&255),l(255&a)];return r.length-=[0,0,2,1][n],r.join("")},P=n.atob&&"function"==typeof n.atob?function(t){return n.atob(t)}:function(t){return t.replace(/\S{1,4}/g,D)},x=function(t){return P(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(t){return O(P(t))},j=function(t){return String(t).replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},B=function(t){return S(j(t))};n.Uint8Array&&(w=function(t){return Uint8Array.from(x(j(t)),(function(t){return t.charCodeAt(0)}))});var T=function(){var t=n.Base64;return n.Base64=i,t};if(n.Base64={VERSION:u,atob:x,btoa:h,fromBase64:B,toBase64:v,utob:m,encode:v,encodeURI:A,btou:O,decode:B,noConflict:T,fromUint8Array:o,toUint8Array:w},"function"===typeof Object.defineProperty){var F=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",F((function(){return B(this)}))),Object.defineProperty(String.prototype,"toBase64",F((function(t){return v(this,t)}))),Object.defineProperty(String.prototype,"toBase64URI",F((function(){return v(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),t.exports?t.exports.Base64=n.Base64:(a=[],r=function(){return n.Base64}.apply(e,a),void 0===r||(t.exports=r)),{Base64:n.Base64}}))}).call(this,n("c8ba"))},"4fad":function(t,e,n){var a=n("23e7"),r=n("6f53").entries;a({target:"Object",stat:!0},{entries:function(t){return r(t)}})},"6f53":function(t,e,n){var a=n("83ab"),r=n("df75"),o=n("fc6a"),i=n("d1e7").f,u=function(t){return function(e){var n,u=o(e),c=r(u),s=c.length,l=0,d=[];while(s>l)n=c[l++],a&&!i.call(u,n)||d.push(t?[n,u[n]]:u[n]);return d}};t.exports={entries:u(!0),values:u(!1)}},"833f":function(t,e,n){},9256:function(t,e,n){"use strict";n("99af"),n("4160"),n("caad"),n("4fad"),n("d3b7"),n("159b");var a=n("5530"),r=n("bc3a"),o=n.n(r),i=n("5c96"),u=n("5657");n("27ae");function c(t,e){"ECONNABORTED"===t.code?Object(i["Message"])({message:"请求超时"}):t.response&&t.response.data?Object(i["Message"])({message:t.response.data}):t.message&&Object(i["Message"])({message:t.message}),e(t)}function s(t,e){t.data.isError&&(4e4===t.data.code||40001===t.data.code||40002===t.data.code||40003===t.data.code||40005===t.data.code||40006===t.data.code||40008===t.data.code?i["MessageBox"].alert(t.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(t.data.msg)),e(t)}o.a.interceptors.request.use((function(t){var e=!1!==t.headers["X-isToken"]||t.headers["X-isToken"],n=u["a"].get("TOKEN","");n&&e&&(t.headers.token="Bearer "+n);var a="ceres_admin_web",r="ceres_admin_web";return t.headers["Authorization"]="Basic ".concat("".concat(a,":").concat(r)),t}),(function(t){return Promise.reject(t)})),o.a.interceptors.response.use((function(t){return t}),(function(t){return Promise.reject(t)}));var l=function(t){console.log(t,"opts");var e={ts:Date.now()},n=t.method.toUpperCase(),r={method:n,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(t.url),responseType:t.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(n)?r.data=t.data||{}:r.params=Object(a["a"])(Object(a["a"])({},e),t.data||{}),t.formData&&(r.transformRequest=[function(t){var e=new FormData;return t&&Object.entries(t).forEach((function(t){e.append(t[0],t[1])})),e}]);var u=new Promise((function(t,e){o()(r).then((function(e){s(e,t)})).catch((function(t){c(t,e)}))}));return u};e["a"]=l},"9efe":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"overview_page"},[n("div",{staticClass:"total_info"},[n("ul",t._l(t.totalList,(function(e,a){return n("li",{key:a},[n("p",[t._v(t._s(e.value))]),n("p",[t._v(" "+t._s(e.name)+" "),n("i",{staticClass:"el-icon-warning-outline icon",attrs:{title:e.tips}})])])})),0)]),n("div",{staticClass:"toolbar"},[n("el-form",{attrs:{inline:!0,model:t.formParams}},[n("el-form-item",{attrs:{label:"商家名称"}},[n("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.tenantName,callback:function(e){t.$set(t.formParams.model,"tenantName",e)},expression:"formParams.model.tenantName"}})],1),n("el-form-item",{attrs:{label:"商家编码"}},[n("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.tenantCode,callback:function(e){t.$set(t.formParams.model,"tenantCode",e)},expression:"formParams.model.tenantCode"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.query}},[t._v(" 查询 ")]),n("el-button",{attrs:{plain:"",size:"mini"},on:{click:t.reset}},[t._v(" 重置 ")])],1)],1)],1),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData.records,border:""}},[n("el-table-column",{attrs:{prop:"tenantName",label:"商家名称"}}),n("el-table-column",{attrs:{prop:"tenantCode",label:"商家编码"}}),n("el-table-column",{attrs:{formatter:t.getPrice,prop:"incomeAmount",label:"营收总额"}}),n("el-table-column",{attrs:{formatter:t.getPrice,prop:"freezesAmount",label:"冻结金额"}}),n("el-table-column",{attrs:{formatter:t.getPrice,prop:"withdrawAmount",label:"已提金额"}}),n("el-table-column",{attrs:{formatter:t.getPrice,prop:"refundAmount",label:"已退款金额"}})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:t.formParams.size,page:t.formParams.current,total:Number(t.tableData.total)},on:{"update:limit":function(e){return t.$set(t.formParams,"size",e)},"update:page":function(e){return t.$set(t.formParams,"current",e)},pagination:t.query}})],1)},r=[],o=(n("d81d"),n("96cf"),n("1da1")),i=n("333d"),u=n("d099"),c={components:{Pagination:i["a"]},data:function(){return{formParams:{current:1,map:{},model:{canWithdrawAmount:0,freezesAmount:0,incomeAmount:0,refundAmount:0,tenantCode:"",tenantName:"",withdrawAmount:0},order:"descending",size:10,sort:"id"},totalList:[{name:"营收总额",value:0,field:"incomeAmount",tips:"所有商家支付成功的订单总金额"},{name:"冻结总金额",value:0,field:"freezesAmount",tips:"所有商家交易尚未完成仍在冻结中的金额"},{name:"可提现金额",value:0,field:"canWithdrawAmount",tips:"所有商家可以提现但尚未提现的的金额"},{name:"已提金额",value:0,field:"withdrawAmount",tips:"所有商家的售后订单中产生退款并退款成功的总金额"},{name:"已退款金额",value:0,field:"refundAmount",tips:""}],tableData:{}}},created:function(){this.getDayList(),this.getSummary()},methods:{getDayList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u["a"].getDayList(t.formParams);case 2:n=e.sent,a=n.data,0===a.code&&(t.tableData=a.data);case 5:case"end":return e.stop()}}),e)})))()},getSummary:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u["a"].getSummary();case 2:n=e.sent,a=n.data,0===a.code&&(r=a.data,t.totalList.map((function(t){t.value=r[t.field]/100||0})));case 5:case"end":return e.stop()}}),e)})))()},query:function(){this.getDayList()},getPrice:function(t,e,n){return n/100},reset:function(){this.formParams={current:1,map:{},model:{canWithdrawAmount:0,freezesAmount:0,incomeAmount:0,refundAmount:0,tenantCode:"",tenantName:"",withdrawAmount:0},order:"descending",size:10,sort:"id"}}}},s=c,l=(n("0c7f"),n("2877")),d=Object(l["a"])(s,a,r,!1,null,"d33bfbca",null);e["default"]=d.exports},d099:function(t,e,n){"use strict";var a=n("9256"),r={getCashList:"/cashOutDetail/page/audit",getDetail:"/cashOutDetail/audit/",audiCash:"/cashOutDetail/audit",getDepositList:"/depositJournal/page",getDepositSum:"/depositJournal/summary",getDayList:"/journalDetail/platform-finance-page",getSummary:"/journalDetail/platform-finance-summary"};e["a"]={getCashList:function(t){return Object(a["a"])({method:"POST",url:r.getCashList,data:t})},getDetail:function(t){return Object(a["a"])({method:"GET",url:r.getDetail+t})},audiCash:function(t){return Object(a["a"])({method:"POST",url:r.audiCash,data:t})},getDepositList:function(t){return Object(a["a"])({method:"POST",url:r.getDepositList,data:t})},getDepositSum:function(){return Object(a["a"])({method:"POST",url:r.getDepositSum})},getDayList:function(t){return Object(a["a"])({method:"POST",url:r.getDayList,data:t})},getSummary:function(){return Object(a["a"])({method:"POST",url:r.getSummary})}}}}]); |