|
@@ -42,7 +42,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="this.user.companyId==3092" :label="$t('taskdefinition')" prop="serviceId">
|
|
|
+ <!-- <el-form-item v-if="this.user.companyId==3092" :label="$t('taskdefinition')" prop="serviceId">
|
|
|
<el-select filterable style="width:100%;" v-model="addForm.serviceId" placeholder="请选择任务内容">
|
|
|
<el-option
|
|
|
v-for="item in sapServiceList"
|
|
@@ -51,8 +51,8 @@
|
|
|
:value="item.serviceCode">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-else :label="$t('taskdefinition')" prop="name">
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item :label="$t('taskdefinition')" prop="name">
|
|
|
<el-input v-model="addForm.name" :maxlength="40" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" :placeholder="$t('enterthetaskcontent')" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<!-- {{timelabel}}{{mileageCup}} -->
|
|
@@ -75,7 +75,16 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<selectCat v-if="user.userNameNeedTranslate == 1" :size="'mini'" :filterable="true" :subject="users" :subjectId="executorItem.executorId" :distinction="'1'" @selectCal="selectCal" :index="index" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)"></selectCat>
|
|
|
-
|
|
|
+ <span v-if="user.companyId==3092" style="margin-left:30px;margin-right:10px;">{{'项目服务'}}</span>
|
|
|
+ <el-select v-if="user.companyId==3092" multiple clearable filterable v-model="executorItem.serviceId" placeholder="请选择项目服务">
|
|
|
+ <el-option
|
|
|
+ v-for="item in sapServiceList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.serviceName+'-'+item.serviceCode"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+
|
|
|
<span style="margin-left:30px;margin-right:10px;">{{ $t('plantime') }}</span>
|
|
|
<el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" v-model="gstimday[index]" style="width:16%;" :min="1" :max="100" :placeholder="$t('danweitian')" @change="chggstim(0,index)"></el-input-number ><span style="margin-left:5px;">{{ $t('time.day') }}</span>
|
|
|
<el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" v-model="gstimhour[index]" style="width:16%;" :min="1" :max="999" :placeholder="$t('pleaseentertheplannedworking')" @change="chggstim(1,index)"></el-input-number ><span style="margin-left:5px;">{{ $t('time.hour') }}</span>
|
|
@@ -1053,6 +1062,12 @@ export default {
|
|
|
this.recentProgressInfo = res.data.progress;
|
|
|
|
|
|
if(res.data.executorList.length > 0) {
|
|
|
+ for(var i in res.data.executorList){
|
|
|
+ if(res.data.executorList[i].serviceId) {
|
|
|
+ res.data.executorList[i].serviceId = JSON.parse(res.data.executorList[i].serviceId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log("==================",res.data.executorList)
|
|
|
this.addForm.executorListFront = res.data.executorList;
|
|
|
} else {
|
|
|
this.addForm.executorListFront = [{executorId: null, planHours: 8}];
|
|
@@ -1382,6 +1397,9 @@ export default {
|
|
|
delete this.addForm.progress;
|
|
|
//去掉没有执行人的.(因为要有计划工时,执行人可以暂不设置)
|
|
|
// this.addForm.executorListFront = this.addForm.executorListFront.filter(exe=>exe.executorId);
|
|
|
+ if(this.addForm.executorListFront.serviceId){
|
|
|
+ this.addForm.executorListFront.serviceId= JSON.stringify(this.addForm.executorListFront.serviceId);
|
|
|
+ }
|
|
|
this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
|
|
|
this.addLoading = true;
|
|
|
this.http.post('/task/save',this.addForm,
|