cus-synonym.3f341427.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-synonym"],{"1f19":function(t,e,n){},"9f01":function(t,e,n){"use strict";var r=n("bf35"),a=n.n(r);a.a},a1a2:function(t,e,n){"use strict";n("96cf");var r=n("1da1"),a=n("d4ec"),i=n("bee2"),s=n("262e"),o=n("2caf"),u=n("ff2d"),c=n("bc3a"),l=n.n(c),p=n("f121"),f=n.n(p),m=function(t){Object(s["a"])(n,t);var e=Object(o["a"])(n);function n(){return Object(a["a"])(this,n),e.call(this)}return Object(i["a"])(n,[{key:"reasonsRefusalList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host80,t.next=4,this.post("/reasons/refusal/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"BalanceList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/balance/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"PayBankCode",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n,r,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post(e,n);case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"WithdrawApplyBank",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n,r,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post(e,n);case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"WithdrawAapplyDigitalCurrency",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n,r,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post(e,n);case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"BankList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/channel/bank/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"RemitChannelList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/remit/channel/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"RemittanceChannelList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/remittance/channel/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"TransferApply",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/transfer/apply",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"TransferList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/transfer/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"transferInfo",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/transfer/info",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"telegraphicPay",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/telegraphic/pay",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"customBankList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host80,t.next=4,this.post("/custom/bank/list",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"ibWithdrawApplyBank",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n,r,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/agent"+e,n);case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"ibWithdrawAapplyDigitalCurrency",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n,r,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/agent"+e,n);case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"financeSynonymTtransferApply",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/finance/synonym/transfer/apply",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"CustomDropdown",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},l.a.defaults.baseURL=f.a.Host80,t.next=4,this.post("/account/dropdown",e);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),n}(u["a"]);e["a"]=new m},b066:function(t,e,n){"use strict";var r=n("1f19"),a=n.n(r);a.a},bf35:function(t,e,n){},e619:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"ib_Transfer"}},[n("div",{staticClass:"crm-title-box"},[n("div",{staticClass:"tit"},[n("span",{directives:[{name:"t",rawName:"v-t",value:"Home.page_ib.item4",expression:"'Home.page_ib.item4'"}]})])]),n("div",{staticClass:"main-content"},[n("div",{staticClass:"box box-step2"},[n("div",{staticClass:"b-card"},[n("el-row",{staticClass:"card-top"},[n("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,rules:t.rules,"label-position":"top"}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{prop:"withdrawLogin",label:t.$t("Label.TransferAccounts")}},[n("el-select",{attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.withdrawLogin,callback:function(e){t.$set(t.form,"withdrawLogin",e)},expression:"form.withdrawLogin"}},t._l(t.loginOptions,(function(e,r){return n("el-option",{key:r,attrs:{label:e.login+" - "+e.groupTypeName+" - "+t.$t("Custom.Deposit.AvailableBalance")+": $"+e.balance,value:e.login}})})),1)],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{prop:"depositLogin",label:t.$t("Label.IntoAccount")}},[n("el-input",{staticClass:"m-input",attrs:{autocomplete:"off"},model:{value:t.form.depositLogin,callback:function(e){t.$set(t.form,"depositLogin","string"===typeof e?e.trim():e)},expression:"form.depositLogin"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{prop:"amount",label:t.$t("Label.Amount")}},[n("el-input",{staticClass:"m-input",attrs:{autocomplete:"off"},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount","string"===typeof e?e.trim():e)},expression:"form.amount"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",[n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Submit",expression:"'Btn.Submit'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.toTransfer}})],1)],1)],1)],1)],1)])]),n("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.dialogVisible?n("div",{staticClass:"dia-content"},[n("div",{staticClass:"icon"},[n("i",{staticClass:"iconfont iconchenggong"})]),n("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),n("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des11",expression:"'ApplicationDialog.Des11'"}],staticClass:"des2"}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)]):t._e(),t.dialogVisible?t._e():n("div",{staticClass:"dia-content"},[n("div",{staticClass:"icon"},[n("i",{staticClass:"iconfont iconjingshi"})]),n("div",{staticClass:"des1"},[t._v(t._s(t.RES))]),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)])])],1)},a=[],i=(n("4160"),n("159b"),n("96cf"),n("1da1")),s=n("a1a2"),o=n("f121"),u=n.n(o),c=u.a.Code,l={name:"Transfer",data:function(){var t=this;return{flag:!1,RES:"",loginOptions:[],mAmount:{minAmount:"",maxAmount:""},form:{amount:"",withdrawLogin:"",depositLogin:""},fromInfo:"",dialogCheck:!1,dialogVisible:!1,rules:{amount:[{validator:function(e,n,r){t.mAmount.minAmount>n||t.mAmount.maxAmount<n?r(new Error(t.$i18n.t("vaildate.amount.amount")+t.mAmount.minAmount+"-"+t.mAmount.maxAmount)):t.Config.Pattern.nonnegative.test(n)?r():r(new Error(t.$i18n.t("vaildate.amount.format")))},required:!0,trigger:"blur"}],currency:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],withdrawLogin:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],depositLogin:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}]}}},methods:{getDateList:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["a"].CustomDropdown({platform:""});case 2:e=t.sent,e.code==c.StatusOK?(this.loginOptions=e.data,this.$route.query.login&&(this.value=this.$route.query.login,this.step2=!0,this.form.withdrawLogin=this.value,this.toOptions=[],this.loginOptions.forEach((function(t){t.login!=n.value&&n.toOptions.push(t)})))):this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),closeDia:function(){this.dialogCheck=!1,this.dialogVisible=!1},toTransfer:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=12;break}if(!e.flag){t.next=5;break}return t.abrupt("return");case 5:e.flag=!0;case 6:return t.next=8,s["a"].financeSynonymTtransferApply({amount:e.form.amount,depositLogin:e.form.depositLogin,withdrawLogin:e.form.withdrawLogin});case 8:r=t.sent,r.code==c.StatusOK?(e.dialogCheck=!0,e.dialogVisible=!0,e.flag=!1,e.$refs["form"]&&e.$refs["form"].resetFields()):(e.RES=r.msg,e.dialogCheck=!0,e.dialogVisible=!1,e.flag=!1),t.next=13;break;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),ransferInfo:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["a"].agentBalanceTransferFrom({});case 2:e=t.sent,e.code==c.StatusOK?this.fromInfo=e.data.ibNo+" - "+this.$i18n.t("Custom.Deposit.AvailableBalance")+": $"+(e.data.balance?e.data.balance:0):this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getAmount:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["a"].transferInfo({});case 2:e=t.sent,e.code==c.StatusOK?this.mAmount=e.data:this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){this.getDateList(),this.getAmount()}},p=l,f=(n("b066"),n("9f01"),n("2877")),m=Object(f["a"])(p,r,a,!1,null,"52c24e1e",null);e["default"]=m.exports}}]);