|
@@ -107,6 +107,9 @@ export default window.$crudCommon({
|
|
|
|
|
|
|
|
return newParams;
|
|
return newParams;
|
|
|
},
|
|
},
|
|
|
|
|
+ getFormData() {
|
|
|
|
|
+ return { ...this.form, yanfaFenTanLv: new Decimal(this.form.yanfaFenTanLv || 0).div(new Decimal(100)).toFixed(2) };
|
|
|
|
|
+ },
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
exportBlob(`/api/kd-scientific/lease/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
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`);
|
|
@@ -129,6 +132,7 @@ export default window.$crudCommon({
|
|
|
name: 'yfCostManage/yfCostStatistics/hourseDepreAllocation',
|
|
name: 'yfCostManage/yfCostStatistics/hourseDepreAllocation',
|
|
|
res: ({ data }) => {
|
|
res: ({ data }) => {
|
|
|
data.records = data.records.map(item => {
|
|
data.records = data.records.map(item => {
|
|
|
|
|
+ let yanfaFenTanLvDec = new Decimal(item.yanfaFenTanLv || 0);
|
|
|
item.zcbm = item.asset ? item.asset.zcbm : '';
|
|
item.zcbm = item.asset ? item.asset.zcbm : '';
|
|
|
item.zcmc = item.asset ? item.asset.zcmc : '';
|
|
item.zcmc = item.asset ? item.asset.zcmc : '';
|
|
|
item.zclb = item.asset ? item.asset.zclb : '';
|
|
item.zclb = item.asset ? item.asset.zclb : '';
|
|
@@ -136,7 +140,8 @@ export default window.$crudCommon({
|
|
|
item.zcyz = item.asset ? item.asset.zcyz : '';
|
|
item.zcyz = item.asset ? item.asset.zcyz : '';
|
|
|
item.jcz = new Decimal(item.asset.jcz || 0).mul(new Decimal(100));
|
|
item.jcz = new Decimal(item.asset.jcz || 0).mul(new Decimal(100));
|
|
|
item.yzje = item.asset ? item.asset.yzje : '';
|
|
item.yzje = item.asset ? item.asset.yzje : '';
|
|
|
- item.yanfaTanXiao = Number(new Decimal(item.yzje || 0).mul(item.yanfaFenTanLv || 0) / 100).toFixed(2);
|
|
|
|
|
|
|
+ item.yanfaFenTanLv = yanfaFenTanLvDec.mul(new Decimal(100));
|
|
|
|
|
+ item.yanfaTanXiao = new Decimal(item.yzje || 0).mul(yanfaFenTanLvDec).toFixed(2);
|
|
|
return item;
|
|
return item;
|
|
|
});
|
|
});
|
|
|
|
|
|