|
@@ -121,7 +121,7 @@
|
|
import getFundNo from '@/components/tool/getProjectNo';
|
|
import getFundNo from '@/components/tool/getProjectNo';
|
|
import BeUpload from "../../components/tool/beUpload.vue";
|
|
import BeUpload from "../../components/tool/beUpload.vue";
|
|
// import getExcel from "@/components/tool/getExcel";
|
|
// import getExcel from "@/components/tool/getExcel";
|
|
- import getExcel from '@/components/tool/downloadExcel'
|
|
|
|
|
|
+ import {getExcel} from '@/components/tool/downloadExcel'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
BeUpload,
|
|
BeUpload,
|
|
@@ -132,25 +132,25 @@ export default {
|
|
projectName:'', //所选名称
|
|
projectName:'', //所选名称
|
|
downLoadExcelDig:false,//下载Excel对话框
|
|
downLoadExcelDig:false,//下载Excel对话框
|
|
submitDataDig:false,//提交对话框
|
|
submitDataDig:false,//提交对话框
|
|
- allFund:'',
|
|
|
|
|
|
+ allFund:'',//总经费
|
|
fundList:[
|
|
fundList:[
|
|
- {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:'学术会务费、评审费、鉴定费、成果集制作费等费用。'},
|
|
|
|
- {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:'项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。'},
|
|
|
|
+ {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:'创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。'},
|
|
|
|
+ {fundName:'知识产权事务费',budget:'',havePaid:0,thisApply:'',remark:'论文版面费、专利及其他知识产权事务等费用。'},
|
|
],
|
|
],
|
|
intro:'', //事由
|
|
intro:'', //事由
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
- getData(){ //获取活动经费的项目名称
|
|
|
|
|
|
+ getData(){ //获取活动经费的项目名称
|
|
let param={
|
|
let param={
|
|
uid:this.$store.state.userInfo.userid,
|
|
uid:this.$store.state.userInfo.userid,
|
|
- type:1 //查询的活动表。type为活动表中个人创客活动创客的分类字段
|
|
|
|
|
|
+ type:1
|
|
}
|
|
}
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api+'/SelectMakerFundSelects',param)
|
|
.get(this.$store.state.api+'/SelectMakerFundSelects',param)
|
|
@@ -177,13 +177,14 @@ export default {
|
|
//知识产权事务费:Transaction TransactionRemarks
|
|
//知识产权事务费:Transaction TransactionRemarks
|
|
let param={
|
|
let param={
|
|
uid:this.$store.state.userInfo.userid,
|
|
uid:this.$store.state.userInfo.userid,
|
|
- fid:this.projectName,
|
|
|
|
|
|
+ aid:this.projectName,
|
|
}
|
|
}
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api+'/selectMarkerFundData',param)
|
|
.get(this.$store.state.api+'/selectMarkerFundData',param)
|
|
.then(res=>{
|
|
.then(res=>{
|
|
- // console.log(res.data);
|
|
|
|
|
|
+ console.log(res.data);
|
|
let data=JSON.parse(res.data[0][0]['fund']);
|
|
let data=JSON.parse(res.data[0][0]['fund']);
|
|
|
|
+ // let usedFund=JSON.parse(res.data[0][0]['usedFund']);
|
|
// console.log(data);
|
|
// console.log(data);
|
|
this.fundList[0].budget=data.device
|
|
this.fundList[0].budget=data.device
|
|
this.fundList[1].budget=data.Material
|
|
this.fundList[1].budget=data.Material
|
|
@@ -193,8 +194,29 @@ export default {
|
|
this.fundList[5].budget=data.entery
|
|
this.fundList[5].budget=data.entery
|
|
this.fundList[6].budget=data.activities
|
|
this.fundList[6].budget=data.activities
|
|
this.fundList[7].budget=data.Transaction
|
|
this.fundList[7].budget=data.Transaction
|
|
- this.allFund=res.data[0][0]['money']
|
|
|
|
|
|
|
|
|
|
+ let arr= res['data'][0].filter(e=>{
|
|
|
|
+ return e.actualuse!=null
|
|
|
|
+ })
|
|
|
|
+ console.log(arr);
|
|
|
|
+
|
|
|
|
+ // let isUse = arr;
|
|
|
|
+ if (arr) {
|
|
|
|
+ // console.log(111);
|
|
|
|
+ arr.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']);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.allFund=res.data[0][0]['money']
|
|
},err=>{
|
|
},err=>{
|
|
console.log(err);
|
|
console.log(err);
|
|
})
|
|
})
|
|
@@ -218,7 +240,7 @@ export default {
|
|
let fund2=arr2.reduce((prev,cur,index,arr) => {
|
|
let fund2=arr2.reduce((prev,cur,index,arr) => {
|
|
return prev + cur*1;
|
|
return prev + cur*1;
|
|
},0);
|
|
},0);
|
|
- console.log(fund+fund2);
|
|
|
|
|
|
+ // return console.log(fund,fund2);
|
|
if (fund+fund2>this.allFund) return this.$message.error('申请金额已大于预算')
|
|
if (fund+fund2>this.allFund) return this.$message.error('申请金额已大于预算')
|
|
this.submitDataDig=true
|
|
this.submitDataDig=true
|
|
},
|
|
},
|
|
@@ -247,6 +269,7 @@ export default {
|
|
if(res.data==1){
|
|
if(res.data==1){
|
|
this.$message.success('提交成功')
|
|
this.$message.success('提交成功')
|
|
this.submitDataDig=false
|
|
this.submitDataDig=false
|
|
|
|
+ this.$router.push('/makerfund')
|
|
}else{
|
|
}else{
|
|
this.$message.error('提交失败')
|
|
this.$message.error('提交失败')
|
|
}
|
|
}
|