车辆对接
This commit is contained in:
@ -2,7 +2,7 @@ import { ViewChild } from '@angular/core';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 15:31:52
|
||||
* @LastEditTime: 2021-12-24 14:31:53
|
||||
* @LastEditTime: 2021-12-24 14:59:33
|
||||
* @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
|
||||
@ -284,7 +284,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
};
|
||||
}
|
||||
initData() {
|
||||
this.service.request(this.service.$api_get_getWholeBillDetail, {id: this.id}).subscribe(res => {
|
||||
this.service.request(this.service.$api_set_getWholeOrderDetail, {id: this.id}).subscribe(res => {
|
||||
console.log(res)
|
||||
if (res) {
|
||||
this.i = res;
|
||||
@ -339,9 +339,31 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
// 对装货凭证进行初始化
|
||||
if (res.unloadingLadingBillFilePath) {
|
||||
if (res.loadingLadingBillFilePath) {
|
||||
this.formData = {
|
||||
loadingLadingBillFilePath: [
|
||||
{
|
||||
uid: 'logo',
|
||||
name: 'LOGO',
|
||||
status: 'done',
|
||||
url: res.loadingLadingBillFilePath,
|
||||
response: {
|
||||
url: res.loadingLadingBillFilePath,
|
||||
},
|
||||
},
|
||||
],
|
||||
loadingPeopleVehiclesGoodsFilePath: [
|
||||
{
|
||||
uid: 'logo',
|
||||
name: 'LOGO',
|
||||
status: 'done',
|
||||
url: res.loadingPeopleVehiclesGoodsFilePath,
|
||||
response: {
|
||||
url: res.loadingPeopleVehiclesGoodsFilePath,
|
||||
},
|
||||
},
|
||||
],
|
||||
unloadingLadingBillFilePath: [
|
||||
{
|
||||
uid: 'logo',
|
||||
name: 'LOGO',
|
||||
@ -352,7 +374,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
},
|
||||
},
|
||||
],
|
||||
loadingPeopleVehiclesGoodsFilePath: [
|
||||
unloadingPeopleVehiclesGoodsFilePath: [
|
||||
{
|
||||
uid: 'logo',
|
||||
name: 'LOGO',
|
||||
@ -365,6 +387,9 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
],
|
||||
};
|
||||
}
|
||||
// 发车时间到车时间初始化
|
||||
this.loadingTime = res.loadingTime
|
||||
this.loadingTime = res.unloadTime
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -396,6 +421,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
}
|
||||
console.log(this.sf3.value)
|
||||
console.log(this.sf4.value)
|
||||
console.log(this.sf.value)
|
||||
const params = {
|
||||
id: this.id,
|
||||
unLoadingPlaceList: [...this.startInfo, ...this.endInfo,],
|
||||
@ -418,13 +444,16 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
loadPlanTime: this.loadingTime,
|
||||
// 到车时间
|
||||
unloadPlanTime: this.loadingTime,
|
||||
loadingLadingBillFilePath: this.sf.value?.loadingLadingBillFilePath.data.fullFilePath,
|
||||
loadingPeopleVehiclesGoodsFilePath: this.sf.value?.loadingPeopleVehiclesGoodsFilePath.data.fullFilePath,
|
||||
unloadingLadingBillFilePath: this.sf.value?.unloadingLadingBillFilePath.data.fullFilePath,
|
||||
unloadingPeopleVehiclesGoodsFilePath: this.sf.value?.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath,
|
||||
loadingLadingBillFilePath: this.sf.value?.loadingLadingBillFilePath?.data ? this.sf.value?.loadingLadingBillFilePath.data.fullFilePath : this.sf.value?.loadingLadingBillFilePath?.url,
|
||||
|
||||
loadingPeopleVehiclesGoodsFilePath: this.sf.value?.loadingPeopleVehiclesGoodsFilePath?.data ? this.sf.value?.loadingPeopleVehiclesGoodsFilePath.data.fullFilePath : this.sf.value?.loadingPeopleVehiclesGoodsFilePath?.url,
|
||||
|
||||
unloadingLadingBillFilePath: this.sf.value?.unloadingLadingBillFilePath?.data ? this.sf.value?.unloadingLadingBillFilePath.data.fullFilePath : this.sf.value?.unloadingLadingBillFilePath?.url,
|
||||
|
||||
unloadingPeopleVehiclesGoodsFilePath: this.sf.value?.unloadingPeopleVehiclesGoodsFilePath?.data ? this.sf.value?.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath : this.sf.value?.unloadingPeopleVehiclesGoodsFilePath?.url,
|
||||
}
|
||||
console.log(params)
|
||||
this.service.request(this.service.$api_set_getWholeOrderDetail, params).subscribe((res: any) => {
|
||||
this.service.request(this.service.$api_set_modifyWholeOrder, params).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user