|
@@ -46,7 +46,7 @@
|
|
<div class="howMoneyFlex">
|
|
<div class="howMoneyFlex">
|
|
<div class="howMoney">
|
|
<div class="howMoney">
|
|
<div class="inpInterval">直接经费</div>
|
|
<div class="inpInterval">直接经费</div>
|
|
- <el-select v-model="item.directFundData" @change="directFundDataSelectChange(item.directFundData)" placeholder="请选择">
|
|
|
|
|
|
+ <el-select v-model="item.directFundData" @change="directFundDataSelectChange()" placeholder="请选择">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in item.directFundSelects"
|
|
v-for="item in item.directFundSelects"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -98,7 +98,7 @@
|
|
<div class="howMoneyFlex">
|
|
<div class="howMoneyFlex">
|
|
<div class="howMoney">
|
|
<div class="howMoney">
|
|
<div class="inpInterval">间接经费</div>
|
|
<div class="inpInterval">间接经费</div>
|
|
- <el-select v-model="item.indirectFundData" placeholder="请选择">
|
|
|
|
|
|
+ <el-select v-model="item.indirectFundData" @change="indirectFundSelectChange" placeholder="请选择">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in item.indirectFundSelects"
|
|
v-for="item in item.indirectFundSelects"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -258,17 +258,17 @@
|
|
<caption style="height: 40px;font-size: 22px;">学校创客专项资金使用申请表(单位:元)</caption>
|
|
<caption style="height: 40px;font-size: 22px;">学校创客专项资金使用申请表(单位:元)</caption>
|
|
<caption style="height: 30px;text-align: left;">
|
|
<caption style="height: 30px;text-align: left;">
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
- <div style="margin-right: 10px;"> 项目类型:</div>
|
|
|
|
- <el-checkbox-group v-model="checkList">
|
|
|
|
- <el-checkbox label="创客空间"></el-checkbox>
|
|
|
|
- <el-checkbox label="创客实践室"></el-checkbox>
|
|
|
|
- <el-checkbox label="个人创客"></el-checkbox>
|
|
|
|
- <el-checkbox label="活动创客"></el-checkbox>
|
|
|
|
- </el-checkbox-group>
|
|
|
|
|
|
+ <div style="margin-right: 10px;margin-top: -5px;"> 项目类型:</div>
|
|
|
|
+ <el-radio-group disabled v-model="selects.projectType">
|
|
|
|
+ <el-radio label="创客空间">创客空间</el-radio>
|
|
|
|
+ <el-radio label="创客实践室">创客实践室</el-radio>
|
|
|
|
+ <el-radio label="个人创客">个人创客</el-radio>
|
|
|
|
+ <el-radio label="创客活动">创客活动</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</caption>
|
|
</caption>
|
|
- <caption style="height: 30px;text-align: left;">项目名称:{{ selects.projectName }}</caption>
|
|
|
|
|
|
+ <caption style="height: 30px;text-align: left;">项目名称:<span style="margin-left:30%;font-weight: bold;font-size: 16px;">{{ residue.PName }}</span></caption>
|
|
<tr>
|
|
<tr>
|
|
<td>序号</td>
|
|
<td>序号</td>
|
|
<td>经济支出类别(A)</td>
|
|
<td>经济支出类别(A)</td>
|
|
@@ -281,10 +281,10 @@
|
|
<tr>
|
|
<tr>
|
|
<td>01</td>
|
|
<td>01</td>
|
|
<td style="text-align: left;">一.经费支出</td>
|
|
<td style="text-align: left;">一.经费支出</td>
|
|
- <td>0</td>
|
|
|
|
- <td>0</td>
|
|
|
|
- <td>0</td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ AllFund.budget }}</td>
|
|
|
|
+ <td>{{ AllFund.expended }}</td>
|
|
|
|
+ <td>{{ AllFund.application }}</td>
|
|
|
|
+ <td>{{ AllFund.surplus }}</td>
|
|
<td style="width: 20%;"></td>
|
|
<td style="width: 20%;"></td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -301,8 +301,8 @@
|
|
<td style="text-align: left;">小型仪器设备费</td>
|
|
<td style="text-align: left;">小型仪器设备费</td>
|
|
<td>{{ directData.facility==0?'':directData.facility }}</td>
|
|
<td>{{ directData.facility==0?'':directData.facility }}</td>
|
|
<td>{{ usedDirectData.facility==0?'':usedDirectData.facility }}</td>
|
|
<td>{{ usedDirectData.facility==0?'':usedDirectData.facility }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationDirectData.facility==0?'':applicationDirectData.facility }}</td>
|
|
|
|
+ <td>{{ directData.facility-usedDirectData.facility-applicationDirectData.facility }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -310,8 +310,8 @@
|
|
<td style="text-align: left;">材料费</td>
|
|
<td style="text-align: left;">材料费</td>
|
|
<td>{{ directData.cl==0?'':directData.cl }}</td>
|
|
<td>{{ directData.cl==0?'':directData.cl }}</td>
|
|
<td>{{ usedDirectData.cl==0?'':usedDirectData.cl }}</td>
|
|
<td>{{ usedDirectData.cl==0?'':usedDirectData.cl }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationDirectData.cl==0?'':applicationDirectData.cl }}</td>
|
|
|
|
+ <td>{{ directData.cl-usedDirectData.cl-applicationDirectData.cl }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason1 }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason1 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -319,8 +319,8 @@
|
|
<td style="text-align: left;">测试化验加工费</td>
|
|
<td style="text-align: left;">测试化验加工费</td>
|
|
<td>{{ directData.jg==0?'':directData.jg }}</td>
|
|
<td>{{ directData.jg==0?'':directData.jg }}</td>
|
|
<td>{{ usedDirectData.jg==0?'':usedDirectData.jg }}</td>
|
|
<td>{{ usedDirectData.jg==0?'':usedDirectData.jg }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationDirectData.jg==0?'':applicationDirectData.jg }}</td>
|
|
|
|
+ <td>{{ directData.jg-usedDirectData.jg-applicationDirectData.jg }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason2 }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason2 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -328,8 +328,8 @@
|
|
<td style="text-align: left;">项目协作费</td>
|
|
<td style="text-align: left;">项目协作费</td>
|
|
<td>{{ directData.xz==0?'':directData.xz }}</td>
|
|
<td>{{ directData.xz==0?'':directData.xz }}</td>
|
|
<td>{{ usedDirectData.xz==0?'':usedDirectData.xz }}</td>
|
|
<td>{{ usedDirectData.xz==0?'':usedDirectData.xz }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationDirectData.xz==0?'':applicationDirectData.xz }}</td>
|
|
|
|
+ <td>{{ directData.xz-usedDirectData.xz-applicationDirectData.xz }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason3 }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason3 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -337,17 +337,17 @@
|
|
<td style="text-align: left;">其他支出</td>
|
|
<td style="text-align: left;">其他支出</td>
|
|
<td>{{ directData.qt==0?'':directData.qt }}</td>
|
|
<td>{{ directData.qt==0?'':directData.qt }}</td>
|
|
<td>{{ usedDirectData.qt==0?'':usedDirectData.qt }}</td>
|
|
<td>{{ usedDirectData.qt==0?'':usedDirectData.qt }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationDirectData.qt==0?'':applicationDirectData.qt }}</td>
|
|
|
|
+ <td>{{ directData.qt- usedDirectData.qt-applicationDirectData.qt}}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason4 }}</td>
|
|
<td style="width: 20%;">{{ directDataReason.reason4 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>08</td>
|
|
<td>08</td>
|
|
<td style="text-align: left;">(二)间接费用</td>
|
|
<td style="text-align: left;">(二)间接费用</td>
|
|
- <td>0</td>
|
|
|
|
- <td>0</td>
|
|
|
|
- <td>0</td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ Expenditure['budget'] }}</td>
|
|
|
|
+ <td>{{ Expenditure['expended'] }}</td>
|
|
|
|
+ <td>{{ Expenditure['application'] }}</td>
|
|
|
|
+ <td>{{ Expenditure['surplus'] }}</td>
|
|
<td style="width: 20%;"></td>
|
|
<td style="width: 20%;"></td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -355,8 +355,8 @@
|
|
<td style="text-align: left;">项目成果鉴定费</td>
|
|
<td style="text-align: left;">项目成果鉴定费</td>
|
|
<td>{{ indirectData.facility==0?'':indirectData.facility }}</td>
|
|
<td>{{ indirectData.facility==0?'':indirectData.facility }}</td>
|
|
<td>{{ usedInDirectData.facility==0?'':usedInDirectData.facility }}</td>
|
|
<td>{{ usedInDirectData.facility==0?'':usedInDirectData.facility }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationInDirectData.facility==0?'':applicationInDirectData.facility }}</td>
|
|
|
|
+ <td>{{ indirectData.facility-usedInDirectData.facility-applicationInDirectData.facility }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -364,8 +364,8 @@
|
|
<td style="text-align: left;">参展参赛费</td>
|
|
<td style="text-align: left;">参展参赛费</td>
|
|
<td>{{ indirectData.cl==0?'':indirectData.cl }}</td>
|
|
<td>{{ indirectData.cl==0?'':indirectData.cl }}</td>
|
|
<td>{{ usedInDirectData.cl==0?'':usedInDirectData.cl }}</td>
|
|
<td>{{ usedInDirectData.cl==0?'':usedInDirectData.cl }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationInDirectData.cl==0?'':applicationInDirectData.cl }}</td>
|
|
|
|
+ <td>{{ indirectData.cl-usedInDirectData.cl-applicationInDirectData.cl }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason1 }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason1 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -373,8 +373,8 @@
|
|
<td style="text-align: left;">创客交流活动费</td>
|
|
<td style="text-align: left;">创客交流活动费</td>
|
|
<td>{{ indirectData.jg==0?'':indirectData.jg }}</td>
|
|
<td>{{ indirectData.jg==0?'':indirectData.jg }}</td>
|
|
<td>{{ usedInDirectData.jg==0?'':usedInDirectData.jg }}</td>
|
|
<td>{{ usedInDirectData.jg==0?'':usedInDirectData.jg }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationInDirectData.jg==0?'':applicationInDirectData.jg }}</td>
|
|
|
|
+ <td>{{ indirectData.jg-usedInDirectData.jg-applicationInDirectData.jg }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason2 }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason2 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -382,8 +382,8 @@
|
|
<td style="text-align: left;">知识产权事务费</td>
|
|
<td style="text-align: left;">知识产权事务费</td>
|
|
<td>{{ indirectData.xz==0?'':indirectData.xz }}</td>
|
|
<td>{{ indirectData.xz==0?'':indirectData.xz }}</td>
|
|
<td>{{ usedInDirectData.xz==0?'':usedInDirectData.xz }}</td>
|
|
<td>{{ usedInDirectData.xz==0?'':usedInDirectData.xz }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationInDirectData.xz==0?'':applicationInDirectData.xz }}</td>
|
|
|
|
+ <td>{{ indirectData.xz-usedInDirectData.xz-applicationInDirectData.xz }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason3 }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason3 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
@@ -391,8 +391,8 @@
|
|
<td style="text-align: left;">其他支出</td>
|
|
<td style="text-align: left;">其他支出</td>
|
|
<td>{{ indirectData.qt==0?'':indirectData.qt }}</td>
|
|
<td>{{ indirectData.qt==0?'':indirectData.qt }}</td>
|
|
<td>{{ usedInDirectData.qt==0?'':usedInDirectData.qt }}</td>
|
|
<td>{{ usedInDirectData.qt==0?'':usedInDirectData.qt }}</td>
|
|
- <td></td>
|
|
|
|
- <td>0</td>
|
|
|
|
|
|
+ <td>{{ applicationInDirectData.qt==0?'':applicationInDirectData.qt }}</td>
|
|
|
|
+ <td>{{ indirectData.qt-usedInDirectData.qt-applicationInDirectData.qt }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason4 }}</td>
|
|
<td style="width: 20%;">{{ indirectDataReason.reason4 }}</td>
|
|
</tr>
|
|
</tr>
|
|
<!-- <tr v-for="(item,index) in items" :key="index">
|
|
<!-- <tr v-for="(item,index) in items" :key="index">
|
|
@@ -421,8 +421,9 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import BeUpload from "../../components/tool/beUpload.vue";
|
|
import BeUpload from "../../components/tool/beUpload.vue";
|
|
-
|
|
|
|
|
|
+ import getExcel from "@/components/tool/getExcel";
|
|
export default {
|
|
export default {
|
|
|
|
+
|
|
components: {
|
|
components: {
|
|
BeUpload,
|
|
BeUpload,
|
|
},
|
|
},
|
|
@@ -462,10 +463,18 @@ export default {
|
|
projectType:[ //项目类型
|
|
projectType:[ //项目类型
|
|
{
|
|
{
|
|
id:1,
|
|
id:1,
|
|
- name:'个人创客'
|
|
|
|
|
|
+ name:'创客空间'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id:2,
|
|
id:2,
|
|
|
|
+ name:'创客实践室'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id:3,
|
|
|
|
+ name:'个人创客'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id:4,
|
|
name:'创客活动'
|
|
name:'创客活动'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -595,6 +604,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
residue:{ //其他
|
|
residue:{ //其他
|
|
|
|
+ PName:"",//项目名称
|
|
elseReason:'',
|
|
elseReason:'',
|
|
budget:'',
|
|
budget:'',
|
|
usedFund:'',
|
|
usedFund:'',
|
|
@@ -622,6 +632,13 @@ export default {
|
|
xz:0,
|
|
xz:0,
|
|
qt:0,
|
|
qt:0,
|
|
},
|
|
},
|
|
|
|
+ applicationDirectData:{ //直接经费本次申请
|
|
|
|
+ facility:0,
|
|
|
|
+ cl:0,
|
|
|
|
+ jg:0,
|
|
|
|
+ xz:0,
|
|
|
|
+ qt:0,
|
|
|
|
+ },
|
|
indirectData:{ //间接经费预算
|
|
indirectData:{ //间接经费预算
|
|
facility:0,
|
|
facility:0,
|
|
cl:0,
|
|
cl:0,
|
|
@@ -642,7 +659,13 @@ export default {
|
|
jg:0,
|
|
jg:0,
|
|
xz:0,
|
|
xz:0,
|
|
qt:0,
|
|
qt:0,
|
|
- reason:''
|
|
|
|
|
|
+ },
|
|
|
|
+ applicationInDirectData:{ //间接经费本次申请
|
|
|
|
+ facility:0,
|
|
|
|
+ cl:0,
|
|
|
|
+ jg:0,
|
|
|
|
+ xz:0,
|
|
|
|
+ qt:0,
|
|
},
|
|
},
|
|
DirectFunding:{ //直接经费汇总
|
|
DirectFunding:{ //直接经费汇总
|
|
budget:0, //预算
|
|
budget:0, //预算
|
|
@@ -650,7 +673,7 @@ export default {
|
|
application:0, //本次申请
|
|
application:0, //本次申请
|
|
surplus:0, //余额
|
|
surplus:0, //余额
|
|
},
|
|
},
|
|
- IndirectFunding:{//简介经费汇总
|
|
|
|
|
|
+ IndirectFunding:{//间接经费汇总
|
|
budget:0, //预算
|
|
budget:0, //预算
|
|
expended:0, //已支付
|
|
expended:0, //已支付
|
|
application:0, //本次申请
|
|
application:0, //本次申请
|
|
@@ -661,8 +684,13 @@ export default {
|
|
expended:0, //已支付
|
|
expended:0, //已支付
|
|
application:0, //本次申请
|
|
application:0, //本次申请
|
|
surplus:0, //余额
|
|
surplus:0, //余额
|
|
|
|
+ },
|
|
|
|
+ AllFund:{ //经费支出
|
|
|
|
+ budget:0, //预算
|
|
|
|
+ expended:0, //已支付
|
|
|
|
+ application:0, //本次申请
|
|
|
|
+ surplus:0, //余额
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -674,28 +702,33 @@ export default {
|
|
this.directData.facility+=e.budget*1;
|
|
this.directData.facility+=e.budget*1;
|
|
this.usedDirectData.facility+=e.usedFund*1;
|
|
this.usedDirectData.facility+=e.usedFund*1;
|
|
this.directDataReason.reason=e.reason;
|
|
this.directDataReason.reason=e.reason;
|
|
|
|
+ this.applicationDirectData.facility = e.apply*1
|
|
// console.log(this.directData.facility);
|
|
// console.log(this.directData.facility);
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
this.directData.cl+=e.budget*1;
|
|
this.directData.cl+=e.budget*1;
|
|
this.usedDirectData.cl+=e.usedFund*1;
|
|
this.usedDirectData.cl+=e.usedFund*1;
|
|
this.directDataReason.reason1=e.reason;
|
|
this.directDataReason.reason1=e.reason;
|
|
|
|
+ this.applicationDirectData.cl = e.apply*1
|
|
// console.log(this.directData.cl);
|
|
// console.log(this.directData.cl);
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
this.directData.jg=e.budget*1;
|
|
this.directData.jg=e.budget*1;
|
|
this.usedDirectData.jg+=e.usedFund*1;
|
|
this.usedDirectData.jg+=e.usedFund*1;
|
|
this.directDataReason.reason2=e.reason;
|
|
this.directDataReason.reason2=e.reason;
|
|
|
|
+ this.applicationDirectData.jg = e.apply*1
|
|
break;
|
|
break;
|
|
case 4:
|
|
case 4:
|
|
this.directData.xz=e.budget*1;
|
|
this.directData.xz=e.budget*1;
|
|
this.usedDirectData.xz+=e.usedFund*1;
|
|
this.usedDirectData.xz+=e.usedFund*1;
|
|
this.directDataReason.reason3=e.reason;
|
|
this.directDataReason.reason3=e.reason;
|
|
|
|
+ this.applicationDirectData.xz = e.apply*1
|
|
break;
|
|
break;
|
|
case 5:
|
|
case 5:
|
|
this.directData.qt=e.budget*1;
|
|
this.directData.qt=e.budget*1;
|
|
this.usedDirectData.qt+=e.usedFund*1;
|
|
this.usedDirectData.qt+=e.usedFund*1;
|
|
this.directDataReason.reason4=e.reason;
|
|
this.directDataReason.reason4=e.reason;
|
|
|
|
+ this.applicationDirectData.qt = e.apply*1
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -706,31 +739,33 @@ export default {
|
|
this.indirectData.facility+=e.budget*1;
|
|
this.indirectData.facility+=e.budget*1;
|
|
this.usedInDirectData.facility+=e.usedFund*1;
|
|
this.usedInDirectData.facility+=e.usedFund*1;
|
|
this.indirectDataReason.reason=e.reason;
|
|
this.indirectDataReason.reason=e.reason;
|
|
|
|
+ this.applicationInDirectData.facility = e.apply*1;
|
|
// console.log(this.directData.facility);
|
|
// console.log(this.directData.facility);
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
this.indirectData.cl+=e.budget*1;
|
|
this.indirectData.cl+=e.budget*1;
|
|
this.usedInDirectData.cl+=e.usedFund*1;
|
|
this.usedInDirectData.cl+=e.usedFund*1;
|
|
this.indirectDataReason.reason1=e.reason;
|
|
this.indirectDataReason.reason1=e.reason;
|
|
-
|
|
|
|
|
|
+ this.applicationInDirectData.cl = e.apply*1;
|
|
// console.log(this.directData.cl);
|
|
// console.log(this.directData.cl);
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
this.indirectData.jg=e.budget*1;
|
|
this.indirectData.jg=e.budget*1;
|
|
this.usedInDirectData.jg+=e.usedFund*1;
|
|
this.usedInDirectData.jg+=e.usedFund*1;
|
|
this.indirectDataReason.reason2=e.reason;
|
|
this.indirectDataReason.reason2=e.reason;
|
|
-
|
|
|
|
|
|
+ this.applicationInDirectData.jg = e.apply*1;
|
|
break;
|
|
break;
|
|
case 4:
|
|
case 4:
|
|
this.indirectData.xz=e.budget*1;
|
|
this.indirectData.xz=e.budget*1;
|
|
this.usedInDirectData.xz+=e.usedFund*1;
|
|
this.usedInDirectData.xz+=e.usedFund*1;
|
|
this.indirectDataReason.reason3=e.reason;
|
|
this.indirectDataReason.reason3=e.reason;
|
|
-
|
|
|
|
|
|
+ this.applicationInDirectData.xz = e.apply*1;
|
|
break;
|
|
break;
|
|
case 5:
|
|
case 5:
|
|
this.indirectData.qt=e.budget*1;
|
|
this.indirectData.qt=e.budget*1;
|
|
this.usedInDirectData.qt+=e.usedFund*1;
|
|
this.usedInDirectData.qt+=e.usedFund*1;
|
|
this.indirectDataReason.reason4=e.reason;
|
|
this.indirectDataReason.reason4=e.reason;
|
|
|
|
+ this.applicationInDirectData.qt = e.apply*1;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -740,17 +775,33 @@ export default {
|
|
//直接费用全部已支出
|
|
//直接费用全部已支出
|
|
for(let a in this.usedDirectData)this.IndirectFunding['expended']+=this.usedDirectData[a];
|
|
for(let a in this.usedDirectData)this.IndirectFunding['expended']+=this.usedDirectData[a];
|
|
//直接费用本次申请
|
|
//直接费用本次申请
|
|
|
|
+ for(let b in this.applicationDirectData)this.IndirectFunding['application']+=this.applicationDirectData[b]
|
|
//直接费用余额
|
|
//直接费用余额
|
|
this.IndirectFunding['surplus'] = this.IndirectFunding['budget']-this.IndirectFunding['expended']-this.IndirectFunding['application']
|
|
this.IndirectFunding['surplus'] = this.IndirectFunding['budget']-this.IndirectFunding['expended']-this.IndirectFunding['application']
|
|
|
|
|
|
//间接费用
|
|
//间接费用
|
|
- //直接费用全部预算
|
|
|
|
- for(let i in this.indirectData)this.Expenditure['budget']+=this.directData[i];
|
|
|
|
- //直接费用全部已支出
|
|
|
|
- for(let a in this.usedInDirectData)this.Expenditure['expended']+=this.usedDirectData[a];
|
|
|
|
- //直接费用本次申请
|
|
|
|
- //直接费用余额
|
|
|
|
|
|
+ //间接费用全部预算
|
|
|
|
+ for(let c in this.indirectData)this.Expenditure['budget']+=this.indirectData[c];
|
|
|
|
+ //间接费用全部已支出
|
|
|
|
+ for(let d in this.usedInDirectData)this.Expenditure['expended']+=this.usedInDirectData[d];
|
|
|
|
+ //间接费用本次申请
|
|
|
|
+ for(let e in this.applicationInDirectData)this.Expenditure['application']+=this.applicationInDirectData[e];
|
|
|
|
+ //间接费用余额
|
|
this.Expenditure['surplus'] = this.Expenditure['budget']-this.Expenditure['expended']-this.Expenditure['application']
|
|
this.Expenditure['surplus'] = this.Expenditure['budget']-this.Expenditure['expended']-this.Expenditure['application']
|
|
|
|
+
|
|
|
|
+ //经费支出
|
|
|
|
+ //预算
|
|
|
|
+ this.AllFund.budget =this.Expenditure['budget']+this.IndirectFunding['budget'];
|
|
|
|
+ //已支出
|
|
|
|
+ this.AllFund.expended = this.Expenditure['expended']+this.IndirectFunding['expended'];
|
|
|
|
+ //本次申请
|
|
|
|
+ this.AllFund.application = this.Expenditure['application']+this.IndirectFunding['application']
|
|
|
|
+ //育儿
|
|
|
|
+ this.AllFund.surplus = this.AllFund['budget']-this.AllFund['expended']-this.AllFund['application'];
|
|
|
|
+
|
|
|
|
+ //项目名称
|
|
|
|
+ this.residue.PName = this.projectFilter.filter(item=>item.id==this.selects.projectName).length!=0?this.projectFilter.filter(item=>item.id==this.selects.projectName)[0]['title']:'';
|
|
|
|
+
|
|
},
|
|
},
|
|
createFrom(){ // 显示表单对话框
|
|
createFrom(){ // 显示表单对话框
|
|
this.directData={ //直接经费预算
|
|
this.directData={ //直接经费预算
|
|
@@ -788,23 +839,59 @@ export default {
|
|
reason3:'',
|
|
reason3:'',
|
|
reason4:''
|
|
reason4:''
|
|
},
|
|
},
|
|
|
|
+ this.IndirectFunding = { //直接经费汇总
|
|
|
|
+ budget:0, //预算
|
|
|
|
+ expended:0, //已支付
|
|
|
|
+ application:0, //本次申请
|
|
|
|
+ surplus:0, //余额
|
|
|
|
+ },
|
|
|
|
+ this.Expenditure={//经费支出汇总
|
|
|
|
+ budget:0, //预算
|
|
|
|
+ expended:0, //已支付
|
|
|
|
+ application:0, //本次申请
|
|
|
|
+ surplus:0, //余额
|
|
|
|
+ }
|
|
|
|
+ this.AllFund={ //经费支出
|
|
|
|
+ budget:0, //预算
|
|
|
|
+ expended:0, //已支付
|
|
|
|
+ application:0, //本次申请
|
|
|
|
+ surplus:0, //余额
|
|
|
|
+ }
|
|
|
|
+ this.applicationInDirectData={ //间接经费本次申请
|
|
|
|
+ facility:0,
|
|
|
|
+ cl:0,
|
|
|
|
+ jg:0,
|
|
|
|
+ xz:0,
|
|
|
|
+ qt:0,
|
|
|
|
+ }
|
|
|
|
+ this.applicationDirectData={ //直接经费本次申请
|
|
|
|
+ facility:0,
|
|
|
|
+ cl:0,
|
|
|
|
+ jg:0,
|
|
|
|
+ xz:0,
|
|
|
|
+ qt:0,
|
|
|
|
+ }
|
|
this.AllEquipment();
|
|
this.AllEquipment();
|
|
this.createFromDialog=true;
|
|
this.createFromDialog=true;
|
|
},
|
|
},
|
|
submitCreateFrom(){ //生成表单
|
|
submitCreateFrom(){ //生成表单
|
|
- //直接经费预算
|
|
|
|
- console.log("====直接经费预算==========")
|
|
|
|
- console.log(this.directData);
|
|
|
|
- console.log("====直接经费已支出==========")
|
|
|
|
- console.log(this.usedDirectData);
|
|
|
|
- console.log("====直接经费事由==========")
|
|
|
|
- console.log(this.directDataReason)
|
|
|
|
- console.log("====间接经费预算==========")
|
|
|
|
- console.log(this.indirectData);
|
|
|
|
- console.log("====间接经费已支出==========")
|
|
|
|
- console.log(this.usedInDirectData)
|
|
|
|
- console.log("====间接经费事由==========")
|
|
|
|
- console.log(this.indirectDataReason)
|
|
|
|
|
|
+ getExcel({
|
|
|
|
+ PName:this.residue.PName, //项目名称
|
|
|
|
+ remarks:this.residue.reason,//备注
|
|
|
|
+ direct:{
|
|
|
|
+ budget:this.directData,
|
|
|
|
+ expended:this.usedDirectData,
|
|
|
|
+ apply:this.applicationDirectData,
|
|
|
|
+ reason:this.directDataReason,
|
|
|
|
+ },
|
|
|
|
+ indirect:{
|
|
|
|
+ budget:this.indirectData,
|
|
|
|
+ expended:this.usedInDirectData,
|
|
|
|
+ apply:this.applicationInDirectData,
|
|
|
|
+ reason:this.indirectDataReason
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
ProgressFormat(value){ //进度条
|
|
ProgressFormat(value){ //进度条
|
|
return value ==100?'100%':`${value}%`
|
|
return value ==100?'100%':`${value}%`
|
|
@@ -904,9 +991,11 @@ export default {
|
|
for(let k in this.newDirectFundBlock) return this.newDirectFundBlock[k]=''
|
|
for(let k in this.newDirectFundBlock) return this.newDirectFundBlock[k]=''
|
|
},
|
|
},
|
|
addIndirectFund(){ //添加间接经费
|
|
addIndirectFund(){ //添加间接经费
|
|
- // this.indirectFundBlock.push(this.newIndirectFundBlock)
|
|
|
|
|
|
+ //判断如果已经写满
|
|
|
|
+ if(this.indirectFundBlock.length==this.newIndirectFundBlock.indirectFundSelects.length)return this.$message.warning("已无法继续添加")
|
|
let oldArr={};
|
|
let oldArr={};
|
|
Object.assign(oldArr,this.newIndirectFundBlock)
|
|
Object.assign(oldArr,this.newIndirectFundBlock)
|
|
|
|
+ oldArr.indirectFundSelects = oldArr.indirectFundSelects.filter(item=>this.indirectFundBlock.filter(dItem=>dItem.indirectFundData==item.value).length==0)
|
|
this.indirectFundBlock.push(oldArr)
|
|
this.indirectFundBlock.push(oldArr)
|
|
for(let k in this.newIndirectFundBlock) return this.newIndirectFundBlock[k]=''
|
|
for(let k in this.newIndirectFundBlock) return this.newIndirectFundBlock[k]=''
|
|
},
|
|
},
|
|
@@ -915,7 +1004,7 @@ export default {
|
|
this.submitHint=false;
|
|
this.submitHint=false;
|
|
this.createFromDialog=false;
|
|
this.createFromDialog=false;
|
|
},
|
|
},
|
|
- directFundDataSelectChange(value){
|
|
|
|
|
|
+ directFundDataSelectChange(){
|
|
//直接经费全部下拉框
|
|
//直接经费全部下拉框
|
|
let directFundBlockSelect = [
|
|
let directFundBlockSelect = [
|
|
{
|
|
{
|
|
@@ -943,7 +1032,6 @@ export default {
|
|
this.directFundBlock.forEach(item=>{
|
|
this.directFundBlock.forEach(item=>{
|
|
//获取他本身自己的下拉框
|
|
//获取他本身自己的下拉框
|
|
oneself.push(directFundBlockSelect.filter(sItem=>sItem.value==item.directFundData)[0])
|
|
oneself.push(directFundBlockSelect.filter(sItem=>sItem.value==item.directFundData)[0])
|
|
- console.log(oneself)
|
|
|
|
//获取未选择的
|
|
//获取未选择的
|
|
directFundBlockSelect = directFundBlockSelect.filter(sItem=>sItem.value!=item.directFundData)
|
|
directFundBlockSelect = directFundBlockSelect.filter(sItem=>sItem.value!=item.directFundData)
|
|
})
|
|
})
|
|
@@ -956,7 +1044,48 @@ export default {
|
|
})
|
|
})
|
|
//遍历所有的直接经费
|
|
//遍历所有的直接经费
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ indirectFundSelectChange(){
|
|
|
|
+ //间接经费全部下拉框
|
|
|
|
+ let indirectFundSelect = [
|
|
|
|
+ {
|
|
|
|
+ value:1,
|
|
|
|
+ label:'项目成功鉴定费'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value:2,
|
|
|
|
+ label:'参展参赛费'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value:3,
|
|
|
|
+ label:'创客交流活动费'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value:4,
|
|
|
|
+ label:'知识产权事务费'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value:5,
|
|
|
|
+ label:'其他支出'
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+ let oneself=[];
|
|
|
|
+ this.indirectFundBlock.forEach(item=>{
|
|
|
|
+ //获取他本身自己的下拉框
|
|
|
|
+ oneself.push(indirectFundSelect.filter(sItem=>sItem.value==item.indirectFundData)[0])
|
|
|
|
+ //获取未选择的
|
|
|
|
+ indirectFundSelect = indirectFundSelect.filter(sItem=>sItem.value!=item.indirectFundData)
|
|
|
|
+ })
|
|
|
|
+ //再遍历一遍
|
|
|
|
+ this.indirectFundBlock.forEach((item,index)=>{
|
|
|
|
+ let oneSelect = [];
|
|
|
|
+ indirectFundSelect.forEach(item=>oneSelect.push(item));
|
|
|
|
+ if(oneself[index]!=undefined)oneSelect.push(oneself[index])
|
|
|
|
+ item.directFundSelects = oneSelect;
|
|
|
|
+ })
|
|
|
|
+ //遍历所有的直接经费
|
|
|
|
+
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.getData()
|
|
this.getData()
|