解决冲突

This commit is contained in:
wangshiming
2022-03-01 13:42:02 +08:00
parent d974a06c10
commit 192ed6dfbf
6 changed files with 26 additions and 5 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-23 13:39:58 * @Date : 2021-12-23 13:39:58
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-02-28 13:40:47 * @LastEditTime : 2022-03-01 13:41:57
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -78,6 +78,7 @@
(click)="openMap('start', idx)" (click)="openMap('start', idx)"
formControlName="loadAddress{{ idx }}" formControlName="loadAddress{{ idx }}"
placeholder="请输入装货地" placeholder="请输入装货地"
readonly="true"
/> />
</nz-input-group> </nz-input-group>
<!-- <span style="padding: 0 10px" <!-- <span style="padding: 0 10px"
@ -130,6 +131,7 @@
(click)="openMap('end', idx)" (click)="openMap('end', idx)"
formControlName="unloadAddress{{ idx }}" formControlName="unloadAddress{{ idx }}"
placeholder="请输入卸货地" placeholder="请输入卸货地"
readonly="true"
/> />
</nz-input-group> </nz-input-group>
<!-- <span style="padding: 0 10px" <!-- <span style="padding: 0 10px"

View File

@ -30,6 +30,7 @@
(click)="openMap('start', idx)" (click)="openMap('start', idx)"
formControlName="loadAddress{{ idx }}" formControlName="loadAddress{{ idx }}"
placeholder="请输入装货地" placeholder="请输入装货地"
readonly="true"
/> />
</nz-input-group> </nz-input-group>
<span *ngIf="idx !== 0" style="padding: 0 10px" <span *ngIf="idx !== 0" style="padding: 0 10px"
@ -98,6 +99,7 @@
formControlName="unloadAddress{{ idx }}" formControlName="unloadAddress{{ idx }}"
placeholder="请输入卸货地" placeholder="请输入卸货地"
name="unloadAddress{{ idx }}" name="unloadAddress{{ idx }}"
readonly="true"
/> />
</nz-input-group> </nz-input-group>
<span *ngIf="idx !== 0" style="padding: 0 10px" <span *ngIf="idx !== 0" style="padding: 0 10px"

View File

@ -147,7 +147,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
searchDebounceTime: 300, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
onSearch: (q: any) => { onSearch: (q: any) => {
if (!!q) { console.log(q)
if (q) {
return this.service return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: q }) .request(this.service.$api_enterpriceList, { enterpriseName: q })
.pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum)))) .pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
@ -157,7 +158,9 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
} }
}, },
change: (q: any) => { change: (q: any) => {
this.getRegionCode(q); if (q) {
this.getRegionCode(q);
}
} }
} as SFSelectWidgetSchema } as SFSelectWidgetSchema
}, },

View File

@ -36,6 +36,7 @@
(click)="openMap('start', idx)" (click)="openMap('start', idx)"
formControlName="loadAddress{{ idx }}" formControlName="loadAddress{{ idx }}"
placeholder="请输入装货地" placeholder="请输入装货地"
readonly="true"
/> />
</nz-input-group> </nz-input-group>
<span *ngIf="idx !== 0" style="padding: 0 10px" <span *ngIf="idx !== 0" style="padding: 0 10px"
@ -104,6 +105,7 @@
formControlName="unloadAddress{{ idx }}" formControlName="unloadAddress{{ idx }}"
placeholder="请输入卸货地" placeholder="请输入卸货地"
name="unloadAddress{{ idx }}" name="unloadAddress{{ idx }}"
readonly="true"
/> />
</nz-input-group> </nz-input-group>
<span *ngIf="idx !== 0" style="padding: 0 10px" <span *ngIf="idx !== 0" style="padding: 0 10px"

View File

@ -135,7 +135,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
searchDebounceTime: 300, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
onSearch: (q: any) => { onSearch: (q: any) => {
if (!!q) { if (q) {
return this.service return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: q }) .request(this.service.$api_enterpriceList, { enterpriseName: q })
.pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum)))) .pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
@ -145,7 +145,9 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
} }
}, },
change: (q: any) => { change: (q: any) => {
if (q) {
this.getRegionCode(q); this.getRegionCode(q);
}
}, },
} as SFSelectWidgetSchema } as SFSelectWidgetSchema
}, },

View File

@ -167,7 +167,17 @@ export class SupplyManagementVehicleComponent implements OnInit {
/** /**
* 导入货源 * 导入货源
*/ */
importGoodsSource() {} importGoodsSource() {
const modalRef = this.modal.create({
nzTitle: '修改运费',
nzWidth: '40%',
nzContent: SupplyManagementUpdateFreightComponent,
nzComponentParams: {
// i: item
},
nzFooter: null
});
}
/** /**
* 修改运费 * 修改运费