| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Retrieval-CommissionExtract"],{"3a82":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"InfoBox",class:{active:e.dialogInfoIbNo},attrs:{id:"TradingDetailedInfo"}},[a("div",{staticClass:"header"},[a("div",[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.AgentNumber",expression:"'Label.AgentNumber'"}],staticClass:"title"}),a("span",[e._v(":")]),a("span",[e._v(e._s(e.form.ibNo||"--"))])]),a("span",{staticClass:"close crm-cursor",on:{click:e.close}},[a("i",{staticClass:"el-icon-close"})])]),a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150PX"}},[a("el-form-item",{attrs:{label:e.$t("Label.CidAccount")}},[e._v(" "+e._s(e.form.cId||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.AgentNumber")}},[e._v(" "+e._s(e.form.ibNo||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.AttributionNumber")}},[e._v(" "+e._s(e.form.pIbNo||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.AgentLevel")}},[e._v(" "+e._s("cn"==e.Session.Get("lang")?e.form.agentLevelName:e.form.agentLevelEnName)+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.Name")}},[e._v(" "+e._s(e.form.name||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.Email")}},[e._v(" "+e._s(e.form.email||"--")+" ")]),a("el-form-item",{attrs:{label:e.$t("Label.Amount")}},[e._v(" "+e._s(e.form.balance||"--")+" ")])],1)],1)},n=[],s=a("f121"),o=a.n(s),i={name:"DetailedInfoIbNo",props:{dialogInfoIbNo:{type:Boolean,default:!1},infoType:{default:""},formInfo:{default:""},btn:{type:Boolean,default:!1}},data:function(){return{imgUrl:o.a.Host85,form:{},info:{CID:"",name:"",type:""}}},methods:{close:function(){this.$emit("close",!1)}},mounted:function(){},watch:{formInfo:function(){this.form=this.formInfo}}},l=i,c=(a("c7cf"),a("89d0"),a("2877")),u=Object(c["a"])(l,r,n,!1,null,"39a3abd0",null);t["a"]=u.exports},"3dc1":function(e,t,a){},"3fb3":function(e,t,a){"use strict";a("96cf");var r=a("1da1"),n=a("d4ec"),s=a("bee2"),o=a("262e"),i=a("2caf"),l=a("ff2d"),c=a("bc3a"),u=a.n(c),p=a("f121"),d=a.n(p),m=function(e){Object(o["a"])(a,e);var t=Object(i["a"])(a);function a(){var e;return Object(n["a"])(this,a),e=t.call(this),u.a.defaults.baseURL=d.a.Host85,e}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]:{},e.next=3,this.post("/reasons/refusal/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cidRealSingle",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]:{},e.next=3,this.post("/custom/search/real/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"pIbNoRealSingle",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]:{},e.next=3,this.post("/ib/search/ib/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"accountRetrieval",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]:{},e.next=3,this.post("/custom/login/account/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"accountRealRetrieval",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]:{},e.next=3,this.post("/custom/account/search/real",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"IBwithdrawList",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]:{},e.next=3,this.post("/finance/agent/withdraw/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"remitChannelGetCode",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]:{},e.next=3,this.post("/remit/channel/get/code",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositList",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]:{},e.next=3,this.post("/finance/deposit/searcher/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"remittanceChannelCode",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]:{},e.next=3,this.post("/remittance/channel/get/code",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"withdrawList",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]:{},e.next=3,this.post("/finance/withdraw/searcher/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"remitChannelCode",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]:{},e.next=3,this.post("/remit/channel/get/code",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(l["a"]);t["a"]=new m},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,a){var r=a("1d80"),n=a("5899"),s="["+n+"]",o=RegExp("^"+s+s+"*"),i=RegExp(s+s+"*$"),l=function(e){return function(t){var a=String(r(t));return 1&e&&(a=a.replace(o,"")),2&e&&(a=a.replace(i,"")),a}};e.exports={start:l(1),end:l(2),trim:l(3)}},7156:function(e,t,a){var r=a("861d"),n=a("d2bb");e.exports=function(e,t,a){var s,o;return n&&"function"==typeof(s=t.constructor)&&s!==a&&r(o=s.prototype)&&o!==a.prototype&&n(e,o),e}},8885:function(e,t,a){},"89d0":function(e,t,a){"use strict";a("ea8d")},"8bc5":function(e,t,a){"use strict";a("8885")},"9ce4":function(e,t,a){},a623:function(e,t,a){"use strict";var r=a("23e7"),n=a("b727").every,s=a("a640"),o=a("ae40"),i=s("every"),l=o("every");r({target:"Array",proto:!0,forced:!i||!l},{every:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},a9e3:function(e,t,a){"use strict";var r=a("83ab"),n=a("da84"),s=a("94ca"),o=a("6eeb"),i=a("5135"),l=a("c6b6"),c=a("7156"),u=a("c04e"),p=a("d039"),d=a("7c73"),m=a("241c").f,f=a("06cf").f,h=a("9bf2").f,g=a("58a8").trim,b="Number",v=n[b],_=v.prototype,C=l(d(_))==b,w=function(e){var t,a,r,n,s,o,i,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=g(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+c}for(s=c.slice(2),o=s.length,i=0;i<o;i++)if(l=s.charCodeAt(i),l<48||l>n)return NaN;return parseInt(s,r)}return+c};if(s(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,S=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof S&&(C?p((function(){_.valueOf.call(a)})):l(a)!=b)?c(new v(w(t)),a,S):w(t)},y=r?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),A=0;y.length>A;A++)i(v,k=y[A])&&!i(S,k)&&h(S,k,f(v,k));S.prototype=_,_.constructor=S,o(n,b,S)}},c7cf:function(e,t,a){"use strict";a("9ce4")},dbb6: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",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"financial_CommissionExtract","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm_search"},[a("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[a("el-row",[a("el-col",{attrs:{span:24,md:24,lg:24}},[a("el-form-item",{staticStyle:{"margin-right":"10px"}},[a("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId",t)},expression:"search.cId"}},[a("template",{slot:"prepend"},[a("span",{staticClass:"crm-cursor crm-border-radius-no"},[e._v("CID")])])],2)],1),a("el-form-item",{staticStyle:{"margin-right":"10px"}},[a("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.serial,callback:function(t){e.$set(e.search,"serial",t)},expression:"search.serial"}},[a("template",{slot:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.SerialNumber",expression:"'Label.SerialNumber'"}],staticClass:"crm-cursor crm-border-radius-no"})])],2)],1),a("el-form-item",{staticStyle:{"margin-right":"10px"}},[a("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo",t)},expression:"search.ibNo"}},[a("template",{slot:"prepend"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.IBAccount",expression:"'Label.IBAccount'"}],staticClass:"crm-cursor crm-border-radius-no"})])],2)],1),a("el-form-item",[a("el-button",{staticClass:"crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),a("el-form-item")],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.cId&&e.display["DataRetrieval.R-CommissionExtract-Search"].show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return e.accountOpen(t.row.cId)}}},[e._v(e._s(t.row.cId||"--"))]):a("span",[e._v(e._s(t.row.cId||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AttributionNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.pIbNo&&e.display["DataRetrieval.R-CommissionExtract-Search"].show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return e.agentOpen(t.row.pIbNo)}}},[e._v(e._s(t.row.pIbNo||"--"))]):a("span",[e._v(e._s(t.row.pIbNo||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.IBAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ibNo&&e.display["DataRetrieval.R-CommissionExtract-Search"].show?a("span",{staticClass:"crm-text-underline",on:{click:function(a){return e.agentOpen(t.row.ibNo)}}},[e._v(e._s(t.row.ibNo||"--"))]):a("span",[e._v(e._s(t.row.ibNo||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Encode")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.salesNo||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"title",align:"left",label:e.$i18n.t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.AmountMoney")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{color:"#EB3F57"}},[e._v(e._s(e._f("NumberFormat")(e._f("NumberDecimal")(t.row.amount||"0"))))]),a("div",[e._v(e._s(t.row.currency||"--"))])]}}])}),a("el-table-column",{attrs:{prop:"deliveryTime",align:"left",label:e.$i18n.t("Label.SerialNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.serial||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.WithdrawalWay")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("cn"==e.Session.Get("lang")?t.row.remitChannelName||"--":t.row.remitChannelEnName||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("news_add_field.Label.RemittancePlatformAmount")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{color:"#EB3F57"}},[e._v(e._s(e._f("NumberFormat")(e._f("NumberDecimal")(t.row.transformAmount||"0"))))]),a("div",[e._v(e._s(t.row.transformCurrency))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.ApplyTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.submitTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.submitTime||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Customer_info.Real.Level")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.salesSettingLevel?e._e():a("span",{},[e._v("--")]),1==t.row.salesSettingLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Customer_info.Real.level1",expression:"'Customer_info.Real.level1'"}],staticClass:"state crm_state_green"}):e._e(),2==t.row.salesSettingLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Customer_info.Real.level2",expression:"'Customer_info.Real.level2'"}],staticClass:"state crm_state_yellow"}):e._e(),3==t.row.salesSettingLevel?a("span",{directives:[{name:"t",rawName:"v-t",value:"Customer_info.Real.level3",expression:"'Customer_info.Real.level3'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.ToBeProcessed",expression:"'State.ToBeProcessed'"}],staticClass:"state crm_state_blue"}):e._e(),2==t.row.status&&2==t.row.submitStatus&&1==t.row.callbackStatus?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Pass",expression:"'State.Pass'"}],staticClass:"state crm_state_gray"}):e._e(),2!=t.row.status||1!=t.row.submitStatus&&null!=t.row.submitStatus?e._e():a("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state crm_state_yellow"}),2!=t.row.status||2!=t.row.submitStatus||0!=t.row.callbackStatus&&null!=t.row.callbackStatus?e._e():a("span",{directives:[{name:"t",rawName:"v-t",value:"State.InTheProcessing",expression:"'State.InTheProcessing'"}],staticClass:"state crm_state_violet"}),3==t.row.status||3==t.row.submitStatus||2==t.row.callbackStatus?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Refused",expression:"'State.Refused'"}],staticClass:"state crm_state_red"}):e._e(),5==t.row.status?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Cancelled",expression:"'State.Cancelled'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.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),e.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("div",{staticClass:"crm_page_total"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),a("span",[e._v(e._s(e.pagerInfo.rowTotal))]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),a("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e(),a("el-dialog",{ref:"CommissionExtract",attrs:{title:e.dialogCheckTitle,visible:e.dialogCheck,center:"","custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t}}},[a("div",{staticClass:"dia-content"},[a("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form,rules:e.rules,"label-width":"135px"}},[a("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogCheck_form.cId||"--")+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$t("Label.SerialNumber")+":"}},[e._v(" "+e._s(e.dialogCheck_form.serial)+" ")]),"approve"==e.dialogCheck_form.type?a("el-form-item",{attrs:{prop:"status",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.status,callback:function(t){e.$set(e.dialogCheck_form,"status",t)},expression:"dialogCheck_form.status"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}})],1)],1):e._e(),"approve"==e.dialogCheck_form.type&&3==e.dialogCheck_form.status?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e(),"salesApprove"==e.dialogCheck_form.type?a("el-form-item",{attrs:{prop:"status",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.status,callback:function(t){e.$set(e.dialogCheck_form,"status",t)},expression:"dialogCheck_form.status"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}})],1)],1):e._e(),"salesApprove"==e.dialogCheck_form.type&&3==e.dialogCheck_form.status?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e(),"MT"==e.dialogCheck_form.type?a("el-form-item",{attrs:{prop:"withdrawStatus",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.withdrawStatus,callback:function(t){e.$set(e.dialogCheck_form,"withdrawStatus",t)},expression:"dialogCheck_form.withdrawStatus"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}})],1)],1):e._e(),"MT"==e.dialogCheck_form.type&&3==e.dialogCheck_form.withdrawStatus?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e(),"MT"==e.dialogCheck_form.type&&2==e.dialogCheck_form.withdrawStatus?a("el-form-item",{attrs:{prop:"withdrawTicket",label:e.$t("Label.MTOrderNumber")+":"}},[a("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.withdrawTicket,callback:function(t){e.$set(e.dialogCheck_form,"withdrawTicket","string"===typeof t?t.trim():t)},expression:"dialogCheck_form.withdrawTicket"}})],1):e._e(),"receipt"==e.dialogCheck_form.type?a("el-form-item",{attrs:{prop:"callbackStatus",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.callbackStatus,callback:function(t){e.$set(e.dialogCheck_form,"callbackStatus",t)},expression:"dialogCheck_form.callbackStatus"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:2}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:1}})],1)],1):e._e(),"receipt"==e.dialogCheck_form.type&&2==e.dialogCheck_form.callbackStatus?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e(),"submit"==e.dialogCheck_form.type?a("el-form-item",{attrs:{prop:"submitStatus",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.submitStatus,callback:function(t){e.$set(e.dialogCheck_form,"submitStatus",t)},expression:"dialogCheck_form.submitStatus"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}})],1)],1):e._e(),"submit"==e.dialogCheck_form.type&&3==e.dialogCheck_form.submitStatus?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerified()}}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),a("el-dialog",{attrs:{visible:e.dialogAll,center:"",title:e.dialogAllTitle,"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogAll=t}}},[a("div",{staticClass:"dia-content"},[a("div",{staticClass:"dialogAll",staticStyle:{"text-align":"center","margin-bottom":"15px"}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Customer_info.Real.item1",expression:"'Customer_info.Real.item1'"}]}),e._v(" "+e._s(e.multipleSelection.length)+" "),a("span",{directives:[{name:"t",rawName:"v-t",value:"Customer_info.Real.item2",expression:"'Customer_info.Real.item2'"}]}),e._v(" "+e._s(e.amountAll)+" ")]),a("el-form",{ref:"dialogAll_form",staticClass:"dialogAll_form",attrs:{model:e.dialogAll_form,rules:e.rules,"label-width":"135px"}},["Submits"==e.dialogAllType?a("el-form-item",{attrs:{prop:"submitStatus",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogAll_form.submitStatus,callback:function(t){e.$set(e.dialogAll_form,"submitStatus",t)},expression:"dialogAll_form.submitStatus"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}})],1)],1):e._e(),"Submits"==e.dialogAllType&&3==e.dialogAll_form.submitStatus?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogAll_form.approveDesc,callback:function(t){e.$set(e.dialogAll_form,"approveDesc",t)},expression:"dialogAll_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e(),"Channels"==e.dialogAllType?a("el-form-item",{attrs:{prop:"callbackStatus",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogAll_form.callbackStatus,callback:function(t){e.$set(e.dialogAll_form,"callbackStatus",t)},expression:"dialogAll_form.callbackStatus"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:1}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:2}})],1)],1):e._e(),"Channels"==e.dialogAllType&&2==e.dialogAll_form.callbackStatus?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogAll_form.approveDesc,callback:function(t){e.$set(e.dialogAll_form,"approveDesc",t)},expression:"dialogAll_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e(),"Approves"==e.dialogAllType?a("el-form-item",{attrs:{prop:"status",label:e.$t("Label.ProcessingState")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogAll_form.status,callback:function(t){e.$set(e.dialogAll_form,"status",t)},expression:"dialogAll_form.status"}},[a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Agree"),value:2}}),a("el-option",{attrs:{label:e.$t("Apply_info.VerifiedUser.Refused"),value:3}})],1)],1):e._e(),"Approves"==e.dialogAllType&&3==e.dialogAll_form.status?a("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Label.Descr")+":"}},[a("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogAll_form.approveDesc,callback:function(t){e.$set(e.dialogAll_form,"approveDesc",t)},expression:"dialogAll_form.approveDesc"}},e._l(e.reasons,(function(t){return a("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.content:t.enContent,value:t.id}})})),1)],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["Submits"==e.dialogAllType?a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.submitsAll}}):e._e(),"Channels"==e.dialogAllType?a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.channelsAll}}):e._e(),"Approves"==e.dialogAllType?a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.approvesAll}}):e._e(),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.channelAll}})],1)],1)]),a("trading-single",{attrs:{dialogInfoTrading:e.dialogInfoTrading,infoType:e.infoType,formInfo:e.formInfoTrading},on:{closeTrading:e.closeTrading,openInfo:e.openInfo}}),e.dialogInfoTrading?a("div",{staticClass:"crm_verified_info_mask crm_verified_info_mask_trading",on:{click:e.closeDiaTrading}}):e._e(),a("detailed-info-cid",{attrs:{dialogInfoCid:e.dialogInfoCid,formInfo:e.formInfo},on:{close:e.close}}),e.dialogInfoCid?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDia}}):e._e(),a("detailed-info-ibNo",{attrs:{dialogInfoIbNo:e.dialogInfoPIbNo,formInfo:e.formInfoPib},on:{close:e.close}}),e.dialogInfoPIbNo?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDia}}):e._e()],1)},n=[],s=(a("a623"),a("4160"),a("a9e3"),a("d3b7"),a("ac1f"),a("3ca3"),a("841c"),a("1276"),a("159b"),a("ddb0"),a("2b3d"),a("5530")),o=(a("96cf"),a("1da1")),i=a("bc3a"),l=a.n(i),c=a("3fb3"),u=a("f121"),p=a.n(u),d=a("2d59"),m=a("3a82"),f=a("5011"),h=p.a.Code,g={name:"CommissionExtract",components:{DetailedInfoCid:d["a"],DetailedInfoIbNo:m["a"],TradingSingle:f["a"]},data:function(){return{flag:!1,reasons:{},pictLoading:!1,mock_tableData:[],search:{tag:1,login:"",customId:"",status:null,channelCode:null,cId:"",serial:"",ibNo:"",country:null,date:[],startDate:"",endDate:"",submitStatus:null,SubmitDate:[],startSubmitDate:"",endSubmitDate:""},channelCode:[],dialogCheckTitle:"",multipleSelection:[],multipleSelectionAll:[],isSubmits:!1,isChannels:!1,isInfoStatus:!1,isApproves:!1,dialogAll:!1,dialogAllTitle:"",dialogAllType:"",dialogAll_form:{approveDesc:"",submitStatus:null,callbackStatus:null},amountAll:0,dialogInfo:!1,dialogCheck:!1,dialogCheck_form:{approveDesc:""},dialogInfoTrading:!1,formInfoTrading:{},dialogInfoCid:!1,dialogInfoPIbNo:!1,infoType:"",formInfo:{},formInfoPib:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{status:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],approveDesc:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],withdrawStatus:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],withdrawTicket:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],callbackStatus:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],submitStatus:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))},lang:function(){return this.Session.Get("lang")}},methods:{selectChange:function(){this.$forceUpdate()},handleCommand:function(e){"MT"==e.type&&(this.dialogCheckTitle=this.$i18n.t("Financial_info.WithdrawalApplication.TitleDeductions")),"approve"==e.type&&(this.dialogCheckTitle=this.$i18n.t("Financial_info.WithdrawalApplication.TitleApproval")),"salesApprove"==e.type&&(this.dialogCheckTitle=this.$i18n.t("Financial_info.WithdrawalApplication.TitleApproval")),"receipt"==e.type&&(this.dialogCheckTitle=this.$i18n.t("Financial_info.WithdrawalApplication.TitleRemittanceReceipt")),"submit"==e.type&&(this.dialogCheckTitle=this.$i18n.t("Financial_info.WithdrawalApplication.TitleRemittancesubmit"),this.dialogCheck_form.submitStatus=2),"approve"==e.type||"MT"==e.type||"receipt"==e.type||"submit"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck=!0,this.dialogCheck_form.type=e.type,this.dialogCheck_form.cId=e.row.cId,this.dialogCheck_form.serial=e.row.serial,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.oldleverage=e.row.oldleverage,this.dialogCheck_form.newleverage=e.row.newleverage):"salesApprove"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck=!0,this.dialogCheck_form.type=e.type,this.dialogCheck_form.login=e.row.login,this.dialogCheck_form.platform=e.row.platform,this.dialogCheck_form.id=e.row.id):"detailed"==e.type&&(this.formInfoTrading=e.row,this.formInfoTrading.approveDesc=this.reasons[e.row.approveDesc]?"cn"==this.Session.Get("lang")?this.reasons[e.row.approveDesc].content:this.reasons[e.row.approveDesc].enContent:e.row.approveDesc,this.formInfoTrading.dataRetrievalFlag=1,this.infoType="financial_CommissionExtract",this.dialogInfoTrading=!0)},toVerified:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=42;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:if("approve"!=t.dialogCheck_form.type){e.next=13;break}return 3!=t.dialogCheck_form.status&&(t.dialogCheck_form.approveDesc=""),e.next=10,c["a"].IBwithdrawApprove(Object(s["a"])({},t.dialogCheck_form));case 10:r=e.sent,e.next=39;break;case 13:if("salesApprove"!=t.dialogCheck_form.type){e.next=20;break}return 3!=t.dialogCheck_form.status&&(t.dialogCheck_form.approveDesc=""),e.next=17,c["a"].IBwithdrawSalesApprove(Object(s["a"])({},t.dialogCheck_form));case 17:r=e.sent,e.next=39;break;case 20:if("MT"!=t.dialogCheck_form.type){e.next=27;break}return 3!=t.dialogCheck_form.withdrawStatus&&(t.dialogCheck_form.approveDesc=""),e.next=24,c["a"].IBwithdrawActionMT(Object(s["a"])({},t.dialogCheck_form));case 24:r=e.sent,e.next=39;break;case 27:if("receipt"!=t.dialogCheck_form.type){e.next=34;break}return 2!=t.dialogCheck_form.callbackStatus&&(t.dialogCheck_form.approveDesc=""),e.next=31,c["a"].IBwithdrawActionReceipt(Object(s["a"])({},t.dialogCheck_form));case 31:r=e.sent,e.next=39;break;case 34:if("submit"!=t.dialogCheck_form.type){e.next=39;break}return 3!=t.dialogCheck_form.submitStatus&&(t.dialogCheck_form.approveDesc=""),e.next=38,c["a"].IBwithdrawSalesSubmit(Object(s["a"])({},t.dialogCheck_form));case 38:r=e.sent;case 39:r.code==h.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.Success")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(r.msg)),e.next=43;break;case 42:return e.abrupt("return",!1);case 43:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(){this.dialogCheck=!1,this.$refs["dialogCheck_form"].resetFields()},openInfoTrading:function(e){this.formInfoTrading=e,this.formInfoTrading.approveDesc=this.reasons[e.approveDesc]?"cn"==this.Session.Get("lang")?this.reasons[e.approveDesc].content:this.reasons[e.approveDesc].enContent:e.approveDesc,this.formInfoTrading.dataRetrievalFlag=1,this.infoType="financial_CommissionExtract",this.dialogInfoTrading=!0},handleSelectionChange:function(e){var t=this;this.multipleSelectionAll=e,this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)})),this.isSubmits=!(!e.every((function(e){return 2==e.status&&1==e.submitStatus}))||!e.length),this.isChannels=!(!e.every((function(e){return 2==e.status&&2==e.submitStatus&&(0==e.callbackStatus||null==e.callbackStatus)}))||!e.length),this.isApproves=!(!e.every((function(e){return 1==e.status}))||!e.length)},openSubmitsAll:function(){var e=this;this.dialogAll=!0,this.dialogAllTitle=this.$i18n.t("R-CommissionExtract-Submits"),this.dialogAllType="Submits",this.amountAll=0,this.multipleSelectionAll.forEach((function(t){e.amountAll=e.amountAll+Number(t.amount)}))},submitsAll:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.$refs["dialogAll_form"].validate(function(){var t=Object(o["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,c["a"].IBwithdrawSalesSubmits({ids:a.multipleSelection,submitStatus:a.dialogAll_form.submitStatus,approveDesc:a.dialogAll_form.approveDesc});case 8:n=t.sent,n.code==h.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.channelAll(),e.searchFunc(),e.flag=!1):(e.flag=!1,e.$pigeon.MessageError(n.msg)),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 2:case"end":return t.stop()}}),t)})))()},openChannelsAll:function(){var e=this;this.dialogAll=!0,this.dialogAllTitle=this.$i18n.t("R-CommissionExtract-Channels"),this.dialogAllType="Channels",this.amountAll=0,this.multipleSelectionAll.forEach((function(t){e.amountAll=e.amountAll+Number(t.amount)}))},channelsAll:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.$refs["dialogAll_form"].validate(function(){var t=Object(o["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,c["a"].IBwithdrawActionChannels({ids:a.multipleSelection,callbackStatus:a.dialogAll_form.callbackStatus,approveDesc:a.dialogAll_form.approveDesc});case 8:n=t.sent,n.code==h.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.channelAll(),e.searchFunc(),e.flag=!1):(e.flag=!1,e.$pigeon.MessageError(n.msg)),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 2:case"end":return t.stop()}}),t)})))()},openApprovesAll:function(){var e=this;this.dialogAll=!0,this.dialogAllTitle=this.$i18n.t("R-CommissionExtract-Approves"),this.dialogAllType="Approves",this.amountAll=0,this.multipleSelectionAll.forEach((function(t){e.amountAll=e.amountAll+Number(t.amount)}))},approvesAll:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.$refs["dialogAll_form"].validate(function(){var t=Object(o["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,c["a"].IBwithdrawActionApproves({ids:a.multipleSelection,status:a.dialogAll_form.status,approveDesc:a.dialogAll_form.approveDesc});case 8:n=t.sent,n.code==h.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.Success")),e.channelAll(),e.searchFunc(),e.flag=!1):(e.flag=!1,e.$pigeon.MessageError(n.msg)),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 2:case"end":return t.stop()}}),t)})))()},channelAll:function(){this.dialogAll=!1,this.$refs["dialogAll_form"].resetFields()},closeDiaTrading:function(){this.dialogInfoTrading=!1},closeTrading:function(e){this.dialogInfoTrading=e},openInfo:function(e){this.searchSingle(e)},closeDia:function(){this.dialogInfoCid=!1,this.dialogInfoPIbNo=!1},close:function(e){this.dialogInfoCid=e,this.dialogInfoPIbNo=e},accountOpen:function(e){this.searchSingleCid(e)},agentOpen:function(e){this.searchSinglePIbNo(e)},searchSingleCid:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,c["a"].cidRealSingle({id:e});case 2:r=a.sent,r.code==h.StatusOK?(t.formInfo=r.data,t.dialogInfoCid=!0):t.$pigeon.MessageError(r.msg);case 4:case"end":return a.stop()}}),a)})))()},searchSinglePIbNo:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,c["a"].pIbNoRealSingle({ibNo:e});case 2:r=a.sent,r.code==h.StatusOK?(t.formInfoPib=r.data,t.dialogInfoPIbNo=!0):t.$pigeon.MessageError(r.msg);case 4:case"end":return a.stop()}}),a)})))()},searchReasons:function(){var e=this;return Object(o["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,c["a"].reasonsRefusalList({type:10});case 2:a=t.sent,a.code==h.StatusOK?null==a.data?e.reasons={}:e.reasons=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getChannelCode:function(){var e=this;return Object(o["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,c["a"].remitChannelGetCode({});case 2:a=t.sent,a.code==h.StatusOK?e.channelCode=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},searchFunc:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["DataRetrieval.R-CommissionExtract-Search"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:if(e.search.cId||e.search.serial||e.search.ibNo){t.next=9;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.searchCriteria")),e.pictLoading=!1,t.abrupt("return");case 9:return 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]),null==e.search.SubmitDate||0==e.search.SubmitDate.length?(e.search.startSubmitDate="",e.search.endSubmitDate=""):(e.search.startSubmitDate=e.search.SubmitDate[0],e.search.endSubmitDate=e.search.SubmitDate[1]),t.next=13,c["a"].IBwithdrawList(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 13:a=t.sent,a.code==h.StatusOK?(e.mock_tableData=a.data,null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 15:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},exportAgents:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r,n,s,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.search.startDate&&e.search.endDate){t.next=3;break}return e.$pigeon.MessageWarning(e.$i18n.t("vaildate.date.empty")),t.abrupt("return");case 3:r=e.search.startDate.split("-")[0]+e.search.startDate.split("-")[1]+e.search.startDate.split("-")[2],n=e.search.endDate.split("-")[0]+e.search.endDate.split("-")[1]+e.search.endDate.split("-")[2],s=e.search.startSubmitDate?e.search.startSubmitDate.split("-")[0]+e.search.startSubmitDate.split("-")[1]+e.search.startSubmitDate.split("-")[2]:"",o=e.search.endSubmitDate?e.search.endSubmitDate.split("-")[0]+e.search.endSubmitDate.split("-")[1]+e.search.endSubmitDate.split("-")[2]:"",i="/finance/agent/withdraw/search/list/export?cId="+(e.search.cId?e.search.cId:0)+"&ibNo="+(e.search.ibNo?e.search.ibNo:"")+"&channelCode="+(e.search.channelCode?e.search.channelCode:"")+"&serial&status="+(null!==(a=e.search.status)&&void 0!==a?a:"")+"&startDate="+r+"&endDate="+n+"&startSubmitDate="+s+"&endSubmitDate="+o+"&submitStatus="+(null!=e.search.submitStatus?e.search.submitStatus:"")+"&country="+(e.search.country?e.search.country:""),l.a.get(i,{responseType:"blob"}).then((function(t){if(t.status==h.StatusOK)if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t.data,"Download.xlsx");else{var a=window.URL.createObjectURL(t.data),r=document.createElement("a");document.body.appendChild(r);var n=t.headers["content-disposition"]?t.headers["content-disposition"].split(";")[1].split("=")[1]:"Download.xlsx";r.href=a,r.download=n,r.click(),window.URL.revokeObjectURL(a)}else e.$pigeon.MessageError(e.$i18n.t("Msg.Download"))}));case 9:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.getChannelCode(),this.searchReasons()},watch:{"search.tag":function(){this.search.cId="",this.search.serial="",this.search.ibNo=""}}},b=g,v=(a("f30a"),a("8bc5"),a("2877")),_=Object(v["a"])(b,r,n,!1,null,"0646b643",null);t["default"]=_.exports},ea8d:function(e,t,a){},f30a:function(e,t,a){"use strict";a("3dc1")}}]);
|