From 78a173f85f8a4666d83cf8d900f04dd9f8e3e127 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 17 六月 2025 08:53:12 +0800
Subject: [PATCH] 提交一把订单

---
 company/src/views/business/insurance.vue |  107 +++++++++++++++++++++++++++++++----------------------
 1 files changed, 63 insertions(+), 44 deletions(-)

diff --git a/company/src/views/business/insurance.vue b/company/src/views/business/insurance.vue
index 1c463d6..af82917 100644
--- a/company/src/views/business/insurance.vue
+++ b/company/src/views/business/insurance.vue
@@ -27,10 +27,25 @@
                     </template>
                 </el-table-column>
                 <el-table-column prop="name" label="淇濋櫓鍏徃" min-width="100px"></el-table-column>
-                <el-table-column prop="name" label="LOGO" min-width="100px"></el-table-column>
-                <el-table-column prop="name" label="鑻辨枃鍚嶇О" min-width="100px"></el-table-column>
-                <el-table-column prop="name" label="鑱旂郴浜�" min-width="100px"></el-table-column>
-                <el-table-column prop="name" label="鑱旂郴鐢佃瘽" min-width="100px"></el-table-column>
+                <el-table-column prop="logo" label="LOGO" min-width="100px">
+                    <template slot-scope="{row}">
+                        <el-image
+                            v-if="row.logoFullUrl"
+                            style="width: 100px; height: 100px"
+                            :src="row.logoFullUrl"
+                            :preview-src-list="[row.logoFullUrl]">
+                        </el-image>
+                    </template>
+                </el-table-column>
+                <el-table-column prop="englishName" label="鑻辨枃鍚嶇О" min-width="100px"></el-table-column>
+                <el-table-column prop="linkName" label="鑱旂郴浜�" min-width="100px"></el-table-column>
+                <el-table-column prop="linkPhone" label="鑱旂郴鐢佃瘽" min-width="100px"></el-table-column>
+                <el-table-column label="鏄惁缁存姢" min-width="100px">
+                    <template slot-scope="{row}">
+                        <span v-if="row.lpFileStatus === 1">宸茬淮鎶�</span>
+                        <span v-else>鏈淮鎶�</span>
+                    </template>
+                </el-table-column>
                 <el-table-column label="鍚敤鐘舵��" min-width="100px">
                     <template slot-scope="{row}">
                         <el-switch
@@ -46,12 +61,13 @@
                 <el-table-column
                     v-if="containPermissions(['business:insurance:update', 'business:insurance:delete'])"
                     label="鎿嶄綔"
-                    min-width="120"
+                    min-width="150"
                     fixed="right"
                 >
                     <template slot-scope="{row}">
                         <el-button type="text" @click="$refs.OperaInsuranceDescWindow.open('淇濋櫓鍏徃璇︽儏', row)" icon="el-icon-edit" v-permissions="['business:insurance:update']">鏌ョ湅璇︽儏</el-button>
                         <el-button type="text" @click="$refs.operaInsuranceWindow.open('淇敼淇濋櫓鍏徃', row)" icon="el-icon-edit" v-permissions="['business:insurance:update']">淇敼</el-button>
+                        <el-button type="text" @click="$refs.setCompany.open('鐞嗚禂鏉愭枡閰嶇疆', row.id)" icon="el-icon-edit">璁剧疆</el-button>
                     </template>
                 </el-table-column>
             </el-table>
@@ -66,48 +82,51 @@
         <OperaInsuranceWindow ref="operaInsuranceWindow" @success="handlePageChange"/>
         <!-- 璇︽儏 -->
         <OperaInsuranceDescWindow ref="OperaInsuranceDescWindow" @success="handlePageChange"/>
+        <!-- 璁剧疆 -->
+        <SetCompany ref="setCompany" @success="handlePageChange"/>
     </TableLayout>
 </template>
 
 <script>
-    import BaseTable from '@/components/base/BaseTable'
-    import TableLayout from '@/layouts/TableLayout'
-    import Pagination from '@/components/common/Pagination'
-    import OperaInsuranceWindow from '@/components/business/OperaInsuranceWindow'
-    import OperaInsuranceDescWindow from '@/components/business/OperaInsuranceDescWindow'
-    import { updateStatus } from '@/api/business/insurance'
-    export default {
-        name: 'Insurance',
-        extends: BaseTable,
-        components: { TableLayout, Pagination, OperaInsuranceWindow, OperaInsuranceDescWindow },
-        data () {
-            return {
-                // 鎼滅储
-                searchForm: {
-                    name: ''
-                }
-            }
-        },
-        created () {
-            this.config({
-                module: '淇濋櫓鍏徃淇℃伅琛�',
-                api: '/business/insurance',
-                'field.id': 'id',
-                'field.main': 'id'
-            })
-            this.search()
-        },
-        methods: {
-            // 淇敼鐘舵��
-            changeStatus(status, row) {
-                updateStatus({ id: row.id, status })
-                    .then(res => {
-                        this.search()
-                    })
-                    .catch(err => {
-                        row.status = row.status === 0 ? 1 : 0
-                    })
-            }
-        }
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+import OperaInsuranceWindow from '@/components/business/OperaInsuranceWindow'
+import OperaInsuranceDescWindow from '@/components/business/OperaInsuranceDescWindow'
+import SetCompany from '@/components/business/setCompany'
+import { updateStatus } from '@/api/business/insurance'
+export default {
+  name: 'Insurance',
+  extends: BaseTable,
+  components: { TableLayout, Pagination, OperaInsuranceWindow, OperaInsuranceDescWindow, SetCompany },
+  data () {
+    return {
+      // 鎼滅储
+      searchForm: {
+        name: ''
+      }
     }
+  },
+  created () {
+    this.config({
+      module: '淇濋櫓鍏徃淇℃伅琛�',
+      api: '/business/insurance',
+      'field.id': 'id',
+      'field.main': 'id'
+    })
+    this.search()
+  },
+  methods: {
+    // 淇敼鐘舵��
+    changeStatus (status, row) {
+      updateStatus({ id: row.id, status })
+        .then(res => {
+          this.search()
+        })
+        .catch(err => {
+          row.status = row.status === 0 ? 1 : 0
+        })
+    }
+  }
+}
 </script>

--
Gitblit v1.9.3