Commit 59ddc3a7 authored by 黄奎's avatar 黄奎

页面修改

parent d7f42936
...@@ -176,7 +176,6 @@ ...@@ -176,7 +176,6 @@
this.RoleListData = res.Data; this.RoleListData = res.Data;
}); });
}, },
//筛选员工 //筛选员工
filterEmployee(val, update, abort) { filterEmployee(val, update, abort) {
update(() => { update(() => {
......
...@@ -771,19 +771,14 @@ ...@@ -771,19 +771,14 @@
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
</style> </style>
<template> <template>
<div class="page_fdd FinancialDocumentsDetail" v-if="GetDetail"> <div class="page_fdd FinancialDocumentsDetail" v-if="GetDetail">
<div class="_none_print"> <div class="_none_print">
<p class="_tit"> <p class="_tit">
{{GetDetail.FinanceName}} {{GetDetail.FinanceName}}
<span <span :class="{color_shz:(GetDetail.StatusStr!=='通过' && GetDetail.StatusStr!=='驳回' && GetDetail.StatusStr!=='作废'),color_tg:GetDetail.StatusStr==='通过',color_bh:GetDetail.StatusStr==='驳回'}">{{GetDetail.StatusStr}}</span>
:class="{color_shz:(GetDetail.StatusStr!=='通过' && GetDetail.StatusStr!=='驳回' && GetDetail.StatusStr!=='作废'),color_tg:GetDetail.StatusStr==='通过',color_bh:GetDetail.StatusStr==='驳回'}">{{GetDetail.StatusStr}}</span>
</p> </p>
<div style="width: 890px;position: relative;text-align: right;"> <div style="width: 890px;position: relative;text-align: right;">
<span <span
...@@ -796,10 +791,8 @@ ...@@ -796,10 +791,8 @@
</span> </span>
<span v-show="huijiShow" class="_Printing" <span v-show="huijiShow" class="_Printing"
@click="goPrintPageNew(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">凭证打印</span> @click="goPrintPageNew(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">凭证打印</span>
<!-- <span v-show="GetDetail.AccountantMergeDetailList && GetDetail.AccountantMergeDetailList.length>0" class="_Printing" @click="goPrintPage2(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">会计合并打印</span>-->
<span class="_Printing" style="margin-left:10px;" <span class="_Printing" style="margin-left:10px;"
@click="goPrintPage(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">打印单据</span> @click="goPrintPage(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">打印单据</span>
</div> </div>
<div class="_conten"> <div class="_conten">
<my-Bill v-if="GetDetail.Type===2 && GetDetail.Type!==5" :isPrintPage="false" :ID="GetDetail.FrID" <my-Bill v-if="GetDetail.Type===2 && GetDetail.Type!==5" :isPrintPage="false" :ID="GetDetail.FrID"
...@@ -808,7 +801,7 @@ ...@@ -808,7 +801,7 @@
:color="colorSon"></my-RVB-Bill> :color="colorSon"></my-RVB-Bill>
<my-GZ-Bill v-else-if="GetDetail.Type===7" :ID="GetDetail.FrID" :width="widthSon" :color="colorSon"> <my-GZ-Bill v-else-if="GetDetail.Type===7" :ID="GetDetail.FrID" :width="widthSon" :color="colorSon">
</my-GZ-Bill> </my-GZ-Bill>
<div class="_explain"> <div class="_explain">
<p>附加说明: <span class="fr" v-if="GetDetail.ComplainID > 0" <p>附加说明: <span class="fr" v-if="GetDetail.ComplainID > 0"
@click="goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)"> @click="goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)">
...@@ -830,7 +823,8 @@ ...@@ -830,7 +823,8 @@
@click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 销售提成:{{GetDetail.ReFinanceId}}</span> @click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 销售提成:{{GetDetail.ReFinanceId}}</span>
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==26" <span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==26"
@click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 教师课时:{{GetDetail.ReFinanceId}}</span> @click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 教师课时:{{GetDetail.ReFinanceId}}</span>
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==40 || GetDetail.OtherType==41" <span class="fr" style="text-decoration: underline;cursor: pointer;"
v-if="GetDetail.OtherType==40 || GetDetail.OtherType==41"
@click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 教育活动:{{GetDetail.ReFinanceId}}</span> @click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 教育活动:{{GetDetail.ReFinanceId}}</span>
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==42 " <span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==42 "
@click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 活动提成:{{GetDetail.ReFinanceId}}</span> @click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 活动提成:{{GetDetail.ReFinanceId}}</span>
...@@ -843,19 +837,24 @@ ...@@ -843,19 +837,24 @@
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==51 " <span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==51 "
@click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 员工人头奖励:{{GetDetail.ReFinanceId}}</span> @click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 员工人头奖励:{{GetDetail.ReFinanceId}}</span>
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==49 " <span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==49 "
@click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 佣金/存折:{{GetDetail.ReFinanceId}}</span> @click="goassets2(GetDetail.ReFinanceId,GetDetail.OtherType)"> 佣金/存折:{{GetDetail.ReFinanceId}}</span>
<template v-if="GetDetail.RelevanceFrId"> <template v-if="GetDetail.RelevanceFrId">
<span class="fr" style="margin-right:10px;"> <span class="fr" style="margin-right:10px;">
相关单据:<span @click="goFinancal(sItem)" v-for="(sItem,sIndex) in getRelevanArr(GetDetail.RelevanceFrId)" style="text-decoration:underline;cursor:pointer;margin-right:5px;"> 相关单据:<span @click="goFinancal(sItem)" v-for="(sItem,sIndex) in getRelevanArr(GetDetail.RelevanceFrId)"
{{sItem}}</span> style="text-decoration:underline;cursor:pointer;margin-right:5px;">
{{sItem}}</span>
</span> </span>
</template> </template>
<template v-if="GetDetail.OtherType==28"> <template v-if="GetDetail.OtherType==28">
<span class="fr" v-if="GetDetail&&GetDetail.ReFinanceId" style="text-decoration: underline;cursor: pointer;color:red;" <span class="fr" v-if="GetDetail&&GetDetail.ReFinanceId"
@click="goTuikuanDetail('/user/billquery',GetDetail.ReFinanceId)" title="点击查看退款申请单"> 退款申请单:{{GetDetail.ReFinanceId}}</span> style="text-decoration: underline;cursor: pointer;color:red;"
<span class="fr" v-if="GetDetail&&GetDetail.ReFinanceId2" style="text-decoration: underline;cursor: pointer;margin-right:20px;color:red;" @click="goTuikuanDetail('/user/billquery',GetDetail.ReFinanceId)" title="点击查看退款申请单">
@click="goTuikuanDetail('/courseRefund',GetDetail.ReFinanceId2)" title="点击查看退款协议"> 退款协议:{{GetDetail.ReFinanceId2}}</span> 退款申请单:{{GetDetail.ReFinanceId}}</span>
<span class="fr" v-if="GetDetail&&GetDetail.ReFinanceId2"
style="text-decoration: underline;cursor: pointer;margin-right:20px;color:red;"
@click="goTuikuanDetail('/courseRefund',GetDetail.ReFinanceId2)" title="点击查看退款协议">
退款协议:{{GetDetail.ReFinanceId2}}</span>
</template> </template>
<span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==17" <span class="fr" style="text-decoration: underline;cursor: pointer;" v-if="GetDetail.OtherType==17"
@click="lookbreakage(GetDetail.ReFinanceId)"> 报损/报溢单:{{GetDetail.ReFinanceId}}</span> @click="lookbreakage(GetDetail.ReFinanceId)"> 报损/报溢单:{{GetDetail.ReFinanceId}}</span>
...@@ -971,7 +970,8 @@ ...@@ -971,7 +970,8 @@
<div> <div>
<p v-if="GetDetail.Type!==7">费用归属部门:<span class="_font_bold">{{GetDetail.DepartName}}</span></p> <p v-if="GetDetail.Type!==7">费用归属部门:<span class="_font_bold">{{GetDetail.DepartName}}</span></p>
<div style="display:flex;"> <div style="display:flex;">
<div style="margin-right:20px;text-decoration:underline;cursor:pointer;" v-if="GetDetail.OtherType==53" @click="goFinDetail(GetDetail)"> <div style="margin-right:20px;text-decoration:underline;cursor:pointer;" v-if="GetDetail.OtherType==53"
@click="goFinDetail(GetDetail)">
单据详情 单据详情
</div> </div>
<el-popover popper-class="detailsIT_Journal" width="250" trigger="click"> <el-popover popper-class="detailsIT_Journal" width="250" trigger="click">
...@@ -996,19 +996,23 @@ ...@@ -996,19 +996,23 @@
</el-popover> </el-popover>
</div> </div>
</div> </div>
<div lass="_explain" v-if="GetDetail.Type==2 && GetDetail.InvoiceType>0" style="flex-direction: column;align-items: flex-start;"> <div lass="_explain" v-if="GetDetail.Type==2 && GetDetail.InvoiceType>0"
<div style="color: #1273BC;">发票说明:</div> style="flex-direction: column;align-items: flex-start;">
<div style="display:flex"> <div style="color: #1273BC;">发票说明:</div>
<p >发票类型:<p style='font-weight: bold;'>{{GetDetail.InvoiceTypeName}}</p> </p> <div style="display:flex">
<p v-if="GetDetail.InvoiceType == 3" style="margin-left:30px">发票金额: <p style='font-weight: bold;' v-if="GetDetail.InvoiceType == 3">{{GetDetail.InvoiceMoney}}元</p></p> <p>发票类型:<p style='font-weight: bold;'>{{GetDetail.InvoiceTypeName}}</p>
</div> </p>
<div> <p v-if="GetDetail.InvoiceType == 3" style="margin-left:30px">发票金额: <p style='font-weight: bold;'
发票备注:{{GetDetail.InvoiceRemark == null || GetDetail.InvoiceRemark==''?'无':GetDetail.InvoiceRemark}} v-if="GetDetail.InvoiceType == 3">{{GetDetail.InvoiceMoney}}元</p>
</div> </p>
</div>
<div>
发票备注:{{GetDetail.InvoiceRemark == null || GetDetail.InvoiceRemark==''?'无':GetDetail.InvoiceRemark}}
</div>
</div> </div>
</div> </div>
<my-HB-Bill v-if="GetDetail.Is_Merge===1 && ZhiDanRen!==bossID" :ID="FrID" :FrID='FrID' :GetDetail="GetDetail" <my-HB-Bill v-if="GetDetail.Is_Merge===1 && ZhiDanRen!==bossID" :ID="FrID" :FrID='FrID' :GetDetail="GetDetail"
:isPrintPage="false" :width="widthSon" :color="colorSon"></my-HB-Bill> :isPrintPage="false" :width="widthSon" :color="colorSon"></my-HB-Bill>
<!-- <myDJieBill v-if="GetDetail.DijieBathFinanceList && GetDetail.DijieBathFinanceList.length" :ID="GetDetail.FrID" :isPrintPage="false" :width="widthSon" :color="colorSon"/> --> <!-- <myDJieBill v-if="GetDetail.DijieBathFinanceList && GetDetail.DijieBathFinanceList.length" :ID="GetDetail.FrID" :isPrintPage="false" :width="widthSon" :color="colorSon"/> -->
...@@ -1090,15 +1094,15 @@ ...@@ -1090,15 +1094,15 @@
</div> </div>
</div> </div>
<div v-if="ConfigInfo && ConfigInfo.Enable==1 && getreceipt() && ishowSJ "> <div v-if="ConfigInfo && ConfigInfo.Enable==1 && getreceipt() && ishowSJ ">
<p class="_splic" > <p class="_splic">
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
</p> </p>
<div class="_tit _tit2 w890px ConfigInfoStyle"> <div class="_tit _tit2 w890px ConfigInfoStyle">
<mySJModule :FrID='ID' :GetDetail="GetDetail" @gbError='getSJstate'></mySJModule> <mySJModule :FrID='ID' :GetDetail="GetDetail" @gbError='getSJstate'></mySJModule>
</div> </div>
</div> </div>
<p class="_splic"> <p class="_splic">
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
</p> </p>
...@@ -1382,7 +1386,7 @@ ...@@ -1382,7 +1386,7 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<a id='groupTourOrder_DownLoad' target="_blank" style="display:none">1不要删除</a> <a id='groupTourOrder_DownLoad' target="_blank" style="display:none">1不要删除</a>
<classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClass" @success="refreshClass"> <classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClass" @success="refreshClass">
</classinfo-form> </classinfo-form>
...@@ -1409,7 +1413,7 @@ ...@@ -1409,7 +1413,7 @@
import czBillModule from "../components/czBillModule.vue"; import czBillModule from "../components/czBillModule.vue";
import mySJModule from "../components/mySJModule.vue"; import mySJModule from "../components/mySJModule.vue";
import { import {
UploadSelfFile UploadSelfFile
} from '../../../api/common/common' } from '../../../api/common/common'
...@@ -1503,8 +1507,8 @@ ...@@ -1503,8 +1507,8 @@
isShowviewQuo: false, //是否显示预览报价单 isShowviewQuo: false, //是否显示预览报价单
rId: 0, rId: 0,
showbohui: false, //5-10新加 showbohui: false, //5-10新加
ConfigInfo:null,//收据配置数据 ConfigInfo: null, //收据配置数据
ishowSJ:true,//收据是否显示 ishowSJ: true, //收据是否显示
} }
}, },
components: { components: {
...@@ -2195,42 +2199,45 @@ ...@@ -2195,42 +2199,45 @@
}, },
}) })
}, },
goassets2(ID,OtherType){ goassets2(ID, OtherType) {
var tempStr = '' var tempStr = ''
if(OtherType==31){ if (OtherType == 31) {
tempStr = '/financial/financalDocument/PropertyProcurementDetails?id='+ID; tempStr = '/financial/financalDocument/PropertyProcurementDetails?id=' + ID;
}else if(OtherType==32){ } else if (OtherType == 32) {
tempStr = '/financial/financalDocument/SuppliesProcurementDetail?id='+ID; tempStr = '/financial/financalDocument/SuppliesProcurementDetail?id=' + ID;
}else if(OtherType==33){ } else if (OtherType == 33) {
tempStr = '/financial/financalDocument/InAndOutDdetails?id='+ID; tempStr = '/financial/financalDocument/InAndOutDdetails?id=' + ID;
}else if(OtherType==39){ } else if (OtherType == 39) {
tempStr = '/financial/userCommissionDetails?UserIds='+this.GetDetail.EduCommissionEmp+'&preriodId='+ID; tempStr = '/financial/userCommissionDetails?UserIds=' + this.GetDetail.EduCommissionEmp + '&preriodId=' + ID;
}else if(OtherType==26){ } else if (OtherType == 26) {
tempStr = '/course/rewardDetailed?TeacherIds='+this.GetDetail.EduCommissionEmp+'&Id='+ID; tempStr = '/course/rewardDetailed?TeacherIds=' + this.GetDetail.EduCommissionEmp + '&Id=' + ID;
}else if(OtherType==40 || OtherType== 41){ } else if (OtherType == 40 || OtherType == 41) {
tempStr = '/sale/activityList?Id='+ID; tempStr = '/sale/activityList?Id=' + ID;
}else if(OtherType==42){ } else if (OtherType == 42) {
tempStr = '/financial/reportform/activityCommissionDetails?id='+ID +'&UserIds='+this.GetDetail.EduCommissionEmp; tempStr = '/financial/reportform/activityCommissionDetails?id=' + ID + '&UserIds=' + this.GetDetail
}else if(OtherType==44){ .EduCommissionEmp;
tempStr = '/financial/studyabroad/sBuserCommissionDetails?preriodId='+ID; } else if (OtherType == 44) {
}else if(OtherType==47){ tempStr = '/financial/studyabroad/sBuserCommissionDetails?preriodId=' + ID;
tempStr = '/financial/contribution/CommissionUserDetailList?TeacherIds='+this.GetDetail.EduCommissionEmp+'&preriodId='+ID; } else if (OtherType == 47) {
}else if(OtherType==50){ tempStr = '/financial/contribution/CommissionUserDetailList?TeacherIds=' + this.GetDetail.EduCommissionEmp +
tempStr = '/financial/market/AchievementsUserDetailList?UserIds='+this.GetDetail.EduCommissionEmp+'&preriodId='+ID; '&preriodId=' + ID;
}else if(OtherType==51){ } else if (OtherType == 50) {
tempStr = '/financial/market/empBonusDetail?Id='+ID; tempStr = '/financial/market/AchievementsUserDetailList?UserIds=' + this.GetDetail.EduCommissionEmp +
}else if(OtherType==49){ '&preriodId=' + ID;
tempStr = '/financial/returnPassbook/returnpassbookStatistics?UnionCashOutId='+ID; } else if (OtherType == 51) {
tempStr = '/financial/market/empBonusDetail?Id=' + ID;
} else if (OtherType == 49) {
tempStr = '/financial/returnPassbook/returnpassbookStatistics?UnionCashOutId=' + ID;
} }
this.$router.push({ this.$router.push({
path: tempStr path: tempStr
}); });
}, },
//跳转到退款协议 //跳转到退款协议
goTuikuanDetail(path,Id){ goTuikuanDetail(path, Id) {
this.OpenNewUrl(path,{ this.OpenNewUrl(path, {
Id:Id Id: Id
}) })
}, },
lookbreakage(ID) { lookbreakage(ID) {
...@@ -2275,7 +2282,7 @@ ...@@ -2275,7 +2282,7 @@
query: { query: {
'ClassId': item.ClassId, 'ClassId': item.ClassId,
'School_Id': item.School_Id, 'School_Id': item.School_Id,
'ClassName': encodeURI(item.ClassName) , 'ClassName': encodeURI(item.ClassName),
} }
}) })
...@@ -2314,38 +2321,38 @@ ...@@ -2314,38 +2321,38 @@
} }
}, },
//数组字符串转数组 //数组字符串转数组
getRelevanArr(Relevance){ getRelevanArr(Relevance) {
var Arr = []; var Arr = [];
if(Relevance){ if (Relevance) {
Arr = Relevance.split(','); Arr = Relevance.split(',');
} }
return Arr; return Arr;
}, },
//跳转 //跳转
goFinancal(item){ goFinancal(item) {
this.OpenNewUrl('/financial/financalDocument/FinancialDocumentsDetail', { this.OpenNewUrl('/financial/financalDocument/FinancialDocumentsDetail', {
"id": item "id": item
}); });
}, },
getReceiptif(){ getReceiptif() {
getReceiptConfigInfo({}).then(res => { getReceiptConfigInfo({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.ConfigInfo = res.Data; this.ConfigInfo = res.Data;
} }
}) })
}, },
getreceipt(){ getreceipt() {
if(this.ConfigInfo.TempleteIds.indexOf(this.GetDetail.TemplateId)!=-1){ if (this.ConfigInfo.TempleteIds.indexOf(this.GetDetail.TemplateId) != -1) {
return true return true
}else{ } else {
return false return false
} }
}, },
getSJstate(){ getSJstate() {
this.ishowSJ = false this.ishowSJ = false
}, },
//跳转至详情 //跳转至详情
goFinDetail(obj){ goFinDetail(obj) {
this.$router.push({ this.$router.push({
path: '/financial/returnPassbook/ReturnUserList', path: '/financial/returnPassbook/ReturnUserList',
query: { query: {
...@@ -2355,15 +2362,13 @@ ...@@ -2355,15 +2362,13 @@
} }
}) })
} }
}, },
mounted() { mounted() {
this.GetAuth(); this.GetAuth();
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
this.qjGroupId = this.QjGroupId(); this.qjGroupId = this.QjGroupId();
this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail(this.ID)
this.getReceiptif()//获取收据配置 this.getReceiptif() //获取收据配置
this.queryMsg.FinanceId = this.$route.query.id; this.queryMsg.FinanceId = this.$route.query.id;
if (this.$route.query.Conditon) { if (this.$route.query.Conditon) {
this.returnCode = this.$route.query.Conditon; this.returnCode = this.$route.query.Conditon;
...@@ -2371,5 +2376,4 @@ ...@@ -2371,5 +2376,4 @@
this.getTuikuan(); this.getTuikuan();
} }
} }
</script>
</script> \ No newline at end of file
<style> <style>
.baseSet_Title { .baseSet_Title {
width: 120px !important; width: 120px !important;
padding: 18px 0 0 16px; padding: 18px 0 0 16px;
text-align: right; text-align: right;
} }
.ReturnperiodsList .border-bottom {
/* border-bottom: 1px dashed #EEE; */ .ReturnperiodsList .border-bottom {
padding-bottom: 5px; padding-bottom: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
.ReturnperiodsList .text-bottom{
height: 32px;line-height: 32px; margin-bottom: 10px; .ReturnperiodsList .text-bottom {
} height: 32px;
.ReturnperiodsList ._icon_btn i.icon-sousuo { line-height: 32px;
margin-bottom: 10px;
}
.ReturnperiodsList ._icon_btn i.icon-sousuo {
background-color: #47BF8C; background-color: #47BF8C;
} }
.ReturnperiodsList ._icon_btn .icon-add{
.ReturnperiodsList ._icon_btn .icon-add {
background-color: #47BF8C; background-color: #47BF8C;
} }
.ReturnperiodsList ._icon_btn i {
.ReturnperiodsList ._icon_btn i {
width: 26px; width: 26px;
height: 26px; height: 26px;
display: inline-block; display: inline-block;
...@@ -30,208 +36,176 @@ ...@@ -30,208 +36,176 @@
cursor: pointer; cursor: pointer;
outline: none; outline: none;
} }
.ReturnperiodsList .el-table td,.el-table th{
.ReturnperiodsList .el-table td,
.el-table th {
padding: 5px 0; padding: 5px 0;
} }
</style>
<template>
<div class="page-body ReturnperiodsList">
</style> <div class="page-search row items-center">
<template> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="page-body ReturnperiodsList"> <div style="display:flex;justify-content: space-between;width: 100%;align-items: center;">
<div class="page-search row items-center"> <div class="block" style="display:flex;">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <span style="margin-right: 5px;">月份筛选</span>
<!-- <div style="margin-right: 20px;" v-if='iscMaker==true'> <el-date-picker v-model="msg.Month" value-format="yyyy-MM" type="month" placeholder="选择月"
<div class="block"> @change="handleCurrentChanges(1)">
<span style="margin-right: 5px;">校区</span> </el-date-picker>
<el-select v-model="msg.SchoolId" filterable @change="handleCurrentChanges(1)"> </div>
<el-option value="-1" label="不限"></el-option> <div v-if='isgenerate==true'>
<el-option v-for='item in CompanyList' :label='item.SName' :value='item.SId' :key='item.SId'></el-option> <q-btn :loading="loading1"  color="primary"  size="11px"  label="生成幸福存折"  @click="scCommission"
</el-select>  style="height:28px" />
</div> <div style="font-size: 10px;color: #666;">*默认生成上月幸福存折</div>
</div> -->
<div style="display:flex;justify-content: space-between;width: 100%;align-items: center;" >
<div class="block" style="display:flex;">
<span style="margin-right: 5px;">月份筛选</span>
<el-date-picker
v-model="msg.Month"
value-format="yyyy-MM"
type="month"
placeholder="选择月"
@change="handleCurrentChanges(1)"
>
</el-date-picker>
</div>
<div v-if='isgenerate==true'>
<q-btn :loading="loading1" color="primary" size="11px" label="生成幸福存折" @click="scCommission" style="height:28px"/>
<div style="font-size: 10px;color: #666;">*默认生成上月幸福存折</div>
</div>
</div>
</div>
</div> </div>
<template >
<el-table
ref="filterTable"
:data="tableData"
v-loading = 'loading'
:header-cell-style="{backgroundColor:'#f5f6f7', color: '#a8a8b3'}"
border
style="width: 100%">
<!-- <el-table-column prop="Id" label="ID" ></el-table-column> -->
<el-table-column prop="BatchName" label="周期" ></el-table-column>
<el-table-column prop="TotalMoney" label="累计金额" > </el-table-column>
<el-table-column prop="CreateByName" label="创建人" > </el-table-column>
<el-table-column prop="CreateDate" label="创建时间" > </el-table-column>
<el-table-column label="操作" >
<template slot-scope="scope">
<div class="_icon_btn">
<el-tooltip class="item" effect="dark" content="查看" placement="top">
<i class="iconfont icon-sousuo"
@click="goUrl(scope.row.Id)"></i>
</el-tooltip>
</div>
</template>
</el-table-column>
</el-table>
<div style="margin-top: 10px;text-align: center;">
<el-pagination background @current-change="handleCurrentChanges" layout="total,prev, pager, next, jumper" :current-page.sync="msg.PageIndex"
:page-size="msg.PageSize" :total='total'>
</el-pagination>
</div> </div>
</div>
</template>
</div> </div>
</template> <template>
<script> <el-table ref="filterTable" :data="tableData" v-loading='loading'
import { :header-cell-style="{backgroundColor:'#f5f6f7', color: '#a8a8b3'}" border style="width: 100%">
getSchoolDropdown <el-table-column prop="BatchName" label="周期"></el-table-column>
} from '../../../api/school/index' <el-table-column prop="TotalMoney" label="累计金额"> </el-table-column>
<el-table-column prop="CreateByName" label="创建人"> </el-table-column>
import{ <el-table-column prop="CreateDate" label="创建时间"> </el-table-column>
getCommissionPeriodsPageList, <el-table-column label="操作">
setSellCommissionRule, <template slot-scope="scope">
setUserReturnCommission, <div class="_icon_btn">
getSellAchievementsSendEmployeeList, <el-tooltip class="item" effect="dark" content="查看" placement="top">
setSellAchievementsSendEmployee <i class="iconfont icon-sousuo" @click="goUrl(scope.row.Id)"></i>
} from '../../../api/finance/index' </el-tooltip>
export default { </div>
meta: { </template>
title: "幸福存折期数列表" </el-table-column>
}, </el-table>
props: {}, <div style="margin-top: 10px;text-align: center;">
components: {}, <el-pagination background @current-change="handleCurrentChanges" layout="total,prev, pager, next, jumper"
data() { :current-page.sync="msg.PageIndex" :page-size="msg.PageSize" :total='total'>
return { </el-pagination>
loading: false, </div>
loading1: false, </template>
value2:'', </div>
//列表数据参数 </template>
msg: { <script>
PageIndex: 1, import {
PageSize: 15, getSchoolDropdown
SchoolId:'-1', } from '../../../api/school/index'
Month:'',
CommissionType:2, import {
}, getCommissionPeriodsPageList,
setSellCommissionRule,
pageCount: 0, setUserReturnCommission,
persistent: false, getSellAchievementsSendEmployeeList,
listData:{}, setSellAchievementsSendEmployee
tableData:[], } from '../../../api/finance/index'
total:0, export default {
CompanyList:[], meta: {
isgenerate:false,//是否有生成的权限 title: "幸福存折期数列表"
iscMaker:false,//是否有制单的权限 },
SendEmployeeList:[],//可发放提成的用户列表 props: {},
costmode:false, components: {},
multipleSelection:[], data() {
totalAmount:0,//选中的金额总额 return {
CheckID:0, loading: false,
loading1: false,
value2: '',
//列表数据参数
msg: {
PageIndex: 1,
PageSize: 15,
SchoolId: '-1',
Month: '',
CommissionType: 2,
},
pageCount: 0,
persistent: false,
listData: {},
tableData: [],
total: 0,
CompanyList: [],
isgenerate: false, //是否有生成的权限
iscMaker: false, //是否有制单的权限
SendEmployeeList: [], //可发放提成的用户列表
costmode: false,
multipleSelection: [],
totalAmount: 0, //选中的金额总额
CheckID: 0,
}
},
created() {
let userinfo = this.getLocalStorage();
userinfo.ActionMenuList.map(x => { //判断权限
if (x.FunctionCode == "SAGenerate_Commission") { //判断是否有生成的权限
this.isgenerate = true;
} }
}, if (x.FunctionCode == "SACommission_maker") { //判断是否有制单的权限
created() { this.iscMaker = true;
let userinfo = this.getLocalStorage(); }
userinfo.ActionMenuList.map(x=>{//判断权限 })
if(x.FunctionCode == "SAGenerate_Commission"){//判断是否有生成的权限 var myDate = new Date();
this.isgenerate = true; myDate.setMonth(myDate.getMonth() - 1);
} },
if(x.FunctionCode == "SACommission_maker"){//判断是否有制单的权限 mounted() {
this.iscMaker = true; this.getList(); //获取提成周期列表
},
methods: {
getList() {
this.loading = true;
getCommissionPeriodsPageList(this.msg).then(res => {
if (res.Code == 1) {
this.loading = false;
this.tableData = res.Data.PageData
this.total = res.Data.Count
} }
}) })
var myDate=new Date();
myDate.setMonth(myDate.getMonth()-1);
// this.msg.Month = myDate.getFullYear() + "-" + (myDate.getMonth()+1)
}, },
mounted() { scCommission() { //生成提成
this.getList();//获取提成周期列表 if (this.loading1 == false) {
// this.getBranchList() this.loading1 = true;
setUserReturnCommission({
type: 2
}).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '生成提成成功',
position: 'top'
})
this.getList()
}
this.loading1 = false;
}).catch(err => {
this.loading1 = false;
})
}
}, },
methods: { getBranchList() { //获取校区
getList(){ getSchoolDropdown({}).then(res => {
this.loading = true; this.CompanyList = res.Data;
getCommissionPeriodsPageList(this.msg).then(res => { }).catch(() => {
if (res.Code == 1) {
this.loading = false;
this.tableData = res.Data.PageData
this.total = res.Data.Count
}
})
},
scCommission(){//生成提成
if(this.loading1 == false){
this.loading1= true;
setUserReturnCommission({type:2}).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '生成提成成功',
position: 'top'
})
this.getList()
}
this.loading1= false;
}).catch(err=>{
this.loading1= false;
})
}
},
getBranchList(){//获取校区
getSchoolDropdown({}).then(res => {
this.CompanyList = res.Data;
}).catch(() => {
}) })
},
goUrl(id ) {
this.$router.push({
path: '/financial/returnPassbook/ReturnUserList',
query: {
"id": id,
"CommissionType": 2,
blank: 'y',
}
})
},
handleCurrentChanges(val){
this.msg.PageIndex= val;
this.getList()
},
}, },
} goUrl(id) {
this.$router.push({
</script> path: '/financial/returnPassbook/ReturnUserList',
<style lang="sass"> query: {
@import url('~assets/css/table.sass') "id": id,
"CommissionType": 2,
</style> blank: 'y',
}
\ No newline at end of file })
},
handleCurrentChanges(val) {
this.msg.PageIndex = val;
this.getList()
},
},
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
<style> <style>
.baseSet_Title { .baseSet_Title {
width: 120px !important; width: 120px !important;
padding: 18px 0 0 16px; padding: 18px 0 0 16px;
text-align: right; text-align: right;
} }
.CommissionDetail .border-bottom { .CommissionDetail .border-bottom {
/* border-bottom: 1px dashed #EEE; */
padding-bottom: 5px; padding-bottom: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
.CommissionDetail .text-bottom { .CommissionDetail .text-bottom {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.CommissionDetail ._icon_btn i.icon-sousuo { .CommissionDetail ._icon_btn i.icon-sousuo {
background-color: #47bf8c; background-color: #47bf8c;
} }
.CommissionDetail ._icon_btn i { .CommissionDetail ._icon_btn i {
width: 26px; width: 26px;
height: 26px; height: 26px;
display: inline-block; display: inline-block;
...@@ -32,473 +31,365 @@ ...@@ -32,473 +31,365 @@
margin-right: 10px; margin-right: 10px;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
} }
.CommissionDetail .el-table td, .CommissionDetail .el-table td,
.el-table th { .el-table th {
padding: 5px 0; padding: 5px 0;
} }
</style> </style>
<template> <template>
<div class="page-body CommissionDetail"> <div class="page-body CommissionDetail">
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div style="margin-right: 10px;"> <div style="margin-right: 10px;">
<q-btn <q-btn color="primary" size="11px" label="返回" @click="goreturn" style="margin-left:10px" />
color="primary" </div>
size="11px" <div class="col row wrap q-mr-lg q-col-gutter-md">
label="返回" <div class="col-3">
@click="goreturn" <q-select filled stack-label input-debounce="0" option-value="Id" @input="getlaiyuan" option-label="Name"
style="margin-left:10px" v-model="msg.OrderSourceType" :options="customFromList" label="来源" dense emit-value map-options>
/> </q-select>
</div> </div>
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col-3" v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3">
<!-- <div class="col-3"> <q-select filled stack-label clearable v-model="msg.OrderSourceId" :dense="false" :options="myEmployeeList"
<q-select use-input @input="getList" label="人员" @filter="filterEmployee" option-label="EmployeeName"
filled option-value="Id" emit-value map-options>
stack-label <template v-slot:no-option>
use-input <q-item>
input-debounce="0" <q-item-section class="text-grey">未找到相关数据</q-item-section>
option-value="SId" </q-item>
@input="getList" </template>
option-label="SName" </q-select>
v-model="msg.SchoolId" </div>
:options="CompanyList" <div class="col-3" v-if="msg.OrderSourceType == 2">
label="校区" <q-select filled stack-label v-model="msg.OrderSourceId" clearable :dense="false" :options="customList"
:dense="false" use-input @input="getList" label="关联同行" @filter="filterFn" option-label="CustomerName"
emit-value option-value="CustomerId" emit-value map-options>
map-options <template v-slot:no-option>
></q-select> <q-item>
</div> --> <q-item-section class="text-grey">未找到相关数据</q-item-section>
<!-- <div class="col-3"> </q-item>
<q-select </template>
filled </q-select>
stack-label </div>
input-debounce="0" <div class="col-3" v-if="msg.OrderSourceType == 4">
option-value="Id" <q-select filled clearable stack-label v-model="msg.OrderSourceId" :dense="false" :options="InvitationList"
@input="getList" use-input @input="getList" label="转介人" @filter="filterFnStudent" option-label="StuName"
option-label="Name" option-value="StuId" emit-value map-options>
v-model="msg.Status" <template v-slot:no-option>
:options="StatusList" <q-item>
label="状态" <q-item-section class="text-grey">未找到相关数据</q-item-section>
:dense="false" </q-item>
emit-value </template>
map-options </q-select>
></q-select> </div>
</div> -->
<div class="col-3">
<q-select
filled
stack-label
input-debounce="0"
option-value="Id"
@input="getlaiyuan"
option-label="Name"
v-model="msg.OrderSourceType"
:options="customFromList"
label="来源"
dense
emit-value
map-options
></q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3">
<q-select
filled
stack-label
clearable
v-model="msg.OrderSourceId"
:dense="false"
:options="myEmployeeList"
use-input
@input="getList"
label="人员"
@filter="filterEmployee"
option-label="EmployeeName"
option-value="Id"
emit-value
map-options
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">未找到相关数据</q-item-section>
</q-item>
</template>
</q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 2">
<q-select
filled
stack-label
v-model="msg.OrderSourceId"
clearable
:dense="false"
:options="customList"
use-input
@input="getList"
label="关联同行"
@filter="filterFn"
option-label="CustomerName"
option-value="CustomerId"
emit-value
map-options
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">未找到相关数据</q-item-section>
</q-item>
</template>
</q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 4">
<q-select
filled
clearable
stack-label
v-model="msg.OrderSourceId"
:dense="false"
:options="InvitationList"
use-input
@input="getList"
label="转介人"
@filter="filterFnStudent"
option-label="StuName"
option-value="StuId"
emit-value
map-options
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">未找到相关数据</q-item-section>
</q-item>
</template>
</q-select>
</div>
</div>
</div>
</div> </div>
<template> </div>
<el-table
ref="filterTable"
:data="tableData"
v-loading="loading"
:header-cell-style="{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }"
border
style="width: 100%"
>
<el-table-column prop="SchoolName" label="校区"></el-table-column>
<el-table-column
prop="UserName"
label="人员"
:filters="UserNamelist"
:filter-method="filterHandler"
></el-table-column>
<el-table-column prop="OrderSourceType" label="类型">
<template slot-scope="scope">
{{getOrderSourceType(scope.row.OrderSourceType)}}
</template>
</el-table-column>
<el-table-column
prop="StudentCount"
label="学生数量"
sortable
:sort-method="StudentCount"
></el-table-column>
<el-table-column
prop="CommissionMoeny"
label="提成金额"
sortable
:sort-method="CommissionMoeny"
></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<div class="_icon_btn">
<el-tooltip class="item" effect="dark" content="查看" placement="top">
<i
class="iconfont icon-sousuo"
@click="goUrl('returnPassbook/returnpassbookStatistics', scope.row)"
></i>
</el-tooltip>
</div>
</template>
</el-table-column>
</el-table>
</template>
</div> </div>
<template>
<el-table ref="filterTable" :data="tableData" v-loading="loading"
:header-cell-style="{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }" border style="width: 100%">
<el-table-column prop="SchoolName" label="校区"></el-table-column>
<el-table-column prop="UserName" label="人员" :filters="UserNamelist" :filter-method="filterHandler">
</el-table-column>
<el-table-column prop="OrderSourceType" label="类型">
<template slot-scope="scope">
{{getOrderSourceType(scope.row.OrderSourceType)}}
</template>
</el-table-column>
<el-table-column prop="StudentCount" label="学生数量" sortable :sort-method="StudentCount"></el-table-column>
<el-table-column prop="CommissionMoeny" label="提成金额" sortable :sort-method="CommissionMoeny"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<div class="_icon_btn">
<el-tooltip class="item" effect="dark" content="查看" placement="top">
<i class="iconfont icon-sousuo"
@click="goUrl('returnPassbook/returnpassbookStatistics', scope.row)"></i>
</el-tooltip>
</div>
</template>
</el-table-column>
</el-table>
</template>
</div>
</template> </template>
<script> <script>
import { import {
GetClassTypePageList, GetClassTypePageList,
} from '../../../api/system/index'; } from '../../../api/system/index';
import { import {
GetStudentList, GetStudentList,
} from '../../../api/course/class'; } from '../../../api/course/class';
import { import {
getCommissionUserList, getCommissionUserList,
} from '../../../api/finance/index' } from '../../../api/finance/index'
import { import {
getSchoolDropdown, getSchoolDropdown,
getStudentDorpDownList getStudentDorpDownList
} from "../../../api/school/index"; } from "../../../api/school/index";
import { import {
queryEmployee queryEmployee
} from '../../../api/users/user' } from '../../../api/users/user'
import { import {
CreateTypeList, CreateTypeList,
GetCustomerList GetCustomerList
} from '../../../api/sale/sale' } from '../../../api/sale/sale'
export default { export default {
meta: { meta: {
title: "销售提成详情" title: "销售提成详情"
}, },
props: {}, props: {},
components: {}, components: {},
data() { data() {
return { return {
loading: false, loading: false,
//列表数据参数 //列表数据参数
msg: { msg: {
BatchId: 0, BatchId: 0,
SchoolId: '-1', SchoolId: '-1',
Status: '-2', Status: '-2',
OrderSourceType: '-1', OrderSourceType: '-1',
OrderSourceId: 0, OrderSourceId: 0,
Q_SelectNormal: '2', Q_SelectNormal: '2',
UserDept:0 UserDept: 0
}, },
pageCount: 0, pageCount: 0,
persistent: false, persistent: false,
tableData: [], tableData: [],
CompanyList: [], CompanyList: [],
StatusList: [ StatusList: [{
{ Id: '-2', Name: '不限' }, { Id: '-1', Name: '不返佣' }, { Id: '0', Name: '待返佣' }, { Id: '1', Name: '已返佣到账户' }, { Id: '2', Name: '佣金已提现' }, Id: '-2',
], Name: '不限'
see_tcdetailed: false, }, {
customFromList: [], Id: '-1',
UserNamelist: [], Name: '不返佣'
employeeList: [], }, {
myEmployeeList: [], Id: '0',
Name: '待返佣'
}, {
Id: '1',
Name: '已返佣到账户'
}, {
Id: '2',
Name: '佣金已提现'
}, ],
see_tcdetailed: false,
customFromList: [],
UserNamelist: [],
employeeList: [],
myEmployeeList: [],
TransListData: [], //转介人数据 TransListData: [], //转介人数据
MyTransListData: [], MyTransListData: [],
customList: [], //同行列表 customList: [], //同行列表
allCustomList: [], //所有同行列表 allCustomList: [], //所有同行列表
InvitationList: [], //学员下拉数据 InvitationList: [], //学员下拉数据
AllInvitationList: [], AllInvitationList: [],
} }
},
created() {
}, },
created() {},
mounted() { mounted() {
if (this.$route.query && this.$route.query.id) { console.log("this.$route.query", this.$route.query)
this.msg.BatchId = this.$route.query.id if (this.$route.query && this.$route.query.id) {
} this.msg.BatchId = this.$route.query.id
if (this.$route.query.ReFinanceId2){ }
this.msg.UserDept = this.$route.query.ReFinanceId2; if (this.$route.query.ReFinanceId2) {
} this.msg.UserDept = this.$route.query.ReFinanceId2;
this.getList() }
this.getBranchList() this.getList()
this.getCustomFrom() this.getBranchList()
this.getEmployeeList() this.getCustomFrom()
this.getStudentDorpDown() this.getEmployeeList()
this.GetCustomerList() this.getStudentDorpDown()
this.getStudentList();//学员下拉 this.GetCustomerList()
this.getStudentList(); //学员下拉
}, },
methods: { methods: {
getList() { getList() {
this.loading = true; this.loading = true;
let msg = JSON.parse(JSON.stringify(this.msg)) let msg = JSON.parse(JSON.stringify(this.msg))
if (msg.OrderSourceId == ''|| msg.OrderSourceId==null) { if (msg.OrderSourceId == '' || msg.OrderSourceId == null) {
msg.OrderSourceId = 0 msg.OrderSourceId = 0
} }
getCommissionUserList(msg).then(res => { getCommissionUserList(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.loading = false; this.loading = false;
this.tableData = res.Data; this.tableData = res.Data;
this.UserNamelist = [];
this.UserNamelist = []; this.tableData.forEach(x => {
this.tableData.forEach(x => { let obj3 = {
let obj3 = { text: x.UserName,
text: x.UserName, value: x.UserName
value: x.UserName }
} this.UserNamelist.push(obj3)
this.UserNamelist.push(obj3)
})
this.UserNamelist = this.unique(this.UserNamelist)
}
})
},
getlaiyuan() {
if (this.msg.OrderSourceType == -1) {
this.msg.OrderSourceId = 0
} else {
this.msg.OrderSourceId = ''
}
this.getList()
},
getBranchList() {//获取校区
getSchoolDropdown({}).then(res => {
let obj = {
SName: '不限',
SId: '-1'
}
this.CompanyList = res.Data;
this.CompanyList.unshift(obj);
}).catch(() => {
}) })
}, this.UserNamelist = this.unique(this.UserNamelist)
//获取客户来源 }
getCustomFrom() { })
CreateTypeList({}).then(res => { },
if (res.Code == 1) { getlaiyuan() {
let obj = { if (this.msg.OrderSourceType == -1) {
Name: '不限', this.msg.OrderSourceId = 0
Id: '-1' } else {
} this.msg.OrderSourceId = ''
this.customFromList = res.Data; }
this.customFromList.unshift(obj); this.getList()
},
getBranchList() { //获取校区
getSchoolDropdown({}).then(res => {
let obj = {
SName: '不限',
SId: '-1'
}
this.CompanyList = res.Data;
this.CompanyList.unshift(obj);
}).catch(() => {
} })
}) },
}, //获取客户来源
getOrderSourceType(Id){ getCustomFrom() {
let Name = '' CreateTypeList({}).then(res => {
this.customFromList.forEach(x=>{ if (res.Code == 1) {
if(x.Id == Id){ let obj = {
Name = x.Name Name: '不限',
} Id: '-1'
})
return Name
},
//筛选转介人
filterStudent(val, update, abort) {
update(() => {
this.MyTransListData = this.TransListData.filter(
v => v.StuName.indexOf(val) > -1
);
});
},
unique(arr, Name) { //数组去重
const res = new Map();
return arr.filter(
(list) => !res.has(list.text) && res.set(list.text, 1)
);
},
//筛选员工
filterEmployee(val, update, abort) {
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
},
//获取员工列表
getEmployeeList() {
queryEmployee({
IsLeave: 1
}).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
})
},
//获取转介人下拉
getStudentDorpDown() {
getStudentDorpDownList().then(res => {
if (res.Code == 1) {
this.TransListData = res.Data;
this.MyTransListData = res.Data;
}
})
},
//获取客户下拉数据
GetCustomerList() {
let msg = {
QCreateBy: 0
} }
GetCustomerList(msg).then(res => { this.customFromList = res.Data;
if (res.Code == 1) { this.customFromList.unshift(obj);
this.customList = res.Data; }
this.allCustomList = res.Data; })
} },
}) getOrderSourceType(Id) {
}, let Name = ''
//筛选客户 this.customFromList.forEach(x => {
filterFn(val, update) { if (x.Id == Id) {
update(() => { Name = x.Name
if (val === "") { }
this.customList = JSON.parse(JSON.stringify(this.allCustomList)); })
} else { return Name
const needle = val.toLowerCase(); },
this.customList = this.allCustomList.filter( //筛选转介人
(v) => v.CustomerName.toLowerCase().indexOf(needle) > -1 filterStudent(val, update, abort) {
); update(() => {
} this.MyTransListData = this.TransListData.filter(
}); v => v.StuName.indexOf(val) > -1
}, );
//获取学员下拉信息 });
getStudentList() { },
var qMsg = { unique(arr, Name) { //数组去重
SchoolId: this.msg.SchoolId const res = new Map();
}; return arr.filter(
GetStudentList(qMsg).then(res => { (list) => !res.has(list.text) && res.set(list.text, 1)
if (res.Code == 1) { );
var jsonData = res.Data; },
if (jsonData && jsonData.length > 0) { //筛选员工
this.AllInvitationList = JSON.parse(JSON.stringify(jsonData)); filterEmployee(val, update, abort) {
this.InvitationList = JSON.parse(JSON.stringify(jsonData)); update(() => {
} this.myEmployeeList = this.employeeList.filter(
} v => v.EmployeeName.indexOf(val) > -1
}) );
}, });
filterFnStudent(val, update) { },
update(() => { //获取员工列表
if (val === '') { getEmployeeList() {
this.InvitationList = JSON.parse(JSON.stringify(this.AllInvitationList)) queryEmployee({
} else { IsLeave: 1
const needle = val.toLowerCase() }).then(res => {
this.InvitationList = this.AllInvitationList.filter(v => v.StuName.toLowerCase().indexOf(needle) > -1) this.employeeList = res.Data;
} this.myEmployeeList = res.Data;
}) })
}, },
//获取转介人下拉
getStudentDorpDown() {
getStudentDorpDownList().then(res => {
goUrl(path, row) { if (res.Code == 1) {
this.$router.push({ this.TransListData = res.Data;
path: '/financial/' + path, this.MyTransListData = res.Data;
query: { }
preriodId: this.$route.query.id, })
CommissionType: this.$route.query.CommissionType, },
OrderSourceType:row.OrderSourceType, //获取客户下拉数据
OrderSourceId:row.OrderSourceId, GetCustomerList() {
blank: 'y', let msg = {
} QCreateBy: 0
})
},
filterHandler(value, row, column) {
const property = column['property'];
return row[property] === value;
},
StudentCount(a, b, c) {
return a.StudentCount - b.StudentCount;
},
CommissionMoeny(a, b) {
return a.CommissionMoeny - b.CommissionMoeny;
},
goreturn() {
this.$router.go(-1);
} }
GetCustomerList(msg).then(res => {
if (res.Code == 1) {
this.customList = res.Data;
this.allCustomList = res.Data;
}
})
},
//筛选客户
filterFn(val, update) {
update(() => {
if (val === "") {
this.customList = JSON.parse(JSON.stringify(this.allCustomList));
} else {
const needle = val.toLowerCase();
this.customList = this.allCustomList.filter(
(v) => v.CustomerName.toLowerCase().indexOf(needle) > -1
);
}
});
},
//获取学员下拉信息
getStudentList() {
var qMsg = {
SchoolId: this.msg.SchoolId
};
GetStudentList(qMsg).then(res => {
if (res.Code == 1) {
var jsonData = res.Data;
if (jsonData && jsonData.length > 0) {
this.AllInvitationList = JSON.parse(JSON.stringify(jsonData));
this.InvitationList = JSON.parse(JSON.stringify(jsonData));
}
}
})
},
filterFnStudent(val, update) {
update(() => {
if (val === '') {
this.InvitationList = JSON.parse(JSON.stringify(this.AllInvitationList))
} else {
const needle = val.toLowerCase()
this.InvitationList = this.AllInvitationList.filter(v => v.StuName.toLowerCase().indexOf(needle) > -1)
}
})
},
goUrl(path, row) {
this.$router.push({
path: '/financial/' + path,
query: {
preriodId: this.$route.query.id,
CommissionType: this.$route.query.CommissionType,
OrderSourceType: row.OrderSourceType,
OrderSourceId: row.OrderSourceId,
blank: 'y',
}
})
},
filterHandler(value, row, column) {
const property = column['property'];
return row[property] === value;
},
StudentCount(a, b, c) {
return a.StudentCount - b.StudentCount;
},
CommissionMoeny(a, b) {
return a.CommissionMoeny - b.CommissionMoeny;
},
goreturn() {
this.$router.go(-1);
}
}, },
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass')
@import url('~assets/css/table.sass') </style>
</style> \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment