From 1e72942aa4848ae4835e7f30bb4adc01f9ce5bdc Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 23 二月 2024 11:45:58 +0800
Subject: [PATCH] mrshi

---
 company/src/components/business/OperaApplyChangeUnitDetailWindow.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue b/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
index 54e3d2e..2a80040 100644
--- a/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
+++ b/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
@@ -25,9 +25,9 @@
 <!--                          <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('鐢宠閫�鍥�', {id: dataId})">鐢宠閫�鍥�</el-button>-->
                           <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="$refs.editFactoryChange.open('鎹㈠巶鐢宠', {id: dataId, applyChangId: modelId})">鍐嶆鎶曚繚</el-button>
                           <el-button type="primary" v-if="model.status == 0"   @click="goSign">绛剧讲鐢宠鍗�</el-button>
-                          <el-button v-if="[0, 1, 2, 3, 7].includes(model.status)" type="primary" @click="$refs.add_subtract_return.open('鐢宠閫�鍥�', { id: modelId })">鐢宠閫�鍥�</el-button>
+                          <el-button v-if="[0, 1, 3, 7].includes(model.status)" type="primary" @click="$refs.add_subtract_return.open('鐢宠閫�鍥�', { id: modelId })">鐢宠閫�鍥�</el-button>
                           <el-button v-if="model.status == 5" type="primary" @click="viewApplyFile">鏌ョ湅鐢宠鍗�</el-button>
-                          <el-button v-if="model.status == 5" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
+                          <el-button v-if="model.status == 5 || model.status == 2" type="primary" @click="viewPidan">鏌ョ湅鎵瑰崟</el-button>
                           <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="closeOrder">鍏抽棴璁㈠崟</el-button>
                       </template>
                         <template v-else>
@@ -56,6 +56,9 @@
                             prop="applyCode"
                             align="center"
                             label="鍏宠仈淇濆崟鍙�">
+                            <template slot-scope="{row}">
+                                <el-button type="text" @click="$refs.insuranceApplyDetails.open('鎶曚繚璇︽儏', { id: row.applyId })">{{row.applyCode}}</el-button>
+                            </template>
                         </el-table-column>
                         <el-table-column
                             prop="solutionsName"
@@ -179,6 +182,8 @@
         <!--    鎹㈠巶鐢宠    -->
         <factoryChange ref="factoryChange" @success="successEvent" />
         <editFactoryChange ref="editFactoryChange" @success="successEvent" />
+        <!--    鎶曚繚璇︽儏    -->
+        <insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" />
       <template v-slot:footer>
         <el-button @click="visible=false">杩斿洖</el-button>
       </template>
@@ -195,6 +200,7 @@
 import editFactoryChange from '@/components/enterprise/editFactoryChange'
 import applyReturn from '@/components/enterprise/applyReturn'
 import add_subtract_return from '@/components/enterprise/add_subtract_return'
+// import insuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
 import {
   getDetail,
   getChangeDetail,
@@ -217,7 +223,8 @@
       additionSubtractionApplication,
       factoryChange,
       add_subtract_return,
-      editFactoryChange
+      editFactoryChange,
+      insuranceApplyDetails: () => import ('@/components/business/OperaInsuranceApplyWindow')
   },
   data () {
     return {
@@ -298,7 +305,7 @@
                capacity: 10,
                page: this.currentPage,
                model: {
-                   applyChangId: this.modelId,
+                   applyChangeId: this.modelId,
                    types:[2]
                }
            }).then(res => {

--
Gitblit v1.9.3