装 | {{item?.loadingTime}}
diff --git a/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html b/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html
index 6ad44af6..24e884c1 100644
--- a/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html
+++ b/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html
@@ -27,5 +27,5 @@
diff --git a/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.ts b/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.ts
index 2be1787b..48c2640f 100644
--- a/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.ts
+++ b/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.ts
@@ -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() {
diff --git a/src/app/routes/order-management/services/order-management.service.ts b/src/app/routes/order-management/services/order-management.service.ts
index 7deb33b5..53ae803d 100644
--- a/src/app/routes/order-management/services/order-management.service.ts
+++ b/src/app/routes/order-management/services/order-management.service.ts
@@ -135,6 +135,10 @@ export class OrderManagementService extends ShipperBaseService {
public $api_get_billAudit = '/api/sdc/billExamine/billAudit';
// 统计单据审核状态数量
public $api_get_getAuditStatistical = '/api/sdc/billExamine/getAuditStatistical';
+ // 修改单据审核
+ public $api_get_updateBillExamine = '/api/sdc/billExamine/updateBillExamine';
+ // 单据审核通过
+ public $api_get_billAuditPass = '/api/sdc/billExamine/billAuditPass';
// 查询规则抽查列表