This commit is contained in:
wangshiming
2022-04-27 19:15:48 +08:00
parent c4742fecb4
commit 3063478d69
2 changed files with 26 additions and 7 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-18 09:51:21 * @Date : 2022-01-18 09:51:21
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-27 11:21:30 * @LastEditTime : 2022-04-27 17:26:44
* @FilePath : \\tms-obc-web\\proxy.conf.js * @FilePath : \\tms-obc-web\\proxy.conf.js
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -30,7 +30,7 @@ module.exports = {
// }, // },
'//api': { '//api': {
target: { target: {
host: 'tms-api-test.eascs.com', host: 'tms-api-dev.eascs.com',
protocol: 'https:', protocol: 'https:',
port: 443 port: 443
}, },

View File

@ -26,7 +26,9 @@ export class CarSettleCarauthComponent implements OnInit {
companyData: any = {}; companyData: any = {};
detailData: any = {}; detailData: any = {};
carNo = '' carNo = ''
private titles = `
根据监管要求:总质量 4.5 吨及以下普通货 运车辆的,可填车籍地 6 位行政<div style="col: red">区域代码</div> 000000。
`
constructor( constructor(
private modal: NzModalRef, private modal: NzModalRef,
public service: VehicleService, public service: VehicleService,
@ -184,9 +186,11 @@ export class CarSettleCarauthComponent implements OnInit {
carEnergyType: { carEnergyType: {
title: '车辆能源类型', title: '车辆能源类型',
type: 'string', type: 'string',
readOnly: true,
ui: { ui: {
placeholder:'请输入车辆能源类型' widget: 'dict-select',
params: { dictKey: 'car:energy:type' },
placeholder: '请选择车辆能源类型',
containsAllLabel:false,
}, },
}, },
carLength: { carLength: {
@ -200,7 +204,7 @@ export class CarSettleCarauthComponent implements OnInit {
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema,
}, },
carLoad: { carLoad: {
title: '载重', title: '核定载质量',
type: 'string', type: 'string',
maxLength: 6, maxLength: 6,
ui: { ui: {
@ -480,6 +484,13 @@ export class CarSettleCarauthComponent implements OnInit {
placeholder: '请输入', placeholder: '请输入',
}, },
}, },
carTotalLoad: {
title: '总质量',
type: 'string',
ui: {
placeholder: '请输入',
},
},
carOwner: { carOwner: {
title: '所有人', title: '所有人',
type: 'string', type: 'string',
@ -493,6 +504,7 @@ export class CarSettleCarauthComponent implements OnInit {
type: 'string', type: 'string',
ui: { ui: {
widget: 'text', widget: 'text',
}, },
default: '照片上传后会自动识别文字并填充下列内容栏', default: '照片上传后会自动识别文字并填充下列内容栏',
}, },
@ -564,6 +576,9 @@ export class CarSettleCarauthComponent implements OnInit {
ui: { ui: {
// widget: this.detailData.commitFlag !== 0 ? 'text' : '', // widget: this.detailData.commitFlag !== 0 ? 'text' : '',
placeholder: '请输入', placeholder: '请输入',
optionalHelp: {
i18n: this.titles,
},
}, },
}, },
roadTransportLicenceNo: { roadTransportLicenceNo: {
@ -610,6 +625,8 @@ export class CarSettleCarauthComponent implements OnInit {
'driverLicenseSigningOrg', 'driverLicenseSigningOrg',
'carDistinguishCode', 'carDistinguishCode',
'useNature', 'useNature',
'curbWeight',
'carTotalLoad',
'carOwner' 'carOwner'
], ],
}; };
@ -687,9 +704,11 @@ export class CarSettleCarauthComponent implements OnInit {
this.sf.setValue('/carOwner', res.name); this.sf.setValue('/carOwner', res.name);
this.sf.setValue('/useNature', res.useCharacter); this.sf.setValue('/useNature', res.useCharacter);
this.sf.setValue('/carModel', res?.vehicleType); this.sf.setValue('/carModel', res?.vehicleType);
this.sf.setValue('/carTotalLoad', res?.grossMass.slice(0, -2) % 1000);
} else { } else {
this.sf.setValue('/curbWeight', res.unladenMass); this.sf.setValue('/curbWeight', res.unladenMass.slice(0, -2) % 1000);
this.sf.setValue('/carLoad', res.approvedLoad.slice(0, -2) % 1000);
} }
if(this.carNo === '') { if(this.carNo === '') {
this.carNo = res.number this.carNo = res.number