车辆接口更新
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-14 14:03:07
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:21:33
|
||||
* @LastEditTime : 2022-01-24 16:28:40
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\bulk\\update-freight\\update-freight.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -205,6 +205,7 @@ export class UpdateFreightComponent implements OnInit {
|
||||
}
|
||||
|
||||
save(value: any): void {
|
||||
console.log(this.sf.value)
|
||||
if (!this.sf.valid) {
|
||||
this.sf.validator({ emitError: true });
|
||||
return;
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
<div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{ i?.shipperAppUserName }}</div>
|
||||
<div nz-col nzSpan="10">
|
||||
<button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'">取消货源</button>
|
||||
<button nz-button (click)="assignedCar(i)" *ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'">重新指派</button>
|
||||
<button nz-button (click)="updatePrice(i)" *ngIf="i?.resourceStatus === '1'">修改单价</button>
|
||||
<button nz-button nzType="primary" nzGhost (click)="placeOrder(i)">再下一单</button>
|
||||
</div>
|
||||
|
||||
@ -105,21 +105,6 @@ export class SupplyManagementBulkDetailComponent implements OnInit {
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
* 指派熟车
|
||||
*/
|
||||
assignedCar(item: any) {
|
||||
// const modalRef = this.modal.create({
|
||||
// nzTitle: '指派熟车',
|
||||
// nzWidth: '90%',
|
||||
// nzContent: PublishGoodsChooseFamifiarComponent,
|
||||
// nzComponentParams: {
|
||||
// i: this.i,
|
||||
// },
|
||||
// nzFooter: null,
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看当前指派
|
||||
*/
|
||||
|
||||
@ -318,11 +318,6 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
text: '再下一单',
|
||||
click: (_record) => this.nextOrder(_record),
|
||||
},
|
||||
{
|
||||
text: '重新指派',
|
||||
click: (_record) => this.assignedCar(_record),
|
||||
iif: item => item.auditStatus == 2,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@ -332,40 +327,6 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
// .createStatic(FormEditComponent, { i: { id: 0 } })
|
||||
// .subscribe(() => this.st.reload());
|
||||
}
|
||||
/**
|
||||
* 重新指派
|
||||
*/
|
||||
assignedCar(item: any) {
|
||||
// const modalRef = this.modal.create({
|
||||
// nzTitle: '指派熟车',
|
||||
// nzWidth: '1500px',
|
||||
// nzContent: SupplyManagementBulkAssignedCarComponent,
|
||||
// nzComponentParams: {
|
||||
// i: item
|
||||
// },
|
||||
// nzFooter: null,
|
||||
|
||||
// });
|
||||
// modalRef.afterClose.subscribe((result) => {
|
||||
// if (result) {
|
||||
// this.st.reload();
|
||||
// }
|
||||
// });
|
||||
const modalRef = this.modal.create({
|
||||
nzTitle: '指派熟车',
|
||||
nzContent: PublishGoodsChooseFamifiarComponent,
|
||||
nzComponentParams: {
|
||||
submitParams: item,
|
||||
submitUrl: this.service.$api_save_bulk_assign
|
||||
},
|
||||
nzWidth: 1300
|
||||
});
|
||||
modalRef.afterClose.subscribe(result => {
|
||||
if (result) {
|
||||
this.st.reload(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 查询字段个数
|
||||
*/
|
||||
|
||||
@ -152,7 +152,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
||||
i: item,
|
||||
status: 'anew',
|
||||
params: { id },
|
||||
url: this.service.$api_save_assign_whole,
|
||||
url: this.service.$api_save_assign_vehicle,
|
||||
},
|
||||
nzFooter: null,
|
||||
|
||||
|
||||
@ -174,7 +174,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
|
||||
i: item,
|
||||
status: 'anew',
|
||||
params: { id },
|
||||
url: this.service.$api_save_assign_whole
|
||||
url: this.service.$api_save_assign_vehicle
|
||||
},
|
||||
nzFooter: null
|
||||
});
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-03 11:10:14
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-20 10:57:13
|
||||
* @LastEditTime : 2022-01-24 16:36:35
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\services\\supply-management.service.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -62,7 +62,7 @@ export class SupplyManagementService extends BaseService {
|
||||
$api_add_car_caption = `/api/mdc/userDriverExpand/addCarCaptainForShiper`; // 设置为车队长
|
||||
$api_get_goods_resource_shipper = `/api/sdc/goodsResourceShipper/modifyPricePre`; // 修改单价页面根据货源ID获取货物表
|
||||
$api_get_car_captain_by_mobile = `/api/mdc/userDriverExpand/getCarCaptainByMobile`; // 查询车队长或者司机列表
|
||||
// $api_save_assign_vehicle = `/api/sdc/goodsResourceShipper/reAssignWhole`; // 货主端大宗货源重新指派
|
||||
$api_save_assign_vehicle = `/api/sdc/goodsResourceShipper/reAssignWhole`; // 整车货源重新指派
|
||||
|
||||
$api_save_assign_bulk = `/api/sdc/goodsResourceShipper/reAssignBulk`; // 货主端大宗货源指派熟车
|
||||
// 整车再下一单指派熟车
|
||||
|
||||
Reference in New Issue
Block a user