车辆对接

This commit is contained in:
wangshiming
2022-01-06 10:57:01 +08:00
parent a777f43a56
commit 78329f292c
12 changed files with 82 additions and 57 deletions

View File

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2022-01-05 11:01:55
* @LastEditTime: 2022-01-05 13:47:31
* @LastEditTime: 2022-01-06 10:23:19
* @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
@ -30,14 +30,14 @@
<nz-card>
<div nz-col nzSpan="20" style="overflow: scroll">
<nz-card class="card-height" *ngIf="isUpdate">
<nz-card class="card-height" *ngIf="!isUpdate">
<div class="mb-md">
<div></div>
</div>
<div [innerHTML]="templateHTML | safehtml"></div>
</nz-card>
<nz-card class="card-height" *ngIf="!isUpdate">
<nz-card class="card-height" *ngIf="isUpdate">
<div nz-row nzGutter="8">
<div nz-col nzSpan="24">
<input nz-input placeholder="请输入合同标题" [(ngModel)]="title" />

View File

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2022-01-05 11:01:55
* @LastEditTime: 2022-01-05 13:51:44
* @LastEditTime: 2022-01-06 10:29:11
* @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
@ -47,14 +47,18 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
ngOnInit() {
this.initSF()
this.initSF2()
if(this.route.snapshot.queryParams.status == 3) {
if(this.route.snapshot.queryParams.status == 1) {
console.log('进来了吗')
// 新建
this.isUpdate = false;
} else {
this.isUpdate = true;
} else if(this.route.snapshot.queryParams.status == 2) {
// 编辑
this.textStatus = '编辑模板';
this.isUpdate =true;
this.isUpdate =false;
}else if(this.route.snapshot.queryParams.status == 3) {
// 编辑
this.textStatus = '查看模板';
this.isUpdate =false;
}
console.log(this.route.snapshot.params.id)
@ -66,13 +70,13 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
initSF() {
this.schema = {
properties: {
phon: {
templateName: {
type: 'string',
title: '模版名称',
},
stateReceipt: {
templateType: {
type: 'string',
title: '是否回单',
title: '模版类型',
enum: [
{ label: '需要', value: true },
{ label: '不需要', value: false }
@ -83,14 +87,14 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
placeholder: '请选择'
}
},
enterpriseProjectId: {
contractType: {
type: 'string',
title: '项目',
title: '单据类型',
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
stateReceipt: value => value === true
templateType: value => value === true
}
} as SFSelectWidgetSchema
},
@ -106,7 +110,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
initSF2(data?: any) {
this.schema2 = {
properties: {
content: {
templateContent: {
type: 'string',
title: '',
ui: {