|
@@ -108,16 +108,9 @@
|
|
<span @click="fundStatus(item.courseId)">资金情况</span>
|
|
<span @click="fundStatus(item.courseId)">资金情况</span>
|
|
<span v-show="item.isupload==0" @click="$message.error('请先进行项目立项审核')">结项</span>
|
|
<span v-show="item.isupload==0" @click="$message.error('请先进行项目立项审核')">结项</span>
|
|
<span v-show="item.isupload==1 && (item.endFile==null)" @click="finish(item.courseId,item.title)">结项</span>
|
|
<span v-show="item.isupload==1 && (item.endFile==null)" @click="finish(item.courseId,item.title)">结项</span>
|
|
- <span v-show="item.isupload==1 && (item.endFile!=null)" @click="finish(item.courseId,item.title)" >修改结项</span>
|
|
|
|
|
|
+ <span v-show="item.isupload==1 && (item.endFile!=null)" @click="amendFinish(item.courseId,item.title)" >修改结项</span>
|
|
<span v-show="item.isupload==2" style="color: gray;cursor: no-drop;">已结项</span>
|
|
<span v-show="item.isupload==2" style="color: gray;cursor: no-drop;">已结项</span>
|
|
- <!-- <el-button type="primary" class="bt1" size="mini" @click="scheduleDetail(item.courseId)">进度详情</el-button>
|
|
|
|
- <el-button type="primary" class="bt1" size="mini" @click="fundStatus(item.courseId)">资金情况</el-button>
|
|
|
|
-
|
|
|
|
- <el-button type="primary" v-show="item.isupload==0" class="bt1" @click="$message.error('请先进行项目立项审核')" size="mini">结项</el-button>
|
|
|
|
-
|
|
|
|
- <el-button type="primary" v-show="item.isupload==1 && (item.endFile==null)" class="bt1" size="mini" @click="finish(item.courseId,item.title)">结项</el-button>
|
|
|
|
- <el-button type="primary" v-show="item.isupload==1 && (item.endFile!=null)" class="bt1" size="mini" @click="finish(item.courseId,item.title)">修改结项</el-button>
|
|
|
|
- <el-button type="primary" v-show="item.isupload==2" class="bt1" style="background-color: #c8c9cc;border-color: #c8c9cc;cursor: no-drop;" size="mini">已结项</el-button> -->
|
|
|
|
|
|
+
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -255,6 +248,7 @@ import beUpload from '../../components/tool/beUpload'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+
|
|
ProgressFormat(value){ //进度条
|
|
ProgressFormat(value){ //进度条
|
|
return value ==100?'100%':`${value}%`
|
|
return value ==100?'100%':`${value}%`
|
|
},
|
|
},
|
|
@@ -262,35 +256,50 @@ import beUpload from '../../components/tool/beUpload'
|
|
this.file = this.file.filter(item=>item.url!=url);
|
|
this.file = this.file.filter(item=>item.url!=url);
|
|
},
|
|
},
|
|
getFile(val) {//上传文件
|
|
getFile(val) {//上传文件
|
|
- // console.log(val);
|
|
|
|
this.file.push(val);
|
|
this.file.push(val);
|
|
- this.progress.show = false;
|
|
|
|
-
|
|
|
|
// console.log(this.file);
|
|
// console.log(this.file);
|
|
|
|
+ this.progress.show = false;
|
|
|
|
+ },
|
|
|
|
+ amendFinish(val,tit){
|
|
|
|
+ this.ajax.post(this.$store.state.api+"/UpdateAmendFinish",{
|
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
|
+ pid:val
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ // console.log(res.data[0][0].endFile);
|
|
|
|
+ let data=JSON.parse(res.data[0][0].endFile)
|
|
|
|
+ this.file=data;
|
|
|
|
+ this.tit=tit;
|
|
|
|
+ this.iid=val;
|
|
|
|
+ this.endDialog=true;
|
|
|
|
+ console.log(this.file);
|
|
|
|
+ }).catch(err=>{
|
|
|
|
+ console.log(err)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
ending(){ //完结提交
|
|
ending(){ //完结提交
|
|
- if(this.file=="")return this.$message.error("请上传完结报告");
|
|
|
|
|
|
+ console.log(this.file.length);
|
|
|
|
+ if(this.file.length<1)return this.$message.error("请上传完结报告");
|
|
this.ajax.post(this.$store.state.api+"/UploadProjectManageFile",{
|
|
this.ajax.post(this.$store.state.api+"/UploadProjectManageFile",{
|
|
uid:this.$store.state.userInfo.userid,
|
|
uid:this.$store.state.userInfo.userid,
|
|
cid:this.iid,
|
|
cid:this.iid,
|
|
file:JSON.stringify(this.file),
|
|
file:JSON.stringify(this.file),
|
|
num:1
|
|
num:1
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
- // console.log(res);
|
|
|
|
|
|
+ console.log(res);
|
|
if(res.data==1){
|
|
if(res.data==1){
|
|
this.$message.success("结项成功");
|
|
this.$message.success("结项成功");
|
|
this.endDialog = false;
|
|
this.endDialog = false;
|
|
this.progress.show = false;
|
|
this.progress.show = false;
|
|
-
|
|
|
|
}else{
|
|
}else{
|
|
this.$message.error("结项失败")
|
|
this.$message.error("结项失败")
|
|
}
|
|
}
|
|
this.getData();
|
|
this.getData();
|
|
|
|
+ },err=>{
|
|
|
|
+ console.log(err);
|
|
})
|
|
})
|
|
this.endDialog=false;
|
|
this.endDialog=false;
|
|
},
|
|
},
|
|
scheduleDetail(val){ //进度详情
|
|
scheduleDetail(val){ //进度详情
|
|
- // console.log(val);
|
|
|
|
localStorage.setItem('pid',JSON.stringify(val))
|
|
localStorage.setItem('pid',JSON.stringify(val))
|
|
this.$router.push(`/ProjectManagement1`)
|
|
this.$router.push(`/ProjectManagement1`)
|
|
},
|
|
},
|
|
@@ -342,10 +351,8 @@ import beUpload from '../../components/tool/beUpload'
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api+'/SelectAllProject',param)
|
|
.get(this.$store.state.api+'/SelectAllProject',param)
|
|
.then(res=>{
|
|
.then(res=>{
|
|
- console.log(res.data);
|
|
|
|
let data=res.data;
|
|
let data=res.data;
|
|
let a=this.options;
|
|
let a=this.options;
|
|
- console.log(data[0]);
|
|
|
|
this.items=data[0];
|
|
this.items=data[0];
|
|
a.projectFilter=data[1];
|
|
a.projectFilter=data[1];
|
|
a.department=data[2];
|
|
a.department=data[2];
|