From f8b1073fbb28d37e08016eed32c682f8c5eae391 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 二月 2024 17:26:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 company/src/components/enterprise/insuranceRecords.vue |  114 +++++++++++++++++++++++++++------------------------------
 1 files changed, 54 insertions(+), 60 deletions(-)

diff --git a/company/src/components/enterprise/insuranceRecords.vue b/company/src/components/enterprise/insuranceRecords.vue
index 81016c5..c5ec098 100644
--- a/company/src/components/enterprise/insuranceRecords.vue
+++ b/company/src/components/enterprise/insuranceRecords.vue
@@ -56,67 +56,61 @@
 </template>
 
 <script>
-    import BaseOpera from '@/components/base/BaseOpera'
-    import GlobalWindow from '@/components/common/GlobalWindow'
-    import { findList, exportExcel } from '@/api/business/member'
-    export default {
-        name: 'insuranceRecords',
-        extends: BaseOpera,
-        components: { GlobalWindow },
-        data () {
-            return {
-                form: {
-                    id: null,
-                    name: '',
-                    idcardNo: '',
-                    solutionsStatus: ''
-                },
-                list: []
-            }
-        },
-        methods: {
-            open (title, target) {
-                this.title = title
-                this.list = []
-                this.visible = true
-                // 鏂板缓
-                if (target == null) {
-                    this.$nextTick(() => {
-                        this.$refs.form.resetFields()
-                        this.form[this.configData['field.id']] = null
-                    })
-                    return
-                }
-                // 缂栬緫
-                this.$nextTick(() => {
-                    for (const key in this.form) {
-                        this.form[key] = target[key]
-                    }
-                })
-                this.getList()
-            },
-            expr() {
-                exportExcel({
-                    capacity: 1000,
-                    page: 1,
-                    model: {
-                        memberId: this.form.id
-                    }
-                }).then(res => {
-                    console.log(res)
-                    this.download(res)
-                })
-            },
-            getList() {
-                findList({
-                    memberId: this.form.id
-                }).then(res => {
-                    console.log(res)
-                    this.list = res
-                })
-            }
-        }
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalWindow from '@/components/common/GlobalWindow'
+import { findList, exportExcel } from '@/api/business/member'
+export default {
+  name: 'insuranceRecords',
+  extends: BaseOpera,
+  components: { GlobalWindow },
+  data () {
+    return {
+      form: {
+        id: null,
+        name: '',
+        idcardNo: '',
+        solutionsStatus: ''
+      },
+      list: []
     }
+  },
+  methods: {
+    open (title, target) {
+      this.title = title
+      this.list = []
+      this.visible = true
+      this.form = {
+        id: null,
+        name: '',
+        idcardNo: '',
+        solutionsStatus: ''
+      }
+      this.form = target
+      // 鏂板缓
+      this.getList()
+    },
+    expr () {
+      exportExcel({
+        capacity: 1000,
+        page: 1,
+        model: {
+          memberId: this.form.id
+        }
+      }).then(res => {
+        console.log(res)
+        this.download(res)
+      })
+    },
+    getList () {
+      findList({
+        memberId: this.form.id || -1
+      }).then(res => {
+        console.log(res)
+        this.list = res
+      })
+    }
+  }
+}
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.3