Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-18 09:51:21
|
* @Date : 2022-01-18 09:51:21
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-14 14:40:51
|
* @LastEditTime : 2022-04-18 16:40:52
|
||||||
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
// },
|
// },
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-test.eascs.com',
|
host: 'tms-api-dev.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -75,6 +75,11 @@ export class DatatableBusiindexComponent implements OnInit {
|
|||||||
} else if(this.mode === 'month') {
|
} else if(this.mode === 'month') {
|
||||||
type = 2
|
type = 2
|
||||||
}
|
}
|
||||||
|
if(this.modeNext === 'year') {
|
||||||
|
type = 1
|
||||||
|
} else if(this.modeNext === 'month') {
|
||||||
|
type = 2
|
||||||
|
}
|
||||||
const params: any = {
|
const params: any = {
|
||||||
time: this.timeNext,
|
time: this.timeNext,
|
||||||
type
|
type
|
||||||
@ -83,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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -106,15 +111,15 @@ export class DatatableBusiindexComponent 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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -122,10 +127,15 @@ export class DatatableBusiindexComponent implements OnInit {
|
|||||||
if(result === null) {
|
if(result === null) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(this.mode === 'year') {
|
console.log(this.mode);
|
||||||
|
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']
|
||||||
|
|
||||||
|
console.log(this.dateNext);
|
||||||
|
console.log(this.timeNext);
|
||||||
|
|
||||||
}
|
}
|
||||||
this.initData(true)
|
this.initData(true)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,9 +15,9 @@ export class BusitableCurveComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (this.chartData) {
|
if (this.chartData) {
|
||||||
// setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
// this.chart.render(true)
|
this.chart.render(true)
|
||||||
// }, 1000)
|
}, 1000)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -48,19 +48,23 @@ export class BusitableCurveComponent implements OnInit, OnChanges {
|
|||||||
year: {
|
year: {
|
||||||
range: [0, 1],
|
range: [0, 1],
|
||||||
},
|
},
|
||||||
value: {
|
number: {
|
||||||
min: 0,
|
min: -9999,
|
||||||
nice: true,
|
nice: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
const itemTpl = `
|
||||||
|
<div style="padding: 15px; color: red">
|
||||||
|
环比: {value}%
|
||||||
|
</div>
|
||||||
|
`
|
||||||
this.chart.tooltip({
|
this.chart.tooltip({
|
||||||
showCrosshairs: true, // 展示 Tooltip 辅助线
|
showCrosshairs: true, // 展示 Tooltip 辅助线
|
||||||
shared: true,
|
shared: true,
|
||||||
});
|
itemTpl: itemTpl
|
||||||
|
});
|
||||||
this.chart.line().position('time*value').label('value');
|
this.chart.line().position('time*number').label('number');
|
||||||
this.chart.point().position('time*value');
|
this.chart.point().position('time*number');
|
||||||
|
|
||||||
this.chart.render();
|
this.chart.render();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-04-06 14:32:03
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-04-18 14:25:25
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\busitable\\pillar\\pillar.component.ts
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
*/
|
||||||
import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
||||||
import { Chart } from '@antv/g2';
|
import { Chart } from '@antv/g2';
|
||||||
import { DataService } from 'src/app/routes/datatable/services/data.service';
|
import { DataService } from 'src/app/routes/datatable/services/data.service';
|
||||||
@ -45,10 +55,16 @@ export class BusitablePillarComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
this.chart.data(this.chartData);
|
this.chart.data(this.chartData);
|
||||||
|
|
||||||
|
const itemTpl = `
|
||||||
|
<div style="padding: 15px; color: red">
|
||||||
|
业绩量: {value}
|
||||||
|
</div>
|
||||||
|
`
|
||||||
this.chart.tooltip({
|
this.chart.tooltip({
|
||||||
|
showTitle: true,
|
||||||
showMarkers: false,
|
showMarkers: false,
|
||||||
});
|
itemTpl: itemTpl
|
||||||
|
});
|
||||||
this.chart.interval().position('time*number');
|
this.chart.interval().position('time*number');
|
||||||
this.chart.render();
|
this.chart.render();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-03-30 13:55:41
|
* @Date : 2022-03-30 13:55:41
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-15 17:28:46
|
* @LastEditTime : 2022-04-18 16:13:49
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\customer\\customer.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\customer\\customer.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
|
|||||||
@ -1,6 +1,46 @@
|
|||||||
|
<!--
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-03-30 17:57:46
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-04-18 17:21:43
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\salesman\\salesman.component.html
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
-->
|
||||||
<!-- 页头 -->
|
<!-- 页头 -->
|
||||||
<page-header-wrapper [title]="'数据报表'"></page-header-wrapper>
|
<page-header-wrapper [title]="'业务员-合规报告'"></page-header-wrapper>
|
||||||
<nz-card>
|
<nz-card >
|
||||||
<sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
|
|
||||||
<st #st [data]="url" [columns]="columns"></st>
|
<div nz-row nzGutter="8">
|
||||||
|
<div nz-col [nzXl]="24" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||||
|
<sf #sf [schema]="searchSchema" button="none"
|
||||||
|
[ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:5,xl:4, lg: 8, md: 12, sm: 12, xs: 24,gutter:20 } } }"
|
||||||
|
[compact]="true">
|
||||||
|
<ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema">
|
||||||
|
<div class="chooseBox">
|
||||||
|
<div class="timeBox">
|
||||||
|
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()">
|
||||||
|
<label nz-radio-button nzValue="year">年</label>
|
||||||
|
<label nz-radio-button nzValue="month">月</label>
|
||||||
|
<label nz-radio-button nzValue="date">日</label>
|
||||||
|
<label nz-radio-button nzValue="define">自定义</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
<div class="dateBox">
|
||||||
|
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'"
|
||||||
|
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||||
|
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'"
|
||||||
|
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
</sf>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPartComplianceReportPage"
|
||||||
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
|
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
|
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }">
|
||||||
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
.chooseBox {
|
||||||
|
display: flex;
|
||||||
|
float : right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeBox {
|
||||||
|
display: flex;
|
||||||
|
margin : 0 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dateBox {
|
||||||
|
display: inline-block;
|
||||||
|
margin : 0 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host::ng-deep {
|
||||||
|
.ant-form-item-control {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,45 +1,220 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { STColumn, STComponent } from '@delon/abc/st';
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
import { SFSchema } from '@delon/form';
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||||
|
import { differenceInCalendarDays } from 'date-fns';
|
||||||
|
import { DataService } from '../../../services/data.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-datatable-compliance-salesman',
|
selector: 'app-datatable-compliance-salesman',
|
||||||
templateUrl: './salesman.component.html',
|
templateUrl: './salesman.component.html',
|
||||||
|
styleUrls: ['./salesman.component.less'],
|
||||||
|
providers: [DatePipe]
|
||||||
|
|
||||||
})
|
})
|
||||||
export class DatatableComplianceSalesmanComponent implements OnInit {
|
export class DatatableComplianceSalesmanComponent implements OnInit {
|
||||||
url = `/user`;
|
url = `/user`;
|
||||||
|
@ViewChild('st', { static: false }) st!: STComponent;
|
||||||
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
|
_$expand = false;
|
||||||
|
type = 1;
|
||||||
|
mode = 'year';
|
||||||
|
date: any = null;
|
||||||
|
defineDate = [];
|
||||||
|
time: any = ['2022-01-01 00:00:00']
|
||||||
|
dateFormat = 'yyyy';
|
||||||
|
today = new Date();
|
||||||
|
ui: SFUISchema = {};
|
||||||
|
schema: SFSchema = {};
|
||||||
|
isLoading: boolean = false;
|
||||||
searchSchema: SFSchema = {
|
searchSchema: SFSchema = {
|
||||||
properties: {
|
properties: {
|
||||||
no: {
|
department: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '编号'
|
title: '',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请选择部门',
|
||||||
|
change: (value: any) => {
|
||||||
|
console.log(value);
|
||||||
|
this.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
customerName: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入业务员',
|
||||||
|
change: (value: any) => {
|
||||||
|
console.log(value);
|
||||||
|
this.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
salesmanName: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入客户名称',
|
||||||
|
change: (value: any) => {
|
||||||
|
this.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
no4: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
ui: {
|
||||||
|
class: 'custom',
|
||||||
|
widget: 'custom',
|
||||||
|
grid: { xxl: 9, xl: 10, lg: 12, md: 24, sm: 24, xs: 24 }
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
@ViewChild('st') private readonly st!: STComponent;
|
|
||||||
columns: STColumn[] = [
|
columns: STColumn[] = [
|
||||||
{ title: '编号', index: 'no' },
|
{ title: '部门', index: 'department', className: 'text-center', width: '200px' },
|
||||||
{ title: '调用次数', type: 'number', index: 'callNo' },
|
{ title: '业务员', index: 'salesmen', className: 'text-center', width: '100px' },
|
||||||
{ title: '头像', type: 'img', width: '50px', index: 'avatar' },
|
{ title: '客户数', index: 'cusCount', className: 'text-right', width: '100px', },
|
||||||
{ title: '时间', type: 'date', index: 'updatedAt' },
|
{ title: '订单数', index: 'billCount', className: 'text-center', width: '120px' },
|
||||||
{
|
{ title: '订单合格率', index: 'billComPer', className: 'text-right', width: '100px',format: (item: any) => {return ((item?.billComPer)*100).toFixed(2) + '%' }},
|
||||||
title: '',
|
{ title: '付款及时率', index: 'payTimePer', className: 'text-center', width: '130px',format: (item: any) => {return ((item?.payTimePer)*100).toFixed(2) + '%' } },
|
||||||
buttons: [
|
{ title: '货源单占比', index: 'goodResPer', className: 'text-right', width: '120px',format: (item: any) => {return ((item?.goodResPer)*100).toFixed(2) + '%' } },
|
||||||
// { text: '查看', click: (item: any) => `/form/${item.id}` },
|
{ title: '运费直付占比', index: 'feightPayPer', className: 'text-right', width: '100px', format: (item: any) => {return ((item?.feightPayPer)*100).toFixed(2) + '%' } },
|
||||||
// { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
/**
|
||||||
|
* 查询参数
|
||||||
|
*/
|
||||||
|
get reqParams() {
|
||||||
|
if(this.mode === 'year') {
|
||||||
|
this.type = 1
|
||||||
|
} else if(this.mode === 'month') {
|
||||||
|
this.type = 2
|
||||||
|
} else if(this.mode === 'date') {
|
||||||
|
this.type = 3
|
||||||
|
} else {
|
||||||
|
this.type = 4
|
||||||
|
}
|
||||||
|
let params: any = {
|
||||||
|
time: this.time,
|
||||||
|
type: this.type,
|
||||||
|
...this.sf?.value
|
||||||
|
};
|
||||||
|
|
||||||
constructor(private http: _HttpClient, private modal: ModalHelper) { }
|
delete params._$expand;
|
||||||
|
return { ...params };
|
||||||
ngOnInit(): void { }
|
|
||||||
|
|
||||||
add(): void {
|
|
||||||
// this.modal
|
|
||||||
// .createStatic(FormEditComponent, { i: { id: 0 } })
|
|
||||||
// .subscribe(() => this.st.reload());
|
|
||||||
}
|
}
|
||||||
|
constructor(public service: DataService, private datePipe: DatePipe) { }
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.initSF();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 初始化查询表单
|
||||||
|
*/
|
||||||
|
initSF() {
|
||||||
|
this.schema = {
|
||||||
|
properties: {
|
||||||
|
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||||
|
enterpriseName: {
|
||||||
|
type: 'string',
|
||||||
|
title: '货主名称',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
customerType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '客户类型',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
},
|
||||||
|
enum: [
|
||||||
|
{label: '直客', value: 2},
|
||||||
|
{label: '渠道客户', value: 3},
|
||||||
|
{label: '平台客户', value: 1},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
customerStatus: {
|
||||||
|
type: 'string',
|
||||||
|
title: '客户状态',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
},
|
||||||
|
enum: [
|
||||||
|
{label: '未激活', value: 1},
|
||||||
|
{label: '沉默', value: 2},
|
||||||
|
{label: '流失', value: 3},
|
||||||
|
{label: '活跃', value: 4},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
registerTime: {
|
||||||
|
title: '注册时间',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value,
|
||||||
|
},
|
||||||
|
} as SFDateWidgetSchema,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
type: 'object'
|
||||||
|
};
|
||||||
|
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||||
|
}
|
||||||
|
changeData(){
|
||||||
|
if(this.mode === 'year') {
|
||||||
|
this.dateFormat = 'yyyy'
|
||||||
|
} else if(this.mode === 'month') {
|
||||||
|
this.dateFormat = 'yyyy-MM'
|
||||||
|
} else {
|
||||||
|
this.dateFormat = 'yyyy-MM-dd'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onChange(result: any) {
|
||||||
|
if(result === null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(this.mode === 'year') {
|
||||||
|
this.time = [this.datePipe.transform(this.date, 'yyyy') + '-01-01 00:00:00']
|
||||||
|
} else if(this.mode === 'month') {
|
||||||
|
this.time = [this.datePipe.transform(this.date, 'yyyy-MM') + '-01 00:00:00']
|
||||||
|
} else if(this.mode === 'date') {
|
||||||
|
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
|
||||||
|
} 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.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
disabledDate = (current: Date): boolean =>
|
||||||
|
// Can not select days before today and today
|
||||||
|
differenceInCalendarDays(current, this.today) > 0;
|
||||||
|
|
||||||
|
export() {
|
||||||
|
// this.service.downloadFile(this.service.$api_exportUploadBill, this.sf.value, {});
|
||||||
|
}
|
||||||
|
search() {
|
||||||
|
this.st?.load(1)
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 伸缩查询条件
|
||||||
|
*/
|
||||||
|
expandToggle() {
|
||||||
|
this._$expand = !this._$expand;
|
||||||
|
this.sf?.setValue('/_$expand', this._$expand);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置表单
|
||||||
|
*/
|
||||||
|
resetSF() {
|
||||||
|
this.sf.reset();
|
||||||
|
this._$expand = false;
|
||||||
|
this.isLoading = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,51 @@
|
|||||||
<page-header [action]="phActionTpl">
|
<!--
|
||||||
<ng-template #phActionTpl>
|
* @Description :
|
||||||
<button (click)="add()" nz-button nzType="primary">新建</button>
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-03-30 17:57:46
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-04-18 16:45:14
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\customtable\\mancustomtable\\mancustomtable.component.html
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
-->
|
||||||
|
<!-- 页头 -->
|
||||||
|
<page-header-wrapper [title]="'业务员报告'"></page-header-wrapper>
|
||||||
|
<nz-card >
|
||||||
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
||||||
|
<nz-tab [nzTitle]="'客户'"></nz-tab>
|
||||||
|
<nz-tab [nzTitle]="'合伙人'"></nz-tab>
|
||||||
|
</nz-tabset>
|
||||||
|
<ng-template #extraTemplate>
|
||||||
|
<div class="chooseBox">
|
||||||
|
<div class="timeBox">
|
||||||
|
<sf #sf [schema]="searchSchema" button="none"
|
||||||
|
[ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:5,xl:4, lg: 8, md: 12, sm: 12, xs: 24,gutter:20 } } }"
|
||||||
|
[compact]="true">
|
||||||
|
<ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema">
|
||||||
|
<div class="chooseBox">
|
||||||
|
<div class="timeBox">
|
||||||
|
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()">
|
||||||
|
<label nz-radio-button nzValue="year">年</label>
|
||||||
|
<label nz-radio-button nzValue="month">月</label>
|
||||||
|
<label nz-radio-button nzValue="date">日</label>
|
||||||
|
<label nz-radio-button nzValue="define">自定义</label>
|
||||||
|
</nz-radio-group>
|
||||||
|
<div class="dateBox">
|
||||||
|
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'"
|
||||||
|
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||||
|
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'"
|
||||||
|
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
</sf>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</page-header>
|
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPartBusinessReportPage"
|
||||||
<nz-card>
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
<sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
|
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
<st #st [data]="url" [columns]="columns"></st>
|
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }">
|
||||||
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
.chooseBox {
|
||||||
|
display: flex;
|
||||||
|
float : right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeBox {
|
||||||
|
display: flex;
|
||||||
|
margin : 0 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dateBox {
|
||||||
|
display: inline-block;
|
||||||
|
margin : 0 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host::ng-deep {
|
||||||
|
.ant-form-item-control {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,45 +1,234 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { STColumn, STComponent } from '@delon/abc/st';
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
import { SFSchema } from '@delon/form';
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||||
|
import { differenceInCalendarDays } from 'date-fns';
|
||||||
|
import { DataService } from '../../../services/data.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-datatable-mancustomtable',
|
selector: 'app-datatable-mancustomtable',
|
||||||
templateUrl: './mancustomtable.component.html',
|
templateUrl: './mancustomtable.component.html',
|
||||||
|
styleUrls: ['./mancustomtable.component.less'],
|
||||||
|
providers: [DatePipe]
|
||||||
})
|
})
|
||||||
export class DatatableMancustomtableComponent implements OnInit {
|
export class DatatableMancustomtableComponent implements OnInit {
|
||||||
url = `/user`;
|
url = `/user`;
|
||||||
|
@ViewChild('st', { static: false }) st!: STComponent;
|
||||||
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
|
_$expand = false;
|
||||||
|
type = 1;
|
||||||
|
mode = 'year';
|
||||||
|
date: any = null;
|
||||||
|
defineDate = [];
|
||||||
|
time: any = ['2022-01-01 00:00:00'];
|
||||||
|
dateFormat = 'yyyy';
|
||||||
|
today = new Date();
|
||||||
|
ui: SFUISchema = {};
|
||||||
|
schema: SFSchema = {};
|
||||||
|
isLoading: boolean = false;
|
||||||
searchSchema: SFSchema = {
|
searchSchema: SFSchema = {
|
||||||
properties: {
|
properties: {
|
||||||
no: {
|
customerName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '编号'
|
title: '',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入客户名称',
|
||||||
|
change: (value: any) => {
|
||||||
|
console.log(value);
|
||||||
|
this.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
salesmanName: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入业务员',
|
||||||
|
change: (value: any) => {
|
||||||
|
this.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
no4: {
|
||||||
|
type: 'string',
|
||||||
|
title: '',
|
||||||
|
ui: {
|
||||||
|
class: 'custom',
|
||||||
|
widget: 'custom',
|
||||||
|
grid: { xxl: 12, xl: 12, lg: 24, md: 24, sm: 24, xs: 24 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ViewChild('st') private readonly st!: STComponent;
|
|
||||||
columns: STColumn[] = [
|
columns: STColumn[] = [
|
||||||
{ title: '编号', index: 'no' },
|
{ title: '部门', index: 'enterpriseName', className: 'text-center', width: '200px' },
|
||||||
{ title: '调用次数', type: 'number', index: 'callNo' },
|
{ title: '业务员', index: 'registerTime', className: 'text-center', width: '200px' },
|
||||||
{ title: '头像', type: 'img', width: '50px', index: 'avatar' },
|
{ title: '已认证货主数', index: 'customerType', className: 'text-center', width: '100px' },
|
||||||
{ title: '时间', type: 'date', index: 'updatedAt' },
|
{ 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: 'customerType', className: 'text-center', width: '100px' },
|
||||||
|
{ title: '流失合伙人', index: 'customerType', className: 'text-center', width: '100px' },
|
||||||
|
{ title: '未搭档合伙人', index: 'customerType', className: 'text-center', width: '100px' },
|
||||||
|
{ title: '新增货主数', index: 'salesmanName', className: 'text-center', width: '100px' },
|
||||||
|
{ title: '货主活跃率', index: 'partnerName', className: 'text-center', width: '100px' },
|
||||||
{
|
{
|
||||||
title: '',
|
title: '活跃货主数',
|
||||||
buttons: [
|
index: 'customerStatus',
|
||||||
// { text: '查看', click: (item: any) => `/form/${item.id}` },
|
className: 'text-center',
|
||||||
// { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
|
width: '100px'
|
||||||
]
|
},
|
||||||
}
|
{ title: '纪念货主数', index: 'zsl', className: 'text-center', width: '100px' },
|
||||||
|
{
|
||||||
|
title: '货货主数',
|
||||||
|
index: 'ddje',
|
||||||
|
className: 'text-right',
|
||||||
|
width: '100px',
|
||||||
|
},
|
||||||
|
{ title: '未激活货主数', index: 'ysdds', className: 'text-center', width: '120px' }
|
||||||
];
|
];
|
||||||
|
/**
|
||||||
|
* 查询参数
|
||||||
|
*/
|
||||||
|
get reqParams() {
|
||||||
|
if (this.mode === 'year') {
|
||||||
|
this.type = 1;
|
||||||
|
} else if (this.mode === 'month') {
|
||||||
|
this.type = 2;
|
||||||
|
} else if (this.mode === 'date') {
|
||||||
|
this.type = 3;
|
||||||
|
} else {
|
||||||
|
this.type = 4;
|
||||||
|
}
|
||||||
|
let params: any = {
|
||||||
|
time: this.time,
|
||||||
|
type: this.type,
|
||||||
|
...this.sf?.value
|
||||||
|
};
|
||||||
|
|
||||||
constructor(private http: _HttpClient, private modal: ModalHelper) { }
|
delete params._$expand;
|
||||||
|
return { ...params };
|
||||||
|
}
|
||||||
|
constructor(public service: DataService, private datePipe: DatePipe) {}
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.initSF();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 初始化查询表单
|
||||||
|
*/
|
||||||
|
initSF() {
|
||||||
|
this.schema = {
|
||||||
|
properties: {
|
||||||
|
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||||
|
enterpriseName: {
|
||||||
|
type: 'string',
|
||||||
|
title: '货主名称',
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
customerType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '客户类型',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择'
|
||||||
|
},
|
||||||
|
enum: [
|
||||||
|
{ label: '直客', value: 2 },
|
||||||
|
{ label: '渠道客户', value: 3 },
|
||||||
|
{ label: '平台客户', value: 1 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
customerStatus: {
|
||||||
|
type: 'string',
|
||||||
|
title: '客户状态',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择'
|
||||||
|
},
|
||||||
|
enum: [
|
||||||
|
{ label: '未激活', value: 1 },
|
||||||
|
{ label: '沉默', value: 2 },
|
||||||
|
{ label: '流失', value: 3 },
|
||||||
|
{ label: '活跃', value: 4 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
registerTime: {
|
||||||
|
title: '注册时间',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'sl-from-to',
|
||||||
|
type: 'date',
|
||||||
|
format: 'yyyy-MM-dd',
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
} as SFDateWidgetSchema
|
||||||
|
}
|
||||||
|
},
|
||||||
|
type: 'object'
|
||||||
|
};
|
||||||
|
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||||
|
}
|
||||||
|
changeData() {
|
||||||
|
if (this.mode === 'year') {
|
||||||
|
this.dateFormat = 'yyyy';
|
||||||
|
} else if (this.mode === 'month') {
|
||||||
|
this.dateFormat = 'yyyy-MM';
|
||||||
|
} else {
|
||||||
|
this.dateFormat = 'yyyy-MM-dd';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onChange(result: any) {
|
||||||
|
if (result === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.mode === 'year') {
|
||||||
|
this.time = [this.datePipe.transform(this.date, 'yyyy') + '-01-01 00:00:00'];
|
||||||
|
} else if (this.mode === 'month') {
|
||||||
|
this.time = [this.datePipe.transform(this.date, 'yyyy-MM') + '-01 00:00:00'];
|
||||||
|
} else if (this.mode === 'date') {
|
||||||
|
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00'];
|
||||||
|
} 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.st.reload({ ...this.reqParams });
|
||||||
|
}
|
||||||
|
disabledDate = (current: Date): boolean =>
|
||||||
|
// Can not select days before today and today
|
||||||
|
differenceInCalendarDays(current, this.today) > 0;
|
||||||
|
|
||||||
ngOnInit(): void { }
|
export() {
|
||||||
|
// this.service.downloadFile(this.service.$api_exportUploadBill, this.sf.value, {});
|
||||||
add(): void {
|
}
|
||||||
// this.modal
|
search() {
|
||||||
// .createStatic(FormEditComponent, { i: { id: 0 } })
|
this.st?.load(1);
|
||||||
// .subscribe(() => this.st.reload());
|
}
|
||||||
|
/**
|
||||||
|
* 伸缩查询条件
|
||||||
|
*/
|
||||||
|
expandToggle() {
|
||||||
|
this._$expand = !this._$expand;
|
||||||
|
this.sf?.setValue('/_$expand', this._$expand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置表单
|
||||||
|
*/
|
||||||
|
resetSF() {
|
||||||
|
this.sf.reset();
|
||||||
|
this._$expand = false;
|
||||||
|
this.isLoading = true;
|
||||||
|
}
|
||||||
|
selectChange(e: number) {
|
||||||
|
// this.resourceStatus = e;
|
||||||
|
// this.initST();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.st.load();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2021-12-27 10:30:56
|
* @Date : 2021-12-27 10:30:56
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-15 16:03:46
|
* @LastEditTime : 2022-04-18 16:37:20
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\services\\data.service.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\services\\data.service.ts
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -88,6 +88,11 @@ export class DataService extends BaseService {
|
|||||||
// 客户-合规报表
|
// 客户-合规报表
|
||||||
$api_listCusComplianceReportPage = `/api/sdc/report/listCusComplianceReportPage`;
|
$api_listCusComplianceReportPage = `/api/sdc/report/listCusComplianceReportPage`;
|
||||||
|
|
||||||
|
// 查询业务员报表-客户、合伙人
|
||||||
|
$api_listPartBusinessReportPage = `/api/sdc/report/listPartBusinessReportPage`;
|
||||||
|
// 业务员-合规报表
|
||||||
|
$api_listPartComplianceReportPage = `/api/sdc/report/listPartComplianceReportPage`;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
|
|||||||
@ -324,7 +324,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
enterpriseInfoId: {
|
enterpriseInfoName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
ui: {
|
ui: {
|
||||||
@ -334,7 +334,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
asyncData: () => this.shipperservice.getNetworkEnterpriseName()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
serviceType: {
|
serviceType: {
|
||||||
|
|||||||
@ -103,6 +103,17 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'drvcomplaint:cause' },
|
params: { dictKey: 'drvcomplaint:cause' },
|
||||||
|
hidden: this.selectedMainTabStatus == '1',
|
||||||
|
containsAllLabel: true
|
||||||
|
} as SFSelectWidgetSchema
|
||||||
|
},
|
||||||
|
shpComplaintCause: {
|
||||||
|
title: '投诉原因',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: { dictKey: 'drvcomplaint:cause' },
|
||||||
|
hidden: this.selectedMainTabStatus == '2',
|
||||||
containsAllLabel: true
|
containsAllLabel: true
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
@ -179,7 +190,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
title: '处理人',
|
title: '处理人',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
index: 'handlePartyLabel'
|
index: 'handlerName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '处理时间',
|
title: '处理时间',
|
||||||
|
|||||||
@ -299,14 +299,14 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
|
|||||||
placeholder: '请选择'
|
placeholder: '请选择'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
enterpriseInfoId: {
|
enterpriseInfoName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
asyncData: () => this.shipperservice.getNetworkEnterpriseName()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// goodsNameId: {
|
// goodsNameId: {
|
||||||
|
|||||||
@ -37,7 +37,8 @@ export class ETCInvoicedListComponent implements OnInit {
|
|||||||
const modal = this.nzModalService.create({
|
const modal = this.nzModalService.create({
|
||||||
nzTitle: '运单交易明细',
|
nzTitle: '运单交易明细',
|
||||||
nzContent: TransactionDetailsComponent,
|
nzContent: TransactionDetailsComponent,
|
||||||
nzWidth: 900,
|
nzNoAnimation: true,
|
||||||
|
nzWidth: 950,
|
||||||
nzComponentParams: { data: item },
|
nzComponentParams: { data: item },
|
||||||
nzOnOk: com => {
|
nzOnOk: com => {
|
||||||
console.log(com.selectedData);
|
console.log(com.selectedData);
|
||||||
@ -147,8 +148,8 @@ export class ETCInvoicedListComponent implements OnInit {
|
|||||||
|
|
||||||
private initST(): STColumn[] {
|
private initST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
{ title: '运单号', index: 'wayBillCode',width: 200 },
|
{ title: '运单号', index: 'wayBillCode', width: 200 },
|
||||||
{ title: '订单号', index: 'billCode',width: 200 },
|
{ title: '订单号', index: 'billCode', width: 200 },
|
||||||
{
|
{
|
||||||
title: '开票状态',
|
title: '开票状态',
|
||||||
index: 'invoicingStatus',
|
index: 'invoicingStatus',
|
||||||
@ -157,12 +158,12 @@ export class ETCInvoicedListComponent implements OnInit {
|
|||||||
width: 120
|
width: 120
|
||||||
},
|
},
|
||||||
{ title: '订单类型', index: 'billTypeLabel', width: 120 },
|
{ title: '订单类型', index: 'billTypeLabel', width: 120 },
|
||||||
{ title: '装货地', index: 'loadingPlace',width: 200 },
|
{ title: '装货地', index: 'loadingPlace', width: 200 },
|
||||||
{ title: '卸货地', index: 'dischargePlace' ,width: 200},
|
{ title: '卸货地', index: 'dischargePlace', width: 200 },
|
||||||
{ title: '司机信息', render: 'call1No' ,width: 200},
|
{ title: '司机信息', render: 'call1No', width: 200 },
|
||||||
{ title: '车辆信息', render: 'call12No',width: 200 },
|
{ title: '车辆信息', render: 'call12No', width: 200 },
|
||||||
{ title: '托运人', index: 'shipperAppUserName',width: 200 },
|
{ title: '托运人', index: 'shipperAppUserName', width: 200 },
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName' ,width: 200},
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: 200 },
|
||||||
{
|
{
|
||||||
title: '开票金额',
|
title: '开票金额',
|
||||||
index: 'invoicingAmount',
|
index: 'invoicingAmount',
|
||||||
@ -175,11 +176,9 @@ export class ETCInvoicedListComponent implements OnInit {
|
|||||||
title: '开票张数',
|
title: '开票张数',
|
||||||
index: 'invoicingNumber',
|
index: 'invoicingNumber',
|
||||||
width: 100,
|
width: 100,
|
||||||
type: 'widget',
|
className: 'text-right'
|
||||||
className: 'text-right',
|
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoicingNumber }) }
|
|
||||||
},
|
},
|
||||||
{ title: '申请时间', index: 'orderReceivingTime', type: 'date',width: 200 },
|
{ title: '申请时间', index: 'orderReceivingTime', type: 'date', width: 200 },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
|
|||||||
@ -27,6 +27,6 @@
|
|||||||
[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] }"
|
||||||
[loading]="false"
|
[loading]="false"
|
||||||
[scroll]="{ x: '860px', y: '400px' }"
|
[scroll]="{ x: '890px', y: '400px' }"
|
||||||
></st>
|
></st>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -20,7 +20,7 @@ import { TicketService } from '../../../services/ticket.service';
|
|||||||
templateUrl: './transaction-details.component.html'
|
templateUrl: './transaction-details.component.html'
|
||||||
})
|
})
|
||||||
export class TransactionDetailsComponent implements OnInit {
|
export class TransactionDetailsComponent implements OnInit {
|
||||||
data :any= [];
|
data: any = [];
|
||||||
selectedData = [];
|
selectedData = [];
|
||||||
url = `/api/fcc/ficoEtcInvoiceH/list/page`;
|
url = `/api/fcc/ficoEtcInvoiceH/list/page`;
|
||||||
@ViewChild('st', { static: true })
|
@ViewChild('st', { static: true })
|
||||||
@ -28,9 +28,15 @@ export class TransactionDetailsComponent implements OnInit {
|
|||||||
@ViewChild('sf', { static: false })
|
@ViewChild('sf', { static: false })
|
||||||
sf!: SFComponent;
|
sf!: SFComponent;
|
||||||
columns: STColumn[] = [
|
columns: STColumn[] = [
|
||||||
{ title: '交易id', index: 'id' },
|
{ title: '交易id', index: 'tradeId' },
|
||||||
{ title: '交易流水号', index: 'tradeFlowNo' },
|
{ title: '交易流水号', index: 'tradeFlowNo' },
|
||||||
{ title: '交易金额', index: 'fee' },
|
{
|
||||||
|
title: '交易金额',
|
||||||
|
index: 'fee',
|
||||||
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.fee }) }
|
||||||
|
},
|
||||||
{ title: '开票状态', index: 'stateLabel' },
|
{ title: '开票状态', index: 'stateLabel' },
|
||||||
{ title: '交易时间', index: 'exTime', type: 'date' }
|
{ title: '交易时间', index: 'exTime', type: 'date' }
|
||||||
];
|
];
|
||||||
@ -63,17 +69,15 @@ export class TransactionDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
|
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.data);
|
console.log(this.data);
|
||||||
|
|
||||||
}
|
}
|
||||||
get reqParams() {
|
get reqParams() {
|
||||||
const a: any = {};
|
const a: any = {};
|
||||||
if (this.data?.id) {
|
if (this.data?.id) {
|
||||||
a.wayBillId = this.data?.wayBillId;
|
a.waybillId = this.data?.wayBillId;
|
||||||
}
|
}
|
||||||
const params: any = Object.assign({}, this.sf?.value || {});
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
delete params._$expand;
|
delete params._$expand;
|
||||||
|
|||||||
@ -223,7 +223,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
|
|||||||
{ title: '卸货地', index: 'dischargePlace', width: '220px' },
|
{ title: '卸货地', index: 'dischargePlace', width: '220px' },
|
||||||
{ title: '司机信息', render: 'call1No', width: '140px' },
|
{ title: '司机信息', render: 'call1No', width: '140px' },
|
||||||
{ title: '车辆信息', render: 'call1N2o', width: '200px' },
|
{ title: '车辆信息', render: 'call1N2o', width: '200px' },
|
||||||
{ title: '车牌颜色', index: 'licenseCarNOColor', width: '140px' },
|
{ title: '车牌颜色', index: 'licenseCarNOColorLabel', width: '140px' },
|
||||||
{ title: '车辆是否已备案', index: 'putOnRecord', width: '150px', type: 'enum', enum: { false: '否', true: '是' } },
|
{ title: '车辆是否已备案', index: 'putOnRecord', width: '150px', type: 'enum', enum: { false: '否', true: '是' } },
|
||||||
{ title: '托运人', index: 'shipperAppUserName', width: '140px' },
|
{ title: '托运人', index: 'shipperAppUserName', width: '140px' },
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: '220px' },
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: '220px' },
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||||
<sf #sf [schema]="searchSchema"
|
<sf #sf [schema]="searchSchema"
|
||||||
[ui]="{ '*': { spanLabelFixed: 100,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
|
[ui]="{ '*': { spanLabelFixed: 110,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
|
||||||
[button]="'none'"></sf>
|
[button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
|
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
|
||||||
|
|||||||
@ -121,20 +121,27 @@ export class InputInvoiceComponent implements OnInit {
|
|||||||
invtype: {
|
invtype: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '发票类型',
|
title: '发票类型',
|
||||||
|
enum: [
|
||||||
|
{ value: '', label: '全部' },
|
||||||
|
{ value: '1', label: '运输专票' }
|
||||||
|
],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'select',
|
||||||
params: { dictKey: 'invoice:type' },
|
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
default: ''
|
||||||
},
|
},
|
||||||
hrto: {
|
hrto: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '销售方',
|
title: '销售方',
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入',
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
allowClear: true,
|
||||||
|
asyncData: () => this.service.getCRMCustomerId(),
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
@ -156,8 +163,8 @@ export class InputInvoiceComponent implements OnInit {
|
|||||||
title: '收票状态',
|
title: '收票状态',
|
||||||
enum: [
|
enum: [
|
||||||
{ value: '', label: '全部' },
|
{ value: '', label: '全部' },
|
||||||
{ value: 1, label: '是' },
|
{ value: '1', label: '新建' },
|
||||||
{ value: 0, label: '否' }
|
{ value: '2', label: '关闭' }
|
||||||
],
|
],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
@ -216,8 +223,8 @@ export class InputInvoiceComponent implements OnInit {
|
|||||||
private initST(): STColumn[] {
|
private initST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
|
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
|
||||||
{ title: '收票单号', index: 'inpinvcode', type: 'link', width: 170 },
|
{ title: '收票单号', index: 'inpinvcode', type: 'link', width: 190 },
|
||||||
{ title: '网络货运人', index: 'ltdName', width: 150 },
|
{ title: '网络货运人', index: 'ltdName', width: 220 },
|
||||||
{ title: '发票日期', index: 'invdate', type: 'date', width: 150, className: 'text-center' },
|
{ title: '发票日期', index: 'invdate', type: 'date', width: 150, className: 'text-center' },
|
||||||
{ title: '发票号', index: 'invoiceno', width: 130 },
|
{ title: '发票号', index: 'invoiceno', width: 130 },
|
||||||
{
|
{
|
||||||
@ -237,7 +244,7 @@ export class InputInvoiceComponent implements OnInit {
|
|||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invtax }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invtax }) }
|
||||||
},
|
},
|
||||||
{ title: '发票类型', index: 'invtype', width: 150, className: 'text-center' },
|
{ title: '发票类型', index: 'invtype', width: 150, className: 'text-center' },
|
||||||
{ title: '销售方', index: 'hrtoName', width: 150 },
|
{ title: '销售方', index: 'hrtoName', width: 200 },
|
||||||
{ title: '创建时间', index: 'createtime', type: 'date', width: 150, className: 'text-center' },
|
{ title: '创建时间', index: 'createtime', type: 'date', width: 150, className: 'text-center' },
|
||||||
{ title: '创建人', index: 'createbyname', width: 120 },
|
{ title: '创建人', index: 'createbyname', width: 120 },
|
||||||
{ title: '收票状态', index: 'stsLabel', width: 120, className: 'text-center' },
|
{ title: '收票状态', index: 'stsLabel', width: 120, className: 'text-center' },
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</se>
|
</se>
|
||||||
|
|
||||||
<se label="已开/全部订单数">
|
<se label="已开/全部订单数">
|
||||||
{{headerInfo?.vatinvHNum}} / {{headerInfo?.vatinvBillNum}}
|
{{headerInfo?.vatinvHNum}} / {{headerInfo?.ordlines}}
|
||||||
</se>
|
</se>
|
||||||
<se label="已开/全部发票金额">
|
<se label="已开/全部发票金额">
|
||||||
{{headerInfo?.vatinvHAmount |currency}} / {{headerInfo?.vatinvHNumAmount |currency}}
|
{{headerInfo?.vatinvHAmount |currency}} / {{headerInfo?.vatinvHNumAmount |currency}}
|
||||||
|
|||||||
@ -78,13 +78,21 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
return {
|
return {
|
||||||
...this.sf?.value,
|
...this.sf?.value,
|
||||||
replyStatus: this.resourceStatus || 0
|
replyStatus: this.resourceStatus || 0,
|
||||||
|
reportingTime: {
|
||||||
|
start: this.sf?.value?.reportingTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.reportingTime?.[1] || ''
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
get reqParams2() {
|
get reqParams2() {
|
||||||
return {
|
return {
|
||||||
...this.sf?.value,
|
...this.sf?.value,
|
||||||
replyStatus: this.resourceStatus || 1
|
replyStatus: this.resourceStatus || 1,
|
||||||
|
reportingTime: {
|
||||||
|
start: this.sf?.value?.reportingTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.reportingTime?.[1] || ''
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -124,6 +124,30 @@ export class ShipperBaseService extends BaseService {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getNetworkFreightForwarder(params = {}, containerAll = false) {
|
getNetworkFreightForwarder(params = {}, containerAll = false) {
|
||||||
|
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
|
||||||
|
map((res: any) => {
|
||||||
|
if (!res) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const list = res.map((item: any) => {
|
||||||
|
return {
|
||||||
|
label: item.enterpriseName,
|
||||||
|
value: item.id
|
||||||
|
};
|
||||||
|
});
|
||||||
|
const obj = [];
|
||||||
|
if (containerAll) {
|
||||||
|
obj.push({ label: '全部', value: '' });
|
||||||
|
}
|
||||||
|
return [...obj, ...list];
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 获取网络货运人
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getNetworkEnterpriseName(params = {}, containerAll = false) {
|
||||||
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
|
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
|
||||||
map((res: any) => {
|
map((res: any) => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
@ -169,6 +193,31 @@ export class ShipperBaseService extends BaseService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取CRM客户 crmCustomerId
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getCRMCustomerId(params = {}, containerAll = false) {
|
||||||
|
return this.request(this.$api_get_crm_customer_list, params).pipe(
|
||||||
|
map((res: any) => {
|
||||||
|
if (!res) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const list = res.map((item: any) => {
|
||||||
|
return {
|
||||||
|
label: item.enterpriseName,
|
||||||
|
value: item.crmCustomerId
|
||||||
|
};
|
||||||
|
});
|
||||||
|
const obj = [];
|
||||||
|
if (containerAll) {
|
||||||
|
obj.push({ label: '全部', value: '' });
|
||||||
|
}
|
||||||
|
return [...obj, ...list];
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取货主企业列表
|
* 获取货主企业列表
|
||||||
* @returns
|
* @returns
|
||||||
|
|||||||
Reference in New Issue
Block a user