车辆接口更新
This commit is contained in:
@ -216,6 +216,11 @@
|
|||||||
|
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<div class="card-title">服务信息</div>
|
<div class="card-title">服务信息</div>
|
||||||
|
<div nz-row>
|
||||||
|
<div nz-col nzSpan="12">
|
||||||
|
<sf #sf55 [schema]="schema55" [button]="'none'" [ui]="ui55" [formData]="sf55data"></sf>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div nz-row [nzGutter]="24" style="margin: 24px 0">
|
<div nz-row [nzGutter]="24" style="margin: 24px 0">
|
||||||
<div nz-col [nzSpan]="10">
|
<div nz-col [nzSpan]="10">
|
||||||
<div class="align-center">
|
<div class="align-center">
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import {
|
import {
|
||||||
|
SFCheckboxWidgetSchema,
|
||||||
SFComponent,
|
SFComponent,
|
||||||
SFNumberWidgetSchema,
|
SFNumberWidgetSchema,
|
||||||
SFSchema,
|
SFSchema,
|
||||||
@ -31,6 +32,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
sf3data: any; // 货源单设置回显
|
sf3data: any; // 货源单设置回显
|
||||||
sf4data: any; // 货源单设置回显
|
sf4data: any; // 货源单设置回显
|
||||||
sf5data: any; // 货源单设置回显
|
sf5data: any; // 货源单设置回显
|
||||||
|
sf55data: any; // 货源单设置回显
|
||||||
sf6data: any; // 货源单设置回显
|
sf6data: any; // 货源单设置回显
|
||||||
sf7data: any; // 货源单设置回显
|
sf7data: any; // 货源单设置回显
|
||||||
creatTime: any; // 货源单设置回显
|
creatTime: any; // 货源单设置回显
|
||||||
@ -87,6 +89,10 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
schema5: SFSchema = {};
|
schema5: SFSchema = {};
|
||||||
ui5!: SFUISchema;
|
ui5!: SFUISchema;
|
||||||
|
|
||||||
|
@ViewChild('sf55', { static: false }) sf55!: SFComponent;
|
||||||
|
schema55: SFSchema = {};
|
||||||
|
ui55!: SFUISchema;
|
||||||
|
|
||||||
@ViewChild('sf6', { static: false }) sf6!: SFComponent;
|
@ViewChild('sf6', { static: false }) sf6!: SFComponent;
|
||||||
schema6: SFSchema = {};
|
schema6: SFSchema = {};
|
||||||
ui6!: SFUISchema;
|
ui6!: SFUISchema;
|
||||||
@ -105,6 +111,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
this.initSF3();
|
this.initSF3();
|
||||||
this.initSF4();
|
this.initSF4();
|
||||||
this.initSF5();
|
this.initSF5();
|
||||||
|
this.initSF55();
|
||||||
this.initSF6();
|
this.initSF6();
|
||||||
this.initSF7();
|
this.initSF7();
|
||||||
this.initdata();
|
this.initdata();
|
||||||
@ -356,7 +363,56 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
initSF55() {
|
||||||
|
this.schema55 = {
|
||||||
|
properties: {
|
||||||
|
insuranceType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '增值服务套餐',
|
||||||
|
enum: [
|
||||||
|
{ label: '不购买', value: '0' },
|
||||||
|
{ label: '套餐一', value: '1' },
|
||||||
|
{ label: '套餐二', value: '2' }
|
||||||
|
],
|
||||||
|
ui: {
|
||||||
|
widget: 'select'
|
||||||
|
},
|
||||||
|
default:'0'
|
||||||
|
},
|
||||||
|
type1: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
enum: ['车辆实时定位', '轨迹查询', '数据保护','赠送基本险'],
|
||||||
|
readOnly: true,
|
||||||
|
ui: {
|
||||||
|
widget: 'checkbox',
|
||||||
|
visibleIf: {insuranceType: (value: string) => value ==='1'},
|
||||||
|
} as SFCheckboxWidgetSchema,
|
||||||
|
default: ['车辆实时定位', '轨迹查询', '数据保护','赠送基本险'],
|
||||||
|
},
|
||||||
|
type2: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
enum: ['车辆实时定位', '轨迹查询', '数据保护','专属技术服务','赠送综合险'],
|
||||||
|
readOnly: true,
|
||||||
|
ui: {
|
||||||
|
widget: 'checkbox',
|
||||||
|
visibleIf: {insuranceType: (value: string) => value ==='2'},
|
||||||
|
} as SFCheckboxWidgetSchema,
|
||||||
|
default: ['车辆实时定位', '轨迹查询', '数据保护','专属技术服务','赠送综合险'],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.ui55 = {
|
||||||
|
'*': {
|
||||||
|
spanLabelFixed: 100,
|
||||||
|
grid: { span: 24 }
|
||||||
|
},
|
||||||
|
$insuranceType: {
|
||||||
|
grid: { span: 12 }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
initSF5() {
|
initSF5() {
|
||||||
this.schema5 = {
|
this.schema5 = {
|
||||||
properties: {
|
properties: {
|
||||||
@ -810,6 +866,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
loadingTime: this.validateForm1?.value?.loadingTime,
|
loadingTime: this.validateForm1?.value?.loadingTime,
|
||||||
unloadingTime: this.validateForm1?.value?.unloadingTime,
|
unloadingTime: this.validateForm1?.value?.unloadingTime,
|
||||||
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo],
|
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo],
|
||||||
|
insuranceType:this.sf55.value.insuranceType,
|
||||||
goodsInfoDTOList: [
|
goodsInfoDTOList: [
|
||||||
{
|
{
|
||||||
...this.sf4.value,
|
...this.sf4.value,
|
||||||
@ -836,6 +893,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
this.requests(this.service.$api_set_saveAnotherWholeOrder, params, 2);
|
this.requests(this.service.$api_set_saveAnotherWholeOrder, params, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 补0函数
|
||||||
addPreZero(num: any) {
|
addPreZero(num: any) {
|
||||||
if (num < 10) {
|
if (num < 10) {
|
||||||
return '0' + num;
|
return '0' + num;
|
||||||
@ -1040,13 +1098,9 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
this.sf5data = {
|
this.sf5data = {
|
||||||
goodsValue: res?.goodsValue
|
goodsValue: res?.goodsValue
|
||||||
};
|
};
|
||||||
console.log(res?.stateReceipt);
|
this.sf55data = {
|
||||||
// this.sf6data = {
|
insuranceType: res?.serviceInformationVO?.insuranceType || ''
|
||||||
// stateReceipt: res?.stateReceipt,
|
};
|
||||||
// receiptType: res?.receiptType,
|
|
||||||
// receiptUserId: res?.receiptUserId,
|
|
||||||
// remarks: res?.remarks
|
|
||||||
// };
|
|
||||||
this.sf6data = {
|
this.sf6data = {
|
||||||
stateReceipt: res?.stateReceipt,
|
stateReceipt: res?.stateReceipt,
|
||||||
receiptType: res?.receiptType || '',
|
receiptType: res?.receiptType || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user