This commit is contained in:
wangshiming
2022-04-19 15:45:48 +08:00
parent 3601efccc0
commit ec7374a5fd
3 changed files with 38 additions and 2 deletions

View File

@ -20,7 +20,7 @@
</p> </p>
<p> <p>
<label nz-checkbox [(ngModel)]="aggreechecked"></label> <label nz-checkbox [(ngModel)]="aggreechecked"></label>
<span>&nbsp;确认已阅读并知晓 <a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 3, data: dataJSON }">《变更协议》</a></span> <span>&nbsp;确认已阅读并知晓 <a (click)="agreement()">《变更协议》</a></span>
</p> </p>
</div> </div>
@ -28,3 +28,9 @@
<button nz-button type="button" (click)="close()">关闭</button> <button nz-button type="button" (click)="close()">关闭</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button> <button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button>
</div> </div>
<nz-modal [(nzVisible)]="isVisible" nzTitle="变更协议" nzClassName="modal_content" (nzOnOk)="handleOK()"
(nzOnCancel)="handleCancel()" [nzWidth]="800">
<ng-container *nzModalContent>
<div [innerHTML]="modalcontent | html" class=""></div>
</ng-container>
</nz-modal>

View File

@ -24,6 +24,8 @@ export class VehicleUpdateFreightComponent implements OnInit {
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
schema: SFSchema = {}; schema: SFSchema = {};
ui: SFUISchema = {}; ui: SFUISchema = {};
isVisible = false;
modalcontent = '';
aggreechecked = false; aggreechecked = false;
@ -192,4 +194,30 @@ export class VehicleUpdateFreightComponent implements OnInit {
}; };
return params; return params;
} }
agreement() {
const param = {
billId: this.data.id,
pre: this.sf.value.prePay,
rece: this.sf.value.toPay,
back: this.sf.value.receiptPay,
total: this.data.totalFreight,
freightAmount: this.data.totalAmount,
}
this.service.request(this.service.$api_getSupplementaryAgreement, param).subscribe(res => {
if (res) {
this.modalcontent = res.contractContent;
this.isVisible = true;
}
});
}
handleCancel() {
this.isVisible = false;
}
handleOK() {
this.isVisible = false;
}
} }

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-03 15:31:52 * @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-13 18:52:24 * @LastEditTime : 2022-04-19 15:16:37
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -206,6 +206,8 @@ export class OrderManagementService extends ShipperBaseService {
$api_asyncExportComplaintListDrv = `/api/sdc/complaint/operate/asyncExportComplaintListDrv`; $api_asyncExportComplaintListDrv = `/api/sdc/complaint/operate/asyncExportComplaintListDrv`;
//操作日志 //操作日志
public $api_get_log_list = `/api/mdc/pbc/operationLogRecords/getOperationLogRecordsList`; public $api_get_log_list = `/api/mdc/pbc/operationLogRecords/getOperationLogRecordsList`;
// 查看补充协议
public $api_getSupplementaryAgreement = `/api/sdc/billShipper/getSupplementaryAgreement`;
/** /**
* 根据企业ID获取企业历史网络货运人 * 根据企业ID获取企业历史网络货运人
* @returns * @returns