解决冲突

This commit is contained in:
wangshiming
2022-02-24 14:37:59 +08:00
parent 5fc5dd07a7
commit d1b933fc2d
3 changed files with 74 additions and 159 deletions

View File

@ -486,89 +486,6 @@ 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() {
// this.schema5 = {
// properties: {
// goodsValue: {
// type: 'string',
// title: '货物价值',
// ui: {
// widget: 'custom'
// }
// },
// insurancePremium: {
// type: 'string',
// title: '',
// ui: {
// widget: 'custom'
// }
// },
// insuranceRate: {
// type: 'string',
// title: '保险费率',
// ui: {
// hidden: true
// }
// }
// }
// };
// this.ui5 = {
// '*': {
// spanLabelFixed: 115,
// grid: { span: 12 }
// }
// };
// }
initSF6() {
this.schema6 = {
properties: {
@ -1210,14 +1127,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
this.sf4data.id = res?.goodsInfoVOList[0]?.id;
}
this.totalFees = res?.shippingInformationVO?.totalFee || '0';
// this.sf5data = {
// goodsValue: res?.goodsValue,
// insurancePremium: res?.insurancePremium || '',
// insuranceRate: res?.insuranceRate || ''
// };
// this.sf55data = {
// insuranceType: res?.insuranceType || ''
// };
this.sf5data = {
insuranceType: res?.insuranceType || '',
goodsValue: res?.goodsValue || '',