|
|
@@ -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];
|
|
|
}
|
|
|
});
|