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
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ea8cf61"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),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 n=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,a){var i=o(),s=t-i,u=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=u;var o=Math.easeInOutQuad(c,i,s,e);r(o),c<e?n(t):a&&"function"===typeof a&&a()};l()}},"1b53":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-page"},[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-input",{attrs:{size:"mini"},model:{value:t.formParams.model.tenant,callback:function(e){t.$set(t.formParams.model,"tenant",e)},expression:"formParams.model.tenant"}})],1),a("el-form-item",{attrs:{label:"提现日期"}},[a("el-date-picker",{attrs:{size:"mini",type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:t.formParams.model.applyTimeString,callback:function(e){t.$set(t.formParams.model,"applyTimeString",e)},expression:"formParams.model.applyTimeString"}})],1),a("el-form-item",{attrs:{label:"处理状态"}},[a("el-select",{attrs:{size:"mini"},model:{value:t.formParams.model.auditStatus,callback:function(e){t.$set(t.formParams.model,"auditStatus",e)},expression:"formParams.model.auditStatus"}},t._l(t.auditStatus,(function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.query}},[t._v(" 查询 ")]),a("el-button",{attrs:{plain:"",size:"mini"},on:{click:t.reset}},[t._v(" 重置 ")])],1)],1)],1),a("div",{staticClass:"content"},[a("div",{staticClass:"content_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData.records}},[a("el-table-column",{attrs:{prop:"storeName",label:"店铺名称"}}),a("el-table-column",{attrs:{prop:"tenant",label:"店铺编码"}}),a("el-table-column",{attrs:{prop:"amount",formatter:t.getMoneyUnit,label:"提现金额"}}),a("el-table-column",{attrs:{prop:"auditStatus",label:"处理状态",formatter:t.getAuditStatus}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.look(e.row)}}},[t._v(" 查看 ")]),0===e.row.auditStatus?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.handle(e.row)}}},[t._v(" 处理 ")]):t._e()]}}])})],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),a("cashDetails",{ref:"dialog",attrs:{"dialog-data":t.dialogData},on:{closed:t.closed}})],1)},r=[],o=(a("d81d"),a("b680"),a("96cf"),a("1da1")),i=a("333d"),s=a("d099"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dialogData.title,visible:t.dialogData.isVisible,width:"45%"},on:{"update:visible":function(e){return t.$set(t.dialogData,"isVisible",e)}}},[a("ul",[t._l(t.dataList,(function(e,n){return a("li",{key:n},[a("span",[t._v(t._s(e.name))]),a("span",[t._v(t._s(5===n?t.moneyUnit(e.value):e.value))])])})),t.dialogData.type?t._e():a("li",[a("span",[t._v("处理时间:")]),a("span",[t._v(t._s(t.info.auditTime))])])],2),t.dialogData.cash&&!t.dialogData.cash.auditStatus&&t.dialogData.type?a("p",{staticClass:"tips"},[t._v("* 请确认您已转账成功,再点击确认")]):t._e(),a("p",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.dialogData.cash&&!t.dialogData.cash.auditStatus&&t.dialogData.type?a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.dialogData.confirm||"确定")+" ")]):t._e(),a("el-button",{on:{click:function(e){return t.cancel()}}},[t._v(" "+t._s(t.dialogData.cancel||"取消")+" ")])],1)])},c=[],l=(a("b64b"),{props:{dialogData:{type:Object,default:function(){}}},data:function(){return{dataList:[{name:"店铺名称:",value:"",field:"storeName"},{name:"店铺编码:",value:"",field:"tenant"},{name:"银行名称:",value:"",field:"bank"},{name:"银行卡号:",value:"",field:"cardNumber"},{name:"收款人姓名:",value:"",field:"cardholderName"},{name:"提现金额:",value:"",field:"amount"},{name:"申请时间:",value:"",field:"applyTime"}],params:{id:"",tenant:""},info:{}}},methods:{getDetail:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,s["a"].getDetail(t);case 2:n=a.sent,r=n.data,0===r.code&&(o=r.data,e.info=o,e.dataList.map((function(t){t.value=o[t.field]})),Object.keys(e.params).map((function(t){e.params[t]=o[t]})));case 5:case"end":return a.stop()}}),a)})))()},moneyUnit:function(t){return t?(t/100).toFixed(2):0},confirm:function(){var t=this;s["a"].audiCash(this.params).then((function(){t.$message({message:"处理成功",type:"success"}),t.close()}))},cancel:function(){this.close()},close:function(){this.$emit("closed",!1)}}}),d=l,f=(a("642d"),a("2877")),m=Object(f["a"])(d,u,c,!1,null,"1b3bf021",null),p=m.exports,h={components:{Pagination:i["a"],cashDetails:p},data:function(){return{formParams:{model:{storeName:"",tenant:"",applyTimeString:"",auditStatus:""},size:10,current:1},auditStatus:[{label:"全部",value:""},{label:"待处理",value:0},{label:"已处理",value:1}],tableData:{},dialogData:{}}},created:function(){this.getCashList()},methods:{getCashList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["a"].getCashList(t.formParams);case 2:a=e.sent,n=a.data,0===n.code&&(t.tableData=n.data);case 5:case"end":return e.stop()}}),e)})))()},getAuditStatus:function(t,e,a){var n="";return this.auditStatus.map((function(t){t.value===a&&(n=t.label)})),n},getMoneyUnit:function(t,e,a){return this.MoneyUnit(a)},MoneyUnit:function(t){var e=0;return t?(e=(t/100).toFixed(2),e):e},query:function(){this.getCashList()},reset:function(){this.formParams={model:{storeName:"",tenant:"",applyTimeString:"",auditStatus:""},size:10,current:1}},look:function(t){this.$refs.dialog.getDetail(t.id),this.dialogData={title:"查看",isVisible:!0,cash:t,cancel:"关闭",type:0}},handle:function(t){this.$refs.dialog.getDetail(t.id),this.dialogData={title:"提现",isVisible:!0,cash:t,confirm:"确认打款",cancel:"取消",type:1}},fetch:function(){this.getCashList()},closed:function(t){this.getCashList(),this.dialogData.isVisible=t}}},g=h,b=(a("c2d0"),Object(f["a"])(g,n,r,!1,null,"1c13e069",null));e["default"]=b.exports},"27ae":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,s="2.6.4",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=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("")},h=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)},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)},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],s=t[n+2],c=o<<16|i<<8|s;a+=u.charAt(c>>>18)+u.charAt(c>>>12&63)+("undefined"!=typeof i?u.charAt(c>>>6&63):"=")+("undefined"!=typeof s?u.charAt(63&c):"=")}return e?b(a):a});var D,w=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=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(w,S)},C=function(t){var e=t.length,a=e%4,n=(e>0?c[t.charAt(0)]<<18:0)|(e>1?c[t.charAt(1)]<<12:0)|(e>2?c[t.charAt(2)]<<6:0)|(e>3?c[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("")},O=a.atob&&"function"==typeof a.atob?function(t){return a.atob(t)}:function(t){return t.replace(/\S{1,4}/g,C)},x=function(t){return O(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(t){return A(O(t))},_=function(t){return String(t).replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},T=function(t){return P(_(t))};a.Uint8Array&&(D=function(t){return Uint8Array.from(x(_(t)),(function(t){return t.charCodeAt(0)}))});var j=function(){var t=a.Base64;return a.Base64=i,t};if(a.Base64={VERSION:s,atob:x,btoa:h,fromBase64:T,toBase64:v,utob:m,encode:v,encodeURI:y,btou:A,decode:T,noConflict:j,fromUint8Array:o,toUint8Array:D},"function"===typeof Object.defineProperty){var k=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k((function(){return T(this)}))),Object.defineProperty(String.prototype,"toBase64",k((function(t){return v(this,t)}))),Object.defineProperty(String.prototype,"toBase64URI",k((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("c8ba"))},"4fad":function(t,e,a){var n=a("23e7"),r=a("6f53").entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},"5b32":function(t,e,a){},"642d":function(t,e,a){"use strict";var n=a("5b32"),r=a.n(n);r.a},"6f53":function(t,e,a){var n=a("83ab"),r=a("df75"),o=a("fc6a"),i=a("d1e7").f,s=function(t){return function(e){var a,s=o(e),u=r(s),c=u.length,l=0,d=[];while(c>l)a=u[l++],n&&!i.call(s,a)||d.push(t?[a,s[a]]:s[a]);return d}};t.exports={entries:s(!0),values:s(!1)}},9256:function(t,e,a){"use strict";a("99af"),a("4160"),a("caad"),a("4fad"),a("d3b7"),a("159b");var n=a("5530"),r=a("bc3a"),o=a.n(r),i=a("5c96"),s=a("5657");a("27ae");function u(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 c(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=s["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("".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 l=function(t){console.log(t,"opts");var e={ts:Date.now()},a=t.method.toUpperCase(),r={method:a,url:"".concat("https://pos.admin.api.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 s=new Promise((function(t,e){o()(r).then((function(e){c(e,t)})).catch((function(t){u(t,e)}))}));return s};e["a"]=l},c2d0:function(t,e,a){"use strict";var n=a("f8d2"),r=a.n(n);r.a},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})}}},f8d2:function(t,e,a){}}]); |