From bf15135228cbb9ac186cc8cc39e9da32d3f1d90f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 19 六月 2024 15:51:19 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue |   56 ++++++++++++++++++++++++++------------------------------
 1 files changed, 26 insertions(+), 30 deletions(-)

diff --git a/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue b/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue
index 7e8a4ab..15fb687 100644
--- a/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue
+++ b/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue
@@ -168,10 +168,10 @@
     <confirmJobType ref="confirmJobType" @result="getUser" />
     <!--    鏌ョ湅璇﹀崟    -->
     <detailsPolicyholder ref="detailsPolicyholder" @success="successEvent" />
-    <!--    鐩翠繚鎶曚繚璇︽儏    -->
+<!--    &lt;!&ndash;    鐩翠繚鎶曚繚璇︽儏    &ndash;&gt;
     <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" />
-    <!--    濮旀墭鎶曚繚璇︽儏    -->
-    <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" />
+    &lt;!&ndash;    濮旀墭鎶曚繚璇︽儏    &ndash;&gt;
+    <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" />-->
   </GlobalWindow>
 </template>
 
@@ -179,28 +179,30 @@
 import BaseOpera from '@/components/base/BaseOpera'
 import GlobalWindow from '@/components/common/GlobalWindow'
 import selectEmployees from '@/components/enterprise/selectEmployees'
-import addEmployee from '@/components/enterprise/addEmployee'
+import addEmployee from '@/components/enterprise/addEmployeeWithDu'
 import importEmployees from '@/components/enterprise/importEmployees'
 import confirmJobType from '@/components/enterprise/confirmJobType'
 import detailsPolicyholder from '@/components/business/detailsPolicyholder'
-import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
-import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow'
 import { all, getNewVersion } from '@/api/business/solutions'
 import { mapState } from 'vuex'
-import { create, getCountCyclePriceVO, getDetail, findList, updateData } from '@/api/business/insuranceApply'
+import { create, getCountCyclePriceVO, getDetail, findList } from '@/api/business/insuranceApply'
 import { UTable, UTableColumn } from 'umy-ui'
-// Vue.component(UTable.name, UTable);
-// Vue.component(UTableColumn.name, UTableColumn);
 export default {
   name: 'OperaInsuranceApplyAddWindowNew',
   extends: BaseOpera,
   components: {
-    GlobalWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, detailsPolicyholder, UTable, UTableColumn
-    ,  OperaWtbApplyShopWindow, OperaInsuranceApplyDetails
+    GlobalWindow,
+    selectEmployees,
+    addEmployee,
+    importEmployees,
+    confirmJobType,
+    detailsPolicyholder,
+    UTable,
+    UTableColumn
   },
   data () {
     return {
-      sumFee:0,
+      sumFee: 0,
       form: {
         id: null,
         ID: null,
@@ -240,7 +242,7 @@
     // 鐩戝惉tableData鐨勫彉鍖�
     tableData: {
       deep: true,
-      handler(newVal, oldVal) {
+      handler (newVal, oldVal) {
         // 鏁版嵁鍙樺寲鏃剁殑澶勭悊閫昏緫
         this.getSummaries2()
         console.log(this.tableData.length)
@@ -262,15 +264,9 @@
         solutionId: this.form.solutionId
       }).then(res => {
         console.log(res)
-        this.visible = false
-        if (this.item.type == 1) {
-          this.$emit('success', 1, { id: res })
-          this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: res })
-        } else {
-          this.$emit('success', 1, { id: res })
-          this.$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: res })
-        }
+        this.$emit('success', 1, { id: res,godetail:true,type:this.item.type})
         this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
+        this.visible = false
         // this.$emit('success','濮旀墭鎶曚繚璇︽儏', { id: res })
       })
         .catch(e => {
@@ -364,7 +360,7 @@
           })
           sums[index] = total.toFixed(2)
           // }
-        }else {
+        } else {
           sums[index] = ''
         }
       })
@@ -372,8 +368,8 @@
       return sums
     },
     getSummaries2 () {
-      this.sumFee = 0;
-      if(this.tableData&&this.tableData.length){
+      this.sumFee = 0
+      if (this.tableData && this.tableData.length) {
         this.tableData.forEach((column, index) => {
           this.sumFee = parseFloat(this.sumFee) + parseFloat(column.fee)
         })
@@ -412,9 +408,9 @@
 
           let price = 0
           // if (this.item && this.item.type != 1) {
-            this.tableData.forEach(item => {
-              price = price + item.fee
-            })
+          this.tableData.forEach(item => {
+            price = price + item.fee
+          })
           // }
           this.$refs.detailsPolicyholder.open('鎶曚繚璇︽儏鍗�', {
             companyName: this.userInfo.company.name,
@@ -481,7 +477,7 @@
         this.$message.warning('璇峰厛閫夋嫨淇濋櫓鏂规')
         return
       }
-      this.$refs.addEmployee.open('娣诲姞鍛樺伐', { arr: this.tableData, price: this.price })
+      this.$refs.addEmployee.open('娣诲姞鍛樺伐', { arr: this.tableData, price: this.price, solutionId: this.form.solutionId })
     },
     uploadUser () {
       if (!this.form.solutionId) {
@@ -492,7 +488,7 @@
     },
     // 鍒囨崲鏂规
     changeSolution (e) {
-      this.sumFee =0;
+      this.sumFee = 0
       this.form.applyEndTime = ''
       this.form.applyStartTime = ''
       if (!this.form.id) {
@@ -536,7 +532,7 @@
         })
       this.tableData.forEach(item => {
         // if (this.item.type != 0) {
-          item.fee = this.price
+        item.fee = this.price
         // }
       })
     },

--
Gitblit v1.9.3