|
@@ -28,7 +28,7 @@
|
|
|
</div>
|
|
|
<hr>
|
|
|
<table border="1" cellspacing="0" class="table">
|
|
|
-
|
|
|
+
|
|
|
<tr>
|
|
|
<td colspan="2">经济支出类别</td><td>预算</td><td>已支付</td><td>本次申请</td><td>余额</td><td colspan="3">备注</td>
|
|
|
</tr>
|
|
@@ -74,7 +74,7 @@
|
|
|
<tr>
|
|
|
<td v-for="(i,k) in 9" :key="k" style="border: none;"></td>
|
|
|
</tr>
|
|
|
-
|
|
|
+
|
|
|
</table>
|
|
|
<div class="baseBtn">
|
|
|
<div class="blockWidth">
|
|
@@ -91,7 +91,7 @@
|
|
|
width="600px"
|
|
|
class="pageSubmitData"
|
|
|
>
|
|
|
-
|
|
|
+
|
|
|
<span class="deleteContent">确定生成Excel?</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="downLoadExcel" class="AllDialogBtn">确认</el-button>
|
|
@@ -107,7 +107,7 @@
|
|
|
width="600px"
|
|
|
class="pageSubmitData"
|
|
|
>
|
|
|
-
|
|
|
+
|
|
|
<span class="deleteContent">确定提交?</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitAll" class="AllDialogBtn">确认</el-button>
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- projectFilter:[], //项目名称列表
|
|
|
+ projectFilter:[], //项目名称列表
|
|
|
projectName:'', //所选名称
|
|
|
downLoadExcelDig:false,//下载Excel对话框
|
|
|
submitDataDig:false,//提交对话框
|
|
@@ -144,7 +144,7 @@ export default {
|
|
|
{fundName:'项目成功鉴定费',budget:'',havePaid:0,thisApply:'',remark:'学术会务费、评审费、鉴定费、成果集制作费等费用。'},
|
|
|
{fundName:'参展参赛费',budget:'',havePaid:0,thisApply:'',remark:'参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。'},
|
|
|
{fundName:'创客交流活动费',budget:'',havePaid:0,thisApply:'',remark:'创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。'},
|
|
|
- {fundName:'知识产权事务费',budget:'',havePaid:0,thisApply:'',remark:'论文版面费、专利及其他知识产权事务等费用。'},
|
|
|
+ {fundName:'论文版面费',budget:'',havePaid:0,thisApply:'',remark:'论文版面费、专利及其他知识产权事务等费用。'},
|
|
|
],
|
|
|
intro:'', //事由
|
|
|
tit:'',
|
|
@@ -163,15 +163,15 @@ export default {
|
|
|
let data=res.data[0]
|
|
|
// console.log(data);
|
|
|
this.projectFilter=data
|
|
|
-
|
|
|
+
|
|
|
},err=>{
|
|
|
console.log(err);
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getFundData(){
|
|
|
// console.log(this.projectName);
|
|
|
- //total:总经费
|
|
|
+ //total:总经费
|
|
|
//小型仪器设备费:device deviceRemarks
|
|
|
//材料费:Material MaterialRemarks
|
|
|
//测试化验加工费:processing processingRemarks
|
|
@@ -193,11 +193,11 @@ export default {
|
|
|
// console.log(data);
|
|
|
this.fundList[0].budget=data.device
|
|
|
this.fundList[1].budget=data.Material
|
|
|
- this.fundList[2].budget=data.processing
|
|
|
- this.fundList[3].budget=data.Collaboration
|
|
|
+ this.fundList[2].budget=data.processing
|
|
|
+ this.fundList[3].budget=data.Collaboration
|
|
|
this.fundList[4].budget=data.APPRAISAL
|
|
|
- this.fundList[5].budget=data.entery
|
|
|
- this.fundList[6].budget=data.activities
|
|
|
+ this.fundList[5].budget=data.entery
|
|
|
+ this.fundList[6].budget=data.activities
|
|
|
this.fundList[7].budget=data.Transaction
|
|
|
this.tit=res.data[0][0].title
|
|
|
this.ty=res.data[0][0].type
|
|
@@ -257,13 +257,13 @@ export default {
|
|
|
if (data.length==8) return this.$message.error('请填写本次申请金额')
|
|
|
let arr=[this.fundList[0].thisApply,this.fundList[1].thisApply,this.fundList[2].thisApply,this.fundList[3].thisApply,this.fundList[4].thisApply,this.fundList[5].thisApply,this.fundList[6].thisApply,this.fundList[7].thisApply]
|
|
|
let arr2=[this.fundList[0].havePaid,this.fundList[1].havePaid,this.fundList[2].havePaid,this.fundList[3].havePaid,this.fundList[4].havePaid,this.fundList[5].havePaid,this.fundList[6].havePaid,this.fundList[7].havePaid]
|
|
|
-
|
|
|
+
|
|
|
let fund=arr.reduce((prev,cur,index,arr) => {
|
|
|
return prev + cur*1;
|
|
|
- },0);
|
|
|
+ },0);
|
|
|
let fund2=arr2.reduce((prev,cur,index,arr) => {
|
|
|
return prev + cur*1;
|
|
|
- },0);
|
|
|
+ },0);
|
|
|
// return console.log(fund,fund2);
|
|
|
if (fund+fund2>this.allFund) return this.$message.error('申请金额已大于预算')
|
|
|
this.submitDataDig=true
|
|
@@ -356,10 +356,10 @@ export default {
|
|
|
// display: flex;
|
|
|
// margin-bottom: 10px;
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
// }
|
|
|
|
|
|
- .table{
|
|
|
+ .table{
|
|
|
border: none;
|
|
|
border-top: solid 1px black;
|
|
|
// border-right: solid 1px black;
|
|
@@ -382,7 +382,7 @@ export default {
|
|
|
text-align: center;
|
|
|
line-height: 30px;
|
|
|
width: 100px;
|
|
|
-
|
|
|
+
|
|
|
&:nth-child(1){
|
|
|
border-left: solid 1px black;
|
|
|
}
|
|
@@ -415,7 +415,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.textLeft{
|
|
|
:deep(.el-textarea__inner){
|