Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
Taric Xin
2022-04-19 09:52:56 +08:00
15 changed files with 126 additions and 105 deletions

View File

@ -88,8 +88,8 @@ export class DatatableBusiindexComponent implements OnInit {
if (res) { if (res) {
this.chartData = res this.chartData = res
if(flag) { if(flag) {
// this.pillar.reRender() this.pillar.reRender()
// this.curve.reRender() this.curve.reRender()
} }
} }
}) })

View File

@ -4,18 +4,18 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-03-30 17:57:46 * @Date : 2022-03-30 17:57:46
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-18 16:37:41 * @LastEditTime : 2022-04-18 17:21:43
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\salesman\\salesman.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\salesman\\salesman.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 [nzExtra]="extraTemplate"> <nz-card >
<ng-template #extraTemplate> <div nz-row nzGutter="8">
<div class="chooseBox"> <div nz-col [nzXl]="24" [nzLg]="24" [nzSm]="24" [nzXs]="24">
<sf #sf [schema]="searchSchema" button="none" <sf #sf [schema]="searchSchema" button="none"
[ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:4,xl:4, lg: 4, md: 4, sm: 4, xs: 4,gutter:4 } } }" [ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:5,xl:4, lg: 8, md: 12, sm: 12, xs: 24,gutter:20 } } }"
[compact]="true"> [compact]="true">
<ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema"> <ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema">
<div class="chooseBox"> <div class="chooseBox">
@ -37,7 +37,7 @@
</ng-template> </ng-template>
</sf> </sf>
</div> </div>
</ng-template> </div>
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPartComplianceReportPage" <st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPartComplianceReportPage"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }" [scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"

View File

@ -1,4 +1,7 @@
.chooseBox {
display: flex;
float : right;
}
.timeBox { .timeBox {
display: flex; display: flex;

View File

@ -68,7 +68,8 @@ export class DatatableComplianceSalesmanComponent implements OnInit {
ui: { ui: {
class: 'custom', class: 'custom',
widget: 'custom', widget: 'custom',
grid: { xxl: 12, xl: 12, lg: 12, md: 12, sm: 12, xs: 12 } grid: { xxl: 9, xl: 10, lg: 12, md: 24, sm: 24, xs: 24 }
} }
} }
}, },

View File

@ -20,6 +20,7 @@ export class DatatableMancustomtableComponent implements OnInit {
mode = 'year'; mode = 'year';
date: any = null; date: any = null;
defineDate = []; defineDate = [];
resourceStatus: number = 1;
time: any = ['2022-01-01 00:00:00']; time: any = ['2022-01-01 00:00:00'];
dateFormat = 'yyyy'; dateFormat = 'yyyy';
today = new Date(); today = new Date();
@ -61,31 +62,37 @@ export class DatatableMancustomtableComponent implements OnInit {
} }
}; };
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '部门', index: 'enterpriseName', className: 'text-center', width: '200px' }, { title: '部门', index: 'department', className: 'text-center', width: '200px' },
{ title: '业务员', index: 'registerTime', className: 'text-center', width: '200px' }, { title: '业务员', index: 'salesmen', className: 'text-center', width: '200px' },
{ title: '已认证货主数', index: 'customerType', className: 'text-center', width: '100px' }, { title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px', iif: ()=> {
{ title: '新增合伙人', index: 'customerType', className: 'text-center', width: '100px' }, console.log(this.resourceStatus);
{ title: '合伙人活跃率', index: 'customerType', className: 'text-center', width: '100px' }, return this.resourceStatus !== 1
{ title: '主动合伙人', index: 'customerType', className: 'text-center', width: '100px' },
{ title: '纪念合伙人', index: 'customerType', className: 'text-center', width: '100px' }, } },
{ title: '流失合伙人', index: 'customerType', className: 'text-center', width: '100px' }, { title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '100px' },
{ title: '未搭档合伙人', index: 'customerType', className: 'text-center', width: '100px' }, { title: '新增合伙人', index: 'addCount', className: 'text-center', width: '100px' },
{ title: '新增货主数', index: 'salesmanName', className: 'text-center', width: '100px' }, { title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '100px' },
{ title: '货主活跃率', index: 'partnerName', className: 'text-center', width: '100px' }, { title: '活跃合伙人数', index: 'aliveCount', className: 'text-center', width: '100px' },
{ title: '沉默合伙人数', index: 'silentCount', className: 'text-center', width: '100px' },
{ title: '流失合伙人数', index: 'drainCount', className: 'text-center', width: '100px' },
{ title: '未激活合伙人数', index: 'notActiveCount', className: 'text-center', width: '100px' },
{ title: '新增货主数', index: 'addCount', className: 'text-center', width: '100px' },
{ title: '货主活跃率', index: 'alivePer', className: 'text-center', width: '100px' },
{ {
title: '活跃货主数', title: '活跃货主数',
index: 'customerStatus', index: 'aliveCount',
className: 'text-center', className: 'text-center',
width: '100px' width: '100px'
}, },
{ title: '纪念货主数', index: 'zsl', className: 'text-center', width: '100px' }, { title: '沉默货主数', index: 'silentCount', className: 'text-center', width: '100px' },
{ {
title: '货主数', title: '流失货主数',
index: 'ddje', index: 'drainCount',
className: 'text-right', className: 'text-right',
width: '100px', width: '100px',
}, },
{ title: '未激活货主数', index: 'ysdds', className: 'text-center', width: '120px' } { title: '未激活货主数', index: 'notActiveCount', className: 'text-center', width: '120px' }
]; ];
/** /**
* 查询参数 * 查询参数
@ -103,10 +110,12 @@ export class DatatableMancustomtableComponent implements OnInit {
let params: any = { let params: any = {
time: this.time, time: this.time,
type: this.type, type: this.type,
parType: this.resourceStatus,
...this.sf?.value ...this.sf?.value
}; };
delete params._$expand; delete params._$expand;
delete params.sort;
return { ...params }; return { ...params };
} }
constructor(public service: DataService, private datePipe: DatePipe) {} constructor(public service: DataService, private datePipe: DatePipe) {}
@ -225,7 +234,9 @@ export class DatatableMancustomtableComponent implements OnInit {
this.isLoading = true; this.isLoading = true;
} }
selectChange(e: number) { selectChange(e: number) {
// this.resourceStatus = e; console.log(e);
this.resourceStatus = e + 1;
// this.initST(); // this.initST();
setTimeout(() => { setTimeout(() => {
this.st.load(); this.st.load();

View File

@ -156,7 +156,7 @@ export class DatatableOwnerComponent implements OnInit {
} else if(this.mode === 'date') { } else if(this.mode === 'date') {
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00'] this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
} else{ } else{
this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00'] this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + ' 00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
} }
this.st.reload({ ...this.reqParams }); this.st.reload({ ...this.reqParams });
} }

View File

@ -59,6 +59,7 @@ export class DatatableFinancetableComponent implements OnInit {
} else { } else {
this.type = 4 this.type = 4
} }
let params: any = { let params: any = {
time: this.time, time: this.time,
type: this.type type: this.type
@ -76,11 +77,11 @@ export class DatatableFinancetableComponent implements OnInit {
initPillarData(){ initPillarData(){
let type = 1 let type = 1
if(this.mode === 'year') { if (this.modeNext === 'year') {
type = 1 this.type = 1
} else if(this.mode === 'month') { } else if (this.modeNext === 'month') {
type = 2 this.type = 2
} }
const params: any = { const params: any = {
time: this.timeNext, time: this.timeNext,
type, type,
@ -121,7 +122,7 @@ export class DatatableFinancetableComponent implements OnInit {
} else if (this.mode === 'date') { } else if (this.mode === 'date') {
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00'] this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
} else { } else {
this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00'] this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + ' 00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
} }
this.st.reload({ ...this.reqParams }); this.st.reload({ ...this.reqParams });
} }
@ -138,9 +139,9 @@ export class DatatableFinancetableComponent implements OnInit {
} }
changeDataNext() { changeDataNext() {
if(this.mode === 'year') { if(this.modeNext === 'year') {
this.dateFormat = 'yyyy' this.dateFormat = 'yyyy'
} else if(this.mode === 'month') { } else if(this.modeNext === 'month') {
this.dateFormat = 'yyyy-MM' this.dateFormat = 'yyyy-MM'
} }
} }
@ -148,9 +149,9 @@ export class DatatableFinancetableComponent implements OnInit {
if(result === null) { if(result === null) {
return return
} }
if(this.mode === 'year') { if(this.modeNext === 'year') {
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00'] this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00']
} else if(this.mode === 'month') { } else if(this.modeNext === 'month') {
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00'] this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00']
} }
this.initPillarData(); this.initPillarData();

View File

@ -118,7 +118,7 @@ export class DatatableOperationtableComponent implements OnInit {
} else if (this.mode === 'date') { } else if (this.mode === 'date') {
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00'] this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
} else { } else {
this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00'] this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + ' 00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
} }
this.st.reload({ ...this.reqParams }); this.st.reload({ ...this.reqParams });
} }

View File

@ -13,9 +13,10 @@ export class OperationtablePieComponent implements OnInit {
@ViewChild('pie', { static: false }) pie!: G2PieComponent; @ViewChild('pie', { static: false }) pie!: G2PieComponent;
chartData: any = []; chartData: any = [];
el: any; el: any;
chart: any;
enterpriseInfoIdPie = '' enterpriseInfoIdPie = ''
interManlist: any = [] interManlist: any = []
innerView: any =[];
constructor(private service: DataService, private ngZone: NgZone) { constructor(private service: DataService, private ngZone: NgZone) {
} }
@ -27,7 +28,11 @@ export class OperationtablePieComponent implements OnInit {
this.service.request(this.service.$api_operationalReportWaybillStatusDistribution, {id: this.enterpriseInfoIdPie}).subscribe(res => { this.service.request(this.service.$api_operationalReportWaybillStatusDistribution, {id: this.enterpriseInfoIdPie}).subscribe(res => {
if (res) { if (res) {
this.chartData = res this.chartData = res
this.ngZone.runOutsideAngular(() => this.init(this.el)); // this.ngZone.runOutsideAngular(() => this.init(this.el));
setTimeout(() => {
this.chart?.data(this.chartData);
this.chart?.render();
}, 1000)
} }
}) })
} }
@ -39,21 +44,26 @@ export class OperationtablePieComponent implements OnInit {
} }
render(el: ElementRef<HTMLDivElement>): void { render(el: ElementRef<HTMLDivElement>): void {
this.el = el.nativeElement this.el = el.nativeElement
setTimeout(() => {
this.ngZone.runOutsideAngular(() => this.init(this.el));
}, 500)
} }
private init(el: HTMLElement): void { private init(el: HTMLElement): void {
const chart = new Chart({ this.chart = new Chart({
container: el, container: el,
autoFit: true, autoFit: true,
height: 400, height: 400,
}); });
// 新建一个 view 用来单独渲染Annotation // 新建一个 view 用来单独渲染Annotation
const innerView = chart.createView(); // const innerView = chart.createView();
chart.coordinate('theta', {
this.innerView = this.chart.createView();
this.chart.coordinate('theta', {
radius: 0.6, radius: 0.6,
innerRadius: 0.7, innerRadius: 0.7,
}); });
chart.data(this.chartData); // this.chart.data(this.chartData);
// chart.scale('percent', { // chart.scale('percent', {
// formatter: val => { // formatter: val => {
@ -62,10 +72,10 @@ export class OperationtablePieComponent implements OnInit {
// }, // },
// }); // });
chart.tooltip(false); this.chart.tooltip(false);
// 声明需要进行自定义图例字段: 'item' // 声明需要进行自定义图例字段: 'item'
chart.legend('item', { this.chart.legend('item', {
position: 'right', // 配置图例显示位置 position: 'right', // 配置图例显示位置
custom: true, // 关键字段,告诉 G2要使用自定义的图例 custom: true, // 关键字段,告诉 G2要使用自定义的图例
items: this.chartData.map((obj: any, index: any) => { items: this.chartData.map((obj: any, index: any) => {
@ -77,7 +87,7 @@ export class OperationtablePieComponent implements OnInit {
symbol: 'square', // marker 的形状 symbol: 'square', // marker 的形状
style: { style: {
r: 5, // marker 图形半径 r: 5, // marker 图形半径
fill: chart.getTheme().colors10[index], // marker 颜色,使用默认颜色,同图形对应 fill: this.chart.getTheme().colors10[index], // marker 颜色,使用默认颜色,同图形对应
}, },
}, // marker 配置 }, // marker 配置
}; };
@ -90,7 +100,7 @@ export class OperationtablePieComponent implements OnInit {
}, },
}); });
const interval = chart const interval = this.chart
.interval() .interval()
.adjust('stack') .adjust('stack')
.position('percent') .position('percent')
@ -102,7 +112,7 @@ export class OperationtablePieComponent implements OnInit {
}) })
.state({ .state({
active: { active: {
style: element => { style: (element: any) => {
const shape = element.shape; const shape = element.shape;
return { return {
lineWidth: 1, lineWidth: 1,
@ -114,17 +124,17 @@ export class OperationtablePieComponent implements OnInit {
}); });
// 移除图例点击过滤交互 // 移除图例点击过滤交互
chart.removeInteraction('legend-filter'); this.chart.removeInteraction('legend-filter');
chart.interaction('element-active'); this.chart.interaction('element-active');
chart.render(true); this.chart.render(true);
// 默认选择 // 默认选择
interval.elements[0].setState('selected', true); interval.elements[0].setState('selected', true);
const ele = interval.elements[0].getData(); const ele = interval.elements[0].getData();
// 监听 element 上状态的变化来动态更新 Annotation 信息 // 监听 element 上状态的变化来动态更新 Annotation 信息
chart.on('element:statechange', (ev: any) => { this.chart.on('element:statechange', (ev: any) => {
const { state, stateStatus, element } = ev.gEvent.originalEvent; const { state, stateStatus, element } = ev.gEvent.originalEvent;
// 本示例只需要监听 active 的状态变化 // 本示例只需要监听 active 的状态变化
@ -142,10 +152,10 @@ export class OperationtablePieComponent implements OnInit {
// 绘制 annotation // 绘制 annotation
let lastItem: any; let lastItem: any;
function updateAnnotation(data: any) { const updateAnnotation = (data: any) => {
if (data.item !== lastItem) { if (data.item !== lastItem) {
innerView.annotation().clear(true); this.innerView.annotation().clear(true);
innerView this.innerView
.annotation() .annotation()
.text({ .text({
position: ['50%', '50%'], position: ['50%', '50%'],
@ -168,7 +178,7 @@ export class OperationtablePieComponent implements OnInit {
offsetX: -10, offsetX: -10,
offsetY: 20, offsetY: 20,
}) })
innerView.render(true); this.innerView.render(true);
lastItem = data.item; lastItem = data.item;
@ -176,9 +186,9 @@ export class OperationtablePieComponent implements OnInit {
} }
// 清空 annotation // 清空 annotation
function clearAnnotation() { function clearAnnotation(this: any) {
innerView.annotation().clear(true); this.innerView?.annotation()?.clear(true);
innerView.render(true); this.innerView.render(true);
lastItem = null; lastItem = null;
} }

View File

@ -60,13 +60,12 @@ export class DatatableReportingFundInfoComponent implements OnInit {
title: '本地校验', title: '本地校验',
render: 'checkStatus', render: 'checkStatus',
className: 'text-center', className: 'text-center',
type: 'enum', // type: 'enum',
// enum: {
enum: { // '0': '校验中',
'0': '校验中', // '1': '通过',
'1': '通过', // '2': '不通过'
'2': '不通过' // },
},
width: '10%', width: '10%',
}, },
{ title: '错误内容', index: 'remark', className: 'text-center', width: '20%', }, { title: '错误内容', index: 'remark', className: 'text-center', width: '20%', },

View File

@ -31,21 +31,22 @@
[page]="{ show: true, showSize: true, pageSizes: [10,20, 50, 100] }" [loading]="service.http.loading" [page]="{ show: true, showSize: true, pageSizes: [10,20, 50, 100] }" [loading]="service.http.loading"
(change)="changeSt($event)"> (change)="changeSt($event)">
<ng-template st-row="billPutStatus" let-item let-index="index"> <ng-template st-row="billPutStatus" let-item let-index="index">
<a *ngIf="item?.billPutStatus === 2" (click)="viewAuditResult(item)">{{filterStatus(item?.billPutStatus)}}</a> <a *ngIf="item?.billPutStatus === '2'" (click)="viewAuditResult(item)">{{filterStatus(item?.billPutStatus)}}</a>
<span *ngIf="item?.billPutStatus !== 2">{{filterStatus(item?.billPutStatus)}}</span> <span *ngIf="item?.billPutStatus !== '2'">{{filterStatus(item?.billPutStatus)}}</span>
</ng-template> </ng-template>
<ng-template st-row="driverPutStatus" let-item let-index="index"> <ng-template st-row="driverPutStatus" let-item let-index="index">
<a (click)="viewAuditResult(item)" *ngIf="item?.driverPutStatus === 2">{{filterStatus(item?.driverPutStatus)}}</a> <a (click)="viewAuditResult(item)"
<span *ngIf="item?.driverPutStatus !== 2">{{filterStatus(item?.driverPutStatus)}}</span> *ngIf="item?.driverPutStatus === '2'">{{filterStatus(item?.driverPutStatus)}}</a>
<span *ngIf="item?.driverPutStatus !== '2'">{{filterStatus(item?.driverPutStatus)}}</span>
</ng-template> </ng-template>
<ng-template st-row="carPutStatus" let-item let-index="index"> <ng-template st-row="carPutStatus" let-item let-index="index">
<a (click)="viewAuditResult(item)" *ngIf="item?.carPutStatus === 2">{{filterStatus(item?.carPutStatus)}}</a> <a (click)="viewAuditResult(item)" *ngIf="item?.carPutStatus === '2'">{{filterStatus(item?.carPutStatus)}}</a>
<span *ngIf="item?.carPutStatus !== 2">{{filterStatus(item?.carPutStatus)}}</span> <span *ngIf="item?.carPutStatus !== '2'">{{filterStatus(item?.carPutStatus)}}</span>
</ng-template> </ng-template>
<ng-template st-row="checkStatus" let-item let-index="index"> <ng-template st-row="checkStatus" let-item let-index="index">
<a *ngIf="item?.checkStatus === 2" (click)="viewResult(item)">{{filterCheckStatus(item?.checkStatus)}}</a> <a *ngIf="item?.checkStatus === '2'" (click)="viewResult(item)">{{filterCheckStatus(item?.checkStatus)}}</a>
<span *ngIf="item?.checkStatus !== 2">{{filterCheckStatus(item?.checkStatus)}}</span> <span *ngIf="item?.checkStatus !== '2'">{{filterCheckStatus(item?.checkStatus)}}</span>
</ng-template> </ng-template>
<ng-template st-row="billCode" let-item> <ng-template st-row="billCode" let-item>

View File

@ -283,10 +283,8 @@ export class DatatableOrderReportingComponent implements OnInit {
{ title: '', type: 'checkbox', className: 'text-center', width: '60px', }, { title: '', type: 'checkbox', className: 'text-center', width: '60px', },
{ title: '订单状态', index: 'billPutStatusLabel', className: 'text-center', width: '120px', }, { title: '订单状态', index: 'billPutStatusLabel', className: 'text-center', width: '120px', },
{ title: '司机状态', index: 'driverPutStatusLabel', className: 'text-center', width: '120px', }, { title: '司机状态', index: 'driverPutStatusLabel', className: 'text-center', width: '120px', },
{ title: '车辆状态', index: 'carPutStatusLabel', className: 'text-center', width: '120px', }, { title: '车辆状态', index: 'carPutStatusLabel', className: 'text-center', width: '120px', },
{ title: '本地校验', render: 'checkStatus', className: 'text-center', width: '120px', },
{ title: '本地校验', index: 'checkStatusLabel', className: 'text-center', width: '120px', },
{ {
title: '订单号', title: '订单号',
render: 'billCode', render: 'billCode',
@ -584,13 +582,13 @@ export class DatatableOrderReportingComponent implements OnInit {
} }
} }
filterCheckStatus(status: number) { filterCheckStatus(status: string | number) {
switch (status) { switch (status) {
case 0: case '0':
return '检测中'; return '检测中';
case 1: case '1':
return '通过'; return '通过';
case 2: case '2':
return '不通过'; return '不通过';
default: default:
return ''; return '';

View File

@ -64,13 +64,13 @@ export class DatatableReportingVerifyResultComponent implements OnInit {
}, },
{ title: '上传值', index: 'fieldValue', className: 'text-center', width: '150px', }, { title: '上传值', index: 'fieldValue', className: 'text-center', width: '150px', },
{ {
title: '本地校验', index: 'checkStatus', className: 'text-center', width: '100px', title: '本地校验', render: 'checkStatus', className: 'text-center', width: '100px',
type: 'enum', // type: 'enum',
enum: { // enum: {
0: '校验中', // 0: '校验中',
1: '通过', // 1: '通过',
2: '不通过' // 2: '不通过'
} // }
}, },
{ title: '错误内容', index: 'remark', className: 'text-center', width: '150px', }, { title: '错误内容', index: 'remark', className: 'text-center', width: '150px', },
] ]
@ -120,7 +120,7 @@ export class DatatableReportingVerifyResultComponent implements OnInit {
filterCheckStatus(status: number) { filterCheckStatus(status: number) {
switch (status) { switch (status) {
case 0: case 0:
return '校验中'; return '检测中';
case 1: case 1:
return '通过'; return '通过';
case 2: case 2:

View File

@ -93,10 +93,17 @@ export class OrderManagementComplaintComponent implements OnInit {
initSF() { initSF() {
this.schema = { this.schema = {
properties: { properties: {
_$expand: { type: 'boolean', ui: { hidden: true } },
complaintCode: { complaintCode: {
type: 'string', type: 'string',
title: '投诉单号' title: '投诉单号'
}, },
wayBillCode: {
type: 'string',
title: '运单号',
ui: {
}
},
complaintCause: { complaintCause: {
title: '投诉原因', title: '投诉原因',
type: 'string', type: 'string',
@ -124,7 +131,10 @@ export class OrderManagementComplaintComponent implements OnInit {
ui: { ui: {
widget: 'sl-from-to', widget: 'sl-from-to',
type: 'date', type: 'date',
format: 'yyyy-MM-dd' format: 'yyyy-MM-dd',
visibleIf: {
_$expand: (value: boolean) => value
},
} as SFDateWidgetSchema } as SFDateWidgetSchema
} }
} }

View File

@ -94,19 +94,6 @@ export class TaxManagementIndividualCollectComponent implements OnInit {
}, },
default: '' default: ''
}, },
declareResult: {
title: '申报结果',
type: 'string',
ui: {
placeholder: '请选择',
widget: 'dict-select',
params: { dictKey: 'service:type' },
containsAllLabel: true,
visibleIf: {
_$expand: (value: boolean) => value
}
}
},
overdueStatus: { overdueStatus: {
title: '是否逾期', title: '是否逾期',
type: 'string', type: 'string',