| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-transfer"],{"1a44":function(t,e,r){},"2d42":function(t,e,r){"use strict";var n=r("1a44"),a=r.n(n);a.a},8176:function(t,e,r){},a1a2:function(t,e,r){"use strict";r("96cf");var n=r("1da1"),a=r("d4ec"),s=r("bee2"),i=r("262e"),o=r("2caf"),u=r("ff2d"),c=r("bc3a"),l=r.n(c),p=r("f121"),f=r.n(p),m=function(t){Object(i["a"])(r,t);var e=Object(o["a"])(r);function r(){return Object(a["a"])(this,r),e.call(this)}return Object(s["a"])(r,[{key:"reasonsRefusalList",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host80,t.next=4,this.post("/reasons/refusal/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/balance/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(e){var r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post(e,r);case 4:return n=t.sent,t.abrupt("return",n);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(n["a"])(regeneratorRuntime.mark((function t(e){var r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post(e,r);case 4:return n=t.sent,t.abrupt("return",n);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(n["a"])(regeneratorRuntime.mark((function t(e){var r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post(e,r);case 4:return n=t.sent,t.abrupt("return",n);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/channel/bank/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/remit/channel/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/remittance/channel/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/transfer/apply",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/transfer/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/transfer/info",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/telegraphic/pay",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host80,t.next=4,this.post("/custom/bank/list",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(e){var r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/agent"+e,r);case 4:return n=t.sent,t.abrupt("return",n);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(n["a"])(regeneratorRuntime.mark((function t(e){var r,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/agent"+e,r);case 4:return n=t.sent,t.abrupt("return",n);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host04,t.next=4,this.post("/finance/synonym/transfer/apply",e);case 4:return r=t.sent,t.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},l.a.defaults.baseURL=f.a.Host80,t.next=4,this.post("/account/dropdown",e);case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(u["a"]);e["a"]=new m},f406:function(t,e,r){"use strict";var n=r("8176"),a=r.n(n);a.a},f97d:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"custom_Transfer"}},[r("div",{staticClass:"crm-title-box"},[r("div",{staticClass:"tit"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Home.page_customer.item5",expression:"'Home.page_customer.item5'"}]})])]),r("div",{staticClass:"main-content"},[r("div",{staticClass:"box box-step1"},[r("div",{staticClass:"b-card"},[r("el-row",{staticClass:"card-top"},[r("el-col",{attrs:{span:24}},[r("p",{staticClass:"tit"},[r("i",{staticClass:"el-icon-caret-right"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Title1",expression:"'Custom.Transfer.Title1'"}]})])]),r("el-col",{attrs:{span:24}},[r("el-select",{attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.loginOptions,(function(e,n){return r("el-option",{key:n,attrs:{label:e.login+" - "+e.groupTypeName+" - "+t.$t("Custom.Deposit.AvailableBalance")+": $"+e.balance,value:e.login,disabled:"-1"!=e.closeFunctions.indexOf("3")}})})),1)],1)],1)],1)]),t.step2?r("div",{staticClass:"box box-step2"},[r("div",{staticClass:"b-card"},[r("div",{staticClass:"b-card"},[r("el-row",{staticClass:"card-top"},[r("el-col",{staticClass:"card-tit",attrs:{span:24}},[r("div",[r("p",{staticClass:"tit"},[r("i",{staticClass:"el-icon-caret-right"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Title2",expression:"'Custom.Transfer.Title2'"}]})])])]),r("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,rules:t.rules,"label-position":"top"}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"",label:t.$t("Custom.Transfer.TransferAccounts")}},[r("el-select",{attrs:{filterable:"",disabled:"",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(t,e){return r("el-option",{key:e,attrs:{label:t.login+"-"+t.groupTypeName+"-$"+t.balance,value:t.login}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"depositLogin",label:t.$t("Custom.Transfer.IntoAccount")}},[r("el-select",{attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.depositLogin,callback:function(e){t.$set(t.form,"depositLogin",e)},expression:"form.depositLogin"}},t._l(t.toOptions,(function(e,n){return r("el-option",{key:n,attrs:{label:e.login+" - "+e.groupTypeName+" - "+t.$t("Custom.Deposit.AvailableBalance")+": $"+e.balance,value:e.login,disabled:"-1"!=e.closeFunctions.indexOf("3")}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"currency",label:t.$t("Custom.Transfer.CurrencyType")}},[r("el-select",{attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.currency,callback:function(e){t.$set(t.form,"currency",e)},expression:"form.currency"}},[r("el-option",{attrs:{label:"USD",value:"USD"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"amount",label:t.$t("Custom.Transfer.Amount")}},[r("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),r("el-col",{attrs:{span:24}},[r("el-form-item",[r("div",{staticClass:"tips"},[r("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Tips",expression:"'Custom.Transfer.Tips'"}],staticClass:"title"}),r("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Tips1",expression:"'Custom.Transfer.Tips1'"}]}),r("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Tips2",expression:"'Custom.Transfer.Tips2'"}]}),r("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Tips3",expression:"'Custom.Transfer.Tips3'"}]}),r("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Transfer.Tips4",expression:"'Custom.Transfer.Tips4'"}]})])])],1),r("el-col",{attrs:{span:24}},[r("el-form-item",[r("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Submit",expression:"'Btn.Submit'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:function(e){return t.toTransfer("form")}}})],1)],1)],1)],1)],1)])]):t._e()]),r("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?r("div",{staticClass:"dia-content"},[r("div",{staticClass:"icon"},[r("i",{staticClass:"iconfont iconchenggong"})]),r("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),r("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des11",expression:"'ApplicationDialog.Des11'"}],staticClass:"des2"}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),r("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():r("div",{staticClass:"dia-content"},[r("div",{staticClass:"icon"},[r("i",{staticClass:"iconfont iconjingshi"})]),r("div",{staticClass:"des1"},[t._v(t._s(t.RES))]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),r("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)])])],1)},a=[],s=(r("4160"),r("159b"),r("5530")),i=(r("96cf"),r("1da1")),o=r("6df7"),u=r("a1a2"),c=r("f121"),l=r.n(c),p=l.a.Code,f={name:"Transfer",data:function(){var t=this;return{flag:!1,RES:"",loginOptions:[],toOptions:[],step2:!1,value:"",mAmount:{minAmount:"",maxAmount:""},form:{currency:"USD"},dialogCheck:!1,dialogVisible:!1,rules:{amount:[{validator:function(e,r,n){t.mAmount.minAmount>r||t.mAmount.maxAmount<r?n(new Error(t.$i18n.t("vaildate.amount.amount")+t.mAmount.minAmount+"-"+t.mAmount.maxAmount)):t.Config.Pattern.nonnegative.test(r)?n():n(new Error(t.$i18n.t("vaildate.amount.format")))},required:!0,trigger:"blur"}],depositLogin:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},methods:{closeDia:function(){this.$refs["form"].resetFields(),this.step2=!1,this.value="",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(r){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){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,u["a"].TransferApply(Object(s["a"])({},e.form));case 8:n=t.sent,n.code==p.StatusOK?(e.dialogCheck=!0,e.dialogVisible=!0,e.flag=!1):(e.RES=n.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}(),cancle:function(){this.step2=!1,this.value=""},getDateList:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["a"].CustomDropdown({platform:""});case 2:e=t.sent,e.code==p.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!=r.value&&r.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}(),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,u["a"].transferInfo({});case 2:e=t.sent,e.code==p.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()},watch:{value:function(t){var e=this;t&&(this.step2=!0,this.form.withdrawLogin=t,this.toOptions=[],this.loginOptions.forEach((function(r){r.login!=t&&e.toOptions.push(r)})))}}},m=f,v=(r("f406"),r("2d42"),r("2877")),h=Object(v["a"])(m,n,a,!1,null,"a83ba692",null);e["default"]=h.exports}}]);
|