|
@@ -4,7 +4,7 @@
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="17" >
|
|
<el-col :span="17" >
|
|
<div class="box info">
|
|
<div class="box info">
|
|
- <label>基本信息<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="showEdit" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
|
|
|
|
|
|
+ <label>基本信息<el-link v-if="(user.id == project.creatorId || user.id == project.inchargerId) || permissions.projectManagement" @click="showEdit" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
|
|
<el-row :gutter="10" >
|
|
<el-row :gutter="10" >
|
|
<el-col :span="5" ><span class="gray_label">项目名称:</span></el-col><el-col :span="7" ><span >{{project.projectName}}</span></el-col>
|
|
<el-col :span="5" ><span class="gray_label">项目名称:</span></el-col><el-col :span="7" ><span >{{project.projectName}}</span></el-col>
|
|
<el-col :span="5" ><span class="gray_label">项目分类:</span></el-col><el-col :span="7" ><span >{{project.categoryName}}</span></el-col>
|
|
<el-col :span="5" ><span class="gray_label">项目分类:</span></el-col><el-col :span="7" ><span >{{project.categoryName}}</span></el-col>
|
|
@@ -24,7 +24,7 @@
|
|
<el-col :span="7" >
|
|
<el-col :span="7" >
|
|
<span style="float:left;" v-if="permissions.projectContract">{{project.contractAmount == null?'-':project.contractAmount | numberToCurrency}} 元</span>
|
|
<span style="float:left;" v-if="permissions.projectContract">{{project.contractAmount == null?'-':project.contractAmount | numberToCurrency}} 元</span>
|
|
<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="contractRecord" style="float:left;"><i class="iconfont firerock-iconrecord"></i></el-link>
|
|
<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="contractRecord" style="float:left;"><i class="iconfont firerock-iconrecord"></i></el-link>
|
|
- <el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="contractChange" style="float:right;"><i class="el-icon-edit" ></i></el-link>
|
|
|
|
|
|
+ <el-link v-if="user.id == project.creatorId || user.id == project.inchargerId || permissions.projectManagement" @click="contractChange" style="float:right;"><i class="el-icon-edit" ></i></el-link>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -76,7 +76,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="box" style="margin-top:10px;">
|
|
<div class="box" style="margin-top:10px;">
|
|
<div><label>相关人员</label>
|
|
<div><label>相关人员</label>
|
|
- <el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="showEditPar" style="float:right;"><i class="el-icon-edit" ></i></el-link>
|
|
|
|
|
|
+ <el-link v-if="user.id == project.creatorId || user.id == project.inchargerId || permissions.projectManagement" @click="showEditPar" style="float:right;"><i class="el-icon-edit" ></i></el-link>
|
|
</div>
|
|
</div>
|
|
<div style="margin-top:10px;color:#999;">项目经理</div>
|
|
<div style="margin-top:10px;color:#999;">项目经理</div>
|
|
<div><el-link style="margin:10px" @click="showUser(project.inchargerId)">{{project.inchargerName}}</el-link></div>
|
|
<div><el-link style="margin:10px" @click="showUser(project.inchargerId)">{{project.inchargerName}}</el-link></div>
|
|
@@ -105,7 +105,7 @@
|
|
</div> -->
|
|
</div> -->
|
|
<!--项目相关工程专业 -->
|
|
<!--项目相关工程专业 -->
|
|
<div class="box info" style="margin-top:10px;" v-if="user.company.packageEngineering == 1">
|
|
<div class="box info" style="margin-top:10px;" v-if="user.company.packageEngineering == 1">
|
|
- <div><label>相关工程专业<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="showEditProfession" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
|
|
|
|
|
|
+ <div><label>相关工程专业<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId || permissions.projectManagement" @click="showEditProfession" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
|
|
<el-row :gutter="10" v-for="item in projectProfessionListOnPage" :key="item.id">
|
|
<el-row :gutter="10" v-for="item in projectProfessionListOnPage" :key="item.id">
|
|
<el-col :span="5" ><span >{{item.professionName}}</span></el-col>
|
|
<el-col :span="5" ><span >{{item.professionName}}</span></el-col>
|
|
<el-col :span="2" ><span >{{item.percentage}}%</span></el-col>
|
|
<el-col :span="2" ><span >{{item.percentage}}%</span></el-col>
|
|
@@ -117,7 +117,7 @@
|
|
|
|
|
|
<!--项目相关领导 -->
|
|
<!--项目相关领导 -->
|
|
<div class="box info" style="margin-top:10px;" >
|
|
<div class="box info" style="margin-top:10px;" >
|
|
- <div><label>相关领导<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId" @click="showChooseLeaderTree" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
|
|
|
|
|
|
+ <div><label>相关领导<el-link v-if="user.id == project.creatorId || user.id == project.inchargerId || permissions.projectManagement" @click="showChooseLeaderTree" style="float:right;"><i class="el-icon-edit" ></i></el-link></label>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
@@ -1340,6 +1340,7 @@
|
|
if(this.addForm.inchargerId != null) {
|
|
if(this.addForm.inchargerId != null) {
|
|
formData.append("inchargerId", this.addForm.inchargerId);
|
|
formData.append("inchargerId", this.addForm.inchargerId);
|
|
}
|
|
}
|
|
|
|
+ formData.append("onlyChangeParticipate", 'true');
|
|
|
|
|
|
this.http.uploadFile(this.port.project.add,formData,
|
|
this.http.uploadFile(this.port.project.add,formData,
|
|
res => {
|
|
res => {
|