fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-21 09:26:45
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-29 16:23:18
|
||||
* @LastEditTime : 2022-05-05 14:04:53
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -155,21 +155,35 @@ export class ParterRebateManageMentAddComponent implements OnInit {
|
||||
this.service.msgSrv.warning('请选择合伙人范围!');
|
||||
return
|
||||
}
|
||||
if(!this.priority) {
|
||||
this.service.msgSrv.warning('请选择优先级!');
|
||||
return
|
||||
}
|
||||
if(!this.sf?.value.ruleDescription) {
|
||||
this.service.msgSrv.warning('请输入规则说明!');
|
||||
return
|
||||
}
|
||||
if(!this.remark) {
|
||||
this.service.msgSrv.warning('请输入备注!');
|
||||
return
|
||||
}
|
||||
if(this.partnerType == '3' && this.partnerPeopleList?.length == 0) {
|
||||
this.service.msgSrv.warning('请选择合伙人!');
|
||||
return
|
||||
}
|
||||
let real = false;
|
||||
if(this.configType == '2') {
|
||||
this.table.data.forEach((element: any) => {
|
||||
if (element.startAmount > element.endAmount) {
|
||||
real = true;
|
||||
return;
|
||||
}
|
||||
});
|
||||
// if (real) {
|
||||
// this.service.msgSrv.warning('初始业务量不能超过到达业务量!');
|
||||
// return;
|
||||
// }
|
||||
}
|
||||
if (real) {
|
||||
this.service.msgSrv.warning('初始业务量不能超过到达业务量!');
|
||||
return;
|
||||
}
|
||||
|
||||
const params = {
|
||||
accountingRate: this.accountingRate,
|
||||
|
||||
@ -43,8 +43,6 @@ export class RebateTableComponent implements OnInit {
|
||||
this.data = [
|
||||
{
|
||||
gradeConfigId: '0',
|
||||
startAmount: 0,
|
||||
endAmount: 0,
|
||||
managementFeeRatio: 0,
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user