card-WalletApply.a885c3cc.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["card-WalletApply"],{"01d2":function(t,e,a){},"07fe":function(t,e,a){},"3bb6":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"custom_Recording"}},[e("div",{staticClass:"crm-title-box"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"WalletApply.title",expression:"'WalletApply.title'"}]})])]),e("div",{staticClass:"main-content"},[e("div",{staticClass:"search crm_search"},[e("div",{staticClass:"search-btn"},[e("el-form",{ref:"form",attrs:{"label-position":"top",model:t.search,"label-width":"80px"}},[e("el-form-item",{staticStyle:{"margin-right":"10px"}},[e("el-input",{staticClass:"crm-border-radius-no",attrs:{size:"small",clearable:"",placeholder:t.$t("WalletApply.p1")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)}},model:{value:t.search.address,callback:function(e){t.$set(t.search,"address","string"===typeof e?e.trim():e)},expression:"search.address"}})],1),e("el-form-item",{staticStyle:{"margin-right":"10px"}},[e("el-select",{staticClass:"crm-border-radius-no",attrs:{clearable:"",size:"small",placeholder:t.$t("global.p22")},on:{change:t.handleSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.approvalText,(function(a,r){return e("el-option",{key:r,attrs:{label:t.$t(a),value:r}})})),1)],1),e("el-form-item",{staticStyle:{"margin-right":"10px"}},[e("el-select",{staticClass:"crm-border-radius-no",attrs:{clearable:"",size:"small",placeholder:t.$t("card.Form.f45")},on:{change:t.handleSearch},model:{value:t.search.transactionStatus,callback:function(e){t.$set(t.search,"transactionStatus",e)},expression:"search.transactionStatus"}},t._l(t.transactionStatus,(function(a,r){return e("el-option",{key:r,attrs:{label:t.$t(a),value:r}})})),1)],1),e("el-form-item",[e("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},model:{value:t.search.date,callback:function(e){t.$set(t.search,"date",e)},expression:"search.date"}}),e("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:t.handleSearch}})],1)],1)],1)]),e("div",{staticClass:"tab"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[e("el-table-column",{attrs:{prop:"",align:"left",label:t.$t("Label.CidAccount")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.cId||"--"))])]}}])}),e("el-table-column",{attrs:{prop:"name",align:"left",label:t.$t("Label.Name")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.firstName?e("span",[t._v(" "+t._s(a.row.firstName+" ")+" ")]):t._e(),a.row.middle?e("span",[t._v(t._s(a.row.middle+" "))]):t._e(),a.row.lastName?e("span",[t._v(t._s(a.row.lastName))]):t._e(),a.row.firstName||a.row.lastName||a.row.middle?t._e():e("span",[t._v(t._s("--"))])]}}])}),e("el-table-column",{attrs:{prop:"email",align:"left",label:t.$t("Label.Email")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.email||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"mobile",align:"left",label:t.$t("Label.Phone")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.mobile||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"contractAddress",label:t.$t("WalletApply.p8")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.contractAddress||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"fromAddress",label:t.$t("WalletApply.p9")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.fromAddress||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"address",align:"left",label:t.$t("WalletApply.p1")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.address||"--")+" ")]}}])}),e("el-table-column",{attrs:{prop:"amount",align:"left",label:t.$t("WalletApply.p3")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.amount?e("span",[t._v(t._s(a.row.amount||"--")+" USDT")]):e("span",[t._v("--")])]}}])}),e("el-table-column",{attrs:{prop:"receivedAmount",align:"left",label:t.$t("card.Form.f31")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.receivedAmount||"--")+" "+t._s(e.row.receivedCurrency)+" ")]}}])}),e("el-table-column",{attrs:{prop:"status",label:t.$t("global.p22")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t(t.approvalText[e.row.status]))+" ")]}}])}),e("el-table-column",{attrs:{prop:"transactionStatus",align:"left",label:t.$t("card.Form.f45")},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t.$t(t.transactionStatus[a.row.transactionStatus]))+" "),1==a.row.status&&5!=a.row.transactionStatus?e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],staticClass:"state btn crm-cursor",on:{click:function(e){return t.cancle(a.row.id)}}})]):t._e()]}}])}),e("el-table-column",{attrs:{prop:"transactionStatus",align:"left",label:t.$t("card.Form.f27")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.remark?e("span",[t._v(t._s(a.row.remark))]):a.row.note?e("span",[t._v(t._s(a.row.note))]):t.reasons[a.row.approveDesc]?e("span",[t._v(t._s("cn"==t.lang?t.reasons[a.row.approveDesc].content:t.reasons[a.row.approveDesc].enContent))]):e("span",[t._v("--")])]}}])}),e("el-table-column",{attrs:{prop:"addTime",align:"left",label:t.$t("Label.ApplyTime")}}),e("el-table-column",{attrs:{prop:"approveTime",label:t.$t("WalletApply.p10")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.approveTime||"--")+" ")]}}])})],1)],1),t.pagerInfo.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange}})],1):t._e()])])},n=[],s=a("c6e4"),i=a("f121"),o=a.n(i),l=a("5a0c"),c=a.n(l);let{Code:u}=o.a;const d={1:"card.Status.t5",2:"card.Status.t3",3:"card.Status.t1",4:"card.Status.t2",5:"card.Btn.Cancel"},f={1:"global.Status.Pending",2:"global.Status.Approved",3:"global.Status.Rejected"};var h={name:"WalletApply",data(){return{flag:!1,pictLoading:!1,tableData:[],globalCurrenciesDropdown:[],reasons:{},search:{date:[],startDate:"",endDate:""},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},transactionStatus:d,approvalText:f}},computed:{lang(){return this.Session.Get("lang")},getInfoId(){return JSON.parse(this.Session.Get("user",!0)).customInfo.cId}},methods:{cancle:async function(t){let e=this;this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Cancle"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.item6"),this.$i18n.t("Btn.item7"),(async function(){let a=await s["a"].getWalletCancel({id:t});a.code==u.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.searchFunc()):e.$pigeon.MessageError(a.msg)}),(function(){}))},setDate(t){return c()(t).format("YYYY-MM-DD HH:mm:ss")},handleSearch(){this.pagerInfo.current=1,this.searchFunc()},async searchReasons(){let t=await s["a"].reasonsRefusalList({type:null});t.code==u.StatusOK?null==t.data?this.reasons={}:this.reasons=t.data:this.$pigeon.MessageError(t.msg)},async searchFunc(){if(this.flag)return;this.flag=!0,this.pictLoading=!0,null==this.search.date||0==this.search.date.length?(this.search.startDate="",this.search.endDate=""):(this.search.startDate=this.search.date[0],this.search.endDate=this.search.date[1]);let t=await s["a"].getWalletPage({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==u.StatusOK?(this.tableData=t.data,console.log(this.tableData),this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal,this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.pictLoading=!1,this.flag=!1):(this.$pigeon.MessageError(t.msg),this.pictLoading=!1,this.flag=!1)},handleSizeChange(t){this.pagerInfo.row=t,this.searchFunc()},handleCurrentChange(t){this.pagerInfo.current=t,this.searchFunc()}},mounted(){this.searchFunc(),this.searchReasons()},watch:{"search.type":function(){this.searchFunc()}}},p=h,m=(a("44fd"),a("aa21"),a("2877")),g=Object(m["a"])(p,r,n,!1,null,"1aa96c92",null);e["default"]=g.exports},"44fd":function(t,e,a){"use strict";a("01d2")},"5a0c":function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){"use strict";var t=1e3,e=6e4,a=36e5,r="millisecond",n="second",s="minute",i="hour",o="day",l="week",c="month",u="quarter",d="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],a=t%100;return"["+t+(e[(a-20)%10]||e[a]||e[0])+"]"}},$=function(t,e,a){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(a)+t},v={s:$,z:function(t){var e=-t.utcOffset(),a=Math.abs(e),r=Math.floor(a/60),n=a%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(n,2,"0")},m:function t(e,a){if(e.date()<a.date())return-t(a,e);var r=12*(a.year()-e.year())+(a.month()-e.month()),n=e.clone().add(r,c),s=a-n<0,i=e.clone().add(r+(s?-1:1),c);return+(-(r+(a-n)/(s?n-i:i-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:l,d:o,D:f,h:i,m:s,s:n,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",y={};y[b]=g;var _="$isDayjsObject",w=function(t){return t instanceof k||!(!t||!t[_])},S=function t(e,a,r){var n;if(!e)return b;if("string"==typeof e){var s=e.toLowerCase();y[s]&&(n=s),a&&(y[s]=a,n=s);var i=e.split("-");if(!n&&i.length>1)return t(i[0])}else{var o=e.name;y[o]=e,n=o}return!r&&n&&(b=n),n||!r&&b},M=function(t,e){if(w(t))return t.clone();var a="object"==typeof e?e:{};return a.date=t,a.args=arguments,new k(a)},D=v;D.l=S,D.i=w,D.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function g(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var $=g.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,a=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var n=r[2]-1||0,s=(r[7]||"0").substring(0,3);return a?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return D},$.isValid=function(){return!(this.$d.toString()===h)},$.isSame=function(t,e){var a=M(t);return this.startOf(e)<=a&&a<=this.endOf(e)},$.isAfter=function(t,e){return M(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<M(t)},$.$g=function(t,e,a){return D.u(t)?this[e]:this.set(a,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var a=this,r=!!D.u(e)||e,u=D.p(t),h=function(t,e){var n=D.w(a.$u?Date.UTC(a.$y,e,t):new Date(a.$y,e,t),a);return r?n:n.endOf(o)},p=function(t,e){return D.w(a.toDate()[t].apply(a.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),a)},m=this.$W,g=this.$M,$=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?h(1,0):h(31,11);case c:return r?h(1,g):h(0,g+1);case l:var b=this.$locale().weekStart||0,y=(m<b?m+7:m)-b;return h(r?$-y:$+(6-y),g);case o:case f:return p(v+"Hours",0);case i:return p(v+"Minutes",1);case s:return p(v+"Seconds",2);case n:return p(v+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var a,l=D.p(t),u="set"+(this.$u?"UTC":""),h=(a={},a[o]=u+"Date",a[f]=u+"Date",a[c]=u+"Month",a[d]=u+"FullYear",a[i]=u+"Hours",a[s]=u+"Minutes",a[n]=u+"Seconds",a[r]=u+"Milliseconds",a)[l],p=l===o?this.$D+(e-this.$W):e;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[h](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[D.p(t)]()},$.add=function(r,u){var f,h=this;r=Number(r);var p=D.p(u),m=function(t){var e=M(h);return D.w(e.date(e.date()+Math.round(t*r)),h)};if(p===c)return this.set(c,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===o)return m(1);if(p===l)return m(7);var g=(f={},f[s]=e,f[i]=a,f[n]=t,f)[p]||1,$=this.$d.getTime()+r*g;return D.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,a=this.$locale();if(!this.isValid())return a.invalidDate||h;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=D.z(this),s=this.$H,i=this.$m,o=this.$M,l=a.weekdays,c=a.months,u=a.meridiem,d=function(t,a,n,s){return t&&(t[a]||t(e,r))||n[a].slice(0,s)},f=function(t){return D.s(s%12||12,t,"0")},p=u||function(t,e,a){var r=t<12?"AM":"PM";return a?r.toLowerCase():r};return r.replace(m,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return D.s(e.$y,4,"0");case"M":return o+1;case"MM":return D.s(o+1,2,"0");case"MMM":return d(a.monthsShort,o,c,3);case"MMMM":return d(c,o);case"D":return e.$D;case"DD":return D.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(a.weekdaysMin,e.$W,l,2);case"ddd":return d(a.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(s);case"HH":return D.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return p(s,i,!0);case"A":return p(s,i,!1);case"m":return String(i);case"mm":return D.s(i,2,"0");case"s":return String(e.$s);case"ss":return D.s(e.$s,2,"0");case"SSS":return D.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(r,f,h){var p,m=this,g=D.p(f),$=M(r),v=($.utcOffset()-this.utcOffset())*e,b=this-$,y=function(){return D.m(m,$)};switch(g){case d:p=y()/12;break;case c:p=y();break;case u:p=y()/3;break;case l:p=(b-v)/6048e5;break;case o:p=(b-v)/864e5;break;case i:p=b/a;break;case s:p=b/e;break;case n:p=b/t;break;default:p=b}return h?p:D.a(p)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return y[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var a=this.clone(),r=S(t,e,!0);return r&&(a.$L=r),a},$.clone=function(){return D.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},g}(),C=k.prototype;return M.prototype=C,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",o],["$M",c],["$y",d],["$D",f]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,k,M),t.$i=!0),M},M.locale=S,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=y[b],M.Ls=y,M.p={},M}))},aa21:function(t,e,a){"use strict";a("07fe")}}]);