From 3011b9800d6c5bee031d87bc4e225b5b1fb52571 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期六, 23 十一月 2024 09:19:21 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/2.0.1' into 2.0.1 --- company/src/components/business/OperaInsuranceApplyCheckWindow.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/company/src/components/business/OperaInsuranceApplyCheckWindow.vue b/company/src/components/business/OperaInsuranceApplyCheckWindow.vue index 71d0815..c0eb2dd 100644 --- a/company/src/components/business/OperaInsuranceApplyCheckWindow.vue +++ b/company/src/components/business/OperaInsuranceApplyCheckWindow.vue @@ -84,6 +84,7 @@ uploadToubaodan, check } from "@/api/business/insuranceApply"; +import { uploadBXD } from "@/api/business/unionApply"; import UploadFile from "@/components/common/UploadFile"; import {remark} from "@/api/business/settleClaims"; export default { @@ -155,6 +156,7 @@ visible4: false, visible5: false, visible6: false, + type: null } }, created () { @@ -167,8 +169,9 @@ dele2() { this.form.toubaodanFile = '' }, - open(title,target,flag){ + open(title,target,flag,type){ this.visible=true + this.type = type this.model={} this.form= { id: null, @@ -242,7 +245,11 @@ if (!valid) { return } - this.uploadBaoxiandan() + if (!this.type) { + this.uploadBaoxiandan() + } else if (this.type === 1) { + this.uploadBaoxiandan1() + } }) } else if (this.flag == 4) { this.$refs.form4.validate((valid) => { @@ -337,7 +344,19 @@ this.$tip.apiFailed(err) }) }) - + }, + uploadBaoxiandan1(){ + this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') + .then(() => { + this.isWorking = true + uploadBXD({id:this.model.id,startTime:this.form.startTime,code:this.form.code,baoxiandanFile:this.form.baoxianFile}) + .then(response => { + this.visible = false + this.$emit('success') + }).catch(err => { + this.$tip.apiFailed(err) + }) + }) }, editBaoxiandan(){ this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') -- Gitblit v1.9.3