Files
bbq/src/app/routes/supply-management/components/tran-agreement/tran-agreement.component.ts
wangshiming 3088476b67 解决冲突
2022-02-28 20:57:17 +08:00

72 lines
1.9 KiB
TypeScript

/*
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-02-24 20:19:51
* @LastEditors : Shiming
* @LastEditTime : 2022-02-28 20:55:59
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
/*
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-01-06 15:01:40
* @LastEditors : Shiming
* @LastEditTime : 2022-02-28 20:55:07
* @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',
templateUrl: './tran-agreement.component.html',
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',
parametersDTO: {
// 回单付
back: 'dsfgffdsg',
// 发货地址
consignorAddress: 'gfdgdfdg',
// 发货时间
consignorDate: 'dsggdsgsfgds',
// 发货时间
// consignorDate: '',
},
resourceType: '1',
signingObject: '1',
templateType: 'MX',
}
console.log(params)
this.service.request(this.service.$api_getContractContent,params).subscribe((res) => {
if (res) {
this.agreement = res.contractContent;
}
});
}
handleOk(){
this.modal.close(true);
}
}