| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["card-Wallet"],{"24c7":function(t,a,e){"use strict";e("5030")},5030:function(t,a,e){},"56fd":function(t,a,e){},"5fec":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t._self._c;return a("div",{attrs:{id:"custom_Recording"}},[a("div",{staticClass:"crm-title-box"},[a("div",{staticClass:"tit"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"card.tab17",expression:"'card.tab17'"}]})])]),a("div",{staticClass:"main-content"},[a("div",{staticClass:"search crm_search"},[a("div",{staticClass:"search-btn"},[a("el-form",{ref:"form",attrs:{"label-position":"top",model:t.search,"label-width":"80px"}},[a("el-form-item",{staticStyle:{"margin-right":"10px"}},[a("el-select",{staticClass:"crm_search_down_tit select_down",attrs:{filterable:"",size:"small",placeholder:t.$t("placeholder.choose")},model:{value:t.search.type,callback:function(a){t.$set(t.search,"type",a)},expression:"search.type"}},[a("el-option",{attrs:{label:t.$t("card.Status.t22"),value:null}}),t._l(t.options,(function(e,s){return a("el-option",{key:s,attrs:{label:t.$t(e),value:s}})}))],2)],1),a("el-form-item",[a("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(a){t.$set(t.search,"date",a)},expression:"search.date"}}),a("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)]),a("div",{staticClass:"tab"},[a("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"}},[a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.CidAccount")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"crm-text-underline",on:{click:function(a){return t.accountOpen(e.row.cId)}}},[t._v(t._s(e.row.cId||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.Name")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.firstName?a("span",[t._v(t._s(e.row.firstName+" "))]):t._e(),e.row.middle?a("span",[t._v(t._s(e.row.middle+" "))]):t._e(),e.row.lastName?a("span",[t._v(t._s(e.row.lastName))]):t._e(),e.row.firstName||e.row.lastName||e.row.middle?t._e():a("span",[t._v(t._s("--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:t.$i18n.t("Label.Email")},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(a.row.email||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"type",align:"left",label:t.$t("card.Form.f52")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.$t(t.options[e.row.type])))])]}}])}),a("el-table-column",{attrs:{prop:"amount",align:"left",label:t.$t("card.Form.f55")}}),a("el-table-column",{attrs:{prop:"fee",align:"left",label:t.$t("card.Form.f30")}}),a("el-table-column",{attrs:{prop:"addTime",align:"left",label:t.$t("card.Form.f51")}}),a("el-table-column",{attrs:{prop:"status",align:"left",label:t.$t("Label.State")},scopedSlots:t._u([{key:"default",fn:function(t){return["2"==t.row.status?a("span",{directives:[{name:"t",rawName:"v-t",value:"card.Status.t1",expression:"'card.Status.t1'"}]}):"3"==t.row.status?a("span",{directives:[{name:"t",rawName:"v-t",value:"card.Status.t2",expression:"'card.Status.t2'"}]}):a("span",{directives:[{name:"t",rawName:"v-t",value:"card.Status.t3",expression:"'card.Status.t3'"}]})]}}])})],1)],1),t.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("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()])])},r=[],n=e("c6e4"),l=e("f121"),c=e.n(l);let{Code:o}=c.a;var i={name:"Wallet",data(){return{flag:!1,reasons:{},pictLoading:!1,tableData:[],search:{date:[],startDate:"",endDate:""},options:{1:"card.Status.t16",2:"card.Status.t17",3:"card.Status.t18",4:"card.Status.t19",5:"card.Status.t20",6:"card.Status.t21",7:"card.Status.t23",8:"card.Status.t24",9:"card.Status.t25",10:"card.Status.t26",11:"card.Status.t27"},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1300},getInfoId(){return JSON.parse(this.Session.Get("user",!0)).customInfo.cId},getInfoAgentTransfer(){return JSON.parse(this.Session.Get("user",!0)).customInfo.agentTransfer}},methods:{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 t=await n["a"].getRecordPage({...this.search,cId:this.getInfoId,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==o.StatusOK?(this.tableData=t.data,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()},watch:{"search.type":function(){this.searchFunc()}}},d=i,u=(e("b970"),e("24c7"),e("2877")),p=Object(u["a"])(d,s,r,!1,null,"60b98c9f",null);a["default"]=p.exports},b970:function(t,a,e){"use strict";e("56fd")}}]);
|