fix bug
This commit is contained in:
@ -5,7 +5,7 @@ import { OnChanges } from '@angular/core';
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-05 11:01:55
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-25 10:28:10
|
||||
* @LastEditTime : 2022-04-27 11:13:07
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -220,16 +220,22 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
}
|
||||
|
||||
save() {
|
||||
// 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') {
|
||||
// if (this.sf.value.contractType == '') {
|
||||
// this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
console.log(this.sf.value.templateName);
|
||||
console.log(this.sf.value.templateType);
|
||||
console.log(this.sf2.value.templateContent);
|
||||
console.log(this.title);
|
||||
console.log(this.title || this.detailList.templateName);
|
||||
|
||||
if (!this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !(this.title || this.detailList.templateName)) {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
}
|
||||
if (this.sf.value.templateType == 'MX') {
|
||||
if (this.sf.value.contractType == '') {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
}
|
||||
}
|
||||
const params = {
|
||||
...this.sf.value,
|
||||
...this.sf2.value,
|
||||
|
||||
Reference in New Issue
Block a user