车辆接口更新

This commit is contained in:
wangshiming
2022-01-24 11:11:47 +08:00
parent d0eadd3f0d
commit 17b457cd0d
4 changed files with 32 additions and 40 deletions

View File

@ -398,49 +398,37 @@ export class orderManagementVoucherViewComponent implements OnInit {
};
}
save(value: any): void {
if(this.Status === 1) {
if(!value.time) {
if(!value) {
this.service.msgSrv.warning('必填项为空!')
return;
}
console.log(value)
const params = {
id: this.i.id,
loadingLadingBillFilePath: value.loadingLadingBillFilePath.data.fullFilePath,
loadingPeopleVehiclesGoodsFilePath: value.loadingPeopleVehiclesGoodsFilePath.data.fullFilePath,
unloadingLadingBillFilePath: value.unloadingLadingBillFilePath.data.fullFilePath,
unloadingPeopleVehiclesGoodsFilePath: value.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath,
time: value.time,
}
// params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
// this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
// if(res) {
// this.service.msgSrv.success('确认到车成功!')
// this.modal.destroy(true);
// }
// })
} else {
if(!value.time || !this.data.weight) {
this.service.msgSrv.warning('必填项为空!')
return;
}
console.log(value)
console.log(this.i)
const params = {
id: this.i?.id,
unloadingLadingBillFilePath: value.unloadingLadingBillFilePath.data.fullFilePath,
unloadingPeopleVehiclesGoodsFilePath: value.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath,
time: value.time,
volume: this.data.volume,
weight: this.data.weight
console.log(params)
this.service.request(this.service.$api_get_updateBillExamine, params).subscribe((res) => {
if(res) {
this.service.msgSrv.success('修改成功!')
this.modal.destroy(true);
}
// params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
// console.log(params)
// this.service.request(this.service.$api_get_insertBulkUnloadCarInfo, params).subscribe((res) => {
// if(res) {
// this.service.msgSrv.success('确认到车成功!')
// this.modal.destroy(true);
// }
// })
}
})
}
sure() {
const params = {
id: this.i.id,
}
console.log(params)
this.service.request(this.service.$api_get_billAuditPass, params).subscribe((res) => {
if(res) {
this.service.msgSrv.success('审核成功!')
this.modal.destroy(true);
}
})
}
// 确认到车界面信息(两个只能看的图片)
initData() {