|
@@ -12,7 +12,7 @@
|
|
|
<div class="flex-align-stretch drawer__panel" style="margin-bottom: 0 !important;padding-bottom: 10px">
|
|
<div class="flex-align-stretch drawer__panel" style="margin-bottom: 0 !important;padding-bottom: 10px">
|
|
|
<div class="mt-10">
|
|
<div class="mt-10">
|
|
|
<label class="search__label">收支类型:</label>
|
|
<label class="search__label">收支类型:</label>
|
|
|
- <el-select class="inline-24" v-model="status" placeholder="请选择类型" @change="selectChange" size="small" clearable>
|
|
|
|
|
|
|
+ <el-select class="inline-24" v-model="param.content.where.type" placeholder="请选择类型" @change="selectChange" size="small" clearable>
|
|
|
<el-option label="收入" value="1"></el-option>
|
|
<el-option label="收入" value="1"></el-option>
|
|
|
<el-option label="支出" value="0"></el-option>
|
|
<el-option label="支出" value="0"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -32,19 +32,37 @@
|
|
|
clearable>
|
|
clearable>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="mt-10">
|
|
|
|
|
|
|
+ <div class="mt-10 inline-16">
|
|
|
<el-input style="width:200px;" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="listData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
|
|
<el-input style="width:200px;" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="listData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="mt-10">
|
|
|
|
|
+ <exportFile :param="param" :columns="tablecols" fileName="账户流水明细"></exportFile>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="padding:0 16px 20px 16px">
|
|
|
|
|
- <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 356px)" :width="true" :custom="true" >
|
|
|
|
|
|
|
+ <div style="padding:0 16px 0 16px">
|
|
|
|
|
+ <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 182px)" :width="true" :custom="true" >
|
|
|
<template v-slot:customcol="scope">
|
|
<template v-slot:customcol="scope">
|
|
|
- <div>
|
|
|
|
|
|
|
+ <div v-if="scope.column.columnname === 'type'">
|
|
|
|
|
+ {{scope.column.data[[scope.column.columnname]] == '1' ? '收入':'支出'}}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-else>
|
|
|
{{scope.column.data[[scope.column.columnname]] || scope.column.columnname === 'operation'?scope.column.data[[scope.column.columnname]]:'--'}}
|
|
{{scope.column.data[[scope.column.columnname]] || scope.column.columnname === 'operation'?scope.column.data[[scope.column.columnname]]:'--'}}
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</tableNewLayout>
|
|
</tableNewLayout>
|
|
|
|
|
+ <div class="container normal-panel" style="text-align:right">
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ background
|
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
|
+ :current-page="currentPage"
|
|
|
|
|
+ :page-sizes="[100, 150, 200, 250]"
|
|
|
|
|
+ :page-size="100"
|
|
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
|
|
+ :total="total">
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
@@ -52,18 +70,22 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import exportFile from '@/components/export_file/index5.vue'
|
|
|
export default {
|
|
export default {
|
|
|
name: "detail",
|
|
name: "detail",
|
|
|
props:["hrid"],
|
|
props:["hrid"],
|
|
|
|
|
+ components:{exportFile},
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
dialogFormVisible:false,
|
|
dialogFormVisible:false,
|
|
|
status:'',
|
|
status:'',
|
|
|
dateSelect:'',
|
|
dateSelect:'',
|
|
|
|
|
+ total:0,
|
|
|
|
|
+ currentPage:0,
|
|
|
param:{
|
|
param:{
|
|
|
"id": 20240111090304,
|
|
"id": 20240111090304,
|
|
|
"content": {
|
|
"content": {
|
|
|
- "pageSize": 20,
|
|
|
|
|
|
|
+ "pageSize": 100,
|
|
|
"pageNumner": 1,
|
|
"pageNumner": 1,
|
|
|
"hrid": "",
|
|
"hrid": "",
|
|
|
"where": {
|
|
"where": {
|
|
@@ -86,8 +108,20 @@ export default {
|
|
|
this.param.content.hrid = this.hrid
|
|
this.param.content.hrid = this.hrid
|
|
|
const res = await this.$api.requested(this.param)
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
this.list = res.data
|
|
|
|
|
+ this.total = res.total
|
|
|
|
|
+ this.currentPage = res.pageNumner
|
|
|
|
|
+ },
|
|
|
|
|
+ selectChange(){
|
|
|
|
|
+ console.log(this.dateSelect)
|
|
|
|
|
+ if (this.dateSelect){
|
|
|
|
|
+ this.param.content.where.begdate = this.dateSelect[0]
|
|
|
|
|
+ this.param.content.where.enddate = this.dateSelect[1]
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.param.content.where.begdate = ''
|
|
|
|
|
+ this.param.content.where.enddate = ''
|
|
|
|
|
+ }
|
|
|
|
|
+ this.listData()
|
|
|
},
|
|
},
|
|
|
- selectChange(){},
|
|
|
|
|
onClose(){
|
|
onClose(){
|
|
|
this.param.content.where = {
|
|
this.param.content.where = {
|
|
|
"condition": "",
|
|
"condition": "",
|
|
@@ -95,7 +129,17 @@ export default {
|
|
|
"enddate": "",
|
|
"enddate": "",
|
|
|
"type":""
|
|
"type":""
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
|
+ // console.log(`每页 ${val} 条`);
|
|
|
|
|
+ this.param.content.pageSize = val
|
|
|
|
|
+ this.listData()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleCurrentChange(val) {
|
|
|
|
|
+ // console.log(`当前页: ${val}`);
|
|
|
|
|
+ this.param.content.pageNumber = val
|
|
|
|
|
+ this.listData()
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.tablecols = this.tool.tabelCol(this.$route.name).accountDetailTable.tablecols
|
|
this.tablecols = this.tool.tabelCol(this.$route.name).accountDetailTable.tablecols
|