|
@@ -60,7 +60,6 @@
|
|
|
status:0,
|
|
|
submitHint:false,
|
|
|
projectApplicationApply1:{ //立项基础信息页面
|
|
|
- DialogStatus:1,
|
|
|
select:{ //基本信息数据框
|
|
|
projectName:'',
|
|
|
person:'',
|
|
@@ -73,28 +72,30 @@
|
|
|
},
|
|
|
options: [], //部门下拉框
|
|
|
sortOptions: [], //分类下拉框
|
|
|
- textarea:'ertbh n', //项目简介
|
|
|
+ textarea:'', //项目简介
|
|
|
Member:{ //添加成员
|
|
|
id:'',
|
|
|
name:'23',
|
|
|
class:'23',
|
|
|
- phone:'23'
|
|
|
+ phone:'23',
|
|
|
+ score:'0'
|
|
|
},
|
|
|
Member2:{ //修改成员
|
|
|
id:'',
|
|
|
name:'',
|
|
|
class:'',
|
|
|
- phone:''
|
|
|
+ phone:'',
|
|
|
+ score:'0'
|
|
|
},
|
|
|
tableData:[], //成员列表
|
|
|
|
|
|
},
|
|
|
projectApplicationApply2:{ //项目内容页面
|
|
|
- contentOne:'12',
|
|
|
- contentTwo:'12',
|
|
|
- contentThree:'12',
|
|
|
- contentFour:'12',
|
|
|
- contentFive:'12',
|
|
|
+ contentOne:'',
|
|
|
+ contentTwo:'',
|
|
|
+ contentThree:'',
|
|
|
+ contentFour:'',
|
|
|
+ contentFive:'',
|
|
|
},
|
|
|
projectApplicationApply3:{ //预算经费页面
|
|
|
tableData: // 经费月支出计划列表数据默认显示数据
|
|
@@ -252,12 +253,27 @@
|
|
|
let a=this.projectApplicationApply1;
|
|
|
let b=this.projectApplicationApply2;
|
|
|
let c=this.projectApplicationApply3
|
|
|
- let d=[]
|
|
|
+ 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.select.sort=='') return this.$message.error('请选择分类')
|
|
|
+ if(a.textarea=='') return this.$message.error('请输入项目简介')
|
|
|
+
|
|
|
+ if(b.contentOne=='') return this.$message.error('请输入项目创新点')
|
|
|
+ if(b.contentTwo=='') return this.$message.error('请输入预期取得成果')
|
|
|
+ if(b.contentThree=='') return this.$message.error('请输入预期取得成果')
|
|
|
+ if(b.contentFour=='') return this.$message.error('请输入预期取得成果')
|
|
|
+ if(b.contentFive=='') return this.$message.error('请输入项目实施计划')
|
|
|
+
|
|
|
+ let d=[] //按照后端格式传递数据,项目内容,要将经费支出,与项目明细放在一起,
|
|
|
for(let key in b){
|
|
|
d.push(b[key])
|
|
|
}
|
|
|
|
|
|
- let newData1 = c.tableData[0];
|
|
|
+ let newData1 = c.tableData[0]; //没有输入的月支出计划改为0,向后端传递
|
|
|
for(let key in newData1){
|
|
|
if (newData1[key]=='-') {
|
|
|
newData1[key]=0
|