|
@@ -4,11 +4,11 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
placeholder="请输入搜索内容"
|
|
placeholder="请输入搜索内容"
|
|
|
suffix-icon="el-icon-search"
|
|
suffix-icon="el-icon-search"
|
|
|
- v-model="params.content.where.condition"
|
|
|
|
|
|
|
+ v-model="param.content.where.condition"
|
|
|
style="width:200px"
|
|
style="width:200px"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
class="input-with-select inline-16"
|
|
class="input-with-select inline-16"
|
|
|
- @keyup.native.enter="listData(params.content.pageNumber=1)"
|
|
|
|
|
|
|
+ @keyup.native.enter="listData(param.content.pageNumber=1)"
|
|
|
@clear="clearData"
|
|
@clear="clearData"
|
|
|
clearable>
|
|
clearable>
|
|
|
</el-input>
|
|
</el-input>
|
|
@@ -38,7 +38,6 @@
|
|
|
<p v-if="!scope.column.data[scope.column.columnname] && scope.column.data[scope.column.columnname] !== 0 && scope.column.columnname != 'operation'&& scope.column.columnname != 'reason'">--</p>
|
|
<p v-if="!scope.column.data[scope.column.columnname] && scope.column.data[scope.column.columnname] !== 0 && scope.column.columnname != 'operation'&& scope.column.columnname != 'reason'">--</p>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:opreation="scope">
|
|
<template v-slot:opreation="scope">
|
|
|
- <el-button @click="goDetail(scope)" size="mini" type="text">详 情</el-button>
|
|
|
|
|
</template>
|
|
</template>
|
|
|
</tableLayout>
|
|
</tableLayout>
|
|
|
</div>
|
|
</div>
|
|
@@ -48,8 +47,8 @@
|
|
|
small
|
|
small
|
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
|
- :current-page="params.content.pageNumber"
|
|
|
|
|
- :page-size="params.content.pageSize"
|
|
|
|
|
|
|
+ :current-page="param.content.pageNumber"
|
|
|
|
|
+ :page-size="param.content.pageSize"
|
|
|
layout="total, prev, pager, next, jumper"
|
|
layout="total, prev, pager, next, jumper"
|
|
|
:total="total">
|
|
:total="total">
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
@@ -63,6 +62,7 @@ export default {
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
tablecols:[],
|
|
tablecols:[],
|
|
|
|
|
+ tableHieght:"calc(100vh - 380px)",
|
|
|
list:[],
|
|
list:[],
|
|
|
total:0,
|
|
total:0,
|
|
|
param:{
|
|
param:{
|
|
@@ -80,25 +80,34 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
async listData(){
|
|
async listData(){
|
|
|
- this.params.content.sa_cashbillid = this.$route.query.id
|
|
|
|
|
- const res = await this.$api.requested(this.params)
|
|
|
|
|
|
|
+ this.param.content.sa_cashbillid = this.$route.query.id
|
|
|
|
|
+ const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
this.list = res.data
|
|
|
this.total = res.total
|
|
this.total = res.total
|
|
|
console.log(this.list,'对冲凭证')
|
|
console.log(this.list,'对冲凭证')
|
|
|
},
|
|
},
|
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
// console.log(`每页 ${val} 条`);
|
|
|
- this.params.content.pageSize = val
|
|
|
|
|
|
|
+ this.param.content.pageSize = val
|
|
|
this.listData()
|
|
this.listData()
|
|
|
},
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
// console.log(`当前页: ${val}`);
|
|
|
- this.params.content.pageNumber = val
|
|
|
|
|
|
|
+ this.param.content.pageNumber = val
|
|
|
this.listData()
|
|
this.listData()
|
|
|
},
|
|
},
|
|
|
|
|
+ clearData(){
|
|
|
|
|
+ this.listData()
|
|
|
|
|
+ },
|
|
|
|
|
+ queryClick(){
|
|
|
|
|
+ this.listData()
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.listData()
|
|
this.listData()
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.tablecols = this.tool.tabelCol(this.$route.name).hedgeVoucherTable.tablecols
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|