+
项目信息优化
+
-
-
-
+
@@ -237,7 +237,8 @@
-
+
+
二、申报单位简介
@@ -334,14 +335,15 @@
-
+
+
七、项目主责单位意见
-
预览
+ >预览 -->
+
上传文件
+
-
+
+
@@ -649,8 +653,8 @@
-
-
+
+
@@ -1023,12 +1027,25 @@ export default {
}
})
.then(res => {
- // this.imageUrl = res.data.data
- if (this.uploadname[0] === 100) {
+ if(res.data.code == 200){
+ if (this.uploadname[0] === 100) {
// this.progressPercent = 0
this.handleAvatarSuccess(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name);
}
+ }else{
+ this.$alert("上传的项目申报书文件上传失败,请修改文件名长度后重新上传", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false;
+ }
+ // this.imageUrl = res.data.data
+ // if (this.uploadname[0] === 100) {
+ // // this.progressPercent = 0
+ // this.handleAvatarSuccess(res.data.data, f.file.name);
+ // // this.uploadfun.fun(res.data.data, f.file.name);
+ // }
})
.then(error => {
console.log(error);
@@ -1062,12 +1079,25 @@ export default {
}
})
.then(res => {
- // this.imageUrl = res.data.data
- if (this.uploadname[1] === 100) {
+ if(res.data.code == 200){
+ if (this.uploadname[1] === 100) {
// this.progressPercent = 0
this.handleAvatarSuccess1(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name);
+ }
+ }else{
+ this.$alert("上传的实施方案文件上传失败,请修改文件名长度后重新上传", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false;
}
+ // this.imageUrl = res.data.data
+ // if (this.uploadname[1] === 100) {
+ // // this.progressPercent = 0
+ // this.handleAvatarSuccess1(res.data.data, f.file.name);
+ // // this.uploadfun.fun(res.data.data, f.file.name);
+ // }
})
.then(error => {
console.log(error);
@@ -1101,12 +1131,25 @@ export default {
}
})
.then(res => {
- // this.imageUrl = res.data.data
- if (this.uploadname[2] === 100) {
+ if(res.data.code == 200){
+ if (this.uploadname[2] === 100) {
// this.progressPercent = 0
this.handleAvatarSuccess2(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name);
}
+ }else{
+ this.$alert("上传的立项批复文件上传失败,请修改文件名长度后重新上传", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false;
+ }
+ // this.imageUrl = res.data.data
+ // if (this.uploadname[2] === 100) {
+ // // this.progressPercent = 0
+ // this.handleAvatarSuccess2(res.data.data, f.file.name);
+ // // this.uploadfun.fun(res.data.data, f.file.name);
+ // }
})
.then(error => {
console.log(error);
@@ -1140,12 +1183,25 @@ export default {
}
})
.then(res => {
- // this.imageUrl = res.data.data
- if (this.uploadname[3] === 100) {
+ if(res.data.code == 200){
+ if (this.uploadname[3] === 100) {
// this.progressPercent = 0
this.handleAvatarSuccess3(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name);
}
+ }else{
+ this.$alert("上传的项目合同文件上传失败,请修改文件名长度后重新上传", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false;
+ }
+ // this.imageUrl = res.data.data
+ // if (this.uploadname[3] === 100) {
+ // // this.progressPercent = 0
+ // this.handleAvatarSuccess3(res.data.data, f.file.name);
+ // // this.uploadfun.fun(res.data.data, f.file.name);
+ // }
})
.then(error => {
console.log(error);
@@ -1180,11 +1236,24 @@ export default {
})
.then(res => {
// this.imageUrl = res.data.data
- if (this.uploadname[4] === 100) {
+ // if (this.uploadname[4] === 100) {
+ // // this.progressPercent = 0
+ // this.handleAvatarSuccess4(res.data.data, f.file.name);
+ // // this.uploadfun.fun(res.data.data, f.file.name);
+ // }
+ if(res.data.code == 200){
+ if (this.uploadname[4] === 100) {
// this.progressPercent = 0
this.handleAvatarSuccess4(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name);
}
+ }else{
+ this.$alert("上传的服务承诺书文件上传失败,请修改文件名长度后重新上传", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false;
+ }
})
.then(error => {
console.log(error);
@@ -1311,13 +1380,13 @@ export default {
this.fileurl = file.response.data.url;
console.log(file);
},
- handleRemove(file, fileList) {
- this.picture.forEach(element => {
- if (file.name === element.name) {
- this.picture.splice(element, 1);
- }
- });
- },
+ // handleRemove(file, fileList) {
+ // this.picture.forEach(element => {
+ // if (file.name === element.name) {
+ // this.picture.splice(element, 1);
+ // }
+ // });
+ // },
handlePreview(file) {
console.log(file);
if (!!window.ActiveXObject || "ActiveXObject" in window) {
@@ -1584,6 +1653,11 @@ export default {
this.picture.splice(element, 1);
}
});
+ this.fileLists.forEach(element => {
+ if (file.name === element.name) {
+ this.fileLists.splice(this.fileLists.lastIndexOf(element), 1);
+ }
+ });
},
// handlePreview(file) {
// console.log(file);
@@ -1752,8 +1826,153 @@ export default {
for (let m in this.ruleForm1) {
this.ruleForm[m] = this.ruleForm1[m];
}
- console.log(this.ruleForm);
- this.submitYes(index);
+ console.log(this.ruleForm.prodemo.length);
+ //if(this.ruleForm.prodes.length<=11){
+ // this.$alert("项目简介不能为空并不得低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemo.length<=29235) {
+ // this.$alert("项目实施必要性不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // } else if (this.ruleForm.prodemojc.length<=29108) {
+ // this.$alert("项目实施的基础不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemotj.length<=29108) {
+ // this.$alert("具体方法和途径不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemojd.length<=29108) {
+ // this.$alert("进度安排不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemoxg.length<=29108) {
+ // this.$alert("预期效果不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemofg.length<=29108) {
+ // this.$alert("项目团队及分工不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemotwo.length<=29108) {
+ // this.$alert("项目实施涵盖范围,规模,人群及创新等不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.funds.length<=29458) {
+ // this.$alert("经费预算不能为空并不的低于四个汉字", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (
+ // if(this.ruleForm.prodes.length==0){
+ // //<=11 并不得低于四个汉字
+ // this.$alert("项目简介不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemo.length==0) {
+ // //<=29235 并不的低于四个汉字
+ // this.$alert("项目实施必要性不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // } else if (this.ruleForm.prodemojc.length==0) {
+ // //<=29108 并不的低于四个汉字
+ // this.$alert("项目实施的基础不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemotj.length==0) {
+ // //<=29235 并不的低于四个汉字
+ // this.$alert("具体方法和途径不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemojd.length==0) {
+ // // <=29108 并不的低于四个汉字
+ // this.$alert("进度安排不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemoxg.length==0) {
+ // // <=29108 并不的低于四个汉字
+ // this.$alert("预期效果不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemofg.length==0) {
+ // //<=29108 并不的低于四个汉字
+ // this.$alert("项目团队及分工不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemotwo.length==0) {
+ // //<=29108 并不的低于四个汉字
+ // this.$alert("项目实施涵盖范围,规模,人群及创新等不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.funds.length==0) {
+ // // <=29458并不的低于四个汉字
+ // this.$alert("经费预算不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ if(this.ruleForm.probook.length ==0 //&&
+ //&&
+ // this.ruleForm.pifu.length &&
+ // this.ruleForm.pact.length &&
+ // this.ruleForm.promise.length
+ ) {
+ this.$alert("请上传项目申报书", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false;
+
+ } else if(this.ruleForm.fangan.length == 0 ){
+ this.$alert("请上传实施方案", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false
+ }else if(this.picture.length == 0 ){
+ this.$alert("请上传项目主责单位意见", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false
+ }else{
+ this.submitYes(index);
+ }
+ //this.submitYes(index);
} else {
this.$message({
type: "info",
@@ -1816,8 +2035,97 @@ export default {
for (let m in this.ruleForm1) {
this.ruleForm[m] = this.ruleForm1[m];
}
- console.log(this.ruleForm);
- this.submitYes(index);
+ console.log(this.ruleForm.prodes.length);
+ // if(this.ruleForm.prodes.length==0){
+ // //<=11 并不得低于四个汉字
+ // this.$alert("项目简介不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemo.length==0) {
+ // //<=29235 并不的低于四个汉字
+ // this.$alert("项目实施必要性不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // } else if (this.ruleForm.prodemojc.length==0) {
+ // //<=29108 并不的低于四个汉字
+ // this.$alert("项目实施的基础不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemotj.length==0) {
+ // //<=29235 并不的低于四个汉字
+ // this.$alert("具体方法和途径不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemojd.length==0) {
+ // // <=29108 并不的低于四个汉字
+ // this.$alert("进度安排不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemoxg.length==0) {
+ // // <=29108 并不的低于四个汉字
+ // this.$alert("预期效果不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemofg.length==0) {
+ // //<=29108 并不的低于四个汉字
+ // this.$alert("项目团队及分工不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.prodemotwo.length==0) {
+ // //<=29108 并不的低于四个汉字
+ // this.$alert("项目实施涵盖范围,规模,人群及创新等不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ // }else if (this.ruleForm.funds.length==0) {
+ // // <=29458并不的低于四个汉字
+ // this.$alert("经费预算不能为空", "提示", {
+ // confirmButtonText: "确定",
+ // callback: action => {}
+ // });
+ // return false;
+ if (
+ this.ruleForm.probook.length ==0 //&&
+ //&&
+ // this.ruleForm.pifu.length &&
+ // this.ruleForm.pact.length &&
+ // this.ruleForm.promise.length
+ ) {
+ this.$alert("请上传项目申报书", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+
+ } else if(this.picture.length == 0 ){
+ this.$alert("请上传项目主责单位意见", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ return false
+ }else if(this.ruleForm.fangan.length == 0 ){
+ this.$alert("请上传实施方案", "提示", {
+ confirmButtonText: "确定",
+ callback: action => {}
+ });
+ }else{
+ this.submitYes(index);
+ }
+ //this.submitYes(index);
} else {
this.$message({
type: "info",
@@ -1870,13 +2178,13 @@ export default {
} else {
this.$message({
type: "info",
- message: res.data.data.msg
+ message: res.data.data.message
});
}
} else {
this.$message({
type: "info",
- message: res.data.data.msg
+ message: res.data.data.message
});
}
})
@@ -2278,7 +2586,8 @@ export default {
this.imageUrl4 = "/static/img/txt.jpg";
}
}
- this.filename =this.bgData.probook? this.bgData.probook.substring(
+ if(this.bgData){
+ this.filename =this.bgData.probook? this.bgData.probook.substring(
this.bgData.probook.lastIndexOf("/") + 1
):'';
//sconsole.log(this.filename)
@@ -2298,6 +2607,8 @@ export default {
let imgs = JSON.parse(this.bgData.proimages);
this.fileLists = imgs;
this.picture = this.fileLists;
+ }
+
// this.assignment(this.bgData);
} else {
alert("请求失败!");
@@ -2312,7 +2623,8 @@ export default {
this.company = sessionStorage.name;
},
mounted() {
- this.status();
+ //this.status();
+ this.getData();
}
};
diff --git a/src/views/project/Application.vue b/src/views/project/Application.vue
index 49002c0..917172e 100644
--- a/src/views/project/Application.vue
+++ b/src/views/project/Application.vue
@@ -347,7 +347,7 @@