wq 5 年之前
父節點
當前提交
9cbcdd8525
共有 2 個文件被更改,包括 12 次插入8 次删除
  1. 3 3
      src/layout/financeclaims/financeClaimInfo.vue
  2. 9 5
      src/views/financeclaims/manageMoneyIndex.vue

+ 3 - 3
src/layout/financeclaims/financeClaimInfo.vue

@@ -13,8 +13,8 @@
                 <el-col :span="5">
                     <span>筛选条件:</span>
                     <el-select v-model="region" >
-                        <el-option label="未发布" value="0"></el-option>
-                        <el-option label="已发布" value="1"></el-option>
+                        <el-option label="未审核" value="0"></el-option>
+                        <el-option label="已审核" value="1"></el-option>
                     </el-select>
                 </el-col>
                 <el-col :span="8" class="btn">
@@ -33,7 +33,7 @@
     data: () => ({
       innewname: '',
       name:'',
-      region:''
+      region:'1'
     }),
     created() {},
     computed: {},

+ 9 - 5
src/views/financeclaims/manageMoneyIndex.vue

@@ -34,7 +34,8 @@
       debtTable: [],
       total: '',
       cpname: '',
-      jgname:''
+      jgname:'',
+      region:'1'
 
     }),
     created() {
@@ -45,8 +46,8 @@
     },
     methods: {
       ...managemoney([ 'update','fetch','mmoneyList','orUpdate']),
-      async managmoneyList({ skip = 1, limit = 10, uid = this.user.userid,type=0} = {}) {
-        const res = await this.mmoneyList({ skip, limit, uid ,type});
+      async managmoneyList({ skip = 1, limit = 10, uid = this.user.userid,type=0,status = this.region} = {}) {
+        const res = await this.mmoneyList({ skip, limit, uid ,type,status});
         this.$set(this, `debtTable`, res.res);
         this.$set(this, `total`, res.total);
       },
@@ -57,8 +58,9 @@
         var innewname=this.jgname;
         var title = this.cpname ;
         var  uid = this.user.userid ;
+        var status = this.region;
         var type=0;
-        const res = await this.mmoneyList({ skip, limit, uid ,type,innewname,title});
+        const res = await this.mmoneyList({ skip, limit, uid ,type,innewname,title,status});
         this.$set(this, `debtTable`, res.res);
         this.$set(this, `total`, res.total);
       },
@@ -68,11 +70,13 @@
         var title = data.name;//产品名称
         this.cpname = data.name;
         this.jgname = data.innewname;
+        this.region = data.region;
+        var status = data.region;
         var skip = 0;
         var limit = 10;
         var  uid = this.user.userid;
         var type=0;
-        const res = await this.mmoneyList({ skip, limit, uid ,type,innewname,title});
+        const res = await this.mmoneyList({ skip, limit, uid ,type,innewname,title,status});
         this.$set(this, `debtTable`, res.res);
         this.$set(this, `total`, res.total);
       }