批量审核
This commit is contained in:
@ -2,7 +2,7 @@ import { Router } from '@angular/router';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2022-01-05 11:01:55
|
||||
* @LastEditTime: 2022-01-10 15:56:26
|
||||
* @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
|
||||
@ -52,13 +52,10 @@ export class ContractManagementDetailComponent implements OnInit {
|
||||
|
||||
initData(url: string) {
|
||||
this.service.request(url, {id: this.route.snapshot.params.id}).subscribe((res) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.detailList = res;
|
||||
this.detailList = res;
|
||||
let value :any= JSON.parse(res.contractParameter)
|
||||
console.log(value['${code}'])
|
||||
console.log(value['${name}'])
|
||||
this.code = value['${code}']
|
||||
this.name =value['${name}']
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@ import { Router } from '@angular/router';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2022-01-05 11:01:55
|
||||
* @LastEditTime: 2022-01-10 14:48:32
|
||||
* @LastEditTime: 2022-01-18 16:38:01
|
||||
* @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
|
||||
@ -67,9 +67,6 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
this.isUpdate =false;
|
||||
this.initData(this.service.$api_get_contractTemplate)
|
||||
}
|
||||
|
||||
console.log(this.route.snapshot.params.id)
|
||||
console.log(this.route.snapshot.queryParams.status)
|
||||
}
|
||||
goBack() {
|
||||
window.history.go(-1)
|
||||
@ -137,7 +134,6 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
}
|
||||
initData(url: string) {
|
||||
this.service.request(url, {id: this.route.snapshot.params.id}).subscribe((res) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.detailList = res;
|
||||
this.sfdata = res;
|
||||
@ -150,28 +146,22 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
save () {
|
||||
console.log(this.sf.value);
|
||||
if( !this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !this.title) {
|
||||
this.service.msgSrv.error("必填参数为空,请检查再重新保存!");
|
||||
return;
|
||||
}
|
||||
if(this.sf.value.templateType == 'MX' ) {
|
||||
console.log(this.sf.value.contractType)
|
||||
if(this.sf.value.contractType == '') {
|
||||
this.service.msgSrv.error("必填参数为空,请检查再重新保存!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.log(this.sfdata);
|
||||
console.log(this.sf2.value);
|
||||
console.log(this.title);
|
||||
const params = {
|
||||
...this.sf.value,
|
||||
...this.sf2.value,
|
||||
templateTitle: this.title
|
||||
}
|
||||
this.service.request(this.service.$api_save_contractTemplate, params).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success("保存成功!")
|
||||
this.router.navigate(['/contract-management/template'])
|
||||
|
||||
@ -166,7 +166,6 @@ export class ContractManagementTemplateComponent implements OnInit {
|
||||
this.sf?.setValue('/_$expand', this._$expand);
|
||||
}
|
||||
tabChange(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
/**
|
||||
* 重置表单
|
||||
|
||||
Reference in New Issue
Block a user