fix bug
This commit is contained in:
@ -591,7 +591,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
||||
this.sf1data.id = res?.id;
|
||||
}
|
||||
res?.unLoadingPlaceVOList.forEach((element: any) => {
|
||||
if(element.type === 1) {
|
||||
if(element.type === 1 || element.type === '1') {
|
||||
const controlId = this.startInfo.length;
|
||||
if(this.PageStatus === '大宗修改') {
|
||||
this.startInfo.push({
|
||||
@ -626,7 +626,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
||||
this.validateForm1.addControl(`loadAddress${controlId}`, new FormControl(null, Validators.required));
|
||||
this.validateForm1.addControl(`loadName${controlId}`, new FormControl(null, Validators.required));
|
||||
this.validateForm1.addControl(`loadPhone${controlId}`, new FormControl(null, Validators.required));
|
||||
} else if(element.type === 2) {
|
||||
} else if(element.type === 2 || element.type === '2') {
|
||||
const controlId = this.endInfo.length;
|
||||
if( this.PageStatus === '大宗修改') {
|
||||
this.endInfo.push({
|
||||
|
||||
Reference in New Issue
Block a user