Commit fa3c9d78 authored by 罗超's avatar 罗超

1

parent 99514bfc
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
.color-black{ .color-black{
color:black !important; color:black !important;
} }
.border-b{
border-bottom: 1px solid #333;
}
</style> </style>
<template> <template>
...@@ -131,13 +134,6 @@ ...@@ -131,13 +134,6 @@
<p class="easyUpdateTime" v-if="UpdateStaus==1">正在更新,更新开始时间 {{UpdateStartTime}}</p> <p class="easyUpdateTime" v-if="UpdateStaus==1">正在更新,更新开始时间 {{UpdateStartTime}}</p>
<p class="easyUpdateTime" v-if="UpdateStaus==2">上次更新时间 {{UpdateStartTime}}<br />每日8点、12点、19点、22点数据更新~</p> --> <p class="easyUpdateTime" v-if="UpdateStaus==2">上次更新时间 {{UpdateStartTime}}<br />每日8点、12点、19点、22点数据更新~</p> -->
</div> </div>
<!-- <div style="margin-bottom:25px;" v-loading='loading'>
<v-table is-horizontal-resize column-width-drag :show-vertical-border="true" rowKeyFieldName="rowkey" style="width:100%" :columns="columns"
:table-data="DataList" :filter-method="filterMethod" :column-cell-class-name="columnCellClass"
@on-custom-comp="customCompFunc" @sort-change="sortChange" :row-click="rowClick" :row-dblclick="rowDbClick" :cell-span-option="cellSpanOption" >
</v-table>
</div> -->
<div style="width:100%; overflow-x:auto"> <div style="width:100%; overflow-x:auto">
<table :boeder="1" class="singeRowTable orderCompleteStatistics" style="width:3000px;border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0"> <table :boeder="1" class="singeRowTable orderCompleteStatistics" style="width:3000px;border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0">
<tr> <tr>
...@@ -188,36 +184,36 @@ ...@@ -188,36 +184,36 @@
<td>{{item.CourseName}}</td> <td>{{item.CourseName}}</td>
<td>{{item.ClassName}}</td> <td>{{item.ClassName}}</td>
<td>{{item.StudentName}}</td> <td>{{item.StudentName}}</td>
<td>{{item.EmployeeName}}</td> <td>{{item.CreateByName}}</td>
<td>{{item.TotalClassHours}}</td> <td>{{item.TotalClassHours}}</td>
<td>{{item.TotalUnitPrice}}</td> <td>{{item.TotalUnitPrice}}</td>
<td>{{item.TotalCourseFee}}</td> <td>{{item.TotalCourseFee}}</td>
<td>{{item.TotalBookFee}}</td><!--教材费--> <td>{{item.TotalBookFee}}</td><!--教材费-->
<td>{{item.TotalClassFee}}</td><!--课件费--> <td>{{item.TotalClassFee}}</td><!--课件费-->
<td>{{item.TotalClassFee}}</td><!--优惠金额--> <td>{{item.TotalDiscountMoney}}</td><!--优惠金额-------------------------->
<td>{{item.TotalMoney}}</td><!--合同总金额--> <td>{{item.TotalMoney}}</td><!--合同总金额-->
<!-- -收款信息(实收金额-- --> <!-- -收款信息(实收金额-- -->
<td> <td>
<div v-for="subitem in item.IncomeList" :key="item.id"> <div v-for="subitem in item.IncomeList" class="border-b">
{{ subitem.TradeDate }} {{ subitem.TradeDate }}
</div> </div>
</td><!--收款日期--> </td><!--收款日期-->
<td> <td>
<div v-for="subitem in item.IncomeList" :key="item.id"> <div v-for="subitem in item.IncomeList" class="border-b">
{{ subitem.Money }} {{ subitem.Money }}
</div> </div>
</td><!--收款金额--> </td><!--收款金额-->
<td> <td>
<div v-for="subitem in item.IncomeList"> <div v-for="subitem in item.IncomeList" class="border-b">
<div v-for="_subitem in subitem.TradeWayList"> <div v-for="_subitem in subitem.TradeWayList">
{{ _subitem.TypeName }} {{ _subitem.TypeName }}
</div> </div>
</div> </div>
</td><!--收款方式--> </td><!--收款方式-->
<td> <td>
<div v-for="subitem in item.IncomeList"> <div v-for="subitem in item.IncomeList" class="border-b">
<div v-for="_subitem in subitem.TradeWayList"> <div v-for="_subitem in subitem.TradeWayList" >
{{ _subitem.BankNo }} {{ _subitem.Alias||'/' }}
</div> </div>
</div> </div>
</td><!--收款账户--> </td><!--收款账户-->
...@@ -236,8 +232,8 @@ ...@@ -236,8 +232,8 @@
<!-- -剩余情况-- --> <!-- -剩余情况-- -->
<td>{{item.AdjustPrice}}</td><!--协调金额--> <td>{{item.AdjustPrice}}</td><!--协调金额-->
<td>{{item.SurplusCourseHours}}</td><!--剩余课时--> <td>{{item.SurplusCourseHours}}</td><!--剩余课时-->
<td :class="{'color-red':item.SurplusMoney<0,'color-green':item.SurplusMoney>0&&item.SurplusMoney<500,'color-black':item.SurplusMoney=0||item.SurplusMoney>=500}">{{item.SurplusMoney}}</td><!--剩余金额--> <td :class="{'color-red':item.SurplusMoney<0,'color-green':item.SurplusMoney>0&&item.SurplusMoney<500,'color-black':item.SurplusMoney==0||item.SurplusMoney>=500}">{{item.SurplusMoney}}</td><!--剩余金额-->
<td><q-btn color="primary" label="协调金额" @click="show($event),AdjustPriceMsg.ContractId=item.Id,AdjustPriceMsg.AdjustPrice=item.AdjustPrice"/></td><!--操作--> <td><q-btn color="primary" style="width:100px;" label="协调金额" @click="show($event),AdjustPriceMsg.ContractId=item.Id,AdjustPriceMsg.AdjustPrice=item.AdjustPrice"/></td><!--操作-->
</tr> </tr>
</template> </template>
...@@ -272,14 +268,14 @@ ...@@ -272,14 +268,14 @@
</template> </template>
<div v-if="DataList.length>0"> <div v-if="DataList.length>0">
<!-- <el-pagination <el-pagination
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" :current-page.sync="msg.pageIndex"
layout="total,prev, pager, next, jumper" layout="total,prev, pager, next, jumper"
:page-size='msg.pageSize' :page-size='msg.pageSize'
:total='total'> :total='total'>
</el-pagination> --> </el-pagination>
</div> </div>
</div> </div>
</template> </template>
...@@ -301,7 +297,7 @@ ...@@ -301,7 +297,7 @@
export default { export default {
data() { data() {
return { return {
total:0,
msg: { msg: {
pageIndex:1, pageIndex:1,
pageSize:10, pageSize:10,
...@@ -591,76 +587,11 @@ ...@@ -591,76 +587,11 @@
this.Financial_post_GetBranchAccountList(); this.Financial_post_GetBranchAccountList();
}, },
methods: { methods: {
GoUrlFan(path, month, year, BranchId, ids) { handleCurrentChange: function (val) { //翻页
this.$router.push({ this.msg.pageIndex = val;
path: "/financial/" + path, this.getData();
query: {
year: year,
month: month,
BranchId: BranchId,
CostIds: ids,
blank: "y"
}
});
},
rowDbClick(rowIndex, rowData, column) {
},
rowClick(rowIndex, rowData, column) {
if (column.field == "ErYue") {
}
},
getFirstAndLastMonthDay(year, month) {
var firstdate = year + '-' + month + '-01';
var day = new Date(year, month, 0);
var lastdate = year + '-' + month + '-' + day.getDate(); //获取当月最后一天日期
return lastdate;
},
togbu: function () {
this.AALloading = true
let msg = {
Year: this.year,
sharelist: [],
}
this.monthList.forEach(x => {
let obj = {
ID: 0,
Money: x.value,
Month: x.id,
Year: this.year
}
msg.sharelist.push(obj)
})
this.apipost('financestatistics_post_InsertBatchSimple', msg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
} else {
this.AALloading = false
this.$message.error(res.data.message)
}
})
},
filterMethod: function (filters) {
},
sortChange: function (param) {
},
customCompFunc: function (param) {},
columnCellClass: function (rowIndex, columnName, rowData) {
if(columnName==="SurplusMoney"){
if(rowData.SurplusMoney<0){
return 'color-red'
}else if(rowData.SurplusMoney>0&&rowData.SurplusMoney<500){
return 'color-green'
}else{
return 'color-black'
}
}
}, },
exportExcel: function () { exportExcel: function () {
EduDownLoad("/finance/OutToExcelOrderStudentClassHoursList", this.msg, "订单完成统计.xls") EduDownLoad("/finance/OutToExcelOrderStudentClassHoursList", this.msg, "订单完成统计.xls")
}, },
...@@ -672,6 +603,7 @@ ...@@ -672,6 +603,7 @@
item.Progress=item.Progress+"%" item.Progress=item.Progress+"%"
}) })
this.DataList=res.Data.PageData this.DataList=res.Data.PageData
this.total=res.Data.Count
}) })
}, },
getCompanyList() { getCompanyList() {
......
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