车辆对接
This commit is contained in:
@ -109,7 +109,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
this.PageStatus = '大宗下一单';
|
||||
}
|
||||
this.initSF1();
|
||||
// this.initSF2();
|
||||
this.initSF3();
|
||||
this.initSF4();
|
||||
this.initSF5();
|
||||
@ -204,7 +203,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
asyncData: () => this.shipperSrv.getStaffList2()
|
||||
} as SFSelectWidgetSchema
|
||||
}
|
||||
}
|
||||
},
|
||||
required: ['shipperAppUserId','enterpriseProjectId','dispatchId']
|
||||
};
|
||||
this.ui1 = {
|
||||
'*': {
|
||||
@ -213,27 +213,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// initSF2() {
|
||||
// this.schema2 = {
|
||||
// properties: {
|
||||
// name1: {
|
||||
// type: 'string',
|
||||
// title: '发货模板',
|
||||
// ui: {
|
||||
// widget: 'custom',
|
||||
// placeholder: '请输入'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// };
|
||||
// this.ui2 = {
|
||||
// '*': {
|
||||
// spanLabelFixed: 90,
|
||||
// grid: { span: 12 }
|
||||
// }
|
||||
// };
|
||||
// }
|
||||
initSF3() {
|
||||
this.schema3 = {
|
||||
properties: {
|
||||
@ -420,7 +399,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
placeholder: '请输入'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
required: ['goodsValue']
|
||||
};
|
||||
this.ui5 = {
|
||||
'*': {
|
||||
@ -524,7 +504,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
} as SFTextareaWidgetSchema
|
||||
}
|
||||
},
|
||||
required: ['stateReceipt', 'receiptType', 'receiptAddressId']
|
||||
required: ['stateReceipt', 'receiptType', 'receiptAddressId',]
|
||||
};
|
||||
this.ui6 = {
|
||||
'*': {
|
||||
@ -769,16 +749,17 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
submit(submitType?: string): void {
|
||||
console.log('进来了');
|
||||
Object.keys(this.validateForm1.controls).forEach(key => {
|
||||
this.validateForm1.controls[key].markAsDirty();
|
||||
this.validateForm1.controls[key].updateValueAndValidity();
|
||||
});
|
||||
this.sf1.validator({ emitError: true });
|
||||
this.sf3.validator({ emitError: true });
|
||||
this.sf4.validator({ emitError: true });
|
||||
this.sf6.validator({ emitError: true });
|
||||
this.sf7.validator({ emitError: true });
|
||||
if (this.validateForm1.invalid || !this.sf3.valid || !this.sf4.valid || !this.sf6.valid || !this.sf7.valid) {
|
||||
console.log(this.sf1.valid)
|
||||
if (this.validateForm1.invalid || !this.sf3.valid || !this.sf1.valid|| !this.sf4.valid || !this.sf6.valid || !this.sf7.valid) {
|
||||
return;
|
||||
}
|
||||
if (typeof this.validateForm1.value.unloadingTime !== 'string') {
|
||||
|
||||
Reference in New Issue
Block a user