车辆对接
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 17:55:35
|
||||
* @LastEditTime: 2021-12-27 14:38:15
|
||||
* @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
|
||||
@ -300,8 +300,13 @@ loadTime: any; // 货源单设置回显
|
||||
uid: index
|
||||
})
|
||||
});
|
||||
this.sf4data
|
||||
this.listImagUrls = arr;
|
||||
this.sf4data = res?.goodsInfoList?.[0]
|
||||
// this.sf4data = res?.goodsInfoList?.[0]
|
||||
this.sf4data = {
|
||||
...res,
|
||||
...res?.goodsInfoList?.[0]
|
||||
}
|
||||
// 对装卸货信息进行初始化
|
||||
res?.unLoadingPlaceList.forEach((element: any) => {
|
||||
if(element.type === 1 || element.type === '1') {
|
||||
@ -423,9 +428,6 @@ loadTime: any; // 货源单设置回显
|
||||
var c = new Date(this.loadTime);
|
||||
this.loadTime = c.getFullYear() + '-' + this.addPreZero(c.getMonth() + 1) + '-' + this.addPreZero(c.getDate()) + ' ' + this.addPreZero(c.getHours()) + ':' + this.addPreZero(c.getMinutes()) + ':' + this.addPreZero(c.getSeconds())
|
||||
}
|
||||
console.log('dirvingMessage=>>>>>>'+ this.dirvingMessage)
|
||||
console.log( this.dirvingMessage)
|
||||
console.log( this.st._data)
|
||||
const params = {
|
||||
id: this.id,
|
||||
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo,],
|
||||
@ -440,9 +442,13 @@ loadTime: any; // 货源单设置回显
|
||||
payeeId: this.dirverPhone,
|
||||
dirverBankCard: this.dirverBankCard, // 银行卡
|
||||
// 发车时间
|
||||
loadTime: this.loadTime,
|
||||
loadTime: this.loadTime,
|
||||
// 到车时间
|
||||
unloadTime: this.unloadTime,
|
||||
acceptWeight: this.sf4.value?.acceptWeight,
|
||||
acceptVolume: this.sf4.value?.acceptVolume,
|
||||
settlementWeight: this.sf4.value?.settlementWeight,
|
||||
settlementVolume: this.sf4.value?.settlementVolume,
|
||||
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,
|
||||
@ -456,7 +462,7 @@ loadTime: any; // 货源单设置回显
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('修改成功!');
|
||||
this.router.navigate(['/order-management/vehicle']);
|
||||
this.router.navigate(['/order-management/bulk']);
|
||||
} else {
|
||||
this.service.msgSrv.error(res?.msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user