From 529d0b8982cf30f57ba7e366c0f822c1d82c0b69 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 五月 2024 13:37:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0.1' into 1.0.1
---
company/src/components/enterprise/OperaInsuranceApplyWindow.vue | 35 +++++++++++++++++++++++++++--------
1 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/company/src/components/enterprise/OperaInsuranceApplyWindow.vue b/company/src/components/enterprise/OperaInsuranceApplyWindow.vue
index 7fcb3e3..e0c78be 100644
--- a/company/src/components/enterprise/OperaInsuranceApplyWindow.vue
+++ b/company/src/components/enterprise/OperaInsuranceApplyWindow.vue
@@ -117,6 +117,9 @@
<el-table-column
prop="fee"
label="璐圭敤">
+ <template slot-scope="{row}">
+ {{item.type==1?'-':row.fee}}
+ </template>
</el-table-column>
<el-table-column
label="鎿嶄綔">
@@ -140,6 +143,10 @@
<confirmJobType ref="confirmJobType" @result="getUser" />
<!-- 鏌ョ湅璇﹀崟 -->
<detailsPolicyholder ref="detailsPolicyholder" @success="successEvent" />
+ <!-- 鐩翠繚鎶曚繚璇︽儏 -->
+ <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" />
+ <!-- 濮旀墭鎶曚繚璇︽儏 -->
+ <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" />
</GlobalWindow>
</template>
@@ -151,13 +158,15 @@
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'
export default {
name: 'OperaInsuranceApplyWindow2',
extends: BaseOpera,
- components: { GlobalWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, detailsPolicyholder },
+ components: { GlobalWindow, selectEmployees, addEmployee, OperaWtbApplyShopWindow, importEmployees, confirmJobType, detailsPolicyholder, OperaInsuranceApplyDetails },
data () {
return {
form: {
@@ -208,10 +217,16 @@
applyStartTime: this.form.applyStartTime,
applyEndTime: this.form.applyEndTime,
solutionId: this.form.solutionId
- }).then(() => {
+ }).then(res=> {
+ console.log(res)
this.visible = false
+ if (this.item.type == 1) {
+ this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: res })
+ } else {
+ this.$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: res })
+ }
this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
- this.$emit('success')
+ // this.$emit('success')
})
.catch(e => {
this.$tip.apiFailed(e)
@@ -295,11 +310,15 @@
if (index === 0) {
sums[index] = '鎬讳环'
} else if (index === 7) {
- let total = 0
- this.tableData.forEach(item => {
- total += item.fee
- })
- sums[index] = total
+ if(this.item.type == 1){
+ sums[index] = "-"
+ }else{
+ let total = 0
+ this.tableData.forEach(item => {
+ total += item.fee
+ })
+ sums[index] = total.toFixed(2)
+ }
}
})
return sums
--
Gitblit v1.9.3