From 28f4c8077c3805011895f7ce6734afc27af6bb06 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 28 Feb 2022 20:34:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onecar-publish.component.ts | 31 ++++++++++--------- .../tran-agreement.component.ts | 16 ++++++++-- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts index edebb36b..8587663e 100644 --- a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts +++ b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts @@ -927,20 +927,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { } // 提交前协议弹窗 agreementConfirm(submitType?: string) { - const modalRef = this.modalService.create({ - nzTitle: '运输协议', - nzContent: TranAgreementComponent, - nzWidth: 900, - nzFooter: null - }); - modalRef.afterClose.subscribe(result => { - if (result) { - this.submit(submitType); - } - }); - } - // 提交 - submit(submitType?: string): void { //装卸货信息 const LoadingList = this.startInfo.concat(this.endInfo); @@ -995,6 +981,23 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { expenseDTOList: expenseList, paymentDays: this.sf7.value.paymentDays }; + + const modalRef = this.modalService.create({ + nzTitle: '运输协议', + nzContent: TranAgreementComponent, + nzWidth: 900, + nzFooter: null, + nzComponentParams: {Object: params,} + }); + modalRef.afterClose.subscribe(result => { + if (result) { + this.submit(submitType, params); + } + }); + } + // 提交 + submit(submitType?: string,params?: any): void { + // const params: any = { // ...this.sf1.value, // ...this.sf5.value, diff --git a/src/app/routes/supply-management/components/tran-agreement/tran-agreement.component.ts b/src/app/routes/supply-management/components/tran-agreement/tran-agreement.component.ts index f3e75308..8cb5db21 100644 --- a/src/app/routes/supply-management/components/tran-agreement/tran-agreement.component.ts +++ b/src/app/routes/supply-management/components/tran-agreement/tran-agreement.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-06 15:01:40 * @LastEditors : Shiming - * @LastEditTime : 2022-02-28 19:58:01 + * @LastEditTime : 2022-02-28 20:33:56 * @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -18,17 +18,27 @@ import { SupplyManagementService } from '../../services/supply-management.servic styleUrls: ['./tran-agreement.component.less'] }) export class TranAgreementComponent { - + Object: any; agreement:any; constructor(private modal: NzModalRef,public service: SupplyManagementService,) { } ngOnInit() { + console.log(Object) const params = { contractType:'1', enterpriseInfoId: '', - parametersDTO: {} + parametersDTO: { + // 回单付 + back: '', + // 发货地址 + consignorAddress: '', + // 发货时间 + consignorDate: '', + // 发货时间 + // consignorDate: '', + } }