Browse Source

2024.8.15 产品文档收集-优化

java8
yuejiayang 1 year ago
parent
commit
eb2917f3d2
  1. 47
      src/views/modules/eam/eamProjectInfo.vue

47
src/views/modules/eam/eamProjectInfo.vue

@ -142,7 +142,7 @@
<el-option
v-for = "i in userBuList"
:key = "i.buNo"
:label = "i.sitename"
:label = "i.buDesc"
:value = "i.buNo">
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">
{{ 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('请输入项目料号!')

Loading…
Cancel
Save