返佣
This commit is contained in:
@ -4,13 +4,51 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-02-24 20:09:49
|
* @Date : 2022-02-24 20:09:49
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-11 15:25:00
|
* @LastEditTime : 2022-03-21 13:53:31
|
||||||
* @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.
|
||||||
-->
|
-->
|
||||||
<page-header-wrapper [title]="''"> </page-header-wrapper>
|
<page-header-wrapper [title]="'新增'"> </page-header-wrapper>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
|
<div nz-row>
|
||||||
|
|
||||||
<!-- 数据列表 -->
|
<!-- 数据列表 -->
|
||||||
12121212
|
<sv-container col="1">
|
||||||
<app-rebate-table></app-rebate-table>
|
<sv label="配置名称"> <input style="max-width: 400px;" nz-input placeholder="请输入" [(ngModel)]="setValue" /></sv>
|
||||||
|
<sv-title>固定结算费率配置</sv-title>
|
||||||
|
<sv label="固定结算费率"> <nz-input-number [(ngModel)]="toFixedValue" [nzPrecision]="precision" nzPlaceHolder="请输入"></nz-input-number> %</sv>
|
||||||
|
<sv-title>业务量和管理费比例配置</sv-title>
|
||||||
|
<sv label="选择配置类型">
|
||||||
|
<nz-radio-group [(ngModel)]="radioValue">
|
||||||
|
<label nz-radio nzValue="A">按全部等级配置</label>
|
||||||
|
<label nz-radio nzValue="B">按不同等级配置</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</sv>
|
||||||
|
<sv col="1">
|
||||||
|
<app-rebate-table></app-rebate-table>
|
||||||
|
</sv>
|
||||||
|
<sv-title>关联合伙人配置</sv-title>
|
||||||
|
<sv label="合伙人选择">
|
||||||
|
<nz-select ngModel="lucy" style="max-width: 400px; min-width: 200px;">
|
||||||
|
<nz-option nzValue="jack" nzLabel="Jack"></nz-option>
|
||||||
|
<nz-option nzValue="lucy" nzLabel="Lucy"></nz-option>
|
||||||
|
</nz-select>
|
||||||
|
<span >添加</span>
|
||||||
|
</sv>
|
||||||
|
<sv label="优先级" col="1">
|
||||||
|
<nz-select ngModel="lucy" style="max-width: 400px; min-width: 200px;">
|
||||||
|
<nz-option nzValue="jack" nzLabel="Jack"></nz-option>
|
||||||
|
<nz-option nzValue="lucy" nzLabel="Lucy"></nz-option>
|
||||||
|
</nz-select>
|
||||||
|
</sv>
|
||||||
|
<sv label="规则说明" col="1">
|
||||||
|
<sf #sf mode="edit" [schema]="schema1" [ui]="{ '*': { spanLabelFixed: 10, grid: { span: 16 }} }"
|
||||||
|
button="none"> </sf>
|
||||||
|
</sv>
|
||||||
|
<sv label="规则说明" col="1">
|
||||||
|
<textarea style="max-width: 400px; min-width: 200px;" rows="4" nz-input [(ngModel)]="inputValue"></textarea>
|
||||||
|
</sv>
|
||||||
|
</sv-container>
|
||||||
|
|
||||||
|
</div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|||||||
@ -0,0 +1,10 @@
|
|||||||
|
:host {
|
||||||
|
::ng-deep {
|
||||||
|
.sv__label {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.sv__title {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-03-21 09:26:45
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-03-21 13:44:34
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.ts
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
*/
|
||||||
import { ModalHelper } from '@delon/theme';
|
import { ModalHelper } from '@delon/theme';
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
@ -8,10 +18,17 @@ import { NzModalService } from 'ng-zorro-antd/modal';
|
|||||||
import { RebateManagementService } from '../../../services/rebate-management.service';
|
import { RebateManagementService } from '../../../services/rebate-management.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-parter-channel-rebate-management-add',
|
selector: 'app-parter-channel-rebate-management-add',
|
||||||
|
styleUrls: ['./add.component.less'],
|
||||||
templateUrl: './add.component.html'
|
templateUrl: './add.component.html'
|
||||||
})
|
})
|
||||||
export class ParterRebateManageMentAddComponent implements OnInit {
|
export class ParterRebateManageMentAddComponent implements OnInit {
|
||||||
|
setValue: string = '';
|
||||||
|
toFixedValue: Number = 2;
|
||||||
|
radioValue = 'A';
|
||||||
|
precision = 2;
|
||||||
|
inputValue= '';
|
||||||
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
|
schema1!: SFSchema;
|
||||||
constructor(
|
constructor(
|
||||||
public router: Router,
|
public router: Router,
|
||||||
public ar: ActivatedRoute,
|
public ar: ActivatedRoute,
|
||||||
@ -19,7 +36,25 @@ export class ParterRebateManageMentAddComponent implements OnInit {
|
|||||||
private modal: NzModalService,
|
private modal: NzModalService,
|
||||||
public shipperservice: ShipperBaseService,
|
public shipperservice: ShipperBaseService,
|
||||||
) {}
|
) {}
|
||||||
|
initSF(data?: any) {
|
||||||
|
this.schema1 = {
|
||||||
|
properties: {
|
||||||
|
content: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
ui: {
|
||||||
|
widget: 'tinymce',
|
||||||
|
loadingTip: 'loading...',
|
||||||
|
config: {
|
||||||
|
height: 650
|
||||||
|
}
|
||||||
|
},
|
||||||
|
default: data?.agreementContent || ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.initSF()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user