替换containsAllLable
This commit is contained in:
@ -145,7 +145,7 @@ export class ContractManagementContractListComponent implements OnInit {
|
|||||||
default: '',
|
default: '',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'contract:document:type' },
|
params: { dictKey: 'contract:document:type' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -80,7 +80,7 @@ export class ContractManagementTemplateComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'contract:template:type' },
|
params: { dictKey: 'contract:template:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -113,7 +113,7 @@ export class PaymentOrderComponent implements OnInit {
|
|||||||
title: '付款状态',
|
title: '付款状态',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'refund:apply:status' },
|
params: { dictKey: 'refund:apply:status' },
|
||||||
placeholder: '请选择'
|
placeholder: '请选择'
|
||||||
}
|
}
|
||||||
@ -123,7 +123,7 @@ export class PaymentOrderComponent implements OnInit {
|
|||||||
title: '付款类型',
|
title: '付款类型',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'pay:type' },
|
params: { dictKey: 'pay:type' },
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
@ -136,7 +136,7 @@ export class PaymentOrderComponent implements OnInit {
|
|||||||
title: '付款方式',
|
title: '付款方式',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'pay:mode' },
|
params: { dictKey: 'pay:mode' },
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -176,7 +176,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'insure:type' },
|
params: { dictKey: 'insure:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -263,7 +263,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'insure:status' },
|
params: { dictKey: 'insure:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -257,7 +257,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -312,7 +312,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -323,7 +323,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'goodresource:settlement:type' },
|
params: { dictKey: 'goodresource:settlement:type' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -232,7 +232,7 @@ export class OrderManagementComplianceAuditComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -258,7 +258,7 @@ export class OrderManagementComplianceAuditComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -462,16 +462,20 @@ export class OrderManagementComplianceAuditComponent implements OnInit {
|
|||||||
index: 'amountAfterChange',
|
index: 'amountAfterChange',
|
||||||
render: 'amountAfterChange'
|
render: 'amountAfterChange'
|
||||||
},
|
},
|
||||||
{ title: '变更值',
|
{
|
||||||
|
title: '变更值',
|
||||||
index: 'amountchangeValue',
|
index: 'amountchangeValue',
|
||||||
render: 'amountchangeValue',
|
render: 'amountchangeValue',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
className: 'text-center' },
|
className: 'text-center'
|
||||||
{ title: '变更后',
|
},
|
||||||
|
{
|
||||||
|
title: '变更后',
|
||||||
index: 'amountBeforeChange',
|
index: 'amountBeforeChange',
|
||||||
render: 'amountBeforeChange',
|
render: 'amountBeforeChange',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
className: 'text-center' }
|
className: 'text-center'
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -207,7 +207,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -233,7 +233,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -244,7 +244,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'goodresource:settlement:type' },
|
params: { dictKey: 'goodresource:settlement:type' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -168,7 +168,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'freight:type' },
|
params: { dictKey: 'freight:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -180,7 +180,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'BulkFreightUnitPriceType' },
|
params: { dictKey: 'BulkFreightUnitPriceType' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -254,7 +254,7 @@ resourceStatus: any;
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value,
|
||||||
},
|
},
|
||||||
@ -328,7 +328,7 @@ resourceStatus: any;
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value,
|
||||||
},
|
},
|
||||||
@ -516,16 +516,20 @@ resourceStatus: any;
|
|||||||
index: 'amountAfterChange',
|
index: 'amountAfterChange',
|
||||||
render: 'amountAfterChange'
|
render: 'amountAfterChange'
|
||||||
},
|
},
|
||||||
{ title: '变更值',
|
{
|
||||||
|
title: '变更值',
|
||||||
index: 'amountchangeValue',
|
index: 'amountchangeValue',
|
||||||
render: 'amountchangeValue',
|
render: 'amountchangeValue',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
className: 'text-center' },
|
className: 'text-center'
|
||||||
{ title: '变更后',
|
},
|
||||||
|
{
|
||||||
|
title: '变更后',
|
||||||
index: 'amountBeforeChange',
|
index: 'amountBeforeChange',
|
||||||
render: 'amountBeforeChange',
|
render: 'amountBeforeChange',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
className: 'text-center' }
|
className: 'text-center'
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
// 获取城市列表
|
// 获取城市列表
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
<nz-card>
|
<nz-card>
|
||||||
<sf mode="search" [schema]="schema" [ui]="ui" [button]="'none'" (formSubmit)="st.load(1)" (formReset)="resetSF()" #sf>
|
<!-- <div nz-row>
|
||||||
|
<div [nzSpan]="" nz-col>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<sf [schema]="schema" [mode]="'search'" [ui]="ui" [button]="'none'" (formSubmit)="st.load(1)" (formReset)="resetSF()"
|
||||||
|
#sf>
|
||||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
|
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
|
||||||
(click)="st?.load(1)">查询</button>
|
(click)="st?.load(1)">查询</button>
|
||||||
<button nz-button (click)="resetSF()">重置</button>
|
<button nz-button (click)="resetSF()">重置</button>
|
||||||
@ -8,7 +14,7 @@
|
|||||||
|
|
||||||
</nz-card>
|
</nz-card>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<st #st [data]="service.$api_get_partner_statistics_page" [columns]="columns" [scroll]="{ x: '1200px' }"
|
<st #st [data]="service. $api_get_account_management_page" [columns]="columns" [scroll]="{ x: '1200px' }"
|
||||||
[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.records', total: 'data.total' } }"
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
@ -28,8 +34,6 @@
|
|||||||
<ng-template st-row="approvalStatus3" let-item>
|
<ng-template st-row="approvalStatus3" let-item>
|
||||||
<div class="text-right">{{item.yskmoney | currency:' '}}</div>
|
<div class="text-right">{{item.yskmoney | currency:' '}}</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="approvalStatus4" let-item>
|
|
||||||
<div class="text-right">{{item.armoney | currency:' '}}</div>
|
|
||||||
</ng-template>
|
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|||||||
@ -2,7 +2,10 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { STColumn, STComponent } from '@delon/abc/st';
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
|
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
|
||||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||||
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { BussinessStatisticsService } from '../../../business-statistics/services/bussiness-statistics.service';
|
import { BussinessStatisticsService } from '../../../business-statistics/services/bussiness-statistics.service';
|
||||||
|
import { AccountManagemantService } from '../../services/account-managemant.service';
|
||||||
|
import { PartnerAccountManagementVirtualAccountDetailComponent } from '../virtual-account-detail/virtual-account-detail.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-partner-list',
|
selector: 'app-partner-list',
|
||||||
@ -16,7 +19,7 @@ export class PartnerAccountManagementListComponent implements OnInit {
|
|||||||
@ViewChild('sf') private readonly sf!: SFComponent;
|
@ViewChild('sf') private readonly sf!: SFComponent;
|
||||||
columns: STColumn[] = [];
|
columns: STColumn[] = [];
|
||||||
|
|
||||||
constructor(public service: BussinessStatisticsService) { }
|
constructor(public service: AccountManagemantService, public modal: NzModalService) { }
|
||||||
/**
|
/**
|
||||||
* 查询参数
|
* 查询参数
|
||||||
*/
|
*/
|
||||||
@ -41,45 +44,36 @@ export class PartnerAccountManagementListComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
abnormalCause1: {
|
abnormalCause1: {
|
||||||
title: '类型',
|
title: '手机号',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
|
||||||
enum: [
|
|
||||||
{
|
|
||||||
label: '全部',
|
|
||||||
value: ''
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '个人',
|
|
||||||
value: '1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '企业',
|
|
||||||
value: '2'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select'
|
placeholder: '请输入',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.ui = { '*': { spanLabelFixed: 120, grid: { span: 8, gutter: 4 } } };
|
this.ui = { '*': { spanLabelFixed: 120, grid: { span: 8, gutter: 12 } }, };
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 初始化数据列表
|
* 初始化数据列表
|
||||||
*/
|
*/
|
||||||
initST() {
|
initST() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{ title: '合伙人名称', index: 'carNo', className: 'text-center', width: 150 },
|
{ title: '合伙人名称', index: 'carNo', className: 'text-center', width: 300 },
|
||||||
{ title: '类型', render: 'carModelLabel', className: 'text-center', width: 150 },
|
{ title: '手机号', render: 'carModelLabel', className: 'text-center', width: 200 },
|
||||||
{ title: '注册时间', index: 'carNo', className: 'text-center', width: 150 },
|
{ title: '账户总额(元)', render: 'approvalStatus1', className: 'text-right', sort: true, width: 200 },
|
||||||
{ title: '本月新增客户', render: 'approvalStatus0', className: 'text-center', sort: true, width: 150 },
|
{ title: '待入账余额(元)', render: 'approvalStatus2', className: 'text-right', sort: true, width: 200 },
|
||||||
{ title: '客户总数', render: 'approvalStatus', className: 'text-center', sort: true, width: 150 },
|
{ title: '可用余额(元)', render: 'approvalStatus3', className: 'text-right', sort: true, width: 250 },
|
||||||
{ title: '本月已结算金额(元)', render: 'approvalStatus1', className: 'text-right', sort: true, width: 180 },
|
{ title: '虚拟账户', index: 'approvalStatus4', className: 'text-center', width: 200 },
|
||||||
{ title: '累计已结算金额(元)', render: 'approvalStatus2', className: 'text-right', sort: true, width: 180 },
|
{
|
||||||
{ title: '本月预估收益(元)', render: 'approvalStatus3', className: 'text-right', sort: true, width: 180 },
|
title: '操作',
|
||||||
{ title: '累计收益(元)', render: 'approvalStatus4', className: 'text-right', sort: true, width: 180 },
|
buttons: [
|
||||||
|
{
|
||||||
|
text: '虚拟账户明细',
|
||||||
|
click: (_record) => this.viewVirtual(_record)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,6 +84,28 @@ export class PartnerAccountManagementListComponent implements OnInit {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param _record 当前行信息
|
||||||
|
*/
|
||||||
|
viewVirtual(_record: any) {
|
||||||
|
|
||||||
|
const modalRef = this.modal.create({
|
||||||
|
nzTitle: '虚拟账户明细',
|
||||||
|
nzContent: PartnerAccountManagementVirtualAccountDetailComponent,
|
||||||
|
nzComponentParams: {
|
||||||
|
id: _record?.id
|
||||||
|
},
|
||||||
|
nzWidth: '85%',
|
||||||
|
nzFooter: null
|
||||||
|
});
|
||||||
|
modalRef.afterClose.subscribe(result => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
export() {
|
export() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,27 @@
|
|||||||
|
<nz-card>
|
||||||
|
<div nz-row>
|
||||||
|
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||||||
|
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||||
|
</div>
|
||||||
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
||||||
|
<button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
|
||||||
|
<button nz-button (click)="resetSF()">重置</button>
|
||||||
|
<button nz-button (click)="export()" nzType="primary" nzGhost>导出</button>
|
||||||
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
|
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-sm">
|
||||||
|
<st #st [data]="amService.$api_get_account_management_page" [columns]="columns" [columns]="columns"
|
||||||
|
[scroll]="{ x: '1200px' }"
|
||||||
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
|
[loading]="amService.http.loading"></st>
|
||||||
|
</div>
|
||||||
|
</nz-card>
|
||||||
|
<div class="modal-footer text-center">
|
||||||
|
<button nz-button type="button" nzType="primary" (click)="close()">确定</button>
|
||||||
|
</div>
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { PartnerAccountManagementVirtualAccountDetailComponent } from './virtual-account-detail.component';
|
||||||
|
|
||||||
|
describe('PartnerAccountManagementVirtualAccountDetailComponent', () => {
|
||||||
|
let component: PartnerAccountManagementVirtualAccountDetailComponent;
|
||||||
|
let fixture: ComponentFixture<PartnerAccountManagementVirtualAccountDetailComponent>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [PartnerAccountManagementVirtualAccountDetailComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(PartnerAccountManagementVirtualAccountDetailComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,174 @@
|
|||||||
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||||
|
import { _HttpClient } from '@delon/theme';
|
||||||
|
import { NzModalRef } from 'ng-zorro-antd/modal';
|
||||||
|
import { ShipperBaseService } from 'src/app/shared/services/business/shipper-base.service';
|
||||||
|
import { AccountManagemantService } from '../../services/account-managemant.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-partner-virtual-account-detail',
|
||||||
|
templateUrl: './virtual-account-detail.component.html',
|
||||||
|
})
|
||||||
|
export class PartnerAccountManagementVirtualAccountDetailComponent implements OnInit {
|
||||||
|
url = `/user`;
|
||||||
|
schema!: SFSchema;
|
||||||
|
ui!: SFUISchema;
|
||||||
|
@ViewChild('st') private readonly st!: STComponent;
|
||||||
|
@ViewChild('sf') private readonly sf!: SFComponent;
|
||||||
|
columns: STColumn[] = [];
|
||||||
|
id = '';
|
||||||
|
_$expand = false;
|
||||||
|
|
||||||
|
constructor(public shipperservice: ShipperBaseService, public amService: AccountManagemantService, private modalRef: NzModalRef) { }
|
||||||
|
|
||||||
|
get reqParams() {
|
||||||
|
return { ...this.sf?.value };
|
||||||
|
}
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.initSF();
|
||||||
|
this.initST();
|
||||||
|
}
|
||||||
|
|
||||||
|
initSF() {
|
||||||
|
this.schema = {
|
||||||
|
properties: {
|
||||||
|
_$expand: {
|
||||||
|
type: 'boolean', ui: { hidden: true }
|
||||||
|
},
|
||||||
|
abnormalCause: {
|
||||||
|
title: '合伙人名称',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
abnormalCause1: {
|
||||||
|
title: '手机号',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
abnormalCause2: {
|
||||||
|
title: '网络货运人',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
allowClear: true,
|
||||||
|
asyncData: () => this.shipperservice.getNetworkFreightForwarder({}, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
bankType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '银行类型',
|
||||||
|
default: '',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: {
|
||||||
|
dictKey: 'bankname:type'
|
||||||
|
},
|
||||||
|
placeholder: '请选择',
|
||||||
|
allowClear: true,
|
||||||
|
containsAllLabel: true,
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
abnormalCause3: {
|
||||||
|
title: '虚拟账户',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入',
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
createTime: {
|
||||||
|
type: 'string',
|
||||||
|
title: '创建时间',
|
||||||
|
ui: {
|
||||||
|
widget: 'sl-from-to',
|
||||||
|
type: 'date',
|
||||||
|
autoComplete: 'off',
|
||||||
|
format: 'yyyy-MM-dd',
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
},
|
||||||
|
} as SFDateWidgetSchema,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.ui = { '*': { spanLabelFixed: 100, grid: { span: 8, gutter: 4 } }, };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化数据列表
|
||||||
|
*/
|
||||||
|
initST() {
|
||||||
|
this.columns = [
|
||||||
|
{ title: '合伙人', index: 'carNo', className: 'text-center', width: 200 },
|
||||||
|
{ title: '手机号', render: 'carModelLabel', className: 'text-center', width: 150 },
|
||||||
|
{ title: '网络货运人', render: 'carModelLabel', className: 'text-center', width: 200 },
|
||||||
|
{ title: '银行类型', render: 'carModelLabel', className: 'text-center', width: 120 },
|
||||||
|
{ title: '虚拟账户', render: 'carModelLabel', className: 'text-center', width: 180 },
|
||||||
|
{ title: '可用余额', render: 'approvalStatus1', className: 'text-right', width: 180 },
|
||||||
|
{ title: '账户总余额', render: 'approvalStatus2', className: 'text-right', width: 180 },
|
||||||
|
{ title: '可用余额(元)', render: 'approvalStatus3', className: 'text-right', width: 180 },
|
||||||
|
{ title: '创建时间', index: 'approvalStatus4', className: 'text-center', width: 200 },
|
||||||
|
{ title: '状态', index: 'approvalStatus4', className: 'text-center', width: 120 },
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
width: 120,
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
text: '查看明细',
|
||||||
|
click: (_record) => this.viewDetail(_record)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
resetSF() {
|
||||||
|
this._$expand = false;
|
||||||
|
this.sf.reset();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.st.reset();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 伸缩查询条件
|
||||||
|
*/
|
||||||
|
expandToggle() {
|
||||||
|
this._$expand = !this._$expand;
|
||||||
|
this.sf?.setValue('/_$expand', this._$expand);
|
||||||
|
}
|
||||||
|
|
||||||
|
add(): void {
|
||||||
|
// this.modal
|
||||||
|
// .createStatic(FormEditComponent, { i: { id: 0 } })
|
||||||
|
// .subscribe(() => this.st.reload());
|
||||||
|
}
|
||||||
|
search() {
|
||||||
|
this.st.load(1);
|
||||||
|
}
|
||||||
|
export() { }
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param _record 当前行信息
|
||||||
|
*/
|
||||||
|
viewDetail(_record: any) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
close() {
|
||||||
|
this.modalRef.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -6,6 +6,7 @@ import { BaseService } from '@shared';
|
|||||||
})
|
})
|
||||||
export class AccountManagemantService extends BaseService {
|
export class AccountManagemantService extends BaseService {
|
||||||
|
|
||||||
|
$api_get_account_management_page = `/api/fcc/ficoBrmH/list/page`;
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
super(injector)
|
super(injector)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,6 +22,7 @@ import { PartnerSalePartnerDetailComponent } from './business-statistics/compone
|
|||||||
import { PartnerPartnerCustomOrderDetailComponent } from './business-statistics/components/partner-custom-order-detail/partner-custom-order-detail.component';
|
import { PartnerPartnerCustomOrderDetailComponent } from './business-statistics/components/partner-custom-order-detail/partner-custom-order-detail.component';
|
||||||
import { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
import { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
||||||
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
||||||
|
import { PartnerAccountManagementVirtualAccountDetailComponent } from './account-management/components/virtual-account-detail/virtual-account-detail.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
@ -63,7 +64,8 @@ const routes: Routes = [
|
|||||||
children: [
|
children: [
|
||||||
{ path: 'list', component: PartnerAccountManagementListComponent },
|
{ path: 'list', component: PartnerAccountManagementListComponent },
|
||||||
]
|
]
|
||||||
}];
|
},
|
||||||
|
];
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild(routes)],
|
imports: [RouterModule.forChild(routes)],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import { PartnerSalePartnerDetailComponent } from './business-statistics/compone
|
|||||||
import { PartnerPartnerCustomOrderDetailComponent } from './business-statistics/components/partner-custom-order-detail/partner-custom-order-detail.component';
|
import { PartnerPartnerCustomOrderDetailComponent } from './business-statistics/components/partner-custom-order-detail/partner-custom-order-detail.component';
|
||||||
import { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
import { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
||||||
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
||||||
|
import { PartnerAccountManagementVirtualAccountDetailComponent } from './account-management/components/virtual-account-detail/virtual-account-detail.component';
|
||||||
|
|
||||||
const COMPONENTS: any[] = [
|
const COMPONENTS: any[] = [
|
||||||
PartnerBusinessStatisticsIndexComponent,
|
PartnerBusinessStatisticsIndexComponent,
|
||||||
@ -32,7 +33,8 @@ const COMPONENTS: any[] = [
|
|||||||
PartnerSalePartnerDetailComponent,
|
PartnerSalePartnerDetailComponent,
|
||||||
PartnerPartnerCustomOrderDetailComponent,
|
PartnerPartnerCustomOrderDetailComponent,
|
||||||
PartnerPartnerOrderDetailComponent,
|
PartnerPartnerOrderDetailComponent,
|
||||||
PartnerAccountManagementListComponent];
|
PartnerAccountManagementListComponent,
|
||||||
|
PartnerAccountManagementVirtualAccountDetailComponent];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [...COMPONENTS],
|
declarations: [...COMPONENTS],
|
||||||
|
|||||||
@ -110,7 +110,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
|||||||
default: '',
|
default: '',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
@ -123,7 +123,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'goodresource:settlement:type' },
|
params: { dictKey: 'goodresource:settlement:type' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -501,7 +501,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'receipt:type' },
|
params: { dictKey: 'receipt:type' },
|
||||||
containsAllLable: false,
|
containsAllLabel: false,
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
errors: { required: '请选择' },
|
errors: { required: '请选择' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -382,7 +382,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
|
|||||||
// _$expand: (value: boolean) => value
|
// _$expand: (value: boolean) => value
|
||||||
// },
|
// },
|
||||||
// allowClear: true,
|
// allowClear: true,
|
||||||
// containsAllLable: true,
|
// containsAllLabel: true,
|
||||||
// asyncData: () => this.shipperSrv.getEnterpriseProject(this.sf.value?.shipperAppUserId)
|
// asyncData: () => this.shipperSrv.getEnterpriseProject(this.sf.value?.shipperAppUserId)
|
||||||
// } as SFSelectWidgetSchema
|
// } as SFSelectWidgetSchema
|
||||||
// },
|
// },
|
||||||
@ -402,7 +402,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
@ -416,7 +416,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'goodresource:audit:status' },
|
params: { dictKey: 'goodresource:audit:status' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
|
|||||||
@ -232,7 +232,7 @@ export class CancellationInvoiceComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'vatinv:status' },
|
params: { dictKey: 'vatinv:status' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
|
|||||||
@ -106,7 +106,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'car:color' },
|
params: { dictKey: 'car:color' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isSelf: {
|
isSelf: {
|
||||||
|
|||||||
@ -87,7 +87,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
|||||||
title: '车牌颜色',
|
title: '车牌颜色',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'car:color' }
|
params: { dictKey: 'car:color' }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -109,7 +109,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'car:model' },
|
params: { dictKey: 'car:model' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -121,7 +121,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'car:length' },
|
params: { dictKey: 'car:length' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,11 +61,13 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
return {
|
return {
|
||||||
...this.sf?.value,
|
...this.sf?.value,
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
get reqParams2() {
|
get reqParams2() {
|
||||||
return {
|
return {
|
||||||
...this.sf?.value,
|
...this.sf?.value,
|
||||||
}};
|
}
|
||||||
|
};
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
public service: WaybillManagementServe,
|
public service: WaybillManagementServe,
|
||||||
@ -110,7 +112,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'exception:report:type' },
|
params: { dictKey: 'exception:report:type' },
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@ -159,7 +159,7 @@ tabs = {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value,
|
||||||
},
|
},
|
||||||
@ -170,7 +170,7 @@ tabs = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
|
|||||||
@ -171,7 +171,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -182,7 +182,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
containsAllLable: true,
|
containsAllLabel: true,
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export class DictSelectComponent implements OnInit, ControlValueAccessor {
|
|||||||
@Input() params = {};// 请求参数
|
@Input() params = {};// 请求参数
|
||||||
|
|
||||||
dictList: any[] = [];
|
dictList: any[] = [];
|
||||||
@Input() containsAllLable = true; // 是否包含全部这一选项
|
@Input() containsAllLabel = true; // 是否包含全部这一选项
|
||||||
@Input() mode: 'multiple' | 'tags' | 'default' = 'default';
|
@Input() mode: 'multiple' | 'tags' | 'default' = 'default';
|
||||||
|
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ export class DictSelectComponent implements OnInit, ControlValueAccessor {
|
|||||||
this.service.getDictList(this.url || this.defaultUrl, this.params).subscribe(res => {
|
this.service.getDictList(this.url || this.defaultUrl, this.params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.dictList = res || [];
|
this.dictList = res || [];
|
||||||
if (this.dictList.length > 0 && this.containsAllLable) {
|
if (this.dictList.length > 0 && this.containsAllLabel) {
|
||||||
const obj = { label: '全部', value: '' };
|
const obj = { label: '全部', value: '' };
|
||||||
this.dictList.unshift(obj);
|
this.dictList.unshift(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
-->
|
-->
|
||||||
<sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
|
<sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
|
||||||
<app-dict-select [url]="ui?.url" [ngModel]="value" [params]="ui?.params" (ngModelChange)="change($event)"
|
<app-dict-select [url]="ui?.url" [ngModel]="value" [params]="ui?.params" (ngModelChange)="change($event)"
|
||||||
[containsAllLable]="ui?.containsAllLable" [mode]="ui?.mode" name="sf.dict.select">
|
[containsAllLabel]="ui?.containsAllLabel" [mode]="ui?.mode" name="sf.dict.select">
|
||||||
</app-dict-select>
|
</app-dict-select>
|
||||||
</sf-item-wrap>
|
</sf-item-wrap>
|
||||||
<!-- <sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
|
<!-- <sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
|
||||||
|
|||||||
Reference in New Issue
Block a user