|
@@ -4,7 +4,6 @@
|
|
|
v-bind="bindVal"
|
|
v-bind="bindVal"
|
|
|
v-on="onEvent"
|
|
v-on="onEvent"
|
|
|
v-model="form"
|
|
v-model="form"
|
|
|
- :page.sync="page"
|
|
|
|
|
>
|
|
>
|
|
|
<template slot="menuLeft">
|
|
<template slot="menuLeft">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -19,7 +18,7 @@
|
|
|
<print-table-btn @click="printTable" />
|
|
<print-table-btn @click="printTable" />
|
|
|
|
|
|
|
|
<div style="display: flex; align-items: center;">
|
|
<div style="display: flex; align-items: center;">
|
|
|
- <year-month-select v-model="params.yearAndMonth" :showAllYear="false"></year-month-select>
|
|
|
|
|
|
|
+ <year-month-select v-model="params.yearAndMonth"></year-month-select>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -73,14 +72,23 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
'params.yearAndMonth'(newVal) {
|
|
'params.yearAndMonth'(newVal) {
|
|
|
- this.page.currentPage = 1;
|
|
|
|
|
- this.getList(this.page);
|
|
|
|
|
|
|
+ this.getList();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- loadData() {},
|
|
|
|
|
|
|
+ loadData() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ this.api[this.option.list || 'getList'](this.getSearchParams()).then(res => {
|
|
|
|
|
+ this.data = res.data.data.map(item => {
|
|
|
|
|
+ let amount = new Decimal(item.cailiaofy).add(new Decimal(item.ranliaofy)).add(new Decimal(item.donglify)).add(new Decimal(item.yiqishebeify)).add(new Decimal(item.fawuzulinfy)).add(new Decimal(item.fy6)).add(new Decimal(item.fy7)).add(new Decimal(item.fy8));
|
|
|
|
|
+ item.amount = amount;
|
|
|
|
|
+ return item;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
- exportBlob(`/api/kd-scientific/lease/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
|
|
+ exportBlob(`/api/kd-scientific/direct-cost/summary/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
downloadXls(res.data, `${this.params.yearAndMonth}直接投入费用汇总表.xlsx`);
|
|
downloadXls(res.data, `${this.params.yearAndMonth}直接投入费用汇总表.xlsx`);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -99,8 +107,5 @@ export default window.$crudCommon({
|
|
|
}, {
|
|
}, {
|
|
|
// 模块路径
|
|
// 模块路径
|
|
|
name: 'yfCostManage/yfCostStatistics/zjtlCostSummaryList',
|
|
name: 'yfCostManage/yfCostStatistics/zjtlCostSummaryList',
|
|
|
- res: ({ data }) => {
|
|
|
|
|
- return data;
|
|
|
|
|
- },
|
|
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|