| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-StandardRebate"],{"498a":function(e,t,a){"use strict";var s=a("23e7"),i=a("58a8").trim,n=a("c8d2");s({target:"String",proto:!0,forced:n("trim")},{trim:function(){return i(this)}})},"74c2":function(e,t,a){"use strict";a("f25ef")},a20f:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("498a");var s=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],attrs:{id:"documentary_report","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"search-sec"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{staticClass:"search-box bg-white mt-2 br-5 pr-3 pl-3",staticStyle:{padding:"10px 0"}},[t("form",{staticClass:"form-horizontal application-his",attrs:{action:"",method:"post",model:e.search}},[t("div",{staticClass:"form-group",staticStyle:{"padding-top":"15px"}},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",disabled:""},model:{value:e.search.login,callback:function(t){e.$set(e.search,"login","string"===typeof t?t.trim():t)},expression:"search.login"}})],1),e.openSearch?t("div",{},[t("div",{staticClass:"row mt-3"},[t("div",{staticClass:"form-group col-5 pr-1 mb-0"},[t("label",{directives:[{name:"t",rawName:"v-t",value:"placeholder.Start",expression:"'placeholder.Start'"}],staticClass:"control-label requiredField start-label",attrs:{for:"date"}}),t("div",{staticClass:"date"},[t("div",{staticClass:"input-group"},[t("DatePicker",{staticClass:"date-input",staticStyle:{width:"100%"},attrs:{type:"date",name:"bday",placeholder:e.$t("placeholder.Start"),"picker-options":e.pickerOptions},model:{value:e.search.startDate,callback:function(t){e.$set(e.search,"startDate",t)},expression:"search.startDate"}})],1)])]),t("div",{staticClass:"form-group col-5 pl-1 pr-2 mb-0"},[t("label",{directives:[{name:"t",rawName:"v-t",value:"placeholder.End",expression:"'placeholder.End'"}],staticClass:"control-label requiredField start-label",attrs:{for:"date"}}),t("div",{staticClass:"date"},[t("div",{staticClass:"input-group"},[t("DatePicker",{staticClass:"date-input",staticStyle:{width:"100%"},attrs:{type:"date",name:"bday",placeholder:e.$t("placeholder.Start"),"picker-options":e.pickerOptions},model:{value:e.search.endDate,callback:function(t){e.$set(e.search,"endDate",t)},expression:"search.endDate"}})],1)])]),t("div",{staticClass:"form-group col-2 pl-0",staticStyle:{"margin-top":"28px"}},[t("a",{staticClass:"btn-search",attrs:{href:"javascript:;"},on:{click:e.toSearch}},[t("img",{staticClass:"img-fluid",attrs:{src:"assets/img/search.png"}})])])])]):e._e()])])])])])]),t("div",{staticClass:"promotion-box pt-2"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{staticClass:"row justify-content-between my-2 align-items-center"},[t("div",{staticClass:"col-8"},[t("h5",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item1",expression:"'standardRebate.item1'"}],staticClass:"application-hd"})]),t("div",{staticClass:"col-4"},[t("a",{staticClass:"btn-filter",attrs:{href:"javascript:;"},on:{click:function(t){e.openSearch=!e.openSearch}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.PaymentHistory.Filter",expression:"'Custom.PaymentHistory.Filter'"}],staticStyle:{"margin-right":"5px"}}),t("img",{staticClass:"img-fluid",attrs:{src:"assets/img/filter-icon.png"}})])])]),t("div",[e.combined?t("div",{staticClass:"promotion-box-white mt-2"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col-12"},[t("ul",{staticClass:"list-group"},[t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",[t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Total",expression:"'Label.Total'"}]}),e._v(": ")]),t("span",{staticClass:"badge-pill"})]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item4",expression:"'standardRebate.item4'"}]}),t("span",{staticClass:"badge-pill"},[e._v(" "+e._s(e._f("NumberFormat")(e.combined.rebateVolume||"0"))+" ")])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item6",expression:"'standardRebate.item6'"}]}),t("span",{staticClass:"badge-pill"},[e._v(" "+e._s(e._f("NumberFormat")(e.combined.rebateAmount||"0"))+" ")])])])])])]):e._e(),e._l(e.mock_tableData,(function(a,s){return t("div",{key:s,staticClass:"promotion-box-white mt-2"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col-12"},[t("ul",{staticClass:"list-group"},[t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.OrderNumber",expression:"'Label.OrderNumber'"}]}),t("span",{staticClass:"badge-pill"},[e._v(" "+e._s(a.ticket||"--")+" ")])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Custom.PaymentHistory.TradingAccount",expression:"'Custom.PaymentHistory.TradingAccount'"}]}),t("span",{staticClass:"badge-pill"},[e._v(" "+e._s(a.login||"--")+" ")])])])]),t("div",{staticClass:"col-12"},[t("div",{staticClass:"panel-group",attrs:{id:"accordion2",role:"tablist","aria-multiselectable":"true"}},[t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-heading",attrs:{role:"tab",id:"headingOne"+s}},[t("h4",{staticClass:"panel-title"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Home.menu_footer.item5",expression:"'Home.menu_footer.item5'"}],attrs:{role:"button","data-toggle":"collapse","data-parent":"#accordion2",href:"#collapseOne"+s,"aria-expanded":"true","aria-controls":"collapseOne"}})])]),t("div",{staticClass:"panel-collapse collapse in",attrs:{id:"collapseOne"+s,role:"tabpanel","aria-labelledby":"headingOne"+s}},[t("div",{staticClass:"panel-body"},[t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Name",expression:"'Label.Name'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.name||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.VarietiesTypeie",expression:"'Label.VarietiesTypeie'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.symbol||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item2",expression:"'standardRebate.item2'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.cmdName||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.OpenPrice",expression:"'Label.OpenPrice'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(e._f("NumberFormat")(a.openPrice||"0"))+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.OpenTime",expression:"'Label.OpenTime'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.openTime||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.ClosePrice",expression:"'Label.ClosePrice'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(e._f("NumberFormat")(a.closePrice||"0"))+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.CloseTime",expression:"'Label.CloseTime'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.closeTime||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Platform",expression:"'Label.Platform'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.platform||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item3",expression:"'standardRebate.item3'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.ticketVolume||"0")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item4",expression:"'standardRebate.item4'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.rebateVolume||"0")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item5",expression:"'standardRebate.item5'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.rebatePoint||"0")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item6",expression:"'standardRebate.item6'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.rebateAmount||"0")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item7",expression:"'standardRebate.item7'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.rebateRange||"--")+" ")])])])])])])])])])}))],2),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("el-pagination",{staticClass:"page",attrs:{background:"","pager-count":5,layout:"prev, pager, next","page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):t("div",{staticClass:"crm-notDate"},[t("LocalizedTextEditor",{attrs:{"i18n-key":"State.notDate","default-text":"No Data","spanish-text":"Sin datos"}})],1)])])])])])},i=[],n=a("c7eb"),r=a("5530"),l=a("1da1"),o=a("6df7"),c=a("f121"),d=a.n(c),p=d.a.Code,m={name:"Report",data:function(){return{flag:!1,pictLoading:!1,mock_tableData:[],search:{date:[],startDate:"",endDate:"",login:""},value:null,agentId_options:[{value:0,label:this.$i18n.t("news_add_field.IbReport.ALL")},{value:-1,label:this.$i18n.t("news_add_field.IbReport.DirectlyUnder")}],props:{value:"value",children:"children",checkStrictly:!0},child:[],combined:null,openSearch:!0,pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},pickerOptions:{disabledDate:function(e){return e.getTime()>=new Date("2025-10-01").getTime()}}}},computed:{lang:function(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1400},langs:function(){return"en"==this.Session.Get("lang")}},methods:{groupCurrency:function(e){return"GBP"==e?": £":"USD"==e?": $":"EUR"==e?": €":"USC"==e?": ¢":": $"},groupCurrency1:function(e){return"GBP"==e?"£":"USD"==e?"$":"EUR"==e?"€":"USC"==e?"¢":"$"},getDate:function(){var e,t,a=2,s=(new Date).getTimezoneOffset(),i=(new Date).getTime(),n=new Date(i+60*s*1e3+60*a*60*1e3),r=n.getFullYear(),l=n.getMonth()+1,o=n.getDate();l<10&&(l="0"+l),o<10&&(o="0"+o),e=r+"-"+l+"-01";var c=n.getMonth(),d=++c,p=new Date(n.getFullYear(),d,1),m=864e5,u=new Date(p-m),v=u.getDate();v<10&&(v="0"+v),t=r+"-"+l+"-"+v,this.search.date=[e,t]},searchFunc:function(){var e=this;return Object(l["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.flag){t.next=4;break}return t.abrupt("return");case 4:e.flag=!0;case 5:return e.pictLoading=!0,t.next=8,o["a"].standardRebateList(Object(r["a"])(Object(r["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:a=t.sent,a.code==p.StatusOK?(null!=a.sum?e.combined=a.sum:e.combined=null,null!=a.data?e.mock_tableData=a.data:e.mock_tableData=[],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.flag=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1,e.mock_tableData=[],e.flag=!1);case 10:case"end":return t.stop()}}),t)})))()},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.search.login=this.$route.query.login,this.searchFunc()}},u=m,v=(a("c744"),a("74c2"),a("2877")),g=Object(v["a"])(u,s,i,!1,null,"41a3f5fb",null);t["default"]=g.exports},c744:function(e,t,a){"use strict";a("ed94")},c8d2:function(e,t,a){"use strict";var s=a("5e77").PROPER,i=a("d039"),n=a("5899"),r="
";e.exports=function(e){return i((function(){return!!n[e]()||r[e]()!==r||s&&n[e].name!==e}))}},ed94:function(e,t,a){},f25ef:function(e,t,a){}}]);
|