|
@@ -141,16 +141,16 @@ export default {
|
|
|
submitDataDig:false,//提交对话框
|
|
|
allFund:'',//总经费
|
|
|
fundList:[ //table遍历数据
|
|
|
- {fundName:'小型仪器设备费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。'},
|
|
|
- {fundName:'材料费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。'},
|
|
|
- {fundName:'测试化验加工费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。'},
|
|
|
- {fundName:'项目协作费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'按合同规定支付给协作单位的费用'},
|
|
|
- {fundName:'项目成功鉴定费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'学术会务费、评审费、鉴定费、成果集制作费等费用。'},
|
|
|
- {fundName:'参展参赛费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。'},
|
|
|
- {fundName:'创客交流活动费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。'},
|
|
|
- {fundName:'知识产权事务费',budget:'',havePaid:'0',thisApply:'',actualuse:'',remark:'论文版面费、专利及其他知识产权事务等费用。'},
|
|
|
+ {fundName:'小型仪器设备费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。'},
|
|
|
+ {fundName:'材料费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。'},
|
|
|
+ {fundName:'测试化验加工费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。'},
|
|
|
+ {fundName:'项目协作费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'按合同规定支付给协作单位的费用'},
|
|
|
+ {fundName:'项目成功鉴定费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'学术会务费、评审费、鉴定费、成果集制作费等费用。'},
|
|
|
+ {fundName:'参展参赛费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。'},
|
|
|
+ {fundName:'创客交流活动费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。'},
|
|
|
+ {fundName:'知识产权事务费',budget:'',havePaid:0,thisApply:'',actualuse:'',remark:'论文版面费、专利及其他知识产权事务等费用。'},
|
|
|
],
|
|
|
- haveFund:{}, //已支付经费
|
|
|
+ haveFund:'', //已支付经费
|
|
|
intro:'', //事由
|
|
|
state:0,
|
|
|
}
|
|
@@ -171,16 +171,42 @@ export default {
|
|
|
let param={
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
fid:this.$route.query['Id'],
|
|
|
+ aid:this.$route.query['aid'],
|
|
|
}
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api+'/selectActivityFundDetail',param)
|
|
|
.then(res=>{
|
|
|
+ console.log(res.data[1]);
|
|
|
let data=res.data[0][0]
|
|
|
- // return console.log(data);
|
|
|
+ // console.log(data);
|
|
|
let applyfund=JSON.parse(data['applyfund'])
|
|
|
let fund=JSON.parse(data['fund'])
|
|
|
- let actualuse=JSON.parse(data['actualuse'])
|
|
|
let usedFund=JSON.parse(data['usedFund'])
|
|
|
+
|
|
|
+ let arr= res['data'][1].filter(e=>{
|
|
|
+ return e.actualuse!=null
|
|
|
+ })
|
|
|
+ console.log(arr);
|
|
|
+
|
|
|
+ let isUse = arr;
|
|
|
+ if (arr) {
|
|
|
+ // console.log(111);
|
|
|
+ isUse.forEach(item=>{
|
|
|
+ let JP = JSON.parse(item['actualuse']);
|
|
|
+ this.fundList[0]['havePaid']+=Number(JP['device']);
|
|
|
+ this.fundList[1]['havePaid']+=Number(JP['Material']);
|
|
|
+ this.fundList[2]['havePaid']+=Number(JP['processing']);
|
|
|
+ this.fundList[3]['havePaid']+=Number(JP['Collaboration']);
|
|
|
+ this.fundList[4]['havePaid']+=Number(JP['APPRAISAL']);
|
|
|
+ this.fundList[5]['havePaid']+=Number(JP['entery']);
|
|
|
+ this.fundList[6]['havePaid']+=Number(JP['activities']);
|
|
|
+ this.fundList[7]['havePaid']+=Number(JP['Transaction']);
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// console.log(applyfund);
|
|
|
this.fundList[0].budget=fund.device
|
|
|
this.fundList[1].budget=fund.Material
|
|
@@ -211,16 +237,16 @@ export default {
|
|
|
this.fundList[6].thisApply=applyfund.activities
|
|
|
this.fundList[7].thisApply=applyfund.Transaction
|
|
|
|
|
|
- if (data['actualuse']!=null) {
|
|
|
- this.fundList[0].actualuse=actualuse.device
|
|
|
- this.fundList[1].actualuse=actualuse.Material
|
|
|
- this.fundList[2].actualuse=actualuse.processing
|
|
|
- this.fundList[3].actualuse=actualuse.Collaboration
|
|
|
- this.fundList[4].actualuse=actualuse.APPRAISAL
|
|
|
- this.fundList[5].actualuse=actualuse.entery
|
|
|
- this.fundList[6].actualuse=actualuse.activities
|
|
|
- this.fundList[7].actualuse=actualuse.Transaction
|
|
|
- }
|
|
|
+ // if (data['actualuse']!=null) {
|
|
|
+ // this.fundList[0].actualuse=actualuse.device
|
|
|
+ // this.fundList[1].actualuse=actualuse.Material
|
|
|
+ // this.fundList[2].actualuse=actualuse.processing
|
|
|
+ // this.fundList[3].actualuse=actualuse.Collaboration
|
|
|
+ // this.fundList[4].actualuse=actualuse.APPRAISAL
|
|
|
+ // this.fundList[5].actualuse=actualuse.entery
|
|
|
+ // this.fundList[6].actualuse=actualuse.activities
|
|
|
+ // this.fundList[7].actualuse=actualuse.Transaction
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
this.intro=data.intro
|
|
@@ -260,6 +286,21 @@ export default {
|
|
|
},
|
|
|
submitAll(){ //提交创客资金申请
|
|
|
// getFundNo("ZJ").then((result)=>{
|
|
|
+
|
|
|
+ // let arr={
|
|
|
+ // device:(this.fundList[0].actualuse+this.haveFund.device*1),
|
|
|
+ // Material:this.fundList[1].actualuse+this.haveFund.Material*1,
|
|
|
+ // processing:this.fundList[2].actualuse+this.haveFund.processing*1,
|
|
|
+ // Collaboration:this.fundList[3].actualuse+this.haveFund.Collaboration*1,
|
|
|
+ // APPRAISAL:this.fundList[4].actualuse+this.haveFund.APPRAISAL*1,
|
|
|
+ // entery:this.fundList[5].actualuse+this.haveFund.entery*1,
|
|
|
+ // activities:this.fundList[6].actualuse+this.haveFund.activities*1,
|
|
|
+ // Transaction:this.fundList[7].actualuse+this.haveFund.Transaction*1,
|
|
|
+ // }
|
|
|
+
|
|
|
+ // console.log(arr);
|
|
|
+
|
|
|
+
|
|
|
let param={
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
// fNo:result, //项目编号
|
|
@@ -275,17 +316,8 @@ export default {
|
|
|
activities:this.fundList[6].actualuse,
|
|
|
Transaction:this.fundList[7].actualuse,
|
|
|
}),
|
|
|
- uf:JSON.stringify({
|
|
|
- device:this.fundList[0].actualuse,
|
|
|
- Material:this.fundList[1].actualuse,
|
|
|
- processing:this.fundList[2].actualuse,
|
|
|
- Collaboration:this.fundList[3].actualuse,
|
|
|
- APPRAISAL:this.fundList[4].actualuse,
|
|
|
- entery:this.fundList[5].actualuse,
|
|
|
- activities:this.fundList[6].actualuse,
|
|
|
- Transaction:this.fundList[7].actualuse,
|
|
|
- }),
|
|
|
}
|
|
|
+ // return console.log(param);
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api+'/updateActivityFundDetail',param)
|
|
|
.then(res=>{
|
|
@@ -307,7 +339,7 @@ export default {
|
|
|
mounted(){
|
|
|
this.getData()
|
|
|
this.projectName=this.$route.query['tit']
|
|
|
- // console.log(this.$route.query['Id']);
|
|
|
+ // console.log(this.$route.query['aid']);
|
|
|
// console.log(this.$route.query['tit']);
|
|
|
}
|
|
|
}
|