documentary-tund-management.dd98b47e.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["documentary-tund-management"],{"170c":function(t,e,a){"use strict";a("4c3e")},"23d5":function(t,e,a){"use strict";a("e910")},"4c3e":function(t,e,a){},a907:function(t,e,a){"use strict";var l=a("ff2d");class s extends l["a"]{constructor(){super()}async CustomDropdown(t={}){let e=await this.postAll("Host80","/account/dropdown",t);return e}async CustomDropdownData(t={}){let e=await this.postAll("Host87","/follow/deal/data",t);return e}async followCustomDropdown(t={}){let e=await this.postAll("Host87","/follow/account/dropdown",t);return e}async reasonsRefusalList(t={}){let e=await this.postAll("Host80","/reasons/refusal/list",t);return e}async Country(t={}){let e=await this.postAll("Host80","/country/get",t);return e}async followWalletSingle(t={}){let e=await this.postAll("Host87","/follow/wallet/single",t);return e}async followDealSubscribeInfo(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/info",t);return e}async followDealSubscriSubscribe(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/subscribe",t);return e}async followDealSubscribeLoginList(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/login/list",t);return e}async followDealSubscribeList(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/list",t);return e}async followDealSubscribeUnsubscribe(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/unsubscribe",t);return e}async followDealSubscribeUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/update",t);return e}async followDealSubscribeDealList(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/deal/list",t);return e}async followDealApply(t={}){let e=await this.postAll("Host87","/follow/deal/apply",t);return e}async followDealUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/update",t);return e}async followDealAgentUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/agent/update",t);return e}async followDealList(t={}){let e=await this.postAll("Host87","/follow/deal/list",t);return e}async followDealSingle(t={}){let e=await this.postAll("Host87","/follow/deal/single",t);return e}async followDealDelete(t={}){let e=await this.postAll("Host87","/follow/deal/delete",t);return e}async followDealLoginList(t={}){let e=await this.postAll("Host87","/follow/deal/login/list",t);return e}async followDealSearchList(t={}){let e=await this.postAll("Host87","/follow/deal/signal/search/list",t);return e}async followDealSignalSearchSingle(t={}){let e=await this.postAll("Host87","/follow/deal/signal/search/single",t);return e}async followDealAgentSearchList(t={}){let e=await this.postAll("Host87","/follow/deal/agent/search/list",t);return e}async followTransferApply(t={}){let e=await this.postAll("Host04","/follow/transfer/apply",t);return e}async followTransferList(t={}){let e=await this.postAll("Host04","/follow/transfer/list",t);return e}async followReportCommission(t={}){let e=await this.postAll("Host87","/follow/report/period/commission",t);return e}async followDailySummary(t={}){let e=await this.postAll("Host87","/follow/daily/summary",t);return e}async followDailyIndex(t={}){let e=await this.postAll("Host87","/follow/daily/index",t);return e}async followDailyChartLine(t={}){let e=await this.postAll("Host87","/follow/daily/chart/line",t);return e}async followDailyChartSymbol(t={}){let e=await this.postAll("Host87","/follow/deal/signal/plChart",t);return e}async followOrderRecordList(t={}){let e=await this.postAll("Host87","/follow/order/record/list",t);return e}async followDealSubscribeSummary(t={}){let e=await this.postAll("Host87","/follow/deal/subscribe/summary",t);return e}async followDealCard(t={}){let e=await this.postAll("Host87","/follow/deal/card",t);return e}async followDailyDeal(t={}){let e=await this.postAll("Host87","/follow/daily/deal",t);return e}async followDailyCompare(t={}){let e=await this.postAll("Host87","/follow/daily/compare",t);return e}async followDailySubscribeProfit(t={}){let e=await this.postAll("Host87","/follow/daily/subscribe/profit",t);return e}async collectAdd(t={}){let e=await this.postAll("Host87","/follow/deal/collect/add",t);return e}async collectDelete(t={}){let e=await this.postAll("Host87","/follow/deal/collect/delete",t);return e}async getPeriod(t={}){let e=await this.postAll("Host87","/follow/deal/search/period",t);return e}async getEquityChart(t={}){let e=await this.postAll("Host87","/follow/deal/signal/plChart",t);return e}async getRankingChart(t={}){let e=await this.postAll("Host87","/follow/deal/signal/equityChart",t);return e}async followDealSignalRefreshDate(t={}){let e=await this.postAll("Host87","/follow/deal/signal/refreshDate",t);return e}}e["a"]=new s},afd2:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"documentary_TundManagement"}},[e("div",{staticClass:"crm-title-box"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item2",expression:"'Documentary.TundManagement.item2'"}],staticClass:"tab-title crm-cursor",class:{active:2==t.tabType},on:{click:function(e){t.tabType=2}}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item3",expression:"'Documentary.TundManagement.item3'"}],staticClass:"tab-title crm-cursor",class:{active:3==t.tabType},on:{click:function(e){t.tabType=3}}})]),e("div",{staticClass:"tit-right"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item4",expression:"'Documentary.TundManagement.item4'"}],staticClass:"con"}),e("span",{staticClass:"num"},[t._v("$"+t._s(t._f("NumberFormat1")(t.WalletBalance||"0")))])])]),e("div",{staticClass:"main-content"},[1==t.tabType?e("div",{staticClass:"box box-step2"},[e("div",{staticClass:"b-card"},[e("el-row",{staticClass:"card-top"},[e("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,rules:t.rules,"label-position":"top"}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"",label:t.$t("Documentary.console.item14")}},[e("el-input",{staticClass:"m-input",attrs:{disabled:"",autocomplete:"off"},model:{value:t.WalletBalance,callback:function(e){t.WalletBalance="string"===typeof e?e.trim():e},expression:"WalletBalance"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"login",label:t.$t("Label.TransferAccounts")}},[e("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.login,callback:function(e){t.$set(t.form,"login",e)},expression:"form.login"}},t._l(t.loginOptions,(function(a,l){return e("el-option",{key:l,attrs:{label:a.login+" - "+t.groupTypeName(a.type)+" - "+t.$t("Custom.Deposit.AvailableBalance")+t.groupCurrency(a.currency)+a.balance,value:a.login}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"currency",label:t.$t("Label.Currency")}},[e("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.currency,callback:function(e){t.$set(t.form,"currency",e)},expression:"form.currency"}},[e("el-option",{attrs:{label:"USD",value:"USD"}})],1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"amount",label:t.$t("Label.Amount")}},[e("el-input",{staticClass:"m-input",model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount","string"===typeof e?e.trim():e)},expression:"form.amount"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",[e("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)]):t._e(),2==t.tabType?e("div",{staticClass:"box box-step2"},[e("div",{staticClass:"b-card"},[e("el-row",{staticClass:"card-top"},[e("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,rules:t.rules,"label-position":"top"}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"",label:t.$t("Documentary.console.item14")}},[e("el-input",{staticClass:"m-input",attrs:{disabled:""},model:{value:t.WalletBalance,callback:function(e){t.WalletBalance="string"===typeof e?e.trim():e},expression:"WalletBalance"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"login",label:t.$t("Label.IntoAccount")}},[e("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.login,callback:function(e){t.$set(t.form,"login",e)},expression:"form.login"}},t._l(t.loginOptions,(function(a,l){return e("el-option",{key:l,attrs:{label:a.login+" - "+t.groupTypeName(a.type)+" - "+t.$t("Custom.Deposit.AvailableBalance")+t.groupCurrency(a.currency)+a.balance,value:a.login}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"currency",label:t.$t("Label.Currency")}},[e("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.form.currency,callback:function(e){t.$set(t.form,"currency",e)},expression:"form.currency"}},[e("el-option",{attrs:{label:"USD",value:"USD"}})],1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{prop:"amount",label:t.$t("Label.Amount")}},[e("el-input",{staticClass:"m-input",model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount","string"===typeof e?e.trim():e)},expression:"form.amount"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",[e("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)]):t._e(),3==t.tabType?e("div",{staticClass:"box box-step2"},[e("div",{staticClass:"b-card"},[e("div",{staticClass:"search crm_search"},[e("div",{staticClass:"search-btn"},[e("el-form",{ref:"form",attrs:{model:t.search}},[e("el-form-item",[e("el-select",{staticClass:"crm-border-radius-no select_down",attrs:{filterable:"",size:"small",placeholder:t.$t("placeholder.choose")},on:{change:t.handleSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},[e("el-option",{attrs:{label:t.$t("Custom.PaymentHistory.All"),value:null}}),e("el-option",{attrs:{label:t.$t("State.ToBeProcessed"),value:0}}),e("el-option",{attrs:{label:t.$t("State.InTheProcessing"),value:1}}),e("el-option",{attrs:{label:t.$t("State.Completed"),value:2}}),e("el-option",{attrs:{label:t.$t("State.Refused"),value:3}})],1)],1),e("el-form-item",[e("div",[e("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":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},model:{value:t.search.date,callback:function(e){t.$set(t.search,"date",e)},expression:"search.date"}}),e("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:t.handleSearch}})],1)])],1)],1)]),e("div",{staticClass:"chart-box crm-border-radius"},[e("div",{staticClass:"tab"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],key:"two",staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[e("el-table-column",{attrs:{align:"center",label:t.$t("Documentary.TundManagement.item5")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.ticket||"--"))]}}],null,!1,1449782649)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Documentary.console.item4")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.login||"--"))]}}],null,!1,978293022)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Type")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginType||"--"))]}}],null,!1,1683412710)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Amount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("NumberFormat1")(e.row.amount||"0")))]}}],null,!1,2378348233)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Documentary.TundManagement.item6")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.addTime||"--")+" ")]}}],null,!1,457315401)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Documentary.TundManagement.item7")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.approveTime||"--")+" ")]}}],null,!1,4049288647)}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.State")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.status?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}]}):t._e(),2==a.row.status&&1==a.row.tradeStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}]}):t._e(),2==a.row.status&&2==a.row.tradeStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Completed",expression:"'State.Completed'"}]}):t._e(),3==a.row.status||3==a.row.tradeStatus?e("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}]}):t._e()]}}],null,!1,1490398996)}),e("el-table-column",{attrs:{"class-name":"bor-r",align:"center",label:t.$t("Label.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||"--"))])]}}],null,!1,1755260542)})],1)],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()])])]):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.dialogVisible?e("div",{staticClass:"dia-content"},[e("div",{staticClass:"icon"},[e("i",{staticClass:"iconfont iconchenggong"})]),e("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),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)]):t._e(),t.dialogVisible?t._e():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)])]),e("el-dialog",{attrs:{visible:t.dialogCheckWait,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(e){t.dialogCheckWait=e}}},[e("div",{staticClass:"dia-content"},[e("div",{staticClass:"icon"},[e("i",{staticClass:"iconfont icondengdai"})]),e("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des38",expression:"'ApplicationDialog.Des38'"}],staticClass:"des1"})])])],1)},s=[],o=(a("d9e2"),a("a907")),r=a("f121"),i=a.n(r);let{Code:n,Host80:c}=i.a;var u={name:"Transfer",data(){return{flag:!1,flag1:!1,Host80:c,pictLoading:!1,RES:"",reasons:{},tabType:2,WalletBalance:"",loginOptions:[],search:{status:null,date:[],startDate:"",endDate:""},tableData:[],pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},form:{currency:"USD",login:"",amount:"",transferType:null},fromInfo:"",dialogCheck:!1,dialogVisible:!1,dialogCheckWait:!1,rules:{amount:[{validator:(t,e,a)=>{/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(e)?a():a(new Error(this.$i18n.t("vaildate.amount.format")))},required:!0,trigger:"blur"}],currency:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],login:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}]}}},methods:{groupCurrency(t){return"GBP"==t?": £":"USD"==t?": $":"EUR"==t?": €":"USC"==t?": ¢":": $"},groupCurrency1(t){return"GBP"==t?"£":"USD"==t?"$":"EUR"==t?"€":"USC"==t?"¢":"$"},groupTypeName(t){return"1"==t?this.$i18n.t("AccountType.ClassicAccount"):"2"==t?this.$i18n.t("AccountType.SeniorAccount"):"5"==t||"6"==t?this.$i18n.t("AccountType.SpeedAccount"):"7"==t?this.$i18n.t("AccountType.StandardAccount"):"8"==t?this.$i18n.t("AccountType.CentAccount"):void 0},getMoneyList:async function(){let t=await o["a"].followWalletSingle({});t.code==n.StatusOK?null!=t.data&&(this.WalletBalance=t.data.walletAmount):this.$pigeon.MessageError(t.msg)},getDropdown:async function(){let t=await o["a"].CustomDropdown({platform:""});t.code==n.StatusOK?(this.loginOptions=t.data,this.$route.query.login&&(this.form.login=this.$route.query.login,this.tabType=this.$route.query.type)):this.$pigeon.MessageError(t.msg)},async searchReasons(){let t=await o["a"].reasonsRefusalList({type:null});t.code==n.StatusOK?null==t.data?this.reasons={}:this.reasons=t.data:this.$pigeon.MessageError(t.msg)},closeDia(){this.$refs["form"]&&this.$refs["form"].resetFields(),this.dialogCheck=!1,this.dialogVisible=!1},toTransfer:async function(){this.$refs["form"].validate(async t=>{if(!t)return!1;{if(this.flag)return;this.flag=!0,this.dialogCheckWait=!0;let t=await o["a"].followTransferApply({transferType:this.tabType,login:this.form.login,amount:this.form.amount});t.code==n.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1),this.dialogCheckWait=!1}})},handleSearch(){this.pagerInfo.current=1,this.searchFunc()},async searchFunc(){this.pictLoading=!0,null==this.search.date||0==this.search.date.length?(this.search.startDate="",this.search.endDate=""):(this.search.startDate=this.search.date[0],this.search.endDate=this.search.date[1]);let t=await o["a"].followTransferList({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==n.StatusOK?(this.tableData=t.data,this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal,this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.pictLoading=!1):(this.$pigeon.MessageError(t.msg),this.pictLoading=!1),this.pictLoading=!1},handleSizeChange(t){this.pagerInfo.row=t,this.searchFunc()},handleCurrentChange(t){this.pagerInfo.current=t,this.searchFunc()}},watch:{tabType:function(t){3==t&&(this.search.status=null,this.searchFunc())}},mounted(){this.tabType=this.$route.query.type?Number(this.$route.query.type):2,this.getMoneyList(),this.getDropdown(),this.searchReasons()}},d=u,p=(a("23d5"),a("170c"),a("2877")),m=Object(p["a"])(d,l,s,!1,null,"82d01eb8",null);e["default"]=m.exports},e910:function(t,e,a){}}]);