(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-history"],{"067a":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"custom_history"}},[e("div",{staticClass:"crm-title-box"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Home.page_customer.item4",expression:"'Home.page_customer.item4'"}]})]),e("div",{staticStyle:{display:"flex",gap:"10px"}},[e("el-select",{staticClass:"crm_search_down_tit",attrs:{size:"small",placeholder:t.$t("placeholder.choose")},model:{value:t.search.type,callback:function(e){t.$set(t.search,"type",e)},expression:"search.type"}},[e("el-option",{attrs:{label:t.$t("Custom.PaymentHistory.All"),value:null}}),e("el-option",{attrs:{label:t.$t("Custom.PaymentHistory.Deposit"),value:1}}),e("el-option",{attrs:{label:t.$t("Custom.PaymentHistory.Withdrawals"),value:2}})],1),e("el-select",{staticClass:"crm_search_down_tit",attrs:{size:"small",placeholder:t.$t("Custom.PaymentHistory.StatusPlaceholder")},model:{value:t.search.orderStatus,callback:function(e){t.$set(t.search,"orderStatus",e)},expression:"search.orderStatus"}},[e("el-option",{attrs:{label:t.$t("Custom.PaymentHistory.All"),value:null}}),e("el-option",{attrs:{label:t.$t("State.ToBeProcessed"),value:1}}),e("el-option",{attrs:{label:t.$t("State.Completed"),value:2}}),e("el-option",{attrs:{label:t.$t("State.InTheProcessing"),value:3}}),e("el-option",{attrs:{label:t.$t("State.Refused"),value:4}}),e("el-option",{attrs:{label:t.$t("State.expireTime"),value:5}}),e("el-option",{attrs:{label:t.$t("State.Cancelled"),value:6}})],1)],1)]),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",placeholder:t.$t("placeholder.login")},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.login,callback:function(e){t.$set(t.search,"login","string"===typeof e?e.trim():e)},expression:"search.login"}})],1),e("el-form-item",[e("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no payment-history-date",attrs:{type:"daterange",align:"right","unlink-panels":"",format:"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End"),"picker-options":t.datePickerOptions},model:{value:t.search.date,callback:function(e){t.$set(t.search,"date",e)},expression:"search.date"}}),e("el-button",{staticClass:"crm-border-left-no crm-border-radius-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("template",{slot:"empty"},[e("LocalizedTextEditor",{attrs:{"i18n-key":"NoData","default-text":"No Data","spanish-text":"Sin datos"}})],1),e("el-table-column",{attrs:{align:"left","header-align":"center",width:t.lang?"100":"",label:t.$t("Custom.PaymentHistory.Serial")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.serial||"--"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Custom.PaymentHistory.TradingAccount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.login||"--"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Custom.PaymentHistory.payType")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.PaymentHistory.Deposit",expression:"'Custom.PaymentHistory.Deposit'"}]}):t._e(),2==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.PaymentHistory.Withdrawals",expression:"'Custom.PaymentHistory.Withdrawals'"}]}):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Custom.PaymentHistory.PaymentMethod")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(-1!=["cn","zhHant"].indexOf(t.Session.Get("lang"))?a.row.channelName:a.row.channelEnName))])]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Custom.PaymentHistory.Amount")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.amount?e("span",[t._v(t._s(a.row.amount)+" "+t._s(a.row.currency))]):e("span",[t._v(t._s("--"))])]}}])}),e("el-table-column",{attrs:{align:"center",width:t.lang?"110":"",label:t.$t("Custom.PaymentHistory.ApplicationDate")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.addTime||"--"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Custom.PaymentHistory.Status")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type?e("div",[1==a.row.status&&0==a.row.callbackStatus&&(null==a.row.expireTime||t.timea.row.expireTime?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.expireTime",expression:"'State.expireTime'"}],staticClass:"state"}):t._e()]):t._e(),2==a.row.type?e("div",[1==a.row.status&&0==a.row.callbackStatus&&(null==a.row.expireTime||t.timei}}}},methods:{syncSearchDatesFromRange(){if(null==this.search.date||!Array.isArray(this.search.date)||2!==this.search.date.length)return this.search.startDate="",void(this.search.endDate="");const[t,e]=this.search.date;this.search.startDate=t instanceof Date?d(t):String(t),this.search.endDate=e instanceof Date?d(e):String(e)},getMetaInfo(){this.metaInfo=window.getMetaInfo(),this.metaInfo={...this.metaInfo,deviceType:"h5"}},async doAgain(t){this.getMetaInfo();let e=await i["a"].getWebsdkLink({serial:t,metaInfo:this.metaInfo});e.code==c.StatusOK?(this.text1=JSON.parse(e.data).url,this.dialogCheck=!0,this.flag=!1):(this.RES=e.msg,this.flag=!1)},closeDia(){this.dialogCheck=!1},handleSearch(){this.pagerInfo.current=1,this.searchFunc()},async searchFunc(){if(this.flag)return;this.flag=!0,this.pictLoading=!0,this.syncSearchDatesFromRange();const t={...this.search};delete t.date;let e=await i["a"].BalanceList({...t,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==c.StatusOK?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal,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 t=await i["a"].reasonsRefusalList({type:null});t.code==c.StatusOK?null==t.data?this.reasons={}:this.reasons=t.data:this.$pigeon.MessageError(t.msg)},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 i["a"].withdrawCancel({id:t});a.code==c.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.searchFunc()):e.$pigeon.MessageError(a.msg)}),(function(){}))},cancleBackstage: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 i["a"].withdrawCancelBackstage({id:t});a.code==c.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.searchFunc()):e.$pigeon.MessageError(a.msg)}),(function(){}))},handleSizeChange(t){this.pagerInfo.row=t,this.searchFunc()},handleCurrentChange(t){this.pagerInfo.current=t,this.searchFunc()},getDate(){let t,e=2,a=(new Date).getTimezoneOffset(),s=(new Date).getTime(),n=new Date(s+60*a*1e3+60*e*60*1e3),i=n.getHours(),r=n.getMinutes(),o=n.getSeconds(),l=n.getFullYear(),c=n.getMonth()+1,u=n.getDate();c<10&&(c="0"+c),u<10&&(u="0"+u),i<10&&(i="0"+i),r<10&&(r="0"+r),o<10&&(o="0"+o),t=l+"-"+c+"-"+u+" "+i+":"+r+":"+o,this.time=t}},mounted(){"true"===this.$route.query.fromPending&&(this.search.orderStatus=3,this.search.type=2),this.searchFunc(),this.searchReasons(),this.getDate()},watch:{"search.type":function(){this.searchFunc()},"search.orderStatus":function(){this.searchFunc()}}},g=m,w=(a("e884"),a("2877")),y=Object(w["a"])(g,s,n,!1,null,"d3dcc6fc",null);e["default"]=y.exports},"090e":function(t,e,a){},a1a2:function(t,e,a){"use strict";var s=a("ff2d");class n extends s["a"]{constructor(){super()}async reasonsRefusalList(t={}){let e=await this.postAll("Host80","/reasons/refusal/list",t);return e}async BalanceList(t={}){let e=await this.postAll("Host04","/balance/list",t);return e}async PayBankCode(t,e={}){let a=await this.postAll("Host04",t,e);return a}async PayDealResult(t,e={}){let a=await this.postAll("Host04",t,e);return a}async WithdrawApplyBank(t,e={}){let a=await this.postAll("Host04",t,e);return a}async WithdrawAapplyDigitalCurrency(t,e={}){let a=await this.postAll("Host04",t,e);return a}async BankList(t={}){let e=await this.postAll("Host04","/channel/bank/list",t);return e}async RemitChannelList(t={}){let e=await this.postAll("Host04","/remit/channel/list",t);return e}async RemittanceChannelList(t={}){let e=await this.postAll("Host04","/remittance/channel/list",t);return e}async TransferApply(t={}){let e=await this.postAll("Host04","/transfer/apply",t);return e}async TransferList(t={}){let e=await this.postAll("Host04","/transfer/list",t);return e}async transferInfo(t={}){let e=await this.postAll("Host04","/transfer/info",t);return e}async getAgentList(t={}){let e=await this.postAll("Host80","/account/agent/list",t);return e}async telegraphicPay(t={}){let e=await this.postAll("Host04","/telegraphic/pay",t);return e}async customBankList(t={}){let e=await this.postAll("Host80","/custom/bank/list",t);return e}async digitalPay(t={}){let e=await this.postAll("Host04","/digital/pay",t);return e}async remainingReductionNumber(t={}){let e=await this.postAll("Host04","/withdraw/remaining/reduction/number",t);return e}async ibWithdrawApplyBank(t,e={}){let a=await this.postAll("Host04","/agent"+t,e);return a}async ibWithdrawAapplyDigitalCurrency(t,e={}){let a=await this.postAll("Host04","/agent"+t,e);return a}async withdrawCancel(t={}){let e=await this.postAll("Host04","/withdraw/cancel",t);return e}async withdrawCancelBackstage(t={}){let e=await this.postAll("Host04","/withdraw/cancel/backstage",t);return e}async depositCheckExistSuccess(t={}){let e=await this.postAll("Host04","/finance/deposit/check/exist/success",t);return e}async withdrawCode(t={}){let e=await this.postAll("Host04","/withdraw/apply/digital/currency/send/code",t);return e}async getWebsdkLink(t={}){let e=await this.postAll("Host04","/withdraw/getWebsdkLink",t);return e}}e["a"]=new n},e884:function(t,e,a){"use strict";a("090e")}}]);