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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a59015c8"],{"0211":function(t,e,a){"use strict";a("eccb")},"208b":function(t,e,a){},"2da9":function(t,e,a){(function(a){var n,r;(function(e,a){t.exports=a(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof a?a:this,(function(a){"use strict";a=a||{};var o,i=a.Base64,c="2.6.4",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(t){for(var e={},a=0,n=t.length;a<n;a++)e[t.charAt(a)]=a;return e}(u),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],a=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0),n=[u.charAt(a>>>18),u.charAt(a>>>12&63),e>=2?"=":u.charAt(a>>>6&63),e>=1?"=":u.charAt(63&a)];return n.join("")},g=a.btoa&&"function"==typeof a.btoa?function(t){return a.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)},h=function(t){return g(m(String(t)))},b=function(t){return t.replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"})).replace(/=/g,"")},v=function(t,e){return e?b(h(t)):h(t)},y=function(t){return v(t,!0)};a.Uint8Array&&(o=function(t,e){for(var a="",n=0,r=t.length;n<r;n+=3){var o=t[n],i=t[n+1],c=t[n+2],s=o<<16|i<<8|c;a+=u.charAt(s>>>18)+u.charAt(s>>>12&63)+("undefined"!=typeof i?u.charAt(s>>>6&63):"=")+("undefined"!=typeof c?u.charAt(63&s):"=")}return e?b(a):a});var S,C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=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),a=e-65536;return l(55296+(a>>>10))+l(56320+(1023&a));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))}},A=function(t){return t.replace(C,w)},P=function(t){var e=t.length,a=e%4,n=(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(n>>>16),l(n>>>8&255),l(255&n)];return r.length-=[0,0,2,1][a],r.join("")},D=a.atob&&"function"==typeof a.atob?function(t){return a.atob(t)}:function(t){return t.replace(/\S{1,4}/g,P)},O=function(t){return D(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(t){return A(D(t))},x=function(t){return String(t).replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},B=function(t){return T(x(t))};a.Uint8Array&&(S=function(t){return Uint8Array.from(O(x(t)),(function(t){return t.charCodeAt(0)}))});var j=function(){var t=a.Base64;return a.Base64=i,t};if(a.Base64={VERSION:c,atob:O,btoa:g,fromBase64:B,toBase64:v,utob:m,encode:v,encodeURI:y,btou:A,decode:B,noConflict:j,fromUint8Array:o,toUint8Array:S},"function"===typeof Object.defineProperty){var z=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",z((function(){return B(this)}))),Object.defineProperty(String.prototype,"toBase64",z((function(t){return v(this,t)}))),Object.defineProperty(String.prototype,"toBase64URI",z((function(){return v(this,!0)})))}}return a["Meteor"]&&(Base64=a.Base64),t.exports?t.exports.Base64=a.Base64:(n=[],r=function(){return a.Base64}.apply(e,n),void 0===r||(t.exports=r)),{Base64:a.Base64}}))}).call(this,a("2409"))},"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden},staticStyle:{display:"block"}},[a("el-pagination",t._b({staticStyle:{display:"block"},attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[];a("65ba");Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(t,e,a){var n=c(),r=t-n,u=20,s=0;e="undefined"===typeof e?500:e;var l=function t(){s+=u;var c=Math.easeInOutQuad(s,n,r,e);i(c),s<e?o(t):a&&"function"===typeof a&&a()};l()}var s={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&u(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},l=s,d=(a("c602"),a("5d22")),f=Object(d["a"])(l,n,r,!1,null,"f9900da8",null);e["a"]=f.exports},"38cd":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cash_deposit_page"},[a("div",{staticClass:"top_content"},[t._v(" 保证金总额"),a("i",{staticClass:"el-icon-warning-outline icon"}),a("span",[t._v(t._s(t.total))])]),a("div",{staticClass:"product-content"},[a("p",{staticClass:"title"},[t._v("交易记录")]),a("div",{staticClass:"toolbar"},[a("el-form",{attrs:{inline:!0,model:t.formParams}},[a("el-form-item",{attrs:{label:"店铺名称"}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.storeName,callback:function(e){t.$set(t.formParams.model,"storeName",e)},expression:"formParams.model.storeName"}})],1),a("el-form-item",{attrs:{label:"保证金状态"}},[a("el-select",{attrs:{size:"mini"},model:{value:t.formParams.model.state,callback:function(e){t.$set(t.formParams.model,"state",e)},expression:"formParams.model.state"}},t._l(t.stateList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"缴纳时间"}},[a("el-date-picker",{attrs:{size:"mini",type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd HH:mm"},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.fetch}},[t._v(" 查询 ")]),a("el-button",{attrs:{plain:"",size:"mini"},on:{click:t.reset}},[t._v(" 重置 ")])],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData.records,border:""}},[a("el-table-column",{attrs:{prop:"storeName",label:"店铺名称"}}),a("el-table-column",{attrs:{prop:"depositType",label:"保证金类型",formatter:t.getType}}),a("el-table-column",{attrs:{prop:"promotionName",label:"活动名称"}}),a("el-table-column",{attrs:{prop:"transactionId",label:"交易流水号"}}),a("el-table-column",{attrs:{prop:"amount",label:"保证金金额",formatter:t.getPrice}}),a("el-table-column",{attrs:{prop:"state",label:"保证金状态",formatter:t.getState}}),a("el-table-column",{attrs:{prop:"createTime",label:"缴纳/退保时间"}})],1)],1),a("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.fetch}})],1)},r=[],o=(a("6a61"),a("2e91")),i=a("d099"),c=a("333d"),u={components:{Pagination:c["a"]},data:function(){return{formParams:{size:10,current:1,model:{depositType:1,promotionId:"",state:"",orderCode:"",amount:"",storeName:"",startTime:"",endTime:""}},date:[],stateList:[{label:"全部",value:""},{label:"冻结中",value:0},{label:"已退回",value:1}],total:"",tableData:{}}},created:function(){this.getDepositList(),this.getDepositSum()},methods:{getDepositList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,a.formParams.model.startTime=a.date[0]||"",a.formParams.model.endTime=a.date[1]||"",e.next=5,i["a"].getDepositList(a.formParams);case 5:n=e.sent,r=n.data,0===r.code&&(a.tableData=r.data);case 8:case"end":return e.stop()}}),e)})))()},getDepositSum:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,e.next=3,i["a"].getDepositSum();case 3:n=e.sent,r=n.data,0===r.code&&(a.total=r.data.total/100);case 6:case"end":return e.stop()}}),e)})))()},getPrice:function(t,e,a){return a/100},reset:function(){this.formParams={size:10,current:1,model:{depositType:1,promotionId:"",state:"",orderCode:"",amount:"",storeName:"",startTime:"",endTime:""}},this.date=[]},fetch:function(){this.getDepositList()},getType:function(t,e,a){return 1===a?"营销活动保证金":""},getState:function(t,e,a){var n={0:"冻结中",1:"已退回"};return n[a]}}},s=u,l=(a("0211"),a("5d22")),d=Object(l["a"])(s,n,r,!1,null,"0faa66b1",null);e["default"]=d.exports},9256:function(t,e,a){"use strict";a("51d7"),a("5cff"),a("4318"),a("9358"),a("4d20"),a("dcd4");var n=a("d211"),r=a("5976"),o=a.n(r),i=a("e1fd"),c=a("5657"),u=a("2da9");function s(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 l(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"],a=c["a"].get("TOKEN","");a&&e&&(t.headers.token="Bearer "+a);var n="ceres_admin_web",r="ceres_admin_web";return t.headers["Authorization"]="Basic ".concat(u["Base64"].encode("".concat(n,":").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 d=function(t){var e={ts:Date.now()},a=t.method.toUpperCase(),r={method:a,url:"".concat("https://pos.admin.lotus-wallet.com").concat(t.url),responseType:t.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(a)?r.data=t.data||{}:r.params=Object(n["a"])(Object(n["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 c=new Promise((function(t,e){o()(r).then((function(e){l(e,t)})).catch((function(t){s(t,e)}))}));return c};e["a"]=d},9358:function(t,e,a){var n=a("bbcf"),r=a("df66").entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},c602:function(t,e,a){"use strict";a("208b")},d099:function(t,e,a){"use strict";var n=a("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(n["a"])({method:"POST",url:r.getCashList,data:t})},getDetail:function(t){return Object(n["a"])({method:"GET",url:r.getDetail+t})},audiCash:function(t){return Object(n["a"])({method:"POST",url:r.audiCash,data:t})},getDepositList:function(t){return Object(n["a"])({method:"POST",url:r.getDepositList,data:t})},getDepositSum:function(){return Object(n["a"])({method:"POST",url:r.getDepositSum})},getDayList:function(t){return Object(n["a"])({method:"POST",url:r.getDayList,data:t})},getSummary:function(){return Object(n["a"])({method:"POST",url:r.getSummary})}}},df66:function(t,e,a){var n=a("6921"),r=a("cfd0"),o=a("e855"),i=a("04fd").f,c=function(t){return function(e){var a,c=o(e),u=r(c),s=u.length,l=0,d=[];while(s>l)a=u[l++],n&&!i.call(c,a)||d.push(t?[a,c[a]]:c[a]);return d}};t.exports={entries:c(!0),values:c(!1)}},eccb:function(t,e,a){}}]);