From 5808200d777151b64206cb3a6d9f7df9d217ec97 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 21 Feb 2022 14:28:15 +0800 Subject: [PATCH] fix bug --- .../update-freight/update-freight.component.html | 4 ++-- .../update-freight/update-freight.component.ts | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html index cd1d3b49..30f42c9b 100644 --- a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html +++ b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-02-11 11:08:42 + * @LastEditTime : 2022-02-21 14:27:51 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -25,5 +25,5 @@ diff --git a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts index 85db19ad..ec153aa7 100644 --- a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts +++ b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-02-21 14:16:50 + * @LastEditTime : 2022-02-21 14:27:50 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -26,7 +26,6 @@ export class VehicleUpdateFreightComponent implements OnInit { ui: SFUISchema = {}; aggreechecked = false; - payIng = true; @Input() data: any; @@ -38,11 +37,6 @@ export class VehicleUpdateFreightComponent implements OnInit { ngOnInit(): void { console.log(this.data) this.initSF(this.data); - if(this.data.isFreightChangeApplication) { - this.payIng = false; - } else { - this.payIng = true; - } } initSF(data: any) { const info = { @@ -128,7 +122,11 @@ export class VehicleUpdateFreightComponent implements OnInit { } save(value: any): void { - if (!this.sf.valid) { + if (this.data.isFreightChangeApplication) { + this.service.msgSrv.error('变更申请未处理,请勿重复申请!'); + return; + } + if (!this.save) { this.service.msgSrv.error('请填写必填项!'); return; }