fix bug
This commit is contained in:
@ -6,10 +6,10 @@ import { SFComponent, SFSchema, SFDateWidgetSchema, SFAutoCompleteWidgetSchema,
|
|||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { AddCollectionInvoiceModalComponent } from 'src/app/routes/ticket-management/components/input-invoice/add-collection-invoice-modal/add-collection-invoice-modal.component';
|
import { AddCollectionInvoiceModalComponent } from 'src/app/routes/ticket-management/components/input-invoice/add-collection-invoice-modal/add-collection-invoice-modal.component';
|
||||||
|
import { map, filter } from 'rxjs/operators';
|
||||||
|
|
||||||
import { PartnerListService } from '../../services/partner-list.service';
|
import { PartnerListService } from '../../services/partner-list.service';
|
||||||
import { PartnerAuditModalComponent } from '../partner-audit-modal/partner-audit-modal.component';
|
import { PartnerAuditModalComponent } from '../partner-audit-modal/partner-audit-modal.component';
|
||||||
import { map } from 'rxjs/operators';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-partner-list',
|
selector: 'app-partner-list',
|
||||||
@ -24,7 +24,7 @@ export class PartnerListComponent {
|
|||||||
columns: STColumn[] = this.initST();
|
columns: STColumn[] = this.initST();
|
||||||
searchSchema: SFSchema = this.initSF();
|
searchSchema: SFSchema = this.initSF();
|
||||||
_$expand = false;
|
_$expand = false;
|
||||||
isLoading: boolean = false
|
isLoading: boolean = false;
|
||||||
@ViewChild('editTemplate', { static: true })
|
@ViewChild('editTemplate', { static: true })
|
||||||
editTemplate: any;
|
editTemplate: any;
|
||||||
templateId: any;
|
templateId: any;
|
||||||
@ -55,10 +55,10 @@ export class PartnerListComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
loadSelectOptions() {
|
loadSelectOptions() {
|
||||||
this.service.getRebateConfig({stateLocked: 1}).subscribe(res => {
|
this.service.getRebateConfig({ stateLocked: 1 }).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
this.customers = res;
|
this.customers = res;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -319,7 +319,7 @@ export class PartnerListComponent {
|
|||||||
{ value: '', label: '全部' },
|
{ value: '', label: '全部' },
|
||||||
{ value: '0', label: '未同步' },
|
{ value: '0', label: '未同步' },
|
||||||
{ value: 10, label: '同步失败' },
|
{ value: 10, label: '同步失败' },
|
||||||
{ value: 20, label: '同步成功' },
|
{ value: 20, label: '同步成功' }
|
||||||
],
|
],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
@ -353,21 +353,21 @@ export class PartnerListComponent {
|
|||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
asyncData: () =>
|
asyncData: () =>
|
||||||
this.service.request(this.service.$api_get_rebate_config, {}, 'POST').pipe(
|
this.service.request(this.service.$api_get_rebate_config, {}, 'POST').pipe(
|
||||||
map(data => {
|
map(data => {
|
||||||
if(data) {
|
if (data) {
|
||||||
return data.map((m: any) => {
|
return data.map((m: any) => {
|
||||||
return { label: m.configName, value: m.id };
|
return { label: m.configName, value: m.id };
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
|
}
|
||||||
}
|
})
|
||||||
})
|
),
|
||||||
),
|
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
} } as SFDateWidgetSchema
|
}
|
||||||
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
lockedStatus: {
|
lockedStatus: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -406,7 +406,7 @@ export class PartnerListComponent {
|
|||||||
{
|
{
|
||||||
title: '合伙人名称',
|
title: '合伙人名称',
|
||||||
render: 'enterpriseName',
|
render: 'enterpriseName',
|
||||||
width: 180,
|
width: 180
|
||||||
},
|
},
|
||||||
{ title: '付款编码', index: 'payCode', width: 160 },
|
{ title: '付款编码', index: 'payCode', width: 160 },
|
||||||
{ title: '邀请码', index: 'invitationCode', className: 'text-center', width: 130 },
|
{ title: '邀请码', index: 'invitationCode', className: 'text-center', width: 130 },
|
||||||
@ -512,7 +512,27 @@ export class PartnerListComponent {
|
|||||||
onSearch(value: string): void {
|
onSearch(value: string): void {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
console.log(value);
|
console.log(value);
|
||||||
|
let str = value.replace(/^\s+|\s+$/g, '');
|
||||||
// this.searchChange$.next(value);
|
let params: any = {};
|
||||||
|
if (str) {
|
||||||
|
console.log(+str);
|
||||||
|
if (+str) {
|
||||||
|
console.log('数字');
|
||||||
|
params.phoneNumber = str;
|
||||||
|
} else {
|
||||||
|
console.log('中文');
|
||||||
|
params.name = str;
|
||||||
|
}
|
||||||
|
this.service.request(this.service.$api_get_channel, params).subscribe(res => {
|
||||||
|
console.log(res);
|
||||||
|
let NewList: { label: string; value: any; }[] = [];
|
||||||
|
let List = res.filter((i: any) => {
|
||||||
|
NewList.push({ label: `${i.name}/${i.telephone}`, value: i.channelId }) ;
|
||||||
|
});
|
||||||
|
console.log(NewList);
|
||||||
|
});
|
||||||
|
// .pipe(map((res: any) => (res as any[]).map(i => ({ label: `${i.name}/${i.telephone}`, value: i.channelId })))
|
||||||
|
// this.searchChange$.next(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-05-06 15:31:19
|
* @Date : 2022-05-06 15:31:19
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-05-10 09:47:38
|
* @LastEditTime : 2022-05-10 11:13:28
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\etc-invoiced-logs\\etc-invoiced-logs.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\etc-invoiced-logs\\etc-invoiced-logs.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<div class="mr-sm">
|
<div class="mr-sm">
|
||||||
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
|
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
|
||||||
<button nz-button nzDanger (click)="exportList()" acl [acl-ability]="['TICKET-ETC-INVOICE-LOGS-export']">导出</button>
|
<button nz-button nzDanger (click)="exportList()" acl [acl-ability]="['TICKET-ETC-INVOICE-LOGS-export']">导出</button>
|
||||||
<button nz-button nzDanger (click)="batchInvoice()" acl [acl-ability]="['TICKET-ETC-INVOICE-LOGS-export']">批量开票</button>
|
<button nz-button nzDanger (click)="batchInvoice()" acl [acl-ability]="['TICKET-ETC-INVOICE-LOGS-BatchCreateFicoInpinv']">批量收票</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<st
|
<st
|
||||||
|
|||||||
@ -197,8 +197,8 @@ export class ETCInvoicedLogsComponent extends BasicTableComponent {
|
|||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: '开票',
|
text: '收票',
|
||||||
acl: { ability: ['TICKET-CANCELLATION-view'] },
|
acl: { ability: ['TICKET-ETC-INVOICE-LOGS-createFicoInpinv'] },
|
||||||
click: item => {
|
click: item => {
|
||||||
this.batchInvoice(item)
|
this.batchInvoice(item)
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ export class ETCInvoicedLogsComponent extends BasicTableComponent {
|
|||||||
|
|
||||||
this.service.request(this.service.$api_createFicoInpinv, params).subscribe(res => {
|
this.service.request(this.service.$api_createFicoInpinv, params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('开票成功!')
|
this.service.msgSrv.success('收票成功!')
|
||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-23 16:50:17
|
* @Date: 2021-12-23 16:50:17
|
||||||
* @LastEditTime : 2022-04-28 13:54:14
|
* @LastEditTime : 2022-05-10 10:58:56
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\invoice-requested\\requested-invoice-modal\\requested-invoice-modal.component.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\invoice-requested\\requested-invoice-modal\\requested-invoice-modal.component.ts
|
||||||
|
|||||||
Reference in New Issue
Block a user