From d2bc6e096f0806b78ea92d4b90a21d3627d406c7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 08 三月 2024 18:28:42 +0800
Subject: [PATCH] mrshi

---
 company/src/components/enterprise/entrustmentHistory.vue |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/company/src/components/enterprise/entrustmentHistory.vue b/company/src/components/enterprise/entrustmentHistory.vue
index 50c2ca9..cbfe19d 100644
--- a/company/src/components/enterprise/entrustmentHistory.vue
+++ b/company/src/components/enterprise/entrustmentHistory.vue
@@ -32,10 +32,10 @@
                     <span v-else>寰呭鐞�</span>
                 </template>
             </el-table-column>
-            <el-table-column
-                prop="price"
-                label="寮�绁ㄩ噾棰濓紙鍏冿級">
-            </el-table-column>
+<!--            <el-table-column-->
+<!--                prop="price"-->
+<!--                label="寮�绁ㄩ噾棰濓紙鍏冿級">-->
+<!--            </el-table-column>-->
             <el-table-column
                 label="鎺ユ敹鏂瑰紡">
                 <template slot-scope="{row}">
@@ -47,10 +47,12 @@
                 label="鐢靛瓙鍙戠エ">
                 <template slot-scope="{row}">
                     <el-image
+                        v-if="row.imgurlFull"
                         style="width: 50px; height: 50px"
                         :src="row.imgurlFull"
                         :preview-src-list="[row.imgurlFull]">
                     </el-image>
+                    <span v-else>-</span>
                 </template>
             </el-table-column>
             <el-table-column
@@ -64,6 +66,7 @@
             <el-button @click="close">杩斿洖</el-button>
         </template>
         <directInsuranceDetails ref="directInsuranceDetails" />
+        <commissionDetails ref="commissionDetails" />
     </GlobalWindow>
 </template>
 
@@ -72,16 +75,18 @@
     import GlobalWindow from '@/components/common/GlobalWindow'
     import { list } from '@/api/business/taxes'
     import directInsuranceDetails from '@/components/enterprise/directInsuranceDetails'
+    import commissionDetails from '@/components/enterprise/commissionDetails'
     export default {
         name: 'entrustmentHistory',
         extends: BaseOpera,
-        components: { GlobalWindow, directInsuranceDetails },
+        components: { GlobalWindow, directInsuranceDetails, commissionDetails },
         data () {
             return {
                 form: {
                     id: null,
                     solutionsName: '',
-                    code: ''
+                    code: '',
+                    determine: ''
                 },
                 list: []
             }
@@ -116,10 +121,14 @@
                 } else {
                     info = '寰呭鐞�'
                 }
-                this.$refs.directInsuranceDetails.open(`寮�绁ㄨ鎯咃紙${info}锛塦, row)
+                if (this.form.determine === 1) {
+                    this.$refs.commissionDetails.open(`寮�绁ㄨ鎯咃紙${info}锛塦, row)
+                } else {
+                    this.$refs.directInsuranceDetails.open(`寮�绁ㄨ鎯咃紙${info}锛塦, row)
+                }
             },
             getList() {
-                list({ insuranceApplyId: this.form.id })
+                list({ applyId: this.form.id })
                     .then(res => {
                         this.list = res
                     })

--
Gitblit v1.9.3