车辆对接
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 15:31:52
|
||||
* @LastEditTime: 2021-12-28 16:32:53
|
||||
* @LastEditTime: 2021-12-29 14:44:43
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\order-management\components\vehicle-detail\vehicle-detail.component.html
|
||||
-->
|
||||
<nz-affix [nzOffsetTop]="10">
|
||||
<page-header-wrapper [title]="''" [logo]="logo" [content]="headerContent">
|
||||
<ng-template #logo>
|
||||
<button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()">
|
||||
@ -53,8 +52,7 @@
|
||||
</div>
|
||||
</ng-template>
|
||||
</page-header-wrapper>
|
||||
</nz-affix>
|
||||
<nz-card nzTitle="运单进度" #distannce1>
|
||||
<nz-card nzTitle="运单进度" #distannce1 >
|
||||
<div class="approval-status">
|
||||
<div style="width: 60%; margin: 0 auto">
|
||||
<nz-steps [nzCurrent]="approvalLsit?.length + 1" nzLabelPlacement="vertical">
|
||||
@ -66,7 +64,7 @@
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
<nz-card nzTitle="基本信息" #distannce2 >
|
||||
<nz-card nzTitle="基本信息" #distannce2 >
|
||||
<sv-container col="1">
|
||||
<sv-title>货物信息</sv-title>
|
||||
<sv label="网络货运人">
|
||||
|
||||
@ -77,4 +77,8 @@
|
||||
margin-left: 56px;
|
||||
}
|
||||
}
|
||||
.target-fix {
|
||||
display: block;
|
||||
margin-top: 290px;
|
||||
}
|
||||
}
|
||||
@ -2,7 +2,7 @@ import { ViewChild } from '@angular/core';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 15:31:52
|
||||
* @LastEditTime: 2021-12-28 16:22:50
|
||||
* @LastEditTime: 2021-12-29 14:42:04
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\order-management\components\vehicle-detail\vehicle-detail.component.ts
|
||||
@ -112,7 +112,9 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
||||
|
||||
goDistance(elf: NzCardComponent) {
|
||||
if (elf) {
|
||||
elf['elementRef'].nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'start' , yOffset : 400 });
|
||||
elf['elementRef'].nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'start' , });
|
||||
// elf['elementRef'].nativeElement.className = 'target-fix'
|
||||
}
|
||||
console.log(elf)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-27 13:25:08
|
||||
* @LastEditTime: 2021-12-29 15:00:48
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||
@ -212,6 +212,15 @@
|
||||
</nz-modal>
|
||||
<ng-template #extraTemplate>
|
||||
<div>
|
||||
<button nz-button nzType="primary"(click)="modifyRate()">
|
||||
修改附加费率
|
||||
</button>
|
||||
<button nz-button nzType="primary"(click)="modifyFreightPeople()">
|
||||
修改网络货运人
|
||||
</button>
|
||||
<button nz-button nzType="primary"(click)="modifyRate()">
|
||||
修改车队长
|
||||
</button>
|
||||
<button nz-button nzType="primary" nzGhost nz-popconfirm
|
||||
[nzPopconfirmTitle]="enable" (nzOnConfirm)="userAction()" nzPopconfirmPlacement="bottomRight">
|
||||
批量签收
|
||||
|
||||
@ -14,6 +14,8 @@ import { VehicleSureArriveComponent } from '../../modal/vehicle/sure-arrive/sure
|
||||
import { VehicleSureDepartComponent } from '../../modal/vehicle/sure-depart/sure-depart.component';
|
||||
import { VehicleUpdateFreightComponent } from '../../modal/vehicle/update-freight/update-freight.component';
|
||||
import { OrderManagementService } from '../../services/order-management.service';
|
||||
import { VehicleModifyRateComponent } from '../../modal/vehicle/modify-rate/modify-rate.component';
|
||||
import { VehicleFreightPeopleComponent } from '../../modal/vehicle/freight-people/freight-people.component';
|
||||
|
||||
|
||||
@Component({
|
||||
@ -590,21 +592,82 @@ resourceStatus: any;
|
||||
nzWidth: 580,
|
||||
nzContent: VehicleUpdateFreightComponent,
|
||||
nzComponentParams: { data: { ...data, id: item.id } },
|
||||
nzOnOk: sin => {
|
||||
this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('变更运费成功');
|
||||
modal.destroy();
|
||||
this.st.reload();
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
nzFooter: null,
|
||||
// nzOnOk: sin => {
|
||||
// this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => {
|
||||
// if (res) {
|
||||
// this.service.msgSrv.success('变更运费成功');
|
||||
// modal.destroy();
|
||||
// this.st.reload();
|
||||
// }
|
||||
// });
|
||||
// return false;
|
||||
// }
|
||||
});
|
||||
modal.afterClose.subscribe(_ => this.st.reload());
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
*修改附加费率
|
||||
*/
|
||||
modifyRate() {
|
||||
let params: any[] = [];
|
||||
this.selectedRows.forEach(item => {
|
||||
params.push(item.id);
|
||||
});
|
||||
if(params.length === 0) {
|
||||
this.service.msgSrv.error('请先选择订单!')
|
||||
return
|
||||
}
|
||||
const modal = this.modal.create({
|
||||
nzTitle: '修改附加费率',
|
||||
nzWidth: 600,
|
||||
nzContent: VehicleModifyRateComponent,
|
||||
nzComponentParams: { data: { ids: params } },
|
||||
nzFooter: null,
|
||||
// nzOnOk: sin => {
|
||||
// this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => {
|
||||
// if (res) {
|
||||
// this.service.msgSrv.success('变更运费成功');
|
||||
// modal.destroy();
|
||||
// this.st.reload();
|
||||
// }
|
||||
// });
|
||||
// return false;
|
||||
// }
|
||||
});
|
||||
}
|
||||
/**
|
||||
*修改网络货运人
|
||||
*/
|
||||
modifyFreightPeople() {
|
||||
let params: any[] = [];
|
||||
this.selectedRows.forEach(item => {
|
||||
params.push(item.id);
|
||||
});
|
||||
if(params.length === 0) {
|
||||
this.service.msgSrv.error('请先选择订单!')
|
||||
return
|
||||
}
|
||||
const modal = this.modal.create({
|
||||
nzTitle: '修改网络货运人',
|
||||
nzWidth: 600,
|
||||
nzContent: VehicleFreightPeopleComponent,
|
||||
nzComponentParams: { data: { ids: params } },
|
||||
nzFooter: null,
|
||||
// nzOnOk: sin => {
|
||||
// this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => {
|
||||
// if (res) {
|
||||
// this.service.msgSrv.success('变更运费成功');
|
||||
// modal.destroy();
|
||||
// this.st.reload();
|
||||
// }
|
||||
// });
|
||||
// return false;
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
// *确认签收
|
||||
|
||||
@ -656,8 +719,10 @@ resourceStatus: any;
|
||||
this.selectedRows.forEach(item => {
|
||||
params.push(item.id);
|
||||
});
|
||||
console.log(this.selectedRows)
|
||||
console.log(params)
|
||||
if(params.length === 0) {
|
||||
this.service.msgSrv.error('请先选择订单!')
|
||||
return
|
||||
}
|
||||
this.service.request(this.service.$api_get_batchSignWholeOrder, params).subscribe(res => {
|
||||
if (res) {
|
||||
console.log(res);
|
||||
|
||||
Reference in New Issue
Block a user