Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -1,8 +1,19 @@
|
|||||||
import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core';
|
import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { SFAutoCompleteWidgetSchema, SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form';
|
import {
|
||||||
|
SFAutoCompleteWidgetSchema,
|
||||||
|
SFComponent,
|
||||||
|
SFRadioWidgetSchema,
|
||||||
|
SFSchema,
|
||||||
|
SFSchemaEnum,
|
||||||
|
SFSchemaEnumType,
|
||||||
|
SFSelectWidgetSchema,
|
||||||
|
SFTextareaWidgetSchema,
|
||||||
|
SFUISchema
|
||||||
|
} from '@delon/form';
|
||||||
import { _HttpClient } from '@delon/theme';
|
import { _HttpClient } from '@delon/theme';
|
||||||
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
||||||
|
import { of } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { AmapPoiPickerComponent } from 'src/app/shared/components/amap';
|
import { AmapPoiPickerComponent } from 'src/app/shared/components/amap';
|
||||||
import { ChannelSalesService } from '../../services/channel-sales.service';
|
import { ChannelSalesService } from '../../services/channel-sales.service';
|
||||||
@ -18,8 +29,8 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
i: any;
|
i: any;
|
||||||
sts: any;
|
sts: any;
|
||||||
type: any;
|
type: any;
|
||||||
record:any;
|
record: any;
|
||||||
currentOAItem:any;
|
currentOAItem: any;
|
||||||
constructor(
|
constructor(
|
||||||
public http: _HttpClient,
|
public http: _HttpClient,
|
||||||
private cdr: ChangeDetectorRef,
|
private cdr: ChangeDetectorRef,
|
||||||
@ -30,29 +41,32 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if(!this.sts) {
|
this.initSF();
|
||||||
this.service.request(this.service.$api_getChannelSalesInfo, {id:this.i?.id}).subscribe(res => {
|
if (!this.sts) {
|
||||||
if(res){
|
this.service.request(this.service.$api_getChannelSalesInfo, { id: this.i?.id }).subscribe(res => {
|
||||||
let value1 = Object.assign({}, res)
|
const List: any = [];
|
||||||
delete value1.employeeVO;
|
if (res) {
|
||||||
this.record = value1;
|
let value1 = Object.assign({}, res);
|
||||||
console.log(value1);
|
delete value1.employeeVO;
|
||||||
console.log(this.record);
|
let value = res.employeeVO;
|
||||||
|
List.push({ label: value.empName + '/' + value.empNo, value: value.empNo });
|
||||||
|
setTimeout(() => {
|
||||||
|
if (this.sf) {
|
||||||
|
console.log(this.sf.getProperty('/employeeVO')!.schema);
|
||||||
|
|
||||||
let value = res.employeeVO;
|
this.sf.getProperty('/employeeVO')!.schema.enum = List;
|
||||||
let yeeVO = {label: value.empName+"/"+value.empNo, value: value.empNo}
|
this.sf.getProperty('/employeeVO')!.widget.reset(List);
|
||||||
console.log(yeeVO);
|
}
|
||||||
|
if (value.empNo) {
|
||||||
setTimeout(()=>{
|
this.sf.setValue('/employeeVO', value.empNo);
|
||||||
this.sf.getProperty('/employeeVO')!.schema.enum = [yeeVO];
|
this.currentOAItem = value;
|
||||||
this.sf.getProperty('/employeeVO')!.widget.reset([yeeVO]);
|
this.sf.setValue('/phoneNumber', res.telephone);
|
||||||
})
|
}
|
||||||
|
})
|
||||||
this.initSF();
|
this.record = value1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
initSF() {
|
initSF() {
|
||||||
this.schema = {
|
this.schema = {
|
||||||
@ -67,7 +81,7 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
maxLength: 12,
|
maxLength: 12,
|
||||||
ui: {
|
ui: {
|
||||||
placeholder:'请输入'
|
placeholder: '请输入'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
phoneNumber: {
|
phoneNumber: {
|
||||||
@ -75,26 +89,59 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
maxLength: 11,
|
maxLength: 11,
|
||||||
ui: {
|
ui: {
|
||||||
placeholder:'请输入'
|
placeholder: '请输入'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// employeeVO: {
|
||||||
|
// title: '关联OA员工',
|
||||||
|
// type: 'string',
|
||||||
|
// ui: {
|
||||||
|
// widget: 'select',
|
||||||
|
// placeholder:'请选择',
|
||||||
|
// asyncData: (input:string) => this.service.request(this.service.$api_fuzzyQuery,{name:input}).pipe(
|
||||||
|
// map((res: any) => {
|
||||||
|
// return res.map((item:any)=>{
|
||||||
|
// return {label: item.empName+"/"+item.empNo, value: item.empNo, obj: item}
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// ),
|
||||||
|
// change:(item:any, org:any)=>{
|
||||||
|
// this.currentOAItem = org.obj;
|
||||||
|
// }
|
||||||
|
// } as SFAutoCompleteWidgetSchema,
|
||||||
|
// },
|
||||||
employeeVO: {
|
employeeVO: {
|
||||||
title: '关联OA员工',
|
title: '关联OA员工',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
maxLength: 30,
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'autocomplete',
|
widget: 'select',
|
||||||
placeholder:'请选择',
|
// serverSearch: true,
|
||||||
asyncData: (input:string) => this.service.request(this.service.$api_fuzzyQuery,{name:input}).pipe(
|
allowClear: true,
|
||||||
map((res: any) => {
|
searchDebounceTime: 300,
|
||||||
return res.map((item:any)=>{
|
searchLoadingText: '搜索中...',
|
||||||
return {label: item.empName+"/"+item.empNo, value: item.empNo, obj: item}
|
onSearch: (q: any) => {
|
||||||
})
|
let str = q?.replace(/^\s+|\s+$/g, '');
|
||||||
})
|
if (str) {
|
||||||
),
|
return this.service
|
||||||
change:(item:any, org:any)=>{
|
.request(this.service.$api_fuzzyQuery, { name: str })
|
||||||
|
.pipe(map(res => (res as any[]).map(i => ({ label: i.empName + '/' + i.empNo, value: i.empNo, obj: i } as SFSchemaEnum))))
|
||||||
|
.toPromise();
|
||||||
|
} else {
|
||||||
|
return of([]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// asyncData: (input:string) => this.service.request(this.service.$api_fuzzyQuery,{name:input}).pipe(
|
||||||
|
// map((res: any) => {
|
||||||
|
// return res.map((item:any)=>{
|
||||||
|
// return {label: item.empName+"/"+item.empNo, value: item.empNo, obj: item}
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// ),
|
||||||
|
change: (item: any, org: any) => {
|
||||||
this.currentOAItem = org.obj;
|
this.currentOAItem = org.obj;
|
||||||
}
|
}
|
||||||
} as SFAutoCompleteWidgetSchema,
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
isAuthorization: {
|
isAuthorization: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -104,9 +151,9 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
{ label: '是', value: '1' }
|
{ label: '是', value: '1' }
|
||||||
],
|
],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'radio',
|
widget: 'radio'
|
||||||
} as SFRadioWidgetSchema,
|
} as SFRadioWidgetSchema,
|
||||||
default: '0',
|
default: '0'
|
||||||
},
|
},
|
||||||
roleIds: {
|
roleIds: {
|
||||||
title: '',
|
title: '',
|
||||||
@ -128,7 +175,7 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
visibleIf: { isAuthorization: (value: string) => value === '1' }
|
visibleIf: { isAuthorization: (value: string) => value === '1' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
remark: {
|
remark: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -137,9 +184,9 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'textarea',
|
widget: 'textarea',
|
||||||
autosize: { minRows: 3, maxRows: 6 },
|
autosize: { minRows: 3, maxRows: 6 },
|
||||||
placeholder:'请输入50字符'
|
placeholder: '请输入50字符'
|
||||||
} as SFTextareaWidgetSchema,
|
} as SFTextareaWidgetSchema
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
required: ['name', 'phoneNumber', 'employeeVO', 'roleIds', 'remark']
|
required: ['name', 'phoneNumber', 'employeeVO', 'roleIds', 'remark']
|
||||||
};
|
};
|
||||||
@ -148,10 +195,8 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
spanLabelFixed: 150,
|
spanLabelFixed: 150,
|
||||||
grid: { span: 24 }
|
grid: { span: 24 }
|
||||||
},
|
},
|
||||||
$isAuthorization:{ grid: { span: 12 }},
|
$isAuthorization: { grid: { span: 12 } },
|
||||||
$roleIds:{ spanLabelFixed: 10, grid: { span: 12 }},
|
$roleIds: { spanLabelFixed: 10, grid: { span: 12 } }
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,12 +205,16 @@ export class ParterChannelSalesEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
save() {
|
save() {
|
||||||
this.sf.validator({ emitError: true });
|
this.sf.validator({ emitError: true });
|
||||||
if(!this.sf.valid) return;
|
|
||||||
this.service.request(this.service.$api_save, { ...this.sf.value, employeeVO: this.currentOAItem}).subscribe(res => {
|
if (!this.sf.valid) return;
|
||||||
|
let params: any= {
|
||||||
|
...this.sf.value,
|
||||||
|
}
|
||||||
|
delete params.telephone
|
||||||
|
this.service.request(this.service.$api_save, { ...params, employeeVO: this.currentOAItem }).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
|
this.service.msgSrv.success(res.msg);
|
||||||
this.modalRef.destroy(true);
|
this.modalRef.destroy(true);
|
||||||
} else {
|
|
||||||
this.service.msgSrv.error(res.msg);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -617,15 +617,8 @@ export class AddEtpPartnerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setInfo(info: any) {
|
private setInfo(info: any) {
|
||||||
if (info.name) {
|
|
||||||
this.sf.setValue('/adminUserInfo/name', info.name);
|
this.sf.setValue('/adminUserInfo/name', info.name);
|
||||||
}
|
|
||||||
if (info.certificatePhotoFront) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoFront', info.certificatePhotoFront);
|
this.sf.setValue('/adminUserInfo/certificatePhotoFront', info.certificatePhotoFront);
|
||||||
}
|
|
||||||
if (info.certificatePhotoFrontWatermark) {
|
|
||||||
console.log(this.sf.getProperty('/adminUserInfo/certificatePhotoFrontWatermark'));
|
|
||||||
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoFrontWatermark', [
|
this.sf.setValue('/adminUserInfo/certificatePhotoFrontWatermark', [
|
||||||
{
|
{
|
||||||
uid: -1,
|
uid: -1,
|
||||||
@ -635,11 +628,7 @@ export class AddEtpPartnerComponent {
|
|||||||
response: info.certificatePhotoFrontWatermark
|
response: info.certificatePhotoFrontWatermark
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
if (info.certificatePhotoBack) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoBack', info.certificatePhotoBack);
|
this.sf.setValue('/adminUserInfo/certificatePhotoBack', info.certificatePhotoBack);
|
||||||
}
|
|
||||||
if (info.certificatePhotoBackWatermark) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoBackWatermark', [
|
this.sf.setValue('/adminUserInfo/certificatePhotoBackWatermark', [
|
||||||
{
|
{
|
||||||
uid: -1,
|
uid: -1,
|
||||||
@ -649,18 +638,9 @@ export class AddEtpPartnerComponent {
|
|||||||
response: info.certificatePhotoBackWatermark
|
response: info.certificatePhotoBackWatermark
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
if (info.certificateNumber) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificateNumber', info.certificateNumber);
|
this.sf.setValue('/adminUserInfo/certificateNumber', info.certificateNumber);
|
||||||
}
|
|
||||||
if (info.validStartTime) {
|
|
||||||
this.sf.setValue('/adminUserInfo/validStartTime', info.validStartTime);
|
this.sf.setValue('/adminUserInfo/validStartTime', info.validStartTime);
|
||||||
}
|
this.sf.setValue('/adminUserInfo/validEndTime', info?.validEndTime ? info?.validEndTime: null);
|
||||||
if (info.validEndTime) {
|
this.sf.setValue('/adminUserInfo/_isLoingDate', info?.validEndTime ? false: true);
|
||||||
this.sf.setValue('/adminUserInfo/validEndTime', info.validEndTime);
|
|
||||||
this.sf.setValue('/adminUserInfo/_isLoingDate', false);
|
|
||||||
} else {
|
|
||||||
this.sf.setValue('/adminUserInfo/_isLoingDate', true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -339,50 +339,30 @@ export class AddPersonalPartnerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setInfo(info: any) {
|
private setInfo(info: any) {
|
||||||
if (info.name) {
|
this.sf.setValue('/adminUserInfo/name', info?.name);
|
||||||
this.sf.setValue('/adminUserInfo/name', info.name);
|
this.sf.setValue('/adminUserInfo/certificatePhotoFront', info?.certificatePhotoFront);
|
||||||
}
|
|
||||||
if (info.certificatePhotoFront) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoFront', info.certificatePhotoFront);
|
|
||||||
}
|
|
||||||
if (info.certificatePhotoFrontWatermark) {
|
|
||||||
console.log(this.sf.getProperty('/adminUserInfo/certificatePhotoFrontWatermark'));
|
|
||||||
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoFrontWatermark', [
|
this.sf.setValue('/adminUserInfo/certificatePhotoFrontWatermark', [
|
||||||
{
|
{
|
||||||
uid: -1,
|
uid: -1,
|
||||||
name: '文件',
|
name: '文件',
|
||||||
status: 'done',
|
status: 'done',
|
||||||
url: info.certificatePhotoFrontWatermark,
|
url: info?.certificatePhotoFrontWatermark,
|
||||||
response: info.certificatePhotoFrontWatermark
|
response: info?.certificatePhotoFrontWatermark
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
this.sf.setValue('/adminUserInfo/certificatePhotoBack', info?.certificatePhotoBack);
|
||||||
if (info.certificatePhotoBack) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoBack', info.certificatePhotoBack);
|
|
||||||
}
|
|
||||||
if (info.certificatePhotoBackWatermark) {
|
|
||||||
this.sf.setValue('/adminUserInfo/certificatePhotoBackWatermark', [
|
this.sf.setValue('/adminUserInfo/certificatePhotoBackWatermark', [
|
||||||
{
|
{
|
||||||
uid: -1,
|
uid: -1,
|
||||||
name: '文件',
|
name: '文件',
|
||||||
status: 'done',
|
status: 'done',
|
||||||
url: info.certificatePhotoBackWatermark,
|
url: info?.certificatePhotoBackWatermark,
|
||||||
response: info.certificatePhotoBackWatermark
|
response: info?.certificatePhotoBackWatermark
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
this.sf.setValue('/adminUserInfo/certificateNumber', info?.certificateNumber);
|
||||||
if (info.certificateNumber) {
|
this.sf.setValue('/adminUserInfo/validStartTime', info?.validStartTime);
|
||||||
this.sf.setValue('/adminUserInfo/certificateNumber', info.certificateNumber);
|
this.sf.setValue('/adminUserInfo/validEndTime', info?.validEndTime ? info?.validEndTime: null);
|
||||||
}
|
this.sf.setValue('/adminUserInfo/_isLoingDate', info?.validEndTime ? false: true);
|
||||||
if (info.validStartTime) {
|
|
||||||
this.sf.setValue('/adminUserInfo/validStartTime', info.validStartTime);
|
|
||||||
}
|
|
||||||
if (info.validEndTime) {
|
|
||||||
this.sf.setValue('/adminUserInfo/validEndTime', info.validEndTime);
|
|
||||||
this.sf.setValue('/adminUserInfo/_isLoingDate', false);
|
|
||||||
} else {
|
|
||||||
this.sf.setValue('/adminUserInfo/_isLoingDate', true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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-26 10:53:50
|
* @LastEditTime : 2022-04-26 14:04:41
|
||||||
* @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.
|
||||||
-->
|
-->
|
||||||
@ -61,7 +61,7 @@
|
|||||||
</sv>
|
</sv>
|
||||||
|
|
||||||
<sv label="规则说明" col="1" >
|
<sv label="规则说明" col="1" >
|
||||||
<sf #sf mode="edit" [disabled]="hiden" [formData]="formData" [schema]="schema1" [ui]="{ '*': { spanLabelFixed: 10, grid: { span: 12 }} }"
|
<sf #sf mode="edit" [disabled]="hiden" [formData]="formData" [schema]="schema1" [ui]="{ '*': { spanLabelFixed: 10, grid: { span: 16 }} }"
|
||||||
button="none"> </sf>
|
button="none"> </sf>
|
||||||
</sv>
|
</sv>
|
||||||
|
|
||||||
|
|||||||
@ -1,167 +1,205 @@
|
|||||||
<nz-card>
|
<nz-card>
|
||||||
<div nz-row [nzGutter]="8">
|
<div nz-row [nzGutter]="8">
|
||||||
<div nz-col nzSpan="4">
|
<div nz-col nzSpan="4">
|
||||||
<ul nz-menu nzMode="inline" class="card-height">
|
<ul nz-menu nzMode="inline" class="card-height">
|
||||||
<li nz-menu-item [nzSelected]="idx === 0" (click)="changeType(idx)"
|
<li nz-menu-item [nzSelected]="idx === 0" (click)="changeType(idx)" *ngFor="let item of tabs; let idx = index">
|
||||||
*ngFor="let item of tabs; let idx = index">
|
{{ item.name }}
|
||||||
{{ item.name }}
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div nz-col nzSpan="20" style="overflow: scroll">
|
|
||||||
<nz-card class="card-height" [nzBordered]="null" nzSize="small" *ngIf="selectedTab===0 ">
|
|
||||||
<h3 style="font-weight: 600;">提现手续费配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="230" [se-container]="1">
|
|
||||||
<se label="个人提现手续费" style="margin-bottom: 0;">
|
|
||||||
<div>
|
|
||||||
按照提现金额收取
|
|
||||||
<nz-input-number [(ngModel)]="personValue" [nzMin]="0" [nzMax]="100" [nzPrecision]='2' [nzStep]="0.01"></nz-input-number>
|
|
||||||
<span>
|
|
||||||
%手续费
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</se>
|
|
||||||
<se label="企业提现手续费" style="margin-bottom: 0;">
|
|
||||||
<div>
|
|
||||||
按照提现金额收取
|
|
||||||
<nz-input-number [(ngModel)]="enterpriseValue" [nzMin]="0" [nzMax]="100" [nzPrecision]='2' [nzStep]="0.01"></nz-input-number>
|
|
||||||
<span>
|
|
||||||
%手续费
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</se>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h3 style="font-weight: 600;" class="mb-md">合伙人提现配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24" se-container>
|
|
||||||
<se label="提现审核" style="margin-bottom: 0;">
|
|
||||||
<nz-radio-group [(ngModel)]="auditValue">
|
|
||||||
<label nz-radio [nzValue]="false" class="mt-sm">关闭</label>
|
|
||||||
<label nz-radio [nzValue]="true" class="mt-sm">开启</label>
|
|
||||||
</nz-radio-group>
|
|
||||||
</se>
|
|
||||||
<ng-container *ngTemplateOutlet="auditTimes;context:{$implicit: 'auto', title:'审核时间'}">
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h3 style="font-weight: 600;" class="mb-md">客服电话配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="230">
|
|
||||||
<se label="客服电话" style="margin-bottom: 0;">
|
|
||||||
<input nz-input style="width: 325px;" />
|
|
||||||
</se>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nz-card>
|
|
||||||
|
|
||||||
<nz-card class="card-height" [nzBordered]="null" nzSize="small" *ngIf="selectedTab===1">
|
|
||||||
<h2 style="font-weight: 800;">司机端配置</h2>
|
|
||||||
<h3 style="font-weight: 600;margin-left: 120px;">图片配置</h3>
|
|
||||||
<sf style="margin-left: 30px" #sf mode="default" [formData]="i" [schema]="schema"
|
|
||||||
[ui]="{ '*': { spanLabelFixed: 200,grid: { span: 24 }} }" button="none">
|
|
||||||
<ng-template sf-template="start" let-me let-ui="ui" let-schema="schema">
|
|
||||||
</ng-template>
|
|
||||||
<template id="tpl">
|
|
||||||
<span>so good </span>
|
|
||||||
</template>
|
|
||||||
<ng-template sf-template="time2" let-me let-ui="ui" let-schema="schema">
|
|
||||||
<div class="text-left">可输入字符</div>
|
|
||||||
<nz-range-picker extend nzFormat="HH:mm:ss"></nz-range-picker>
|
|
||||||
</ng-template>
|
|
||||||
</sf>
|
|
||||||
<h3 style="font-weight: 600;margin-left: 140px;" class="mb-md">短信配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="230" [se-container]="1">
|
|
||||||
<se label="短信内容设置" style="margin-bottom: 0;">
|
|
||||||
<p style="margin-top: 6px;">配置用户端登陆页注册帐号、修改密码、修改手机号时的短信内容</p>
|
|
||||||
<textarea nz-input rows="4"
|
|
||||||
placeholder="【运多星】您的验证码:XXXXXX。有效期10分钟,请及时输入,请勿向他人泄露您的验证码。如非本人操作,请忽略。"
|
|
||||||
style="width: 400px;"></textarea>
|
|
||||||
</se>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h3 style="font-weight: 600;margin-left: 140px;" class="mb-md">通知配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24">
|
|
||||||
<div se-container [labelWidth]="230" [se-container]="1">
|
|
||||||
<se class="mb-sm">
|
|
||||||
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
|
||||||
<label nz-radio [nzValue]="false" class="mt-sm">到期系统通知</label>
|
|
||||||
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
|
||||||
</nz-radio-group>
|
|
||||||
</se>
|
|
||||||
<se label="司机驾驶证证审核" class="mb-sm">
|
|
||||||
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
|
||||||
<label nz-radio [nzValue]="false" class="mt-sm">审核通过系统通知</label>
|
|
||||||
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
|
||||||
</nz-radio-group>
|
|
||||||
</se>
|
|
||||||
<se class="mb-sm">
|
|
||||||
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
|
||||||
<label nz-radio [nzValue]="false" class="mt-sm">审核驳回系统通知</label>
|
|
||||||
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
|
||||||
</nz-radio-group>
|
|
||||||
</se>
|
|
||||||
<se class="mb-sm">
|
|
||||||
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
|
||||||
<label nz-radio [nzValue]="false" class="mt-sm">到期系统通知</label>
|
|
||||||
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
|
||||||
</nz-radio-group>
|
|
||||||
</se>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h3 style="font-weight: 600;margin-left: 140px;" class="mt-md">客服电话配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="230">
|
|
||||||
<se label="客服电话" >
|
|
||||||
<input nz-input style="width: 325px;" />
|
|
||||||
</se>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h3 style="font-weight: 600;margin-left: 140px;" class="mt-md">证件提醒配置</h3>
|
|
||||||
<div nz-row nzGutter="8">
|
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="230" [se-container]="1">
|
|
||||||
<se label="证件临期提醒" style="margin-bottom: 0;">
|
|
||||||
距离到期时间
|
|
||||||
<input type="number" nz-input style="width: 40px;"/>
|
|
||||||
天开始提醒,每隔
|
|
||||||
<input type="number" nz-input style="width: 40px;" />
|
|
||||||
天提醒一次
|
|
||||||
</se>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nz-card>
|
|
||||||
|
|
||||||
<div class="mb-md save-btn">
|
|
||||||
<button class="ml-lg" nz-button nzSize="large" nzType="primary">保存</button>
|
|
||||||
<button class="ml-lg" nz-button nzSize="large">取消</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div nz-col nzSpan="20" style="overflow: scroll">
|
||||||
|
<nz-card class="card-height" [nzBordered]="null" nzSize="small" *ngIf="selectedTab === 0">
|
||||||
|
<h3 style="font-weight: 600">提现手续费配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24" se-container [labelWidth]="230" [se-container]="1">
|
||||||
|
<se label="个人提现手续费" style="margin-bottom: 0">
|
||||||
|
<div>
|
||||||
|
按照提现金额收取
|
||||||
|
<nz-input-number [(ngModel)]="personValue" [nzMin]="0" [nzMax]="100" [nzPrecision]="2" [nzStep]="0.01"></nz-input-number>
|
||||||
|
<span> %手续费 </span>
|
||||||
|
</div>
|
||||||
|
</se>
|
||||||
|
<se label="企业提现手续费" style="margin-bottom: 0">
|
||||||
|
<div>
|
||||||
|
按照提现金额收取
|
||||||
|
<nz-input-number
|
||||||
|
[(ngModel)]="enterpriseValue"
|
||||||
|
[nzMin]="0"
|
||||||
|
[nzMax]="100"
|
||||||
|
[nzPrecision]="2"
|
||||||
|
[nzStep]="0.01"
|
||||||
|
></nz-input-number>
|
||||||
|
<span> %手续费 </span>
|
||||||
|
</div>
|
||||||
|
</se>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 style="font-weight: 600" class="mb-md">合伙人提现配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24" se-container>
|
||||||
|
<se label="提现审核" style="margin-bottom: 0">
|
||||||
|
<nz-radio-group [(ngModel)]="auditValue">
|
||||||
|
<label nz-radio [nzValue]="false" class="mt-sm">关闭</label>
|
||||||
|
<label nz-radio [nzValue]="true" class="mt-sm">开启</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</se>
|
||||||
|
<se label="审核时间" style="margin-bottom: 0">
|
||||||
|
<div se-container [se-container]="1" style="margin-left: 0px;">
|
||||||
|
<nz-radio-group style="display: block;" [(ngModel)]="auditTime" (ngModelChange)="changeAuto(auditTime)">
|
||||||
|
<label nz-radio [nzValue]="1" class="mt-sm">全天</label>
|
||||||
|
<label nz-radio [nzValue]="2" class="mt-sm">自定义</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</div>
|
||||||
|
</se>
|
||||||
|
<div style="margin-left: 200px;">
|
||||||
|
<ng-container *ngTemplateOutlet="auditTimes"> </ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 style="font-weight: 600" class="mb-md">客服电话配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24" se-container [labelWidth]="230">
|
||||||
|
<se label="客服电话" style="margin-bottom: 0">
|
||||||
|
<input nz-input style="width: 325px" />
|
||||||
|
</se>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nz-card>
|
||||||
|
|
||||||
|
<nz-card class="card-height" [nzBordered]="null" nzSize="small" *ngIf="selectedTab === 1">
|
||||||
|
<h2 style="font-weight: 800">司机端配置</h2>
|
||||||
|
<h3 style="font-weight: 600; margin-left: 120px">图片配置</h3>
|
||||||
|
<sf
|
||||||
|
style="margin-left: 14px"
|
||||||
|
#sf
|
||||||
|
mode="default"
|
||||||
|
[formData]="i"
|
||||||
|
[schema]="schema"
|
||||||
|
[ui]="{ '*': { spanLabelFixed: 200, grid: { span: 24 } } }"
|
||||||
|
button="none"
|
||||||
|
>
|
||||||
|
<ng-template sf-template="start" let-me let-ui="ui" let-schema="schema"> </ng-template>
|
||||||
|
<template id="tpl">
|
||||||
|
<span>so good </span>
|
||||||
|
</template>
|
||||||
|
<ng-template sf-template="time2" let-me let-ui="ui" let-schema="schema">
|
||||||
|
<div class="text-left">可输入字符</div>
|
||||||
|
<nz-range-picker extend nzFormat="HH:mm:ss"></nz-range-picker>
|
||||||
|
</ng-template>
|
||||||
|
</sf>
|
||||||
|
<h3 style="font-weight: 600; margin-left: 140px" class="mb-md">短信配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24" se-container [labelWidth]="230" [se-container]="1">
|
||||||
|
<se label="短信内容设置" style="margin-bottom: 0">
|
||||||
|
<p style="margin-top: 6px">配置用户端登陆页注册帐号、修改密码、修改手机号时的短信内容</p>
|
||||||
|
<textarea
|
||||||
|
nz-input
|
||||||
|
rows="4"
|
||||||
|
placeholder="【运多星】您的验证码:XXXXXX。有效期10分钟,请及时输入,请勿向他人泄露您的验证码。如非本人操作,请忽略。"
|
||||||
|
style="width: 400px"
|
||||||
|
></textarea>
|
||||||
|
</se>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 style="font-weight: 600; margin-left: 140px" class="mb-md">通知配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24">
|
||||||
|
<div se-container [labelWidth]="230" [se-container]="1">
|
||||||
|
<se class="mb-sm">
|
||||||
|
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
||||||
|
<label nz-radio [nzValue]="false" class="mt-sm">到期系统通知</label>
|
||||||
|
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</se>
|
||||||
|
<se label="司机驾驶证证审核" class="mb-sm">
|
||||||
|
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
||||||
|
<label nz-radio [nzValue]="false" class="mt-sm">审核通过系统通知</label>
|
||||||
|
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</se>
|
||||||
|
<se class="mb-sm">
|
||||||
|
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
||||||
|
<label nz-radio [nzValue]="false" class="mt-sm">审核驳回系统通知</label>
|
||||||
|
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</se>
|
||||||
|
<se class="mb-sm">
|
||||||
|
<nz-radio-group [(ngModel)]="formDate.isAudit">
|
||||||
|
<label nz-radio [nzValue]="false" class="mt-sm">到期系统通知</label>
|
||||||
|
<label nz-radio [nzValue]="true" class="mt-sm">短信通知</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
</se>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 style="font-weight: 600; margin-left: 140px" class="mt-md">客服电话配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24" se-container [labelWidth]="230">
|
||||||
|
<se label="客服电话">
|
||||||
|
<input nz-input style="width: 325px" />
|
||||||
|
</se>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 style="font-weight: 600; margin-left: 140px" class="mt-md">证件提醒配置</h3>
|
||||||
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col nzSpan="24" se-container [labelWidth]="230" [se-container]="1">
|
||||||
|
<se label="证件临期提醒" style="margin-bottom: 0">
|
||||||
|
距离到期时间
|
||||||
|
<input type="number" nz-input style="width: 40px" />
|
||||||
|
天开始提醒,每隔
|
||||||
|
<input type="number" nz-input style="width: 40px" />
|
||||||
|
天提醒一次
|
||||||
|
</se>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nz-card>
|
||||||
|
|
||||||
|
<div class="mb-md save-btn">
|
||||||
|
<button class="ml-lg" nz-button nzSize="large" nzType="primary">保存</button>
|
||||||
|
<button class="ml-lg" nz-button nzSize="large">取消</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<ng-template #auditTimes let-data="data" let-title="title">
|
<ng-template #auditTimes let-data="data" let-title="title" >
|
||||||
<div se-container [labelWidth]="230" [se-container]="1">
|
|
||||||
<se [label]="title" style="margin-bottom: 0;">
|
|
||||||
<nz-radio-group [(ngModel)]="auditTime">
|
|
||||||
<label nz-radio [nzValue]="false" class="mt-sm">全天</label>
|
|
||||||
<label nz-radio [nzValue]="true" class="mt-sm">自定义</label>
|
|
||||||
</nz-radio-group>
|
|
||||||
</se>
|
|
||||||
<div *ngIf="">
|
|
||||||
<se class="mb-sm">
|
|
||||||
<label for="">通知标题 : </label>
|
|
||||||
<input nz-input placeholder="请不要超过20个汉字" style="width: 325px;" maxlength="20" />
|
|
||||||
</se>
|
|
||||||
<se class="mb-sm">
|
|
||||||
<label for="">通知内容 : </label>
|
|
||||||
<input nz-input placeholder="请不要超过50个汉字" style="width: 325px;" maxlength="50" />
|
|
||||||
</se>
|
|
||||||
|
|
||||||
|
<div *ngIf="auditTimeStatus" style="display: flex;">
|
||||||
|
<div style="display: flex;">
|
||||||
|
<nz-radio-group [(ngModel)]="everyDay" style="display: block;" >
|
||||||
|
<label nz-radio [nzValue]="1" class="mt-sm">每天<span style="margin-left: 30px; color: #0200ff; cursor: pointer;">添加时间段</span></label>
|
||||||
|
</nz-radio-group>
|
||||||
|
<div style="display: flex;">
|
||||||
|
<nz-time-picker [(ngModel)]="time" [nzDefaultOpenValue]="defaultOpenValue"></nz-time-picker>--<nz-time-picker
|
||||||
|
[(ngModel)]="time"
|
||||||
|
[nzDefaultOpenValue]="defaultOpenValue"
|
||||||
|
></nz-time-picker>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<nz-time-picker [(ngModel)]="time" [nzDefaultOpenValue]="defaultOpenValue"></nz-time-picker>--<nz-time-picker
|
||||||
|
[(ngModel)]="time"
|
||||||
|
[nzDefaultOpenValue]="defaultOpenValue"
|
||||||
|
></nz-time-picker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div *ngIf="auditTimeStatus">
|
||||||
|
|
||||||
|
<div style="display: flex;">
|
||||||
|
<nz-time-picker [(ngModel)]="time" [nzDefaultOpenValue]="defaultOpenValue"></nz-time-picker>--<nz-time-picker
|
||||||
|
[(ngModel)]="time"
|
||||||
|
[nzDefaultOpenValue]="defaultOpenValue"
|
||||||
|
></nz-time-picker>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div>
|
||||||
|
<nz-time-picker [(ngModel)]="time" [nzDefaultOpenValue]="defaultOpenValue"></nz-time-picker>--<nz-time-picker
|
||||||
|
[(ngModel)]="time"
|
||||||
|
[nzDefaultOpenValue]="defaultOpenValue"
|
||||||
|
></nz-time-picker>
|
||||||
|
</div>
|
||||||
|
<div nz-radio [nzValue]="4" class="mt-sm">每周</div>
|
||||||
|
</div> -->
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -20,6 +20,9 @@ export class PartnerSystemConfigComponent implements OnInit {
|
|||||||
auditValue!: number;
|
auditValue!: number;
|
||||||
auditTime!: any;
|
auditTime!: any;
|
||||||
auditTimeStatus: boolean = false
|
auditTimeStatus: boolean = false
|
||||||
|
everyDay: boolean = false
|
||||||
|
time: Date | null = null;
|
||||||
|
defaultOpenValue = new Date(0, 0, 0, 0, 0, 0);
|
||||||
tabs = [
|
tabs = [
|
||||||
{
|
{
|
||||||
name: '基础配置'
|
name: '基础配置'
|
||||||
@ -172,11 +175,6 @@ export class PartnerSystemConfigComponent implements OnInit {
|
|||||||
required: ['sysMinLogo', 'sysMaxLogo', 'sysMaxLogo1', 'sysMaxLogo2', 'sysMaxLogo3', 'sysMaxLogo4']
|
required: ['sysMinLogo', 'sysMaxLogo', 'sysMaxLogo1', 'sysMaxLogo2', 'sysMaxLogo3', 'sysMaxLogo4']
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
auditTimeChange(ss: any,value: any) {
|
|
||||||
console.log(value);
|
|
||||||
this.auditTimeStatus = true
|
|
||||||
|
|
||||||
}
|
|
||||||
private uploadBefore = (file: any, fileList: any) => {
|
private uploadBefore = (file: any, fileList: any) => {
|
||||||
return new Observable((observer: Observer<boolean>) => {
|
return new Observable((observer: Observer<boolean>) => {
|
||||||
const isLt1M = file.size / 1024 / 1024 < 2;
|
const isLt1M = file.size / 1024 / 1024 < 2;
|
||||||
@ -196,7 +194,14 @@ export class PartnerSystemConfigComponent implements OnInit {
|
|||||||
observer.complete();
|
observer.complete();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
changeAuto(value: any) {
|
||||||
|
console.log(value);
|
||||||
|
if(value == '2') {
|
||||||
|
this.auditTimeStatus = true
|
||||||
|
} else {
|
||||||
|
this.auditTimeStatus = false
|
||||||
|
}
|
||||||
|
}
|
||||||
private getImageModel(args: any, key: any) {
|
private getImageModel(args: any, key: any) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -422,7 +422,7 @@
|
|||||||
<nz-tab nzTitle="修改渠道销售记录">
|
<nz-tab nzTitle="修改渠道销售记录">
|
||||||
<st #st1 multiSort bordered [columns]="recordColumns" [ps]="20" [data]="service.$api_findEnterpriceChannelRelLog"
|
<st #st1 multiSort bordered [columns]="recordColumns" [ps]="20" [data]="service.$api_findEnterpriceChannelRelLog"
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
[res]="{ reName: { list: 'data', total: 'data' } }"
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }" [loading]="service.http.loading">
|
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }" [loading]="service.http.loading">
|
||||||
<ng-template st-row="remark" let-item let-index="index">
|
<ng-template st-row="remark" let-item let-index="index">
|
||||||
<span *ngIf="item.remark" class="overflowText" nz-tooltip [nzTooltipTitle]="item.remark">{{ item.remark
|
<span *ngIf="item.remark" class="overflowText" nz-tooltip [nzTooltipTitle]="item.remark">{{ item.remark
|
||||||
|
|||||||
@ -144,9 +144,9 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
},
|
},
|
||||||
className: 'text-center'
|
className: 'text-center'
|
||||||
},
|
},
|
||||||
{ title: '修改时间', render: 'mybidDetailInfo', className: 'text-center' },
|
{ title: '修改时间', index: 'modifyTime', className: 'text-center' },
|
||||||
{ title: '生效时间', index: 'eeffectiveTime', className: 'text-center' },
|
{ title: '生效时间', index: 'effectiveTime', className: 'text-center' },
|
||||||
{ title: '操作人', index: 'approvalUser', className: 'text-center' }
|
{ title: '操作人', index: 'modifyUserId', className: 'text-center' }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
loadPartnerInfo(){
|
loadPartnerInfo(){
|
||||||
|
|||||||
Reference in New Issue
Block a user