解决冲突

This commit is contained in:
wangshiming
2022-04-27 15:34:00 +08:00
parent 527d8305c1
commit 741b5e4f8e
10 changed files with 135 additions and 124 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-12 10:52:50 * @Date : 2022-01-12 10:52:50
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-22 16:51:29 * @LastEditTime : 2022-04-27 15:32:22
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk\\bulk.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk\\bulk.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->

View File

@ -608,11 +608,11 @@ export class OrderManagementBulkComponent extends BasicTableComponent implements
title: '变更前', title: '变更前',
width: '100px', width: '100px',
className: 'text-center', className: 'text-center',
index: 'amountAfterChange', index: 'amountBeforeChange',
render: 'amountAfterChange' render: 'amountBeforeChange'
}, },
{ title: '变更值', index: 'amountchangeValue', width: '120px', className: 'text-center', render: 'amountchangeValue' }, { title: '变更值', index: 'amountchangeValue', width: '120px', className: 'text-center', render: 'amountchangeValue' },
{ title: '变更后', index: 'amountBeforeChange', render: 'amountBeforeChange', width: '120px', className: 'text-center' } { title: '变更后', index: 'amountAfterChange', render: 'amountAfterChange', width: '120px', className: 'text-center' }
]; ];
} }
/** /**

View File

@ -422,8 +422,8 @@ export class OrderManagementComplianceAuditComponent extends BasicTableComponent
title: '变更前', title: '变更前',
width: '100px', width: '100px',
className: 'text-center', className: 'text-center',
index: 'amountAfterChange', index: 'amountBeforeChange',
render: 'amountAfterChange' render: 'amountBeforeChange'
}, },
{ {
title: '变更值', title: '变更值',
@ -434,8 +434,8 @@ export class OrderManagementComplianceAuditComponent extends BasicTableComponent
}, },
{ {
title: '变更后', title: '变更后',
index: 'amountBeforeChange', index: 'amountAfterChange',
render: 'amountBeforeChange', render: 'amountAfterChange',
width: '120px', width: '120px',
className: 'text-center' className: 'text-center'
} }

View File

@ -522,11 +522,11 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
title: '变更前', title: '变更前',
width: '100px', width: '100px',
className: 'text-center', className: 'text-center',
index: 'amountAfterChange', index: 'amountBeforeChange',
render: 'amountAfterChange' render: 'amountBeforeChange'
}, },
{ title: '变更值', index: 'amountchangeValue', render: 'amountchangeValue', width: '120px', className: 'text-center' }, { title: '变更值', index: 'amountchangeValue', render: 'amountchangeValue', width: '120px', className: 'text-center' },
{ title: '变更后', index: 'amountBeforeChange', render: 'amountBeforeChange', width: '120px', className: 'text-center' } { title: '变更后', index: 'amountAfterChange', render: 'amountAfterChange', width: '120px', className: 'text-center' }
]; ];
} }
// 获取城市列表 // 获取城市列表

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-02-24 20:09:49 * @Date : 2022-02-24 20:09:49
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-27 13:38:57 * @LastEditTime : 2022-04-27 15:03:23
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-03-21 09:26:45 * @Date : 2022-03-21 09:26:45
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-27 13:44:19 * @LastEditTime : 2022-04-27 14:14:32
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -143,33 +143,33 @@ export class ParterRebateManageMentAddComponent implements OnInit {
}); });
} }
save() { save() {
if(!this.configName) { // if(!this.configName) {
this.service.msgSrv.warning('请输入配置名称!'); // this.service.msgSrv.warning('请输入配置名称!');
return // return
} // }
if(!this.accountingRate) { // if(!this.accountingRate) {
this.service.msgSrv.warning('请输入固定结算费率!'); // this.service.msgSrv.warning('请输入固定结算费率!');
return // return
} // }
if(!this.partnerType) { // if(!this.partnerType) {
this.service.msgSrv.warning('请选择合伙人范围!'); // this.service.msgSrv.warning('请选择合伙人范围!');
return // return
} // }
if(this.partnerType == '3' && this.partnerPeopleList?.length == 0) { // if(this.partnerType == '3' && this.partnerPeopleList?.length == 0) {
this.service.msgSrv.warning('请选择合伙人!'); // this.service.msgSrv.warning('请选择合伙人!');
return // return
} // }
let real = false; // let real = false;
this.table.data.forEach((element: any) => { // this.table.data.forEach((element: any) => {
if (element.startAmount > element.endAmount) { // if (element.startAmount > element.endAmount) {
real = true; // real = true;
return; // return;
} // }
}); // });
if (real) { // if (real) {
this.service.msgSrv.warning('初始业务量不能超过到达业务量!'); // this.service.msgSrv.warning('初始业务量不能超过到达业务量!');
return; // return;
} // }
const params = { const params = {
accountingRate: this.accountingRate, accountingRate: this.accountingRate,
@ -182,12 +182,14 @@ export class ParterRebateManageMentAddComponent implements OnInit {
remark: this.remark, remark: this.remark,
partnerType: this.partnerType partnerType: this.partnerType
}; };
this.service.request(this.service.$api_save_rebateConfig, params).subscribe((res: any) => { console.log(params);
if (res) {
this.service.msgSrv.success('新增成功!'); // this.service.request(this.service.$api_save_rebateConfig, params).subscribe((res: any) => {
this.router.navigate(['/partner/rebate/setting']); // if (res) {
} // this.service.msgSrv.success('新增成功!');
}); // this.router.navigate(['/partner/rebate/setting']);
// }
// });
} }
initData(id: string) { initData(id: string) {
this.service.request(this.service.$api_get_getPartnerRebateConfigInfo, { id: id }).subscribe((res: any) => { this.service.request(this.service.$api_get_getPartnerRebateConfigInfo, { id: id }).subscribe((res: any) => {

View File

@ -58,7 +58,7 @@
<div *ngIf="item.partnerType == 3">自定义合伙人</div> <div *ngIf="item.partnerType == 3">自定义合伙人</div>
</ng-template> </ng-template>
<ng-template st-row='stateLocked' let-item let-index='index'> <ng-template st-row='stateLocked' let-item let-index='index'>
<div >{{item?.stateLocked ? '启用' : '禁用'}}</div> <div >{{item?.stateLocked ? '生效中' : '失效'}}</div>
</ng-template> </ng-template>
</st> </st>
</nz-card> </nz-card>

View File

@ -77,12 +77,12 @@ export class ParterRebateManageMentSettingComponent implements OnInit {
initST() { initST() {
this.columns = [ this.columns = [
{ {
title: '配置名称', title: '模板名称',
index: 'configName', index: 'configName',
width: '200px', width: '200px',
}, },
{ {
title: '配置类型', title: '等级类型',
render: 'configType', render: 'configType',
width: '200px', width: '200px',
@ -93,7 +93,7 @@ export class ParterRebateManageMentSettingComponent implements OnInit {
width: '250px', width: '250px',
}, },
{ {
title: '关联合伙人范围', title: '合伙人范围',
render: 'partnerType', render: 'partnerType',
width: '200px', width: '200px',
}, },
@ -103,7 +103,7 @@ export class ParterRebateManageMentSettingComponent implements OnInit {
width: '200px', width: '200px',
}, },
{ {
title: '启用时间', title: '生效时间',
index: 'enableTime', index: 'enableTime',
width: '200px', width: '200px',
}, },

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-04-21 13:49:22 * @Date : 2022-04-21 13:49:22
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-27 11:29:10 * @LastEditTime : 2022-04-27 15:17:08
* @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\basic-setting\\basic-setting.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\basic-setting\\basic-setting.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -17,6 +17,6 @@
[labelWidth]="labelWidth" [labelWidth]="labelWidth"
> >
<custom-element> <custom-element>
<app-parterl-config></app-parterl-config> <app-parterl-config [configList]="configList"></app-parterl-config>
</custom-element> </custom-element>
</app-dynamic-setting-h5> </app-dynamic-setting-h5>

View File

@ -1,4 +1,4 @@
import { Component, OnInit, ViewChild } from '@angular/core'; import { Component, Input, OnInit, ViewChild, OnChanges, SimpleChanges } from '@angular/core';
import { SFComponent, SFSchema, SFUploadWidgetSchema } from '@delon/form'; import { SFComponent, SFSchema, SFUploadWidgetSchema } from '@delon/form';
import { NzUploadFile } from 'ng-zorro-antd/upload'; import { NzUploadFile } from 'ng-zorro-antd/upload';
import { Observable, Observer, of } from 'rxjs'; import { Observable, Observer, of } from 'rxjs';
@ -23,9 +23,13 @@ const IMAGECONFIG = {
templateUrl: './config.component.html', templateUrl: './config.component.html',
styleUrls: ['./config.component.less'] styleUrls: ['./config.component.less']
}) })
export class PartnerSystemConfigComponent implements OnInit { export class PartnerSystemConfigComponent implements OnInit, OnChanges {
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
@ViewChild('sf2', { static: false }) sf2!: SFComponent; @ViewChild('sf2', { static: false }) sf2!: SFComponent;
@Input()
configList: any[] = [];
formDate: any = { formDate: any = {
isAudit: false, isAudit: false,
isEveryDay: false, isEveryDay: false,
@ -35,9 +39,9 @@ export class PartnerSystemConfigComponent implements OnInit {
enterpriseValue!: number; enterpriseValue!: number;
auditValue!: number; auditValue!: number;
auditTime!: any; auditTime!: any;
auditTimeStatus: boolean = false auditTimeStatus: boolean = false;
everyDay: boolean = false everyDay: boolean = false;
MonthDay: boolean = false MonthDay: boolean = false;
time: Date | null = null; time: Date | null = null;
defaultOpenValue = new Date(0, 0, 0, 0, 0, 0); defaultOpenValue = new Date(0, 0, 0, 0, 0, 0);
tabs = [ tabs = [
@ -49,22 +53,27 @@ export class PartnerSystemConfigComponent implements OnInit {
} }
]; ];
selectedTab = 0; selectedTab = 0;
TimeStatus: boolean = true TimeStatus: boolean = true;
everyDayData: Array<any> = []; everyDayData: Array<any> = [];
MonthDayData: any = [ MonthDayData: any = [
{month: [ {
{ label: '周一', value: '周一', }, month: [
{ label: '周一', value: '周一' },
{ label: '周二', value: '周二' }, { label: '周二', value: '周二' },
{ label: '周三', value: '周三' }, { label: '周三', value: '周三' },
{ label: '周四', value: '周四' }, { label: '周四', value: '周四' },
{ label: '周五', value: '周五' }, { label: '周五', value: '周五' },
{ label: '周六', value: '周六' }, { label: '周六', value: '周六' },
{ label: '周日', value: '周日' } { label: '周日', value: '周日' }
], Times:[ { ],
Times: [
{
startTime: [], startTime: [],
endTime: [], endTime: []
}]} }
] ]
}
];
checkOptionsOne = [ checkOptionsOne = [
{ label: '周一', value: '周一', checked: true }, { label: '周一', value: '周一', checked: true },
@ -96,55 +105,57 @@ export class PartnerSystemConfigComponent implements OnInit {
// }; // };
constructor(private service: SystemService) {} constructor(private service: SystemService) {}
ngOnChanges(changes: SimpleChanges): void {
if (changes.configList) {
console.log(changes.configList.currentValue);
}
}
ngOnInit() { ngOnInit() {
this.initSF(); this.initSF();
this.everyDayData = [ this.everyDayData = [
{
startTime: '',
endTime: '',
}
]
}
addEvery() {
this.everyDayData.push(
{
startTime: [],
endTime: [],
}
)
}
delEvery(index: number) {
this.everyDayData.splice(index, 1)
}
addMonthEvery(value: any) {
this.MonthDayData[value].Times.push(
{ {
startTime: '', startTime: '',
endTime: '' endTime: ''
} }
) ];
}
addEvery() {
this.everyDayData.push({
startTime: [],
endTime: []
});
}
delEvery(index: number) {
this.everyDayData.splice(index, 1);
}
addMonthEvery(value: any) {
this.MonthDayData[value].Times.push({
startTime: '',
endTime: ''
});
} }
addMonth() { addMonth() {
this.MonthDayData.push( this.MonthDayData.push({
{month: [ month: [
{ label: '周一', value: '周一', }, { label: '周一', value: '周一' },
{ label: '周二', value: '周二' }, { label: '周二', value: '周二' },
{ label: '周三', value: '周三' }, { label: '周三', value: '周三' },
{ label: '周四', value: '周四' }, { label: '周四', value: '周四' },
{ label: '周五', value: '周五' }, { label: '周五', value: '周五' },
{ label: '周六', value: '周六' }, { label: '周六', value: '周六' },
{ label: '周日', value: '周日' } { label: '周日', value: '周日' }
], Times:[{ ],
Times: [
{
startTime: '', startTime: '',
endTime: '' endTime: ''
}]} }
) ]
});
} }
delMonth(value: number, index: number) { delMonth(value: number, index: number) {
this.MonthDayData[value].Times.splice(index, 1) this.MonthDayData[value].Times.splice(index, 1);
} }
changeType(type: number): void { changeType(type: number): void {
this.selectedTab = type; this.selectedTab = type;
@ -156,21 +167,19 @@ export class PartnerSystemConfigComponent implements OnInit {
everyDayChange(type: any): void { everyDayChange(type: any): void {
console.log(type); console.log(type);
if (type) { if (type) {
this.MonthDay = false this.MonthDay = false;
this.TimeStatus = true this.TimeStatus = true;
} }
} }
MonthDayChange(type: any): void { MonthDayChange(type: any): void {
console.log(type); console.log(type);
if (type) { if (type) {
this.everyDay = false this.everyDay = false;
this.TimeStatus = false this.TimeStatus = false;
} }
} }
initSF() { initSF() {
this.schema = { this.schema = {
properties: { properties: {
roadTransportPhoto: { title: '', type: 'string', ui: { hidden: true } }, roadTransportPhoto: { title: '', type: 'string', ui: { hidden: true } },
@ -184,7 +193,7 @@ export class PartnerSystemConfigComponent implements OnInit {
if (args.type === 'success') { if (args.type === 'success') {
this.sf.setValue('/roadTransportPhoto', args.fileList[0].response.data.fullFilePath); this.sf.setValue('/roadTransportPhoto', args.fileList[0].response.data.fullFilePath);
} }
}, }
} as SFUploadWidgetSchema } as SFUploadWidgetSchema
}, },
share: { title: '', type: 'string', ui: { hidden: true } }, share: { title: '', type: 'string', ui: { hidden: true } },
@ -198,7 +207,7 @@ export class PartnerSystemConfigComponent implements OnInit {
if (args.type === 'success') { if (args.type === 'success') {
this.sf.setValue('/share', args.fileList[0].response.data.fullFilePath); this.sf.setValue('/share', args.fileList[0].response.data.fullFilePath);
} }
}, }
} as SFUploadWidgetSchema } as SFUploadWidgetSchema
}, },
take: { title: '', type: 'string', ui: { hidden: true } }, take: { title: '', type: 'string', ui: { hidden: true } },
@ -212,7 +221,7 @@ export class PartnerSystemConfigComponent implements OnInit {
if (args.type === 'success') { if (args.type === 'success') {
this.sf.setValue('/take', args.fileList[0].response.data.fullFilePath); this.sf.setValue('/take', args.fileList[0].response.data.fullFilePath);
} }
}, }
} as SFUploadWidgetSchema } as SFUploadWidgetSchema
}, },
complianceRemark: { complianceRemark: {
@ -241,7 +250,7 @@ export class PartnerSystemConfigComponent implements OnInit {
if (args.type === 'success') { if (args.type === 'success') {
this.sf2.setValue('/roadTransportPhoto', args.fileList[0].response.data.fullFilePath); this.sf2.setValue('/roadTransportPhoto', args.fileList[0].response.data.fullFilePath);
} }
}, }
} as SFUploadWidgetSchema } as SFUploadWidgetSchema
}, },
share: { title: '', type: 'string', ui: { hidden: true } }, share: { title: '', type: 'string', ui: { hidden: true } },
@ -255,7 +264,7 @@ export class PartnerSystemConfigComponent implements OnInit {
if (args.type === 'success') { if (args.type === 'success') {
this.sf2.setValue('/share', args.fileList[0].response.data.fullFilePath); this.sf2.setValue('/share', args.fileList[0].response.data.fullFilePath);
} }
}, }
} as SFUploadWidgetSchema } as SFUploadWidgetSchema
}, },
take: { title: '', type: 'string', ui: { hidden: true } }, take: { title: '', type: 'string', ui: { hidden: true } },
@ -269,7 +278,7 @@ export class PartnerSystemConfigComponent implements OnInit {
if (args.type === 'success') { if (args.type === 'success') {
this.sf2.setValue('/take', args.fileList[0].response.data.fullFilePath); this.sf2.setValue('/take', args.fileList[0].response.data.fullFilePath);
} }
}, }
} as SFUploadWidgetSchema } as SFUploadWidgetSchema
}, },
complianceRemark: { complianceRemark: {
@ -308,9 +317,9 @@ export class PartnerSystemConfigComponent implements OnInit {
changeAuto(value: any) { changeAuto(value: any) {
console.log(value); console.log(value);
if (value == '2') { if (value == '2') {
this.auditTimeStatus = true this.auditTimeStatus = true;
} else { } else {
this.auditTimeStatus = false this.auditTimeStatus = false;
} }
} }
private getImageModel(args: any, key: any) { private getImageModel(args: any, key: any) {