|
@@ -468,15 +468,15 @@
|
|
|
<el-option v-for="item in timeBasecostList" :label="item.name" :value="item.id" :key="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="$t('lable.taskGrouping')" v-if="user.company.packageProject == 1">
|
|
|
+ <el-form-item :label="$t('lable.taskGrouping')" v-if="user.company.packageProject == 1" :prop="'domains.' + index + '.stage'"
|
|
|
+ :rules="{ required: true, message: '请选择任务分组和阶段', trigger: ['change','blur'] }" >
|
|
|
<!-- 任务分组 -->
|
|
|
<el-select v-model="domain.groupId" :placeholder="$t('defaultText.pleaseSelectaTaskGroup')" style="width:200px;" clearable="true"
|
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)" @change="getGroupStages(domain, index)">
|
|
|
<el-option v-for="item in domain.taskGroups" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
<!-- 项目的阶段 -->
|
|
|
- <span v-if="domain.stages != null && domain.stages.length> 0"
|
|
|
- style="margin-left:30px;">{{$t('other.inputStage')}}</span>
|
|
|
+ <span style="color:red; padding:3px;margin-left:30px;">*</span><span v-if="domain.stages != null && domain.stages.length> 0" >{{$t('other.inputStage')}}</span>
|
|
|
<el-select v-model="domain.stage" :placeholder="$t('defaultText.pleaseChoose')" style="width:200px;margin-left:10px;"
|
|
|
clearable="true" v-if="domain.stages != null && domain.stages.length> 0"
|
|
|
@change="changeStages(domain, index)"
|
|
@@ -932,14 +932,14 @@
|
|
|
</div>
|
|
|
<!-- 任务分组 -->
|
|
|
<div class="zhoFel" v-if="user.company.packageProject == 1">
|
|
|
- <p>{{$t('lable.taskGrouping')}}</p>
|
|
|
+ <p><span style="color:red;">*</span>{{$t('lable.taskGrouping')}}</p>
|
|
|
<el-select v-model="zhoBao.groupId" :placeholder="$t('defaultText.pleaseSelectaTaskGroup')" clearable="true" style="width: 355px"
|
|
|
@change="getGroupStages(zhoBao, 0)">
|
|
|
<el-option v-for="item in zhoBao.taskGroups" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="zhoFel" v-if="user.company.packageProject == 1 && zhoBao.stages != null && zhoBao.stages.length> 0">
|
|
|
- <p>{{$t('other.inputStage')}}</p>
|
|
|
+ <p><span style="color:red;">*</span>{{$t('other.inputStage')}}</p>
|
|
|
<el-select v-model="zhoBao.stage" :placeholder="$t('defaultText.pleaseChoose')" style="width: 355px" clearable="true" >
|
|
|
<el-option v-for="item in zhoBao.stages" :key="item.id" :label="item.stagesName" :value="item.stagesName"></el-option>
|
|
|
</el-select>
|
|
@@ -2633,6 +2633,10 @@
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.workForm.domains[index].taskGroups = res.data;
|
|
|
+ // if (this.workForm.domains[index].taskGroups.length > 0) {
|
|
|
+ // this.workForm.domains[index].groupId = this.workForm.domains[index].taskGroups[0].id;
|
|
|
+ // this.getGroupStages(domain, index);
|
|
|
+ // }
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
},
|
|
@@ -3864,18 +3868,21 @@
|
|
|
});
|
|
|
}
|
|
|
);
|
|
|
+ //获取项目相关专业
|
|
|
+ if (this.user.company.packageEngineering == 1) {
|
|
|
+ this.getProjectProfessions(domain, index);
|
|
|
+ }
|
|
|
+ //获取项目下的任务分组
|
|
|
+ this.getTaskGroups(domain, index);
|
|
|
+
|
|
|
}
|
|
|
- //获取项目相关专业
|
|
|
- if (this.user.company.packageEngineering == 1) {
|
|
|
- this.getProjectProfessions(domain, index);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
// 获取项目相关的维度
|
|
|
// domain.degreeId = null
|
|
|
this.$set(domain,'degreeId',null)
|
|
|
this.dimension(domain, index);
|
|
|
- //获取项目下的任务分组
|
|
|
- this.getTaskGroups(domain, index);
|
|
|
+
|
|
|
//获取项目审核人
|
|
|
if (this.user.timeType.reportAuditType == 0 || this.user.timeType.reportAuditType == 4) {
|
|
|
this.getProjectAuditorList(domain, index);
|
|
@@ -5325,6 +5332,16 @@
|
|
|
},
|
|
|
// 按周填报里内容的填写点击确定
|
|
|
setWeekProItemData() {
|
|
|
+ //专业版模式下,任务分组和阶段必填
|
|
|
+ if (this.user.company.packageProject == 1) {
|
|
|
+ if (!this.zhoBao.groupId || !this.zhoBao.stage) {
|
|
|
+ this.$message({
|
|
|
+ message: '任务分组和阶段必填,请检查',
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
//检查子项目是否必填
|
|
|
if (this.user.timeType.subProMustFill == 1 && this.zhoBao.subProjectList && this.zhoBao.subProjectList.length > 0 && !this.zhoBao.subProjectId) {
|
|
|
this.$message({
|