From eb2917f3d2af6818f65b90bd50a31b3a4ea589db Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:56:16 +0800 Subject: [PATCH] =?UTF-8?q?2024.8.15=20=E4=BA=A7=E5=93=81=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=94=B6=E9=9B=86-=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/eam/eamProjectInfo.vue | 47 +++++++++++++++++++++--- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/src/views/modules/eam/eamProjectInfo.vue b/src/views/modules/eam/eamProjectInfo.vue index 0aed312..776ec79 100644 --- a/src/views/modules/eam/eamProjectInfo.vue +++ b/src/views/modules/eam/eamProjectInfo.vue @@ -142,7 +142,7 @@ {{ i.buDesc }} @@ -715,14 +715,12 @@ import { import Chooselist from '@/views/modules/common/Chooselist_eam' import {removeUserFavorite, saveUserFavorite, userFavoriteList} from '@/api/userFavorite.js' import {getTableDefaultListLanguage, getTableUserListLanguage,} from "@/api/table.js"; -import proofRecord from "./com_project_proof_record"; import { eamProjectInfoDelete, eamProjectInfoEdit, eamProjectInfoSave, eamProjectInfoSearch, } from "@/api/eam/eamProject.js"; -import UploadFileList1 from "../common/uploadFileList1.vue"; import { eamProjectPartInfoDelete, eamProjectPartInfoEdit, @@ -2315,8 +2313,8 @@ import {EventBus} from "../../../main"; needDate:'', cProjectRegion: '', projectManager:'', - ProjectOwner:'', - ProjectOwnerName:'', + projectOwner:'', + projectOwnerName:'', projectManagerName:'', engineer: '', engineerName: '', @@ -2505,6 +2503,26 @@ import {EventBus} from "../../../main"; }) }) } + else { + this.modalData.status = '草稿' + eamProjectInfoSave(this.modalData).then(({data}) => { + if (data && data.code === '0') { + this.getDataList() + this.modalFlag=false + EventBus.$emit('updateProjectPartInfo') + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {}, + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + } } else if (this.modalData.flag === '2'){ if (new Date(this.modalData.needDate).getTime() < new Date().getTime()) { this.$confirm('预计完成日期小于当前日期,确定继续保存?', '提示', { @@ -2538,6 +2556,25 @@ import {EventBus} from "../../../main"; }) }) } + else { + eamProjectInfoEdit(this.modalData).then(({data}) => { + if (data && data.code === '0') { + this.getDataList() + this.modalFlag=false + EventBus.$emit('updateProjectPartInfo') + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + } } else if (this.modalData.flag === '3') { if (this.modalData.testPartNo === '' || this.modalData.testPartNo == null) { this.$message.warning('请输入项目料号!')