chunk-4d27a77e.bd01afae9a2e2fe6fb2b.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d27a77e"],{"0ccb":function(t,e,r){var n=r("50c4"),a=r("1148"),o=r("1d80"),u=Math.ceil,i=function(t){return function(e,r,i){var c,l,d=String(o(e)),s=d.length,m=void 0===i?" ":String(i),f=n(r);return f<=s||""==m?d:(c=f-s,l=a.call(m,u(c/m.length)),l.length>c&&(l=l.slice(0,c)),t?d+l:l+d)}};t.exports={start:i(!1),end:i(!0)}},1148:function(t,e,r){"use strict";var n=r("a691"),a=r("1d80");t.exports="".repeat||function(t){var e=String(a(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},"449a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"searchForm"},[r("div",{staticClass:"leftFrom"},[r("el-form",{ref:"searchForm",attrs:{model:t.searchForm,"label-width":"200px"}},[r("el-form-item",[r("div",{staticClass:"itemFrom"},[r("el-input",{attrs:{placeholder:"订单号",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.searchForm.ordernum,callback:function(e){t.$set(t.searchForm,"ordernum",e)},expression:"searchForm.ordernum"}}),r("el-input",{attrs:{placeholder:"用户ID",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.searchForm.member_id,callback:function(e){t.$set(t.searchForm,"member_id",e)},expression:"searchForm.member_id"}}),r("el-input",{attrs:{placeholder:"用户名称",onkeyup:"this.value=this.value.replace(/[, ]/g,'')"},model:{value:t.searchForm.username,callback:function(e){t.$set(t.searchForm,"username",e)},expression:"searchForm.username"}}),r("el-select",{attrs:{clearable:"",placeholder:"币种类型"},model:{value:t.searchForm.coin,callback:function(e){t.$set(t.searchForm,"coin",e)},expression:"searchForm.coin"}},t._l(t.coinList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.currency,value:t.currency}})})),1),r("el-select",{attrs:{clearable:"",placeholder:"币种类型"},model:{value:t.searchForm.operate_type,callback:function(e){t.$set(t.searchForm,"operate_type",e)},expression:"searchForm.operate_type"}},t._l(t.operate,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),r("el-date-picker",{attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)])],1)],1),r("div",{staticClass:"inquire"},[r("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:t.inquire}},[t._v("查询")])],1),r("div",{staticClass:"inquire",staticStyle:{"margin-left":"30px"}},[r("el-button",{staticClass:"demand",attrs:{type:"primary"},on:{click:t.excel}},[t._v("导出EXCEL")])],1)]),r("div",{staticClass:"table"},[r("div",{staticClass:"tipsList"},[r("div",[t._v(" 总加款:"),r("span",[t._v(t._s(t.statistics.add_total))])]),r("div",[t._v(" 总减款:"),r("span",[t._v(t._s(t.statistics.sub_total))])])]),r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList,border:"","cell-style":{textAlign:"center"},"header-cell-style":{textAlign:"center"},"min-height":"150",height:"600"}},[t._v(" > "),r("el-table-column",{attrs:{prop:"username",label:"用户名称"}}),r("el-table-column",{attrs:{prop:"ordernum",label:"订单号"}}),r("el-table-column",{attrs:{prop:"wallettypeidname",label:"钱包类型"}}),r("el-table-column",{attrs:{prop:"coin",label:"币种"}}),r("el-table-column",{attrs:{prop:"amount",label:"操作金额"}}),r("el-table-column",{attrs:{prop:"remark",label:"备注"}}),r("el-table-column",{attrs:{prop:"amount",label:"数量"}}),r("el-table-column",{attrs:{prop:"created_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(" "+t._s(t.timestampToDatetime(e.row.created_at))+" ")])]}}])}),r("el-table-column",{attrs:{prop:"updated_by",label:"操作员"}})],1),r("Paginate",{attrs:{page:t.params.page,total:t.total},on:{currentChange:t.handleCurrentChange,sizeChange:t.handleSizeChange}})],1),r("el-dialog",{attrs:{title:"修改备注",visible:t.modifyPopup,width:"60%","before-close":t.modifyClose},on:{"update:visible":function(e){t.modifyPopup=e}}},[r("div",{staticClass:"details"},[r("el-form",{ref:"modifyForm",attrs:{model:t.modifytForm,"label-width":"0"}},[r("el-form-item",{attrs:{label:""}},[r("div",{staticClass:"itemFrom"},[r("el-input",{attrs:{rows:6,type:"textarea",placeholder:"请输入修改备注"},model:{value:t.modifytForm.remark,callback:function(e){t.$set(t.modifytForm,"remark",e)},expression:"modifytForm.remark"}})],1)])],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.modifySubmit}},[t._v("修改备注")])],1)])],1)},a=[],o=(r("7db0"),r("d81d"),r("a9e3"),r("0238")),u=r("f201"),i=r("365c"),c=r("c466"),l=r("ed08"),d={name:"regulation",components:{Paginate:o["a"]},data:function(){return{searchForm:{ordernum:"",member_id:"",username:"",coin:"",operate_type:"add",start_time:"",ent_time:""},coinList:[],options:[{value:"1",label:"现货"},{value:"3",label:"交易"},{value:"5",label:"外汇"}],modifyPopup:!1,modifytForm:{remark:""},time:"",total:0,operate:[{value:"add",label:"加款"},{value:"sub",label:"减款"}],statistics:{add_total:"",sub_total:""},dataList:[],params:{page:1,page_size:this.$store.state.attr.pageSize},loading:!1}},computed:{},watch:{},mounted:function(){this.finstall(),this.install()},methods:{finstall:function(){var t=this;Object(i["bc"])().then((function(e){console.log("icon",e.data.list),t.coinList=e.data.list}))},install:function(){var t=this,e=this.searchForm,r={ordernum:e.ordernum,member_id:e.member_id,username:e.username,start_time:Number(e.start_time),ent_time:Number(e.ent_time),operate_type:e.operate_type,coin:e.coin,page:Number(this.cal.accSub(this.params.page,1)),page_size:this.params.page_size};Object(u["rb"])(r).then((function(e){console.log(e);var r=t.options,n=e.data.list.map((function(t){var e=t.wallet_type_id;return r.find((function(r){r.value==e&&(t.wallettypeidname=r.label)})),t}));console.log("dedao",n),t.dataList=n,t.statistics=e.data.statistics,t.total=parseInt(e.data.listTotalCount),t.loading=!1}))},inquire:function(){this.time.length>0?(this.searchForm.start_time=this.cal.accDiv(Date.parse(this.time[0]),1e3),this.searchForm.ent_time=this.cal.accDiv(Date.parse(this.time[1]),1e3)):(this.searchForm.start_time="",this.searchForm.ent_time=""),this.install()},excel:function(){Object(u["T"])().then((function(t){Object(l["b"])(t,"调节日志")}))},modifyClick:function(t){console.log(t),console.log(t),this.modifytForm=t,this.modifyPopup=!0},modifyClose:function(){this.modifyPopup=!1,this.modifytForm={remark:""}},modifySubmit:function(){var t=this,e={id:this.modifytForm.id,remark:this.modifytForm.remark};Object(u["pb"])(e).then((function(e){t.install(),t.modifyClose()}))},handleCurrentChange:function(t){this.params.page=t,this.install()},handleSizeChange:function(t){this.params.page=1,this.params.page_size=t,this.install()},timestampToDatetime:function(t){return Object(c["a"])(t,!0)}},beforeCreate:function(){},created:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},s=d,m=(r("b07b"),r("2877")),f=Object(m["a"])(s,n,a,!1,null,"53d32af3",null);e["default"]=f.exports},"4d63":function(t,e,r){var n=r("83ab"),a=r("da84"),o=r("94ca"),u=r("7156"),i=r("9bf2").f,c=r("241c").f,l=r("44e7"),d=r("ad6d"),s=r("9f7f"),m=r("6eeb"),f=r("d039"),b=r("69f3").set,p=r("2626"),h=r("b622"),g=h("match"),O=a.RegExp,v=O.prototype,j=/a/g,y=/a/g,w=new O(j)!==j,x=s.UNSUPPORTED_Y,_=n&&o("RegExp",!w||x||f((function(){return y[g]=!1,O(j)!=j||O(y)==y||"/a/i"!=O(j,"i")})));if(_){var k=function(t,e){var r,n=this instanceof k,a=l(t),o=void 0===e;if(!n&&a&&t.constructor===k&&o)return t;w?a&&!o&&(t=t.source):t instanceof k&&(o&&(e=d.call(t)),t=t.source),x&&(r=!!e&&e.indexOf("y")>-1,r&&(e=e.replace(/y/g,"")));var i=u(w?new O(t,e):O(t,e),n?this:v,k);return x&&r&&b(i,{sticky:r}),i},F=function(t){t in k||i(k,t,{configurable:!0,get:function(){return O[t]},set:function(e){O[t]=e}})},C=c(O),S=0;while(C.length>S)F(C[S++]);v.constructor=k,k.prototype=v,m(a,"RegExp",k)}p("RegExp")},"4d90":function(t,e,r){"use strict";var n=r("23e7"),a=r("0ccb").start,o=r("9a0c");n({target:"String",proto:!0,forced:o},{padStart:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},8949:function(t,e,r){},"9a0c":function(t,e,r){var n=r("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},b07b:function(t,e,r){"use strict";var n=r("8949"),a=r.n(n);a.a},ed08:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"a",(function(){return o}));r("4160"),r("c975"),r("d3b7"),r("4d63"),r("ac1f"),r("25f0"),r("3ca3"),r("4d90"),r("5319"),r("1276"),r("159b"),r("ddb0"),r("2b3d"),r("53ca");var n=r("5c96");function a(t,e){var r=new Blob([t],{type:"application/vnd.ms-excel;charset=utf-8"}),a=document.createElement("a");a.href=window.URL.createObjectURL(r),a.download=e+".xlsx",a.click(),window.URL.revokeObjectURL(r),Object(n["Message"])({message:"下载成功"})}var o=function(t,e){console.log(t);var r=document.createElement("input");r.value=t,r.readOnly=!0,document.body.appendChild(r),r.select(),r.setSelectionRange(0,r.value.length),document.execCommand("Copy"),document.body.removeChild(r),window.scrollTo(0,0),e instanceof Function&&e()}},f201:function(t,e,r){"use strict";r.d(e,"U",(function(){return a})),r.d(e,"j",(function(){return o})),r.d(e,"zb",(function(){return u})),r.d(e,"B",(function(){return i})),r.d(e,"k",(function(){return c})),r.d(e,"vb",(function(){return l})),r.d(e,"c",(function(){return d})),r.d(e,"i",(function(){return s})),r.d(e,"f",(function(){return m})),r.d(e,"g",(function(){return f})),r.d(e,"e",(function(){return b})),r.d(e,"h",(function(){return p})),r.d(e,"b",(function(){return h})),r.d(e,"v",(function(){return g})),r.d(e,"u",(function(){return O})),r.d(e,"x",(function(){return v})),r.d(e,"w",(function(){return j})),r.d(e,"y",(function(){return y})),r.d(e,"sb",(function(){return w})),r.d(e,"fb",(function(){return x})),r.d(e,"ob",(function(){return _})),r.d(e,"o",(function(){return k})),r.d(e,"xb",(function(){return F})),r.d(e,"wb",(function(){return C})),r.d(e,"yb",(function(){return S})),r.d(e,"rb",(function(){return T})),r.d(e,"qb",(function(){return P})),r.d(e,"pb",(function(){return E})),r.d(e,"T",(function(){return L})),r.d(e,"tb",(function(){return R})),r.d(e,"R",(function(){return D})),r.d(e,"Q",(function(){return z})),r.d(e,"S",(function(){return U})),r.d(e,"A",(function(){return $})),r.d(e,"z",(function(){return q})),r.d(e,"t",(function(){return M})),r.d(e,"N",(function(){return N})),r.d(e,"P",(function(){return A})),r.d(e,"eb",(function(){return I})),r.d(e,"n",(function(){return J})),r.d(e,"a",(function(){return B})),r.d(e,"l",(function(){return H})),r.d(e,"d",(function(){return V})),r.d(e,"m",(function(){return W})),r.d(e,"O",(function(){return X})),r.d(e,"ib",(function(){return Y})),r.d(e,"nb",(function(){return G})),r.d(e,"jb",(function(){return K})),r.d(e,"lb",(function(){return Q})),r.d(e,"kb",(function(){return Z})),r.d(e,"gb",(function(){return tt})),r.d(e,"mb",(function(){return et})),r.d(e,"hb",(function(){return rt})),r.d(e,"db",(function(){return nt})),r.d(e,"cb",(function(){return at})),r.d(e,"Z",(function(){return ot})),r.d(e,"ab",(function(){return ut})),r.d(e,"bb",(function(){return it})),r.d(e,"H",(function(){return ct})),r.d(e,"D",(function(){return lt})),r.d(e,"C",(function(){return dt})),r.d(e,"G",(function(){return st})),r.d(e,"F",(function(){return mt})),r.d(e,"E",(function(){return ft})),r.d(e,"I",(function(){return bt})),r.d(e,"L",(function(){return pt})),r.d(e,"K",(function(){return ht})),r.d(e,"J",(function(){return gt})),r.d(e,"M",(function(){return Ot})),r.d(e,"r",(function(){return vt})),r.d(e,"p",(function(){return jt})),r.d(e,"s",(function(){return yt})),r.d(e,"q",(function(){return wt})),r.d(e,"V",(function(){return xt})),r.d(e,"Y",(function(){return _t})),r.d(e,"X",(function(){return kt})),r.d(e,"W",(function(){return Ft})),r.d(e,"ub",(function(){return Ct}));var n=r("b775");function a(t){return Object(n["b"])({url:"/common-dic/update2",method:"POST",data:t})}function o(t){return Object(n["b"])({url:"/withdrawal-net/index",method:"get",params:t})}function u(t){return Object(n["b"])({url:"/withdrawal-net/create",method:"POST",data:t})}function i(t,e){return Object(n["b"])({url:"/withdrawal-net/update",method:"put",params:t,data:e})}function c(t){return Object(n["b"])({url:"/common-dic/index2",method:"get",params:t})}function l(t){return Object(n["b"])({url:"/withdrawal-net/delete",method:"delete",params:t})}function d(t){return Object(n["b"])({url:"/coin/index",method:"get",params:t})}function s(t,e){return Object(n["b"])({url:"/coin/update",method:"put",params:t,data:e})}function m(t){return Object(n["b"])({url:"/coin-recharge-net",method:"get",params:t})}function f(t){return Object(n["b"])({url:"/coin-recharge-net/delete",method:"delete",params:t})}function b(t){return Object(n["b"])({url:"/coin/net",method:"get",params:t})}function p(t){return Object(n["b"])({url:"/coin-recharge-net/create",method:"POST",data:t})}function h(t){return Object(n["b"])({url:"/invite-level/index",method:"get",params:t})}function g(t,e){return Object(n["b"])({url:"/invite-level/update",method:"put",params:t,data:e})}function O(t){return Object(n["b"])({url:"/invite-level/create",method:"POST",data:t})}function v(t){return Object(n["b"])({url:"/invite-profit-static/index",method:"get",params:t})}function j(t){return Object(n["b"])({url:"/invite-profit-static/detail",method:"get",params:t})}function y(t){return Object(n["b"])({url:"/invite-profit-static/profit",method:"get",params:t})}function w(t){return Object(n["b"])({url:"/wallet/transfer-log",method:"get",params:t})}function x(t){return Object(n["b"])({url:"/wallet/transfer-export",method:"get",responseType:"blob",params:t})}function _(t){return Object(n["b"])({url:"/wallet/flash-exchange-log",method:"get",params:t})}function k(t){return Object(n["b"])({url:"/wallet/flash-exchange-export",method:"get",responseType:"blob",params:t})}function F(t){return Object(n["b"])({url:"/withdraw/index",method:"get",params:t})}function C(t){return Object(n["b"])({url:"/withdraw/export",method:"get",responseType:"blob",params:t})}function S(t,e){return Object(n["b"])({url:"/withdraw/update",method:"put",params:t,data:e})}function T(t){return Object(n["b"])({url:"/wallet/operate-log",method:"get",params:t})}function P(t){return Object(n["b"])({url:"/wallet/operate",method:"POST",data:t})}function E(t){return Object(n["b"])({url:"/wallet/modify-wallet-operate-remark",method:"PATCH",data:t})}function L(t){return Object(n["b"])({url:"/wallet/operate-export",method:"get",responseType:"blob",params:t})}function R(t){return Object(n["b"])({url:"/withdraw/abandon",method:"POST",data:t})}function D(t){return Object(n["b"])({url:"/recharge/confirm",method:"POST",data:t})}function z(t){return Object(n["b"])({url:"/recharge/abandon",method:"POST",data:t})}function U(t){return Object(n["b"])({url:"/recharge/export",method:"get",responseType:"blob",params:t})}function $(t){return Object(n["b"])({url:"/invite-profit-static/log",method:"get",params:t})}function q(t){return Object(n["b"])({url:"/invite-profit-static/change-type",method:"get",params:t})}function M(t){return Object(n["b"])({url:"/futures-order/index",method:"get",params:t})}function N(t){return Object(n["b"])({url:"/futures-order/close",method:"POST",data:t})}function A(t){return Object(n["b"])({url:"/futures-order/cancel-close",method:"POST",data:t})}function I(t){return Object(n["b"])({url:"/coin-control/index",method:"get",params:t})}function J(t,e){return Object(n["b"])({url:"/coin-control/update",method:"put",params:t,data:e})}function B(t){return Object(n["b"])({url:"/coin-control/create",method:"post",data:t})}function H(t,e){return Object(n["b"])({url:"/coin-control/delete",method:"DELETE",params:t,data:e})}function V(t){return Object(n["b"])({url:"/coin-control/coin",method:"get",params:t})}function W(t){return Object(n["b"])({url:"/futures-order/close-fee",method:"get",params:t})}function X(t){return Object(n["b"])({url:"/futures-order/close-all",method:"POST",params:t})}function Y(t){return Object(n["b"])({url:"/tutorial/index",method:"get",params:t})}function G(t){return Object(n["b"])({url:"/tutorial-type/index",method:"get",params:t})}function K(t){return Object(n["b"])({url:"/tutorial-type/create",method:"POST",data:t})}function Q(t,e){return Object(n["b"])({url:"/tutorial-type/update",method:"put",params:t,data:e})}function Z(t){return Object(n["b"])({url:"/tutorial-type/delete",method:"delete",params:t})}function tt(t){return Object(n["b"])({url:"/tutorial/create",method:"POST",data:t})}function et(t,e){return Object(n["b"])({url:"/tutorial/update",method:"put",params:t,data:e})}function rt(t){return Object(n["b"])({url:"/tutorial/delete",method:"delete",params:t})}function nt(t){return Object(n["b"])({url:"/task/index",method:"get",params:t})}function at(t,e){return Object(n["b"])({url:"/task/update",method:"put",params:t,data:e})}function ot(t){return Object(n["b"])({url:"/task/create",method:"POST",data:t})}function ut(t){return Object(n["b"])({url:"/task/delete",method:"delete",params:t})}function it(t){return Object(n["b"])({url:"/task-member/index",method:"get",params:t})}function ct(t){return Object(n["b"])({url:"/option-order/index",method:"get",params:t})}function lt(t){return Object(n["b"])({url:"/option-coin/index",method:"get",params:t})}function dt(t){return Object(n["b"])({url:"/option-coin/coin",method:"get",params:t})}function st(t,e){return Object(n["b"])({url:"/option-coin/update",method:"put",params:t,data:e})}function mt(t){return Object(n["b"])({url:"/option-coin/delete",method:"delete",params:t})}function ft(t){return Object(n["b"])({url:"/option-coin/create",method:"post",data:t})}function bt(t){return Object(n["b"])({url:"/option-rule/index",method:"get",params:t})}function pt(t,e){return Object(n["b"])({url:"/option-rule/update",method:"put",params:t,data:e})}function ht(t){return Object(n["b"])({url:"/option-rule/delete",method:"delete",params:t})}function gt(t){return Object(n["b"])({url:"/option-rule/create",method:"post",data:t})}function Ot(t){return Object(n["b"])({url:"/option-order/statistics",method:"get"})}function vt(t){return Object(n["b"])({url:"/footer/index",method:"get",params:t})}function jt(t){return Object(n["b"])({url:"/footer/create",method:"post",data:t})}function yt(t,e){return Object(n["b"])({url:"/footer/update",method:"put",params:t,data:e})}function wt(t){return Object(n["b"])({url:"/footer/delete",method:"delete",params:t})}function xt(t){return Object(n["b"])({url:"/spread-level/index",method:"get",params:t})}function _t(t,e){return Object(n["b"])({url:"/spread-level/update",method:"put",params:t,data:e})}function kt(t){return Object(n["b"])({url:"/spread-level/delete",method:"delete",params:t})}function Ft(t){return Object(n["b"])({url:"/spread-level/create",method:"post",data:t})}function Ct(t){return Object(n["b"])({url:"/withdraw-account/index",method:"get",params:t})}}}]);