From a4945c89ee72aa8b6f2c0a75653a3256a2b30b4f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 16 五月 2024 19:02:57 +0800
Subject: [PATCH] 提交一把
---
company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue | 103 ++++++++++++++++++++++++++-------------------------
1 files changed, 53 insertions(+), 50 deletions(-)
diff --git a/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue b/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue
index b079e87..1b8721a 100644
--- a/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue
+++ b/company/src/components/enterprise/OperaInsuranceApplyAddWindow.vue
@@ -137,9 +137,9 @@
</el-table-column>
</el-table>
<div class="info" v-if="item">
- <span v-if="item.specialAgreement">{{item.specialAgreement}}</span>
- <span v-if="item.specialInfo">{{item.specialInfo}}</span>
- <span v-if="item.ortherInfo">{{item.ortherInfo}}</span>
+ <span v-if="item.specialAgreement" v-html="item.specialAgreement"></span>
+ <span v-if="item.specialInfo" v-html="item.specialInfo"> </span>
+ <span v-if="item.ortherInfo" v-html="item.ortherInfo"></span>
</div>
<!-- 閫夋嫨鍛樺伐 -->
<selectEmployees ref="selectEmployees" @result="getValue" />
@@ -174,7 +174,8 @@
export default {
name: 'OperaInsuranceApplyAddWindow',
extends: BaseOpera,
- components: { GlobalWindow, selectEmployees, addEmployee,importEmployees, confirmJobType, detailsPolicyholder
+ components: {
+ GlobalWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, detailsPolicyholder
// , OperaWtbApplyShopWindow, OperaInsuranceApplyDetails
},
data () {
@@ -227,25 +228,25 @@
applyStartTime: this.form.applyStartTime,
applyEndTime: this.form.applyEndTime,
solutionId: this.form.solutionId
- }).then(res=> {
+ }).then(res => {
console.log(res)
this.visible = false
if (this.item.type == 1) {
// this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: res })
- this.$emit('success','濮旀墭鎶曚繚璇︽儏', { id: res })
+ this.$emit('success', 1, { id: res })
} else {
// this.$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: res })
- this.$emit('success','鎶曚繚璇︽儏', { id: res })
+ this.$emit('success', 1, { id: res })
}
this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
// this.$emit('success','濮旀墭鎶曚繚璇︽儏', { id: res })
})
- .catch(e => {
- this.$tip.apiFailed(e)
- })
- .finally(() => {
- this.isWorking = false
- })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
// } else {
// updateData({
// id: this.form.id,
@@ -295,25 +296,25 @@
// 鑾峰彇鎶曚繚璇︽儏
getDetails () {
findList({ applyId: this.form.id })
- .then(res => {
- res.forEach(item => {
- console.log(item)
- item.idCard = item.idcardNo
- item.fee = ''
- if (this.type === 1) {
- item.duName = ''
- item.duId = ''
- item.worktypeId = ''
- item.workTypeName = ''
- }
- })
- this.tableData = res
+ .then(res => {
+ res.forEach(item => {
+ console.log(item)
+ item.idCard = item.idcardNo
+ item.fee = ''
+ if (this.type === 1) {
+ // item.duName = ''
+ // item.duId = ''
+ // item.worktypeId = ''
+ // item.workTypeName = ''
+ }
})
+ this.tableData = res
+ })
getDetail(this.form.id)
- .then(res => {
- // this.form.solutionId = res.solutionId
- this.changeSolution1(res.solutionId)
- })
+ .then(res => {
+ // this.form.solutionId = res.solutionId
+ this.changeSolution1(res.solutionId)
+ })
},
getSummaries (param) {
const { columns, data } = param
@@ -322,9 +323,9 @@
if (index === 0) {
sums[index] = '鎬讳环'
} else if (index === 7) {
- if(this.item || this.item.type == 1){
- sums[index] = "-"
- }else{
+ if (this.item || this.item.type == 1) {
+ sums[index] = '-'
+ } else {
let total = 0
this.tableData.forEach(item => {
total += item.fee
@@ -464,8 +465,8 @@
if (item.id === e) {
// this.price = item.price
this.item = item
- if(this.item && this.item.type==1){
- this.item.fee=0
+ if (this.item && this.item.type == 1) {
+ this.item.fee = 0
}
this.updatePickerOptions()
}
@@ -477,21 +478,23 @@
// 鍒囨崲鏂规
changeSolution1 (e) {
getNewVersion(e)
- .then(res => {
- this.form.solutionId = res.id
- this.company.forEach(item => {
- if (item.id === res.id) {
- // this.price = item.price
- this.item = item
- if(this.item && this.item.type==1){
- this.item.fee=0
- }
- this.updatePickerOptions()
+ .then(res => {
+ this.form.solutionId = res.id
+ this.company.forEach(item => {
+ if (item.id === res.id) {
+ // this.price = item.price
+ this.item = item
+ if (this.item && this.item.type == 1) {
+ this.item.fee = 0
}
- })
+ this.updatePickerOptions()
+ }
})
+ })
this.tableData.forEach(item => {
- item.fee = this.price
+ if(this.item.type != 0){
+ item.fee = this.price
+ }
})
},
dele (index) {
@@ -526,9 +529,9 @@
// 鏌ヨ鍏ㄩ儴鏂规
getCompany () {
all({})
- .then(res => {
- this.company = res
- })
+ .then(res => {
+ this.company = res
+ })
},
getAgeByIdCard (idCard) {
const sexAndAge = {}
--
Gitblit v1.9.3