解决冲突

This commit is contained in:
wangshiming
2022-02-24 16:31:01 +08:00
parent 0e4a6c792b
commit b0a301564b
8 changed files with 24 additions and 16 deletions

View File

@ -1,6 +1,5 @@
<h2 >
委托运输协议
<h2 style="text-align: center;">
{{ agreement?.agreementName }}
</h2>
<div *nzModalFooter>
<button nz-button nzType="primary" (click)="handleOk()" >我已阅读并同意签署</button>

View File

@ -4,12 +4,13 @@
* @Author : Shiming
* @Date : 2022-01-06 15:01:40
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:29:05
* @LastEditTime : 2022-02-24 16:24:32
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { Component } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { SupplyManagementService } from '../../services/supply-management.service';
@Component({
selector: 'publish-goods-tran-agreement',
@ -18,11 +19,19 @@ import { NzModalRef } from 'ng-zorro-antd/modal';
})
export class TranAgreementComponent {
type: any;
constructor(private modal: NzModalRef) {
agreement:any;
constructor(private modal: NzModalRef,public service: SupplyManagementService,) {
}
ngOnInit() {
this.service.request(this.service.$api_getAgreementInfoByType,{type:'6'}).subscribe((res) => {
if (res) {
this.agreement = res;
}
});
}
handleOk(){
this.modal.close(true);
}