Browse Source

feature:bug修复

chenqilong 2 years ago
parent
commit
2b0e89fa75
1 changed files with 18 additions and 18 deletions
  1. 18 18
      src/views/finance/receivable_list.vue

+ 18 - 18
src/views/finance/receivable_list.vue

@@ -15,8 +15,7 @@
       <ReceivableListApproval :approvalId="approvalId" v-if="showPage == 3" @close="handleClose" />
       <ReceivableListDetail :approvalId="approvalId" :czType="czType" v-if="showPage == 4" @close="handleClose" />
     </Popu>
-         <print-preview ref="preView" @initPrint="handleInitPrint" @refreshList="handleRefreshList" :addPrint="addPrint"/>
-
+    <print-preview ref="preView" @initPrint="handleInitPrint" @refreshList="handleRefreshList" :addPrint="addPrint" />
   </template-page>
 </template>
 
@@ -212,21 +211,23 @@ export default {
     async bringFn(id) {
       await getFinanceOtherReceApply({ id })
       this.$message.success('提审成功')
-      this.getDataList({
-        pageNum: this.currentPage,
-        pageSize: this.pageSize,
-        examineStatus: this.examine
-      })
+      this.$refs.pageRef.refreshList()
+      // this.getDataList({
+      //   pageNum: this.currentPage,
+      //   pageSize: this.pageSize,
+      //   examineStatus: this.examine
+      // })
     },
     //弃审
     async unApprovalFn(id) {
       await getFinanceOtherReceAbandon({ id })
       this.$message.success('弃审成功')
-      this.getDataList({
-        pageNum: this.currentPage,
-        pageSize: this.pageSize,
-        examineStatus: this.examine
-      })
+      this.$refs.pageRef.refreshList()
+      // this.getDataList({
+      //   pageNum: this.currentPage,
+      //   pageSize: this.pageSize,
+      //   examineStatus: this.examine
+      // })
     },
     handleSelectAll(selection) {
       this.tableSelection = this.$refs.table.selection
@@ -445,16 +446,15 @@ export default {
       var currentdate = year + seperator1 + month + seperator1 + strDate
       console.log(currentdate)
       return currentdate
-    } ,
-    handleRefreshList(){
+    },
+    handleRefreshList() {
       this.recordSelected = []
       this.$refs.pageRef.refreshList()
-
     },
-    handleInitPrint(){
+    handleInitPrint() {
       this.$nextTick(() => {
-      this.initPrint()
-    })
+        this.initPrint()
+      })
     }
   }
 }