|
@@ -55,8 +55,10 @@
|
|
|
<td v-if="state>0">
|
|
|
{{ item.actualuse }}
|
|
|
</td>
|
|
|
- <td>
|
|
|
- {{ item.budget-item.havePaid-item.actualuse }}
|
|
|
+ <td>
|
|
|
+ <!-- 预算 -->
|
|
|
+ {{ state>0?item.budget-item.havePaid:item.budget-item.havePaid-item.actualuse }}
|
|
|
+ <!-- {{ item.budget-item.havePaid-item.actualuse }} -->
|
|
|
</td>
|
|
|
<td colspan="3" style="box-sizing: border-box;padding: 0 10px;">
|
|
|
{{ item.remark }}
|
|
@@ -184,7 +186,7 @@ export default {
|
|
|
// console.log(data);
|
|
|
let applyfund=JSON.parse(data['applyfund'])
|
|
|
let fund=JSON.parse(data['fund'])
|
|
|
- let usedFund=JSON.parse(data['usedFund'])
|
|
|
+ // let usedFund=JSON.parse(data['usedFund'])
|
|
|
let actualuse=JSON.parse(data['actualuse'])
|
|
|
this.tit=data.title;
|
|
|
this.ty=data.type;
|
|
@@ -194,10 +196,10 @@ export default {
|
|
|
})
|
|
|
// console.log(arr);
|
|
|
|
|
|
- let isUse = arr;
|
|
|
+ // let isUse = arr;
|
|
|
if (arr) {
|
|
|
// console.log(111);
|
|
|
- isUse.forEach(item=>{
|
|
|
+ arr.forEach(item=>{
|
|
|
let JP = JSON.parse(item['actualuse']);
|
|
|
this.fundList[0]['havePaid']+=Number(JP['device']);
|
|
|
this.fundList[1]['havePaid']+=Number(JP['Material']);
|
|
@@ -214,6 +216,8 @@ export default {
|
|
|
|
|
|
|
|
|
// console.log(applyfund);
|
|
|
+
|
|
|
+ // 预算
|
|
|
this.fundList[0].budget=fund.device
|
|
|
this.fundList[1].budget=fund.Material
|
|
|
this.fundList[2].budget=fund.processing
|
|
@@ -223,17 +227,18 @@ export default {
|
|
|
this.fundList[6].budget=fund.activities
|
|
|
this.fundList[7].budget=fund.Transaction
|
|
|
|
|
|
- if (data['usedFund']!=null) {
|
|
|
- this.fundList[0].havePaid=usedFund.device
|
|
|
- this.fundList[1].havePaid=usedFund.Material
|
|
|
- this.fundList[2].havePaid=usedFund.processing
|
|
|
- this.fundList[3].havePaid=usedFund.Collaboration
|
|
|
- this.fundList[4].havePaid=usedFund.APPRAISAL
|
|
|
- this.fundList[5].havePaid=usedFund.entery
|
|
|
- this.fundList[6].havePaid=usedFund.activities
|
|
|
- this.fundList[7].havePaid=usedFund.Transaction
|
|
|
- }
|
|
|
+ // if (data['usedFund']!=null) { //已使用
|
|
|
+ // this.fundList[0].havePaid=usedFund.device
|
|
|
+ // this.fundList[1].havePaid=usedFund.Material
|
|
|
+ // this.fundList[2].havePaid=usedFund.processing
|
|
|
+ // this.fundList[3].havePaid=usedFund.Collaboration
|
|
|
+ // this.fundList[4].havePaid=usedFund.APPRAISAL
|
|
|
+ // this.fundList[5].havePaid=usedFund.entery
|
|
|
+ // this.fundList[6].havePaid=usedFund.activities
|
|
|
+ // this.fundList[7].havePaid=usedFund.Transaction
|
|
|
+ // }
|
|
|
|
|
|
+ // 本次申请
|
|
|
this.fundList[0].thisApply=applyfund.device
|
|
|
this.fundList[1].thisApply=applyfund.Material
|
|
|
this.fundList[2].thisApply=applyfund.processing
|
|
@@ -243,6 +248,7 @@ 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
|
|
@@ -253,7 +259,14 @@ export default {
|
|
|
this.fundList[6].actualuse=actualuse.activities
|
|
|
this.fundList[7].actualuse=actualuse.Transaction
|
|
|
}
|
|
|
-
|
|
|
+ // console.log(data.state);
|
|
|
+ // if (data.state>0) {
|
|
|
+ // this.fundList.forEach(e=>{
|
|
|
+ // e.remark=e.budget*1-e.havePaid*1
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
this.intro=data.intro
|
|
|
this.state=data.state
|