Browse Source

收入凭证新增对冲凭证查询

qymljy 2 years ago
parent
commit
a9c01c3775
1 changed files with 18 additions and 9 deletions
  1. 18 9
      src/HDrpManagement/recvoucher/details/modules/hedgeVoucher.vue

+ 18 - 9
src/HDrpManagement/recvoucher/details/modules/hedgeVoucher.vue

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