From 9a819fa35464df79a1a8a56e132b3463fac520a7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期日, 07 四月 2024 18:59:08 +0800
Subject: [PATCH] mrshi
---
company/src/components/business/ApplyChangeDetails.vue | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/company/src/components/business/ApplyChangeDetails.vue b/company/src/components/business/ApplyChangeDetails.vue
index ada8485..5ac1140 100644
--- a/company/src/components/business/ApplyChangeDetails.vue
+++ b/company/src/components/business/ApplyChangeDetails.vue
@@ -80,6 +80,9 @@
<!-- <el-button type="danger" :loading="isWorking.export" @click="check(1)">瀹℃牳涓嶉�氳繃</el-button>-->
<el-button @click="visible=false">鍙栨秷</el-button>
</template>
+ <template v-else-if="type==2" v-slot:footer>
+ <el-button @click="visible=false">杩斿洖</el-button>
+ </template>
<template v-else v-slot:footer>
<el-button type="primary" :loading="isWorking.export" @click="exportComFilesDo">浼佷笟璇佷欢</el-button>
<el-button type="primary" :loading="isWorking.export" @click="exportDetail">瀵煎嚭璇﹀崟</el-button>
@@ -92,8 +95,8 @@
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
import {getChangeDetailList, exportJiajianBaoExcel} from "@/api/business/insuranceApply";
+ import {check } from "@/api/business/applyChange";
import {exportComFiles} from "@/api/business/company";
- // import {all as solutionAll} from "@/api/business/solutions";
export default {
name: 'ApplyChangeDetails',
extends: BaseOpera,
@@ -124,14 +127,31 @@
})
},
methods: {
- open(title,target,target2){
+ open(title,target,target2,target3){
this.title=title
this.visible=true
this.apply = target
this.model = target2
- this.form.id=target.id
+ this.form.id=target2.id
+ this.type=target3
this.getDetailListDo()
},
+ check (type) {
+ this.form.dealBackApply = type
+ this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�')
+ .then(() => {
+ this.isWorking = true
+ check(this.form)
+ .then(response => {
+ this.visible = false
+ this.$emit('success')
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ })
+ })
+ .catch(() => {
+ })
+ },
getDetailListDo() {
this.detailList = []
var that = this
@@ -151,7 +171,6 @@
var addModel = addDetailList.length > i?addDetailList[i]:{}
var delModel = delDetailList.length > i?delDetailList[i]:{}
that.detailList.push({add:addModel,del:delModel});
- console.log(detailList)
}
}).catch(err => {})
},
@@ -316,7 +335,7 @@
border-bottom: 1px solid #b4bbc5;
box-sizing: border-box;
&:nth-child(2) {
- flex: 5;
+ flex: 5.5;
}
}
.box_form_item {
--
Gitblit v1.9.3