|
@@ -973,29 +973,45 @@
|
|
|
if (this.commonJS.isNotEmpty(this.inputForm.members)) {
|
|
|
this.inputForm.members.forEach((item, index) => {
|
|
|
if (this.commonJS.isEmpty(item.job)) {
|
|
|
- if (this.commonJS.isNotEmpty(item.row.job)) {
|
|
|
- this.inputForm.members[index].job = item.row.job
|
|
|
+ if (this.commonJS.isNotEmpty(item.row)) {
|
|
|
+ if (this.commonJS.isNotEmpty(item.row.job)) {
|
|
|
+ this.inputForm.members[index].job = item.row.job
|
|
|
+ } else {
|
|
|
+ this.inputForm.members[index].job = ''
|
|
|
+ }
|
|
|
} else {
|
|
|
this.inputForm.members[index].job = ''
|
|
|
}
|
|
|
}
|
|
|
if (this.commonJS.isEmpty(item.workHours)) {
|
|
|
- if (this.commonJS.isNotEmpty(item.row.workHours)) {
|
|
|
- this.inputForm.members[index].workHours = item.row.workHours
|
|
|
+ if (this.commonJS.isNotEmpty(item.row)) {
|
|
|
+ if (this.commonJS.isNotEmpty(item.row.workHours)) {
|
|
|
+ this.inputForm.members[index].workHours = item.row.workHours
|
|
|
+ } else {
|
|
|
+ this.inputForm.members[index].workHours = 0
|
|
|
+ }
|
|
|
} else {
|
|
|
this.inputForm.members[index].workHours = 0
|
|
|
}
|
|
|
}
|
|
|
if (this.commonJS.isEmpty(item.type)) {
|
|
|
- if (this.commonJS.isNotEmpty(item.row.type)) {
|
|
|
- this.inputForm.members[index].type = item.row.type
|
|
|
+ if (this.commonJS.isNotEmpty(item.row)) {
|
|
|
+ if (this.commonJS.isNotEmpty(item.row.type)) {
|
|
|
+ this.inputForm.members[index].type = item.row.type
|
|
|
+ } else {
|
|
|
+ this.inputForm.members[index].type = ''
|
|
|
+ }
|
|
|
} else {
|
|
|
this.inputForm.members[index].type = ''
|
|
|
}
|
|
|
}
|
|
|
if (this.commonJS.isEmpty(item.name)) {
|
|
|
- if (this.commonJS.isNotEmpty(item.row.name)) {
|
|
|
- this.inputForm.members[index].name = item.row.name
|
|
|
+ if (this.commonJS.isNotEmpty(item.row)) {
|
|
|
+ if (this.commonJS.isNotEmpty(item.row.name)) {
|
|
|
+ this.inputForm.members[index].name = item.row.name
|
|
|
+ } else {
|
|
|
+ this.inputForm.members[index].name = ''
|
|
|
+ }
|
|
|
} else {
|
|
|
this.inputForm.members[index].name = ''
|
|
|
}
|