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('请输入项目料号!')