|
@@ -361,6 +361,11 @@
|
|
{{scope.row.progress==null?"-":scope.row.progress}}%
|
|
{{scope.row.progress==null?"-":scope.row.progress}}%
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="manDay" :label="'预估工时'" min-width="100" v-if="user.timeType.projectManDay == 1">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{scope.row.manDay==null?"":scope.row.manDay}}<span v-if="scope.row.manDay">人天</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column :label="$t('operation')" :width="showColumnWidth" align="left" fixed="right" v-if="showColumnWidth != '0' || permissions.projectManagement">
|
|
<el-table-column :label="$t('operation')" :width="showColumnWidth" align="left" fixed="right" v-if="showColumnWidth != '0' || permissions.projectManagement">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button v-if="(permissions.projectManagement || user.id==scope.row.creatorId) && user.timeType.mainProjectState != '1'" size="mini" @click="subProject(scope.row)">{{ $t('lable.subproject') }}</el-button>
|
|
<el-button v-if="(permissions.projectManagement || user.id==scope.row.creatorId) && user.timeType.mainProjectState != '1'" size="mini" @click="subProject(scope.row)">{{ $t('lable.subproject') }}</el-button>
|
|
@@ -577,6 +582,11 @@
|
|
<vueCascader :size="'small'" :subjectId="addForm.bu" :widthStr="'200'" :clearable="true" :subject="buOption" :radios="true" :distinction="'32'" @vueCasader="vueCasader" v-if="user.userNameNeedTranslate == 1"></vueCascader>
|
|
<vueCascader :size="'small'" :subjectId="addForm.bu" :widthStr="'200'" :clearable="true" :subject="buOption" :radios="true" :distinction="'32'" @vueCasader="vueCasader" v-if="user.userNameNeedTranslate == 1"></vueCascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
+ <!-- 增加项目人天字段 绎维固定字段 -->
|
|
|
|
+ <el-form-item label="项目人天" v-if="user.timeType.projectManDay == 1">
|
|
|
|
+ <el-input v-model.number="addForm.manDay" :placeholder="$t('peaseenterthe')" style="width: 100px"></el-input><span style="margin-left:10px;position:absolute;">人天</span>
|
|
|
|
+ </el-form-item>
|
|
|
|
+
|
|
<el-form-item :label="$t('projectoutput')" prop="outputValue" v-if="user.timeType.outputValueStatus == 1">
|
|
<el-form-item :label="$t('projectoutput')" prop="outputValue" v-if="user.timeType.outputValueStatus == 1">
|
|
<el-input id="outputValue" v-model="addForm.outputValue" style="width:32%;" :disabled="canOnlyModParticipator"
|
|
<el-input id="outputValue" v-model="addForm.outputValue" style="width:32%;" :disabled="canOnlyModParticipator"
|
|
placeholder="" clearable @keyup.native="restrictNumber('outputValue')">
|
|
placeholder="" clearable @keyup.native="restrictNumber('outputValue')">
|
|
@@ -3689,7 +3699,8 @@ a {
|
|
creatorId: this.user.id,
|
|
creatorId: this.user.id,
|
|
projectMainId: '',
|
|
projectMainId: '',
|
|
outputValue: '',
|
|
outputValue: '',
|
|
- bu: []
|
|
|
|
|
|
+ bu: [],
|
|
|
|
+ manDay:0
|
|
// deptId: []
|
|
// deptId: []
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3705,6 +3716,9 @@ a {
|
|
this.$set(this.addForm, 'region', '')
|
|
this.$set(this.addForm, 'region', '')
|
|
this.$set(this.addForm, 'bu', '')
|
|
this.$set(this.addForm, 'bu', '')
|
|
}
|
|
}
|
|
|
|
+ if(this.user.timeType.projectManDay){
|
|
|
|
+ this.$set(this.addForm, 'manDay',0)
|
|
|
|
+ }
|
|
// if(this.user.companyId == '428') {
|
|
// if(this.user.companyId == '428') {
|
|
// this.$set(this.addForm, 'projectCategorySub', '')
|
|
// this.$set(this.addForm, 'projectCategorySub', '')
|
|
// }
|
|
// }
|
|
@@ -3797,7 +3811,9 @@ a {
|
|
outputValue: item.outputValue,
|
|
outputValue: item.outputValue,
|
|
// deptId: array.reverse(),
|
|
// deptId: array.reverse(),
|
|
changeContractReason: '',
|
|
changeContractReason: '',
|
|
- bu: buascaderList
|
|
|
|
|
|
+ bu: buascaderList,
|
|
|
|
+ manDay:item.manDay==null?0:item.manDay,
|
|
|
|
+ manDayDisable:item.manDay
|
|
}
|
|
}
|
|
this.contractAmountOld = item.contractAmount ? item.contractAmount : 0
|
|
this.contractAmountOld = item.contractAmount ? item.contractAmount : 0
|
|
// console.log(this.addForm, '数据')
|
|
// console.log(this.addForm, '数据')
|
|
@@ -4147,6 +4163,10 @@ a {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
formData.append("buId", this.addForm.bu ? this.addForm.bu : '');
|
|
formData.append("buId", this.addForm.bu ? this.addForm.bu : '');
|
|
|
|
+ if(this.user.timeType.projectManDay){
|
|
|
|
+ formData.append("manDay", this.addForm.manDay ? this.addForm.manDay : '');
|
|
|
|
+ }
|
|
|
|
+
|
|
// formData.append("associateDegreeNames", listName)
|
|
// formData.append("associateDegreeNames", listName)
|
|
//console.log("addform",this.addForm);
|
|
//console.log("addform",this.addForm);
|
|
//return
|
|
//return
|