cus-history.248171da.js 16 KB

1
  1. (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.time<a.row.expireTime)?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):t._e(),2==a.row.status&&2==a.row.executionStatus&&1==a.row.callbackStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):t._e(),2!=a.row.status||1!=a.row.executionStatus&&0!=a.row.executionStatus||2==a.row.callbackStatus||!(null==a.row.expireTime||t.time<a.row.expireTime)?t._e():e("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state"}),2==a.row.callbackStatus||3==a.row.status||3==a.row.executionStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):t._e(),(2!=a.row.status||2!=a.row.executionStatus||1!=a.row.callbackStatus)&&2!=a.row.callbackStatus&&3!=a.row.status&&3!=a.row.executionStatus&&null!=a.row.expireTime&&t.time>a.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.time<a.row.expireTime)?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):t._e(),2==a.row.status&&2==a.row.executionStatus&&2==a.row.submitStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):t._e(),2!=a.row.status||1!=a.row.executionStatus&&0!=a.row.executionStatus||2==a.row.callbackStatus?t._e():e("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state"}),2==a.row.status&&2==a.row.executionStatus&&0==a.row.callbackStatus&&2==a.row.type&&2!=a.row.submitStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state"}):t._e(),2==a.row.callbackStatus||3==a.row.status||3==a.row.executionStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):t._e()]):t._e(),5==a.row.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Cancelled",expression:"'State.Cancelled'"}],staticClass:"state"}):t._e(),1==a.row.status&&0==a.row.callbackStatus&&(null==a.row.expireTime||t.time<a.row.expireTime)&&2==a.row.type?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(),2==a.row.status&&2==a.row.executionStatus&&1==a.row.backstageStatus&&2==a.row.type?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.cancleBackstage(a.row.id)}}})]):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Custom.Recording.Note")},scopedSlots:t._u([{key:"default",fn:function(a){return[t.reasons[a.row.approveDesc]?e("span",[t._v(t._s(-1!=["cn","zhHant"].indexOf(t.Session.Get("lang"))?t.reasons[a.row.approveDesc].content:t.reasons[a.row.approveDesc].enContent))]):e("span",[t._v(t._s(a.row.approveDesc||"--"))])]}}])})],2)],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()]),e("el-dialog",{attrs:{visible:t.dialogCheck,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(e){t.dialogCheck=e}}},[t.text1?e("div",{staticClass:"dia-content"},[e("div",{staticClass:"icon"},[e("i",{staticClass:"iconfont iconchenggong"})]),e("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des11",expression:"'ApplicationDialog.Des11'"}],staticClass:"des2"}),e("QrCode",{attrs:{text:t.text1}}),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}})],1)],1):e("div",{staticClass:"dia-content"},[e("div",{staticClass:"icon"},[e("i",{staticClass:"iconfont iconjingshi"})]),e("div",{staticClass:"des1"},[t._v(t._s(t.RES))]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)])])],1)},n=[],i=a("a1a2"),r=a("f121"),o=a.n(r),l=a("5d41");let{Code:c}=o.a;const u=864e5,p=90;function d(t){const e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${s}`}function h(){const t=new Date;t.setHours(0,0,0,0);const e=new Date(t);return e.setDate(e.getDate()-29),[e,t]}var m={name:"PaymentHistory",components:{QrCode:l["a"]},data(){const t=h();return{RES:"",text1:"",metaInfo:null,dialogCheck:!1,flag:!1,reasons:{},pictLoading:!1,tableData:[],pickerMinDate:null,search:{date:t,startDate:d(t[0]),endDate:d(t[1]),type:null,login:"",orderStatus:null},time:"",pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{getInfoStatus(){return JSON.parse(this.Session.Get("user",!0)).customInfo},expireTime(){return JSON.parse(this.Session.Get("user",!0))},lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1330},datePickerOptions(){const t=this,e=p*u;return{onPick({maxDate:e,minDate:a}){t.pickerMinDate=a&&!e?a.getTime():null},disabledDate(a){if(null==t.pickerMinDate)return!1;const s=a.getTime(),n=t.pickerMinDate-e,i=t.pickerMinDate+e;return s<n||s>i}}}},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")}}]);