瀏覽代碼

资金一张图中下

dev
yuzongping 15 小時之前
父節點
當前提交
127d1b2c84
共有 2 個檔案被更改,包括 51 行新增0 行删除
  1. +13
    -0
      src/views/capital/api/index.js
  2. +38
    -0
      src/views/capital/comps/buttom/1/index.js

+ 13
- 0
src/views/capital/api/index.js 查看文件

@@ -103,3 +103,16 @@ export function rankingOfCapitalExpenditure (deptId, year) {
})
}

// 资金一张图-中下-固定项目的金额指标
export function fixedProjectAmountIndicator (deptId, year) {
let query = {
deptId,
year
}
return request({
url: 'api/home/xixia/finance/srzhcjezb',
method: 'get',
params: query
})
}


+ 38
- 0
src/views/capital/comps/buttom/1/index.js 查看文件

@@ -1,9 +1,28 @@
import BlockValue from '@/components/value/index.vue';
import data from './data.js';
import { fixedProjectAmountIndicator } from '../../../api/index.js';
import { mapGetters } from 'vuex';
export default {
components: {
BlockValue
},
computed: {
...mapGetters(['year', 'deptId'])
},
watch: {
year: {
handler () {
this.getData();
},
immediate: true, // 立即执行
},
deptId: {
handler () {
this.getData();
},
immediate: true, // 立即执行
}
},
data () {
return {
data
@@ -14,5 +33,24 @@ export default {
mounted () {
},
methods: {
getData () {
if (this.year, this.deptId) {
this.isLoad = false;
fixedProjectAmountIndicator(this.deptId, this.year).then(res => {
this.data[0][1].value = res.data.jysr; // 经营收入
this.data[0][2].value = res.data.tzsy; // 投资收益
this.data[0][3].value = res.data.bzsr; // 补助收入
this.data[0][4].value = res.data.qtsr; // 补助收入

this.data[1][0].value = res.data.jyzc; // 经营支出
this.data[1][1].value = res.data.sjjfj; // 税金及附加
this.data[1][2].value = res.data.glfy; // 管理费用
this.data[1][3].value = res.data.gyzc; // 公益支出
this.data[1][4].value = res.data.qtzc; // 其他支出
this.data[1][5].value = res.data.sdsfy; // 所得税费用
this.isLoad = true;
})
}
}
}
};

Loading…
取消
儲存