车辆接口更新
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-29 16:48:16
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:22:24
|
||||
* @LastEditTime : 2022-01-24 20:18:38
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\freight-people\\freight-people.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -12,5 +12,5 @@
|
||||
<sf style="margin-top: 15px" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf>
|
||||
<div class="modal-footer">
|
||||
<button nz-button type="button" (click)="close()">关闭</button>
|
||||
<button nz-button type="submit" nzType="primary" (click)="save(sf?.value)" [disabled]="sf?.valid">确定</button>
|
||||
<button nz-button type="submit" nzType="primary" (click)="save(sf?.value)" >确定</button>
|
||||
</div>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-29 16:48:16
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:22:37
|
||||
* @LastEditTime : 2022-01-24 20:19:31
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\freight-people\\freight-people.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -57,7 +57,7 @@ export class VehicleFreightPeopleComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
},
|
||||
required: ['enterpriseInfoName']
|
||||
required: ['enterpriseInfoId']
|
||||
};
|
||||
this.ui = {
|
||||
'*': {
|
||||
@ -69,9 +69,13 @@ export class VehicleFreightPeopleComponent implements OnInit {
|
||||
|
||||
save(value: any): void {
|
||||
console.log(this.sf.value);
|
||||
if(!this.sf.valid) {
|
||||
this.service.msgSrv.error("请选择网络货运人!")
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
billIds: this.data?.ids,
|
||||
enterpriseInfoId: this.sf.value?.enterpriseInfoName
|
||||
enterpriseInfoId: this.sf.value?.enterpriseInfoId
|
||||
};
|
||||
console.log(params);
|
||||
this.service.request(this.service.$api_set_updateEnterpriseInfoBatch, params).subscribe((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user