|
|
@@ -39,45 +39,45 @@
|
|
|
<template slot="jczSearch">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
<span>净残值:</span>
|
|
|
- <avue-input-number v-model="params.jczStart" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.jczMin" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
|
- <avue-input-number v-model="params.jczEnd" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.jczMax" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<template slot="zcyzSearch">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
<span>资产原值:</span>
|
|
|
- <avue-input-number v-model="params.zcyzStart" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.zcyzMin" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
|
- <avue-input-number v-model="params.zcyzEnd" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.zcyzMax" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<template slot="ytxeSearch">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
<span>月摊销额:</span>
|
|
|
- <avue-input-number v-model="params.ytxeStart" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.yzjeMin" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
|
- <avue-input-number v-model="params.ytxeEnd" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.yzjeMax" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <template slot="ysygsSearch">
|
|
|
+ <template slot="attendanceHoursSearch">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
<span>月使用工时:</span>
|
|
|
- <avue-input-number v-model="params.ysygsStart" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.attendanceHoursMin" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
|
- <avue-input-number v-model="params.ysygsEnd" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.attendanceHoursMax" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <template slot="yyfgsSearch">
|
|
|
+ <template slot="workHoursSearch">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
<span>已研发工时:</span>
|
|
|
- <avue-input-number v-model="params.yyfgsStart" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.workHoursMin" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
|
- <avue-input-number v-model="params.yyfgsEnd" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
+ <avue-input-number v-model="params.workHoursMax" :min="0" style="width: 100px !important;"></avue-input-number>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -127,10 +127,9 @@ export default window.$crudCommon({
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- loadData() {},
|
|
|
handleExport() {
|
|
|
exportBlob(`/api/kd-scientific/lease/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
- downloadXls(res.data, `研发费用汇总表${this.params.yearAndMonth}.xlsx`);
|
|
|
+ downloadXls(res.data, `无形资产摊销费用分配表${this.params.yearAndMonth}.xlsx`);
|
|
|
});
|
|
|
},
|
|
|
/**
|
|
|
@@ -139,7 +138,7 @@ export default window.$crudCommon({
|
|
|
*/
|
|
|
printTable(isLandscape) {
|
|
|
this.wideTableColumns = this.$refs.crud.columnOption;
|
|
|
- this.printTitle = `研发费用汇总表${this.params.yearAndMonth}`;
|
|
|
+ this.printTitle = `无形资产摊销费用分配表${this.params.yearAndMonth}`;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.printWideTable.printTable(isLandscape);
|
|
|
})
|
|
|
@@ -149,6 +148,21 @@ export default window.$crudCommon({
|
|
|
// 模块路径
|
|
|
name: 'yfCostManage/yfCostStatistics/amortizeCostSummaryList',
|
|
|
res: ({ data }) => {
|
|
|
+ data.records = data.records.map(item => {
|
|
|
+ item.zcbm = item.asset ? item.asset.zcbm : '';
|
|
|
+ item.zcmc = item.asset ? item.asset.zcmc : '';
|
|
|
+ item.zclb = item.asset ? item.asset.zclb : '';
|
|
|
+ item.gl = item.asset ? item.asset.gl : '';
|
|
|
+ item.yt = item.asset ? item.asset.yt : '';
|
|
|
+ item.zcyz = item.asset ? item.asset.zcyz : '';
|
|
|
+ item.jcz = item.asset ? item.asset.jcz : '';
|
|
|
+ item.ytxe = item.asset ? item.asset.yzje : '';
|
|
|
+ item.attendanceHours = (item.attendanceHours || 0).toFixed(1);
|
|
|
+ item.workHours = (item.workHours || 0).toFixed(1);
|
|
|
+ item.yanfaFenTanLv = (item.yanfaFenTanLv * 100).toFixed(2);
|
|
|
+ item.yanfaTanXiao = (item.yanfaTanXiao || 0).toFixed(2);
|
|
|
+ return item;
|
|
|
+ });
|
|
|
return data;
|
|
|
},
|
|
|
});
|