Browse Source

设备工时bug修改

ljb 5 months ago
parent
commit
bd09215416

+ 3 - 3
src/views/yf-cost-manage/basic-data-setting/dev-work-hours-register.vue

@@ -269,12 +269,12 @@ export default window.$crudCommon({
       let dailyHoursList = [];
       Object.keys(this.form).forEach(key => {
         if (key.indexOf(this.params.yearAndMonth) > -1) {
-          if (this.form[key]) {
+          // if (this.form[key]) {
             dailyHoursList.push({
               workDate: key,
-              workHours: this.form[key]
+              workHours: this.form[key] || 0
             });
-          }
+          // }
           delete newFormData[key];
         }
       });