Browse Source

。。。

ljb 5 months ago
parent
commit
e254f171dd

+ 0 - 2
src/views/project-manage/components/all-budget-table.vue

@@ -155,7 +155,6 @@ export default {
             qtfy: new Decimal(qtfy === -1 ? 0 : qtfy).div(new Decimal(10000)).toFixed(4),
           };
 
-          console.log(newData)
           let _total = new Decimal(newData.ryrgfy)
             .add(newData.zjtrfy)
             .add(newData.zjfyycqdtfy)
@@ -164,7 +163,6 @@ export default {
             .add(newData.zbtsysyfy)
             .add(newData.wtwbyjkffy)
             .add(newData.qtfy);
-            console.log(_total)
           
           this.tableData = this.tableData.map((item, index) => {
             let readKey = '';

+ 3 - 2
src/views/tech-person/cy-person-sum-list.vue

@@ -130,11 +130,12 @@ export default window.$crudCommon({
   name: 'techPerson/cyPersonSumList',
   res: ({ data }) => {
     let newList = [];
-    data.records.forEach(item => {
-      item.technicianList.forEach(techItem => {
+    data.records.forEach((item, idx) => {
+      item.technicianList.forEach((techItem, tecIdx) => {
         newList.push({
           ...techItem,
           xmmc: item.xmmc,
+          id: idx+'_'+tecIdx
         });
       });
     });

+ 2 - 2
src/views/yf-cost-manage/basic-data-setting/atten-info.vue

@@ -342,10 +342,10 @@ export default window.$crudCommon({
   name: 'yfCostManage/basicDataSetting/attenInfo',
   res: ({ data }) => {
     let newList = [];
-    data.records.forEach((item) => {
+    data.records.forEach((item, idx) => {
       let objData = {
         ...item,
-        id: item.unicode,
+        id: item.unicode || idx,
         monthlyHours: (item.monthlyHours || 0).toFixed(1),
         monthlyDays: (item.monthlyDays || 0).toFixed(1)
       };

+ 2 - 2
src/views/yf-cost-manage/basic-data-setting/working-hours-records.vue

@@ -467,10 +467,10 @@ export default window.$crudCommon({
   name: 'yfCostManage/basicDataSetting/workHoursRecords',
   res: ({ data }) => {
     let newList = [];
-    data.records.forEach((item) => {
+    data.records.forEach((item, idx) => {
       let objData = {
         ...item,
-        id: item.unicode+'_'+item.xmId,
+        id: (item.unicode || idx)+'_'+item.xmId,
         monthlyHours: (item.monthlyHours || 0).toFixed(1),
         monthlyDays: (item.monthlyDays || 0).toFixed(1)
       };