cus-history.05525575.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-history"],{"067a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"custom_history"}},[a("div",{staticClass:"crm-title-box"},[a("div",{staticClass:"tit"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Home.page_customer.item4",expression:"'Home.page_customer.item4'"}]})]),a("el-select",{staticClass:"crm_search_down_tit",attrs:{size:"small",placeholder:e.$t("placeholder.choose")},model:{value:e.search.type,callback:function(t){e.$set(e.search,"type",t)},expression:"search.type"}},[a("el-option",{attrs:{label:e.$t("Custom.PaymentHistory.All"),value:null}}),a("el-option",{attrs:{label:e.$t("Custom.PaymentHistory.Deposit"),value:1}}),a("el-option",{attrs:{label:e.$t("Custom.PaymentHistory.Withdrawals"),value:2}})],1)],1),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:e.search,"label-width":"80px"}},[a("el-form-item",{staticStyle:{"margin-right":"10px"}},[a("el-input",{staticClass:"crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("placeholder.login")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},model:{value:e.search.login,callback:function(t){e.$set(e.search,"login","string"===typeof t?t.trim():t)},expression:"search.login"}})],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":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"}}),a("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)]),a("div",{staticClass:"tab"},[a("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"}},[a("el-table-column",{attrs:{align:"left","header-align":"center",width:e.lang?"100":"",label:e.$t("Custom.PaymentHistory.Serial")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.serial||"--"))]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("Custom.PaymentHistory.TradingAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.login||"--"))]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("Custom.PaymentHistory.payType")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.PaymentHistory.Deposit",expression:"'Custom.PaymentHistory.Deposit'"}]}):e._e(),2==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.PaymentHistory.Withdrawals",expression:"'Custom.PaymentHistory.Withdrawals'"}]}):e._e()]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("Custom.PaymentHistory.PaymentMethod")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s("cn"==e.Session.Get("lang")?t.row.channelName:t.row.channelEnName))])]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("Custom.PaymentHistory.Amount")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.amount?a("span",[e._v(e._s(t.row.amount)+" "+e._s(t.row.currency))]):a("span",[e._v(e._s("--"))])]}}])}),a("el-table-column",{attrs:{align:"center",width:e.lang?"110":"",label:e.$t("Custom.PaymentHistory.ApplicationDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("Custom.PaymentHistory.Status")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status&&0==t.row.callbackStatus&&(null==t.row.expireTime||e.time<t.row.expireTime)?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state"}):e._e(),2==t.row.status&&2==t.row.executionStatus&&1==t.row.callbackStatus?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}],staticClass:"state"}):e._e(),2==t.row.status&&1==t.row.executionStatus&&2!=t.row.callbackStatus?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state"}):e._e(),2==t.row.callbackStatus||3==t.row.status||3==t.row.executionStatus?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state"}):e._e(),0==t.row.callbackStatus&&null!=t.row.expireTime&&e.time>t.row.expireTime?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.expireTime",expression:"'State.expireTime'"}],staticClass:"state"}):e._e()]}}])}),a("el-table-column",{attrs:{align:"center",label:e.$t("Custom.Recording.Note")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.reasons[t.row.approveDesc]?a("span",[e._v(e._s("cn"==e.Session.Get("lang")?e.reasons[t.row.approveDesc].content:e.reasons[t.row.approveDesc].enContent))]):a("span",[e._v(e._s(t.row.approveDesc||"--"))])]}}])})],1)],1),e.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("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()])])},n=[],s=(a("ac1f"),a("841c"),a("5530")),i=(a("96cf"),a("1da1")),o=a("a1a2"),u=a("f121"),c=a.n(u),l=c.a.Code,p={name:"PaymentHistory",data:function(){return{flag:!1,reasons:{},pictLoading:!1,tableData:[],search:{date:[],startDate:"",endDate:"",type:null,login:""},time:"",pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{expireTime:function(){return JSON.parse(this.Session.Get("user",!0))},lang:function(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1330}},methods:{handleSearch:function(){this.pagerInfo.current=1,this.searchFunc()},searchFunc:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.flag){t.next=4;break}return t.abrupt("return");case 4:e.flag=!0;case 5:return e.pictLoading=!0,null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=9,o["a"].BalanceList(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 9:a=t.sent,a.code==l.StatusOK?(e.tableData=a.data,e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1,e.flag=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1,e.flag=!1);case 11:case"end":return t.stop()}}),t)})))()},searchReasons:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["a"].reasonsRefusalList({type:null});case 2:a=t.sent,a.code==l.StatusOK?null==a.data?e.reasons={}:e.reasons=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()},getDate:function(){var e,t=8,a=(new Date).getTimezoneOffset(),r=(new Date).getTime(),n=new Date(r+60*a*1e3+60*t*60*1e3),s=n.getHours(),i=n.getMinutes(),o=n.getSeconds(),u=n.getFullYear(),c=n.getMonth()+1,l=n.getDate();c<10&&(c="0"+c),l<10&&(l="0"+l),s<10&&(s="0"+s),i<10&&(i="0"+i),o<10&&(o="0"+o),e=u+"-"+c+"-"+l+" "+s+":"+i+":"+o,this.time=e}},mounted:function(){this.searchFunc(),this.searchReasons(),this.getDate()},watch:{"search.type":function(){this.searchFunc()}}},h=p,d=(a("286e"),a("0f5b"),a("2877")),f=Object(d["a"])(h,r,n,!1,null,"a83deb6e",null);t["default"]=f.exports},"0f5b":function(e,t,a){"use strict";var r=a("27ab"),n=a.n(r);n.a},"27ab":function(e,t,a){},"286e":function(e,t,a){"use strict";var r=a("d18e"),n=a.n(r);n.a},a1a2:function(e,t,a){"use strict";a("96cf");var r=a("1da1"),n=a("d4ec"),s=a("bee2"),i=a("262e"),o=a("2caf"),u=a("ff2d"),c=a("bc3a"),l=a.n(c),p=a("f121"),h=a.n(p),d=function(e){Object(i["a"])(a,e);var t=Object(o["a"])(a);function a(){return Object(n["a"])(this,a),t.call(this)}return Object(s["a"])(a,[{key:"reasonsRefusalList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host80,e.next=4,this.post("/reasons/refusal/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"BalanceList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/balance/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"PayBankCode",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post(t,a);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"WithdrawApplyBank",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post(t,a);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"WithdrawAapplyDigitalCurrency",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post(t,a);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"BankList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/channel/bank/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"RemitChannelList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/remit/channel/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"RemittanceChannelList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/remittance/channel/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"TransferApply",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/transfer/apply",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"TransferList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/transfer/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"transferInfo",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/transfer/info",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"telegraphicPay",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/telegraphic/pay",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customBankList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host80,e.next=4,this.post("/custom/bank/list",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"ibWithdrawApplyBank",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/agent"+t,a);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"ibWithdrawAapplyDigitalCurrency",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/agent"+t,a);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"financeSynonymTtransferApply",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host04,e.next=4,this.post("/finance/synonym/transfer/apply",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"CustomDropdown",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,r=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=h.a.Host80,e.next=4,this.post("/account/dropdown",t);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(u["a"]);t["a"]=new d},d18e:function(e,t,a){}}]);