|
|
@@ -88,7 +88,7 @@
|
|
|
<el-dropdown-item v-if="user.timeType.mainProjectState == 1">
|
|
|
<el-link type="primary" :underline="false" @click="mainProjectDialog = true">{{ $t('masterprojectmanagement') }}</el-link>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="permissions.projectPhase && user.company.packageProject == 1">
|
|
|
+ <el-dropdown-item v-if="permissions.projectPhase">
|
|
|
<el-link type="primary" :underline="false" @click="phaseProjectDialog = true">{{ $t('projectstagemanagement') }}</el-link>
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="user.timeType.projectLevelState == 1">
|
|
|
@@ -206,7 +206,7 @@
|
|
|
|
|
|
<!-- 项目阶段 -->
|
|
|
<!-- 换位置之前看下项目阶段发起的请求 -->
|
|
|
- <el-table-column prop="currentStage" :label="$t('projectphase')" sortable="custom" min-width="150" width="220" v-if="user.company.packageProject == 1">
|
|
|
+ <el-table-column prop="currentStage" :label="$t('projectphase')" sortable="custom" min-width="150" width="220" >
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.currentStageId == null ? $t('nostage') : scope.row.currentStageName}}
|
|
|
<el-link v-if="(permissions.projectManagement || user.id==scope.row.inchargerId || user.id==scope.row.creatorId)" type="primary" :underline="false" @click="showChangeStageDialog(scope.row.id, scope.row.currentStageId)">
|
|
|
@@ -357,7 +357,7 @@
|
|
|
<el-dropdown-item><el-button type="text" @click="batchProjectTaskParticipant()">{{ $t('piLiangTianJiaRenWuChanYuRen') }}</el-button></el-dropdown-item>
|
|
|
<el-dropdown-item><el-button type="text" @click="addProPreson()">{{ $t('projectparticipantsinbatches') }}</el-button></el-dropdown-item>
|
|
|
<el-dropdown-item><el-button type="text" v-if="permissions.projectManagement" @click="batchIncharger()">{{ $t('projectmanagersinbatches') }}</el-button></el-dropdown-item>
|
|
|
- <el-dropdown-item><el-button type="text" v-if="user.company.packageProject" @click="batchProjectStage()">{{ $t('piLiangXiuGaiXiangMuJieDuan') }}</el-button></el-dropdown-item>
|
|
|
+ <el-dropdown-item><el-button type="text" @click="batchProjectStage()">{{ $t('piLiangXiuGaiXiangMuJieDuan') }}</el-button></el-dropdown-item>
|
|
|
<el-dropdown-item><el-button type="text" v-if="user.roleName=($t('role.superAdministrator'))" @click="batchDelete()" :loading="isDeleting">{{ $t('Batchdelete') }}</el-button></el-dropdown-item>
|
|
|
</template>
|
|
|
</el-dropdown-menu>
|
|
|
@@ -420,6 +420,11 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="项目阶段" prop="category">
|
|
|
+ <el-select v-model="addForm.currentStageId" style="width:32%;" filterable :disabled="canOnlyModParticipator">
|
|
|
+ <el-option v-for="(item, index) in phaseList" :key="index" :label="item.projectStageName" :value="item.id"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item :label="$t('subordinatedepartments')" :prop="false" v-if="user.timeType.projectWithDept">
|
|
|
<el-cascader v-model="addForm.deptId" :options="departmentList" :placeholder="$t('defaultText.pleaseChoose')" :disabled="canOnlyModParticipator"
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover' }" clearable filterable @change="cascaderChange" style="width: 100%"
|
|
|
@@ -5177,7 +5182,9 @@ a {
|
|
|
manDayStartDate:item.manDayStartDate,
|
|
|
manDayDisable:item.manDay,
|
|
|
fromOutside:item.fromOutside,
|
|
|
- deptIds: (item.departmentList || []).map(item => item.departmentId)
|
|
|
+ deptIds: (item.departmentList || []).map(item => item.departmentId),
|
|
|
+ currentStageId: item.currentStageId,
|
|
|
+ currentStageName: item.currentStageName
|
|
|
}
|
|
|
for(var i in this.dataList) {
|
|
|
var str = 'plate' + (+i + 1)
|
|
|
@@ -5571,6 +5578,11 @@ a {
|
|
|
if((this.addForm.leaderId || []).length > 0) {
|
|
|
formData.append('leaderIds', this.addForm.leaderId);
|
|
|
}
|
|
|
+ if (this.addForm.currentStageId) {
|
|
|
+ formData.append('currentStageId', this.addForm.currentStageId);
|
|
|
+ //设置名称
|
|
|
+ formData.append('currentStageName', this.phaseList.filter(ph=>ph.id==this.addForm.currentStageId)[0].projectStageName);
|
|
|
+ }
|
|
|
|
|
|
const deptListNew = this.addForm.deptIds.filter(item => item)
|
|
|
formData.append('deptIds', deptListNew.join(','))
|
|
|
@@ -6182,9 +6194,9 @@ a {
|
|
|
this.getSupplierList()
|
|
|
// this.getPhase()
|
|
|
}
|
|
|
- if(this.user.company.packageProject == 1) {
|
|
|
+ // if(this.user.company.packageProject == 1) {
|
|
|
this.obtainPhase()
|
|
|
- }
|
|
|
+ // }
|
|
|
// this.getSupplierList()
|
|
|
|
|
|
if(this.user.timeType.mainProjectState == 1){
|