zhangdan 4 years ago
parent
commit
c6960b5361

+ 6 - 22
src/views/FinancialManagement/PaySettlementRecordsDetailsModal.vue

@@ -101,22 +101,6 @@ export default {
     cancel (e) {
       this.$emit('close')
     }
-    // 获取列表数据
-    // getListData (itemId) {
-    //   SettlementRecordsDetailsList({
-    //     settleNo: this.itemId,
-    //     pageNo: 1,
-    //     pageSize: 10
-    //   }).then(res => {
-    //     if (res.status == 200) {
-    //       res.data.list.map((item, index) => {
-    //         item.no = index + 1
-    //       })
-    //       this.loadData = res.data.list
-   	//   console.log(this.loadData, '----列表')
-    //     }
-    //   })
-    // }
   },
   watch: {
     openModalDetails (newValue, oldValue) {
@@ -127,13 +111,13 @@ export default {
       if (!val) {
         this.$emit('close')
       }
+    },
+    itemId (newValue, oldValue) {
+      console.log(newValue)
+      if (newValue && this.isshow) {
+         this.$refs.table.refresh(newValue)
+      }
     }
-    // itemId (newValue, oldValue) {
-    //   console.log(newValue)
-    //   if (newValue && this.isshow) {
-    //     this.getListData(newValue)
-    //   }
-    // }
   }
 }
 </script>

+ 5 - 6
src/views/FinancialManagement/WriteOffDetailsModal.vue

@@ -119,13 +119,12 @@ export default {
 	    if (!val) {
 	      this.$emit('close')
 	    }
+	  },
+	  settleId (newValue, oldValue) {
+	    if (newValue && this.isshow) {
+	       this.$refs.table.refresh(newValue)
+	    }
 	  }
-	  // settleId (newValue, oldValue) {
-	  //   console.log(newValue)
-	  //   if (newValue && this.isshow) {
-	  //     this.getListData(newValue)
-	  //   }
-	  // }
   }
 }
 </script>