cus-WalletHistory.e040f2bb.js 5.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-WalletHistory"],{"389e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"custom_WalletHistory"}},[t("div",{staticClass:"crm-title-box"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item57",expression:"'wallet.item57'"}]})]),t("div",{staticClass:"btn crm-cursor",on:{click:e.backActivity}},[t("i",{staticClass:"el-icon-back"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Title",expression:"'Custom.Settings.Title'"}]})])]),t("div",{staticClass:"main-content"},[t("div",{staticClass:"search crm_search"},[t("div",{staticClass:"search-btn"},[t("el-form",{ref:"form",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[t("el-form-item",[t("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":e.$t("placeholder.Start"),"end-placeholder":e.$t("placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),t("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}})],1)],1)],1)]),t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{align:"center",width:e.lang?"100":"",label:e.$t("wallet.item58")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.serial||"--"))]}}])}),t("el-table-column",{attrs:{align:"center",label:e.$t("wallet.item59")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}])}),t("el-table-column",{attrs:{align:"center",label:e.$t("wallet.item60")},scopedSlots:e._u([{key:"default",fn:function(a){return["RAFFLE"==a.row.source?t("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item49_5",expression:"'wallet.item49_5'"}]}):e._e(),"TRANSFER"==a.row.source?t("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item49_4",expression:"'wallet.item49_4'"}]}):e._e(),"MANAGER"==a.row.source?t("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item49_1",expression:"'wallet.item49_1'"}]}):e._e(),"INTERESTRATE"==a.row.source?t("span",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.NewYear24.itemW1",expression:"'news_add_field1.NewYear24.itemW1'"}]}):e._e(),"CASHBACK"==a.row.source?t("span",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.NewYear24.itemW2",expression:"'news_add_field1.NewYear24.itemW2'"}]}):e._e()]}}])}),t("el-table-column",{attrs:{align:"center",label:e.$t("wallet.item61")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(e._s(e._f("NumberFormat")(e._f("NumberDecimal")(a.row.amount||"0"))))])]}}])})],1)],1),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):e._e()])])},i=[],n=(a("14d9"),a("6df7")),r=a("f121"),l=a.n(r);let{Code:o}=l.a;var c={name:"PaymentHistory",data(){return{flag:!1,reasons:{},pictLoading:!1,tableData:[],search:{date:[],startDate:"",endDate:""},time:"",pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{expireTime(){return JSON.parse(this.Session.Get("user",!0))},lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1330}},methods:{backActivity(){this.$router.push({path:"/customer/index"}).catch(e=>e)},handleSearch(){this.pagerInfo.current=1,this.searchFunc()},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 e=await n["a"].walletHistoryList({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==o.StatusOK?(this.tableData=e.data,e.page?(this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):(this.pagerInfo.rowTotal=0,this.pagerInfo.pageTotal=0),this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.pictLoading=!1,this.flag=!1):(this.$pigeon.MessageError(e.msg),this.pictLoading=!1,this.flag=!1)},async searchReasons(){let e=await n["a"].reasonsRefusalList({type:null});e.code==o.StatusOK?null==e.data?this.reasons={}:this.reasons=e.data:this.$pigeon.MessageError(e.msg)},cancle:async function(e){let t=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 n["a"].withdrawCancel({id:e});a.code==o.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.Success")),t.searchFunc()):t.$pigeon.MessageError(a.msg)}),(function(){}))},handleSizeChange(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange(e){this.pagerInfo.current=e,this.searchFunc()},getDate(){let e,t=2,a=(new Date).getTimezoneOffset(),s=(new Date).getTime(),i=new Date(s+60*a*1e3+60*t*60*1e3),n=i.getHours(),r=i.getMinutes(),l=i.getSeconds(),o=i.getFullYear(),c=i.getMonth()+1,d=i.getDate();c<10&&(c="0"+c),d<10&&(d="0"+d),n<10&&(n="0"+n),r<10&&(r="0"+r),l<10&&(l="0"+l),e=o+"-"+c+"-"+d+" "+n+":"+r+":"+l,this.time=e}},mounted(){this.searchFunc()}},d=c,u=(a("dfd4"),a("638c"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"319a8d90",null);t["default"]=h.exports},5466:function(e,t,a){},6244:function(e,t,a){},"638c":function(e,t,a){"use strict";a("5466")},dfd4:function(e,t,a){"use strict";a("6244")}}]);