批量审核
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2022-01-05 11:01:55
|
||||
* @LastEditTime: 2022-01-10 15:55:59
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.html
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-10 14:44:57
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:15:13
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-detail\\contract-detail.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [logo]="logo" [title]="textStatus" >
|
||||
<ng-template #logo>
|
||||
|
||||
@ -1,26 +1,29 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-29 20:19:08
|
||||
* @LastEditTime: 2021-11-29 20:31:00
|
||||
* @LastEditors: your name
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\usercenter\components\freight\list\detail\detail.component.spec.ts
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-10 14:44:57
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:15:18
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-detail\\contract-detail.component.spec.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { UserCenterComponentsDriverDetailComponent } from './contract-detail.component';
|
||||
|
||||
describe('UserCenterComponentsDriverDetailComponent', () => {
|
||||
let component: UserCenterComponentsDriverDetailComponent;
|
||||
let fixture: ComponentFixture<UserCenterComponentsDriverDetailComponent>;
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ContractManagementDetailComponent } from './contract-detail.component';
|
||||
|
||||
describe('ContractManagementDetailComponent', () => {
|
||||
let component: ContractManagementDetailComponent;
|
||||
let fixture: ComponentFixture<ContractManagementDetailComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [UserCenterComponentsDriverDetailComponent],
|
||||
declarations: [ContractManagementDetailComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(UserCenterComponentsDriverDetailComponent);
|
||||
fixture = TestBed.createComponent(ContractManagementDetailComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
@ -1,24 +1,17 @@
|
||||
import { Router } from '@angular/router';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2022-01-05 11:01:55
|
||||
* @LastEditTime: 2022-01-18 16:37:53
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-10 14:44:57
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:15:43
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-detail\\contract-detail.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { DatePipe } from '@angular/common';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { apiConf } from '@conf/api.conf';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFTagWidgetSchema, SFTextWidgetSchema, SFUISchema } from '@delon/form';
|
||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { of } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
|
||||
import { ContractManagementService } from '../../services/contract-management.service';
|
||||
|
||||
@Component({
|
||||
@ -28,7 +21,6 @@ import { ContractManagementService } from '../../services/contract-management.se
|
||||
providers: [DatePipe]
|
||||
})
|
||||
export class ContractManagementDetailComponent implements OnInit {
|
||||
|
||||
constructor(
|
||||
private nzModalService: NzModalService,
|
||||
public service: ContractManagementService,
|
||||
@ -36,7 +28,7 @@ export class ContractManagementDetailComponent implements OnInit {
|
||||
private datePipe: DatePipe,
|
||||
private router: Router
|
||||
) {}
|
||||
textStatus = '合同详情'
|
||||
textStatus = '合同详情';
|
||||
name: any;
|
||||
code: any;
|
||||
templateHTML: any;
|
||||
@ -44,24 +36,24 @@ export class ContractManagementDetailComponent implements OnInit {
|
||||
templateName: ''
|
||||
};
|
||||
ngOnInit() {
|
||||
this.initData(this.service.$api_contract_get)
|
||||
this.initData(this.service.$api_contract_get);
|
||||
}
|
||||
goBack() {
|
||||
window.history.go(-1)
|
||||
window.history.go(-1);
|
||||
}
|
||||
|
||||
initData(url: string) {
|
||||
this.service.request(url, {id: this.route.snapshot.params.id}).subscribe((res) => {
|
||||
if(res) {
|
||||
this.service.request(url, { id: this.route.snapshot.params.id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.detailList = res;
|
||||
this.detailList = res;
|
||||
let value :any= JSON.parse(res.contractParameter)
|
||||
this.code = value['${code}']
|
||||
this.name =value['${name}']
|
||||
let value: any = JSON.parse(res.contractParameter);
|
||||
this.code = value['${code}'];
|
||||
this.name = value['${name}'];
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
cancel() {
|
||||
window.history.go(-1)
|
||||
window.history.go(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user