|
@@ -224,7 +224,6 @@
|
|
|
},
|
|
|
|
|
|
projectApplicationApply2:{ //项目内容页面
|
|
|
- content:{
|
|
|
back:'',
|
|
|
innovate:'',
|
|
|
path:'',
|
|
@@ -236,7 +235,6 @@
|
|
|
expectResultsTeacher:'',
|
|
|
expectConversion:'',
|
|
|
plan:''
|
|
|
- }
|
|
|
},
|
|
|
projectApplicationApply3:{ //预算经费页面
|
|
|
tableData: // 经费月支出计划列表数据默认显示数据
|
|
@@ -383,14 +381,19 @@
|
|
|
let a=this.projectApplicationApply1;
|
|
|
let b=this.projectApplicationApply2;
|
|
|
let c=this.projectApplicationApply3
|
|
|
- // if(a.select.projectName=='') return this.$message.error('请输入项目名称')
|
|
|
- // if(a.select.person=='') return this.$message.error('请输入项目负责人')
|
|
|
- // if(a.select.value1=='') return this.$message.error('请选择项目开始时间')
|
|
|
- // if(a.select.value=='') return this.$message.error('请选择所在部门')
|
|
|
- // if(a.select.fund=='') return this.$message.error('请输入预算总经费')
|
|
|
- // if(a.select.tel=='') return this.$message.error('请输入联系电话')
|
|
|
- // if(!a.telVerify) return this.$message.error('请输入正确联系电话格式')
|
|
|
- // if(a.select.sort=='') return this.$message.error('请选择分类')
|
|
|
+ if(a.select.projectName=='') return this.$message.error('请输入项目名称')
|
|
|
+ if(a.select.leader=='') return this.$message.error('请输入项目负责人')
|
|
|
+ if(a.select.department=='') return this.$message.error('请选择所在部门')
|
|
|
+ if(!a.select.MultiSelectProjectNameS[0]) return this.$message.error('请选择优先支持项目')
|
|
|
+ if(a.select.tel=='') return this.$message.error('请输入联系电话')
|
|
|
+
|
|
|
+ if(a.select.projectDate=='') return this.$message.error('请选择项目开始时间')
|
|
|
+ if(a.select.fund=='') return this.$message.error('请输入预算总经费')
|
|
|
+ if(a.select.fund=='') return this.$message.error('请选择美丽校园改造计划')
|
|
|
+ if(a.select.person=='') return this.$message.error('请选择项目申请人')
|
|
|
+
|
|
|
+
|
|
|
+ if(!a.telVerify) return this.$message.error('请输入正确联系电话格式')
|
|
|
|
|
|
// let d=[] //按照后端格式传递数据,项目内容,要将经费支出,与项目明细放在一起,
|
|
|
// for(let key in b){
|
|
@@ -404,8 +407,9 @@
|
|
|
// }
|
|
|
// }
|
|
|
// console.log(a.select.sort);
|
|
|
- // let typeId=a.select.sort[0]
|
|
|
- // let typeName=a.select.sort[1]
|
|
|
+ console.log(this.pageType);
|
|
|
+ let typeId=this.pageType[0]
|
|
|
+ let typeName=this.pageType[1]
|
|
|
// return console.log(typeId,typeName);
|
|
|
|
|
|
let param={
|
|
@@ -415,29 +419,34 @@
|
|
|
// phone:a.select.tel,
|
|
|
// cid:a.select.value,
|
|
|
// student:JSON.stringify(a.tableData),
|
|
|
- // message:JSON.stringify([d,[newData1,c.tableData2]]),
|
|
|
// tid:typeId,
|
|
|
// tidName:typeName,
|
|
|
// mon:a.select.fund,
|
|
|
- imgsrc:a.dialogImageUrl,
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
tit:a.select.projectName,
|
|
|
- con:a.textarea,
|
|
|
leader:a.select.leader,
|
|
|
- tel:a.select.tel,
|
|
|
- cid: this.pageType,
|
|
|
- proDate:a.select.projectDate,
|
|
|
+ proDate:JSON.stringify(a.select.projectDate),
|
|
|
department:a.select.department,
|
|
|
fund:a.select.fund,
|
|
|
+ lleader:'',
|
|
|
+ imgsrc:a.dialogImageUrl,
|
|
|
+ teacher:JSON.stringify(a.tableTeacherData),
|
|
|
+ student:JSON.stringify(a.tableStudentData),
|
|
|
+ con:a.textarea,
|
|
|
+ chapters:JSON.stringify(b),
|
|
|
+ tid:typeId,
|
|
|
+ tName:typeName,
|
|
|
+ // message:JSON.stringify([d,[newData1,c.tableData2]]),
|
|
|
+ mon:JSON.stringify(this.projectApplicationApply3),//预算经费,
|
|
|
+
|
|
|
+ tel:a.select.tel,
|
|
|
MultiSelectProjectNameS:JSON.stringify(a.select.MultiSelectProjectNameS),
|
|
|
schoolRemould:a.select.schoolRemould,
|
|
|
person:a.select.projectApplyPerson,
|
|
|
- student:JSON.stringify(a.tableStudentData),
|
|
|
- teacher:JSON.stringify(a.tableTeacherData)
|
|
|
}
|
|
|
- return console.log(param);
|
|
|
+ // return console.log(param);
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api+'/CreateProject',param)
|
|
|
+ .post(this.$store.state.api+'/InsertProjectMakerSpace',param)
|
|
|
.then(res=>{
|
|
|
console.log(res)
|
|
|
if(res.data==1){
|