|
@@ -177,7 +177,7 @@
|
|
<el-timeline-item v-for="(item2,index2) in item1.data" :key="index2">
|
|
<el-timeline-item v-for="(item2,index2) in item1.data" :key="index2">
|
|
<el-card shadow="never">
|
|
<el-card shadow="never">
|
|
<p><!-- 项目 -->{{$t('other.project')}}:<b v-if="item2.projectCode">{{item2.projectCode + '/'}}</b><b>{{item2.project}}</b>
|
|
<p><!-- 项目 -->{{$t('other.project')}}:<b v-if="item2.projectCode">{{item2.projectCode + '/'}}</b><b>{{item2.project}}</b>
|
|
- <!-- <span v-if="item2.subProjectName != null"> / {{item2.subProjectName}}</span> -->
|
|
|
|
|
|
+ <span v-if="item2.subProjectName != null"> / {{item2.subProjectName}}</span>
|
|
<span v-if="user.company.packageEngineering == 0">
|
|
<span v-if="user.company.packageEngineering == 0">
|
|
<span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0">[
|
|
<span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0">[
|
|
<span v-if="item2.isDeptAudit==0">
|
|
<span v-if="item2.isDeptAudit==0">
|
|
@@ -435,7 +435,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
<span v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
<span v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
- style="margin-left:45px;">{{$t('lable.subproject')}}</span>
|
|
|
|
|
|
+ style="margin-left:45px;"><span v-if="user.timeType.subProMustFill==1" style="color:red;">*</span>{{$t('lable.subproject')}}</span>
|
|
|
|
|
|
<!--子项目 -->
|
|
<!--子项目 -->
|
|
<el-select v-model="domain.subProjectId" :placeholder="$t('defaultText.PleaseSelectaSub-item')" style="width:200px;margin-left:10px;" clearable="true"
|
|
<el-select v-model="domain.subProjectId" :placeholder="$t('defaultText.PleaseSelectaSub-item')" style="width:200px;margin-left:10px;" clearable="true"
|
|
@@ -590,7 +590,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
<span v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
<span v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
- style="margin-left:45px;">{{$t('lable.subproject')}}</span>
|
|
|
|
|
|
+ style="margin-left:45px;"><span v-if="user.timeType.subProMustFill==1" style="color:red;">*</span>{{$t('lable.subproject')}}</span>{{$t('lable.subproject')}}</span>
|
|
<!--子项目 -->
|
|
<!--子项目 -->
|
|
<el-select v-model="domain.subProjectId" :placeholder="$t('defaultText.PleaseSelectaSub-item')" style="width:200px;margin-left:10px;" clearable="true"
|
|
<el-select v-model="domain.subProjectId" :placeholder="$t('defaultText.PleaseSelectaSub-item')" style="width:200px;margin-left:10px;" clearable="true"
|
|
v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
@@ -865,7 +865,7 @@
|
|
<el-dialog :title="$t('defaultText.pleaseFillOut')" :visible.sync="tianxieDialogVisible" width="500px" :before-close="handleClose">
|
|
<el-dialog :title="$t('defaultText.pleaseFillOut')" :visible.sync="tianxieDialogVisible" width="500px" :before-close="handleClose">
|
|
<div>
|
|
<div>
|
|
<div class="zhoFel" v-if="zhoBao.subProjectList != null && zhoBao.subProjectList.length > 0 && user.timeType.mainProjectState != 1">
|
|
<div class="zhoFel" v-if="zhoBao.subProjectList != null && zhoBao.subProjectList.length > 0 && user.timeType.mainProjectState != 1">
|
|
- <p>{{$t('lable.subproject')}}</p>
|
|
|
|
|
|
+ <p><span v-if="user.timeType.subProMustFill==1" style="color:red;">*</span>{{$t('lable.subproject')}}</p>
|
|
<el-select v-model="zhoBao.subProjectId" :placeholder="$t('defaultText.pleaseChoose')" clearable="true" style="width: 355px">
|
|
<el-select v-model="zhoBao.subProjectId" :placeholder="$t('defaultText.pleaseChoose')" clearable="true" style="width: 355px">
|
|
<el-option v-for="item in zhoBao.subProjectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
<el-option v-for="item in zhoBao.subProjectList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -4757,6 +4757,14 @@
|
|
},
|
|
},
|
|
// 按周填报里内容的填写点击确定
|
|
// 按周填报里内容的填写点击确定
|
|
btnTianxiaes() {
|
|
btnTianxiaes() {
|
|
|
|
+ //检查子项目是否必填
|
|
|
|
+ if (this.user.timeType.subProMustFill == 1 && this.zhoBao.subProjectList && this.zhoBao.subProjectList.length > 0 && !this.zhoBao.subProjectId) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '子项目必填,请检查',
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (!this.zhoBao.projectAuditorId && this.user.timeType.reportAuditType != 3) {
|
|
if (!this.zhoBao.projectAuditorId && this.user.timeType.reportAuditType != 3) {
|
|
this.$message({
|
|
this.$message({
|
|
message: this.$t('message.Pleaseselectareviewer'),
|
|
message: this.$t('message.Pleaseselectareviewer'),
|
|
@@ -4773,7 +4781,7 @@
|
|
auditTips = auditTips.substring(0,auditTips.length - 1)
|
|
auditTips = auditTips.substring(0,auditTips.length - 1)
|
|
this.$message({
|
|
this.$message({
|
|
message: this.$t('defaultText.pleaseChoose') + auditTips + this.$t('other.reviewer'),
|
|
message: this.$t('defaultText.pleaseChoose') + auditTips + this.$t('other.reviewer'),
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'error'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -4795,7 +4803,7 @@
|
|
errtips = errtips.substring(0,errtips.length - 1)
|
|
errtips = errtips.substring(0,errtips.length - 1)
|
|
this.$message({
|
|
this.$message({
|
|
message: this.$t('other.pleaseYes') + errtips + this.$t('other.tofillin'),
|
|
message: this.$t('other.pleaseYes') + errtips + this.$t('other.tofillin'),
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'error'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -5917,6 +5925,20 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //检查子项目
|
|
|
|
+ if (this.user.timeType.subProMustFill == 1) {
|
|
|
|
+ for(var p in this.workForm.domains) {
|
|
|
|
+ var oneProItem = this.workForm.domains[p]
|
|
|
|
+ if (oneProItem.subProjectList.length > 0 && !oneProItem.subProjectId) {
|
|
|
|
+ //没有选择子项目
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '子项目必填,请检查',
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
// return
|
|
// return
|
|
//代填的情况,检查人员是否已经选择
|
|
//代填的情况,检查人员是否已经选择
|