车辆对接
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-06 20:49:42
|
||||
* @LastEditTime: 2022-01-06 21:09:31
|
||||
* @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
|
||||
@ -94,17 +94,6 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
},
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
// contractType: {
|
||||
// type: 'string',
|
||||
// title: '单据类型',
|
||||
// ui: {
|
||||
// widget: 'select',
|
||||
// placeholder: '请选择',
|
||||
// visibleIf: {
|
||||
// templateType: value => value === true
|
||||
// }
|
||||
// } as SFSelectWidgetSchema
|
||||
// },
|
||||
contractType: {
|
||||
title: '单据类型',
|
||||
type: 'string',
|
||||
@ -119,6 +108,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
}
|
||||
,required: ['templateName','templateType']
|
||||
};
|
||||
this.ui = {
|
||||
'*': {
|
||||
@ -161,6 +151,17 @@ export class UserCenterComponentsDriverDetailComponent 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);
|
||||
|
||||
Reference in New Issue
Block a user