| | |
| | | sums[index] = '合计'; |
| | | return |
| | | } |
| | | if (index === 2) { |
| | | sums[index] = '--'; |
| | | return |
| | | } |
| | | const values = data.map(item => Number(item[column.property])) |
| | | if (!values.every(value => isNaN(value))) { |
| | | sums[index] = values.reduce((prev, curr) => { |
| | |
| | | return prev; |
| | | } |
| | | }, 0) |
| | | if(index == 2){ |
| | | sums[index] += '元/人次'; |
| | | } |
| | | } else { |
| | | sums[index] = '--'; |
| | | } |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getStuList" |
| | | /> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="dialogStatus==='add'?'新增':'编辑'" |
| | |
| | | Authorization: "Bearer " + getToken() |
| | | }, |
| | | total: 0, |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | addDialog: false, |
| | | dialogStatus: '', |
| | | dataForm: {}, |
| | |
| | | getStuList(id) { |
| | | getCoalPayStudentList(id).then(res=>{ |
| | | if(res.code == 200){ |
| | | this.stuList = res.rows |
| | | this.total = res.total |
| | | this.stuList = res.data |
| | | this.total = res.data.length |
| | | this.stuInfo.totalCountFee = this.stuInfo.amount * this.total |
| | | this.stuInfo.totalCount = this.total |
| | | if(this.total == 0){ |
| | |
| | | }, |
| | | methods: { |
| | | getList() { |
| | | this.loading = true |
| | | this.queryParams.minDate = this.dateValue[0]?this.dateValue[0] + ' 00:00:00':'' |
| | | this.queryParams.maxDate = this.dateValue[1]?this.dateValue[1] + ' 23:59:59':'' |
| | | getCoalPayList( this.queryParams).then((res) => { |
| | | if (res.code == 200) { |
| | | this.payList = res.rows |
| | | this.total = res.total |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | |
| | | sums[index] = '合计'; |
| | | return |
| | | } |
| | | if (index === 2) { |
| | | sums[index] = '--'; |
| | | return |
| | | } |
| | | const values = data.map(item => Number(item[column.property])) |
| | | if (!values.every(value => isNaN(value))) { |
| | | sums[index] = values.reduce((prev, curr) => { |
| | |
| | | return prev; |
| | | } |
| | | }, 0) |
| | | if(index == 2){ |
| | | sums[index] += '元/人次'; |
| | | } |
| | | } else { |
| | | sums[index] = '--'; |
| | | } |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getStuList" |
| | | /> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="dialogStatus==='add'?'新增':'编辑'" |
| | |
| | | }, |
| | | methods: { |
| | | getList() { |
| | | this.loading = true; |
| | | this.loading = true |
| | | this.queryParams.params.startTime = this.dateValue[0]?this.dateValue[0]:'' |
| | | this.queryParams.params.endTime = this.dateValue[1]?this.dateValue[1]:'' |
| | | getNonCoalPayList( this.queryParams).then((res) => { |
| | | if (res.code == 200) { |
| | | this.payList = res.rows |
| | | this.total = res.total |
| | | this.loading = false; |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |