车辆对接
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-07 19:42:53
|
* @Date: 2021-12-07 19:42:53
|
||||||
* @LastEditTime: 2022-01-13 09:50:11
|
* @LastEditTime: 2022-01-13 10:20:45
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\proxy.conf.js
|
* @FilePath: \tms-obc-web\proxy.conf.js
|
||||||
@ -24,7 +24,7 @@ module.exports = {
|
|||||||
// }
|
// }
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-test.eascs.com',
|
host: 'tms-api-dev.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
<button nz-button (click)="assignedCar(i)"
|
<button nz-button (click)="assignedCar(i)"
|
||||||
*ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'">重新指派</button>
|
*ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'">重新指派</button>
|
||||||
<button nz-button (click)="updateGoodsSource(i)" *ngIf="i?.resourceStatus === '1'">修改货源</button>
|
<button nz-button (click)="updateGoodsSource(i)" *ngIf="i?.resourceStatus === '1'">修改货源</button>
|
||||||
<button nz-button nzType="primary" nzGhost (click)="placeOrder(i)">再下一单</button>
|
<button nz-button nzType="primary" nzGhost (click)="nextOrder(i)">再下一单</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-sm mb-sm" nz-row>
|
<div class="mt-sm mb-sm" nz-row>
|
||||||
|
|||||||
@ -142,22 +142,33 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重新指派
|
* 重新指派
|
||||||
*/
|
*/
|
||||||
assignedCar(item: any) {
|
assignedCar(item: any) {
|
||||||
|
const { id } = item;
|
||||||
|
console.log(id)
|
||||||
const modalRef = this.modal.create({
|
const modalRef = this.modal.create({
|
||||||
nzTitle: '指派熟车',
|
nzTitle: '指派熟车',
|
||||||
nzWidth: '1200px',
|
nzWidth: '1200px',
|
||||||
nzContent: SupplyManagementVehicleAssignedCarComponent,
|
nzContent: SupplyManagementVehicleAssignedCarComponent,
|
||||||
nzComponentParams: {
|
nzComponentParams: {
|
||||||
i: item,
|
i: item,
|
||||||
|
status: 'anew',
|
||||||
|
params: { id },
|
||||||
|
url: this.service.$api_save_assign_vehicle,
|
||||||
},
|
},
|
||||||
nzFooter: null,
|
nzFooter: null,
|
||||||
|
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe((result) => {
|
modalRef.afterClose.subscribe((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
this.getGoodsSourceDetail();
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
nextOrder(item: any) {
|
||||||
|
this.router.navigate(['/supply-management/vehicle-amend', item.id], {
|
||||||
|
queryParams: {
|
||||||
|
sta: 2
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,8 +135,11 @@
|
|||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="使用性质">
|
<sv label="使用性质">
|
||||||
<input nz-input type="text" [(ngModel)]="detailData.useNature" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
<nz-select [(ngModel)]="detailData.useNature" [nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit"
|
||||||
[placeholder]="isEdit?'':'-'">
|
[nzShowArrow]="isEdit" [nzDisabled]="!isEdit">
|
||||||
|
<nz-option [nzValue]="'1'" nzLabel="营运"></nz-option>
|
||||||
|
<nz-option [nzValue]="'0'" nzLabel="非营运"></nz-option>
|
||||||
|
</nz-select>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user