Browse Source

处理项目无形资产摊销费用bug

ljb 10 months ago
parent
commit
458c51d001
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/project-manage/components/wxzctx-cost.vue

+ 1 - 1
src/views/project-manage/components/wxzctx-cost.vue

@@ -215,7 +215,7 @@ export default window.$crudCommon({
     data.records = data.records.map(item => {
     data.records = data.records.map(item => {
       item.zcmc = item.zcEntity ? item.zcEntity.zcmc : '';
       item.zcmc = item.zcEntity ? item.zcEntity.zcmc : '';
       item.zcbm = item.zcEntity ? item.zcEntity.zcbm : '';
       item.zcbm = item.zcEntity ? item.zcEntity.zcbm : '';
-      item.ytxe = (item.zcEntity ? item.zcEntity.yzje : 0).toFixed(2);
+      item.ytxe = Number(item.zcEntity ? item.zcEntity.yzje : 0).toFixed(2);
 
 
       let zzscD = new Decimal(item.zzsc || 0); // 工作时长
       let zzscD = new Decimal(item.zzsc || 0); // 工作时长
       let yzjeD = new Decimal(item.ytxe || 0); // 摊销额
       let yzjeD = new Decimal(item.ytxe || 0); // 摊销额