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

This commit is contained in:
wangshiming
2022-03-01 19:59:27 +08:00
18 changed files with 68 additions and 55 deletions

View File

@ -49,7 +49,7 @@ export class AdvanceCollectionComponent implements OnInit {
} }
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
private initSF(): SFSchema { private initSF(): SFSchema {

View File

@ -90,7 +90,7 @@ export class CostManagementComponent implements OnInit {
} }
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
routeTo(url: string, params?: any, status?: any) { routeTo(url: string, params?: any, status?: any) {
@ -188,7 +188,7 @@ export class CostManagementComponent implements OnInit {
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
allowClear: true, allowClear: true,
onSearch: (q: any) => { onSearch: (q: any) => {
let str =q.replace(/^\s+|\s+$/g,""); let str = q.replace(/^\s+|\s+$/g, '');
if (str) { if (str) {
return this.service return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: str }) .request(this.service.$api_enterpriceList, { enterpriseName: str })
@ -213,10 +213,10 @@ export class CostManagementComponent implements OnInit {
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
allowClear: true, allowClear: true,
onSearch: (q: any) => { onSearch: (q: any) => {
let str =q.replace(/^\s+|\s+$/g,""); let str = q.replace(/^\s+|\s+$/g, '');
if (str) { if (str) {
return this.service return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: str}) .request(this.service.$api_enterpriceList, { enterpriseName: str })
.pipe(map((res: any) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum)))) .pipe(map((res: any) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
.toPromise(); .toPromise();
} else { } else {
@ -302,13 +302,13 @@ export class CostManagementComponent implements OnInit {
{ {
text: '浏览', text: '浏览',
click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id, { status: item?.feetypeLabel }), click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id, { status: item?.feetypeLabel }),
acl: { ability: ['FINANCIAL-COST-view'] }, acl: { ability: ['FINANCIAL-COST-view'] }
}, },
{ {
text: '审核', text: '审核',
click: item => this.auditAction(item), click: item => this.auditAction(item),
iif: item => item.sts === 2, iif: item => item.sts === 2,
acl: { ability: ['FINANCIAL-COST-audit'] }, acl: { ability: ['FINANCIAL-COST-audit'] }
} }
// { // {
// text: '修改', // text: '修改',

View File

@ -74,7 +74,7 @@ export class DriverAccountDetailComponent implements OnInit {
stChange(e: STChange): void {} stChange(e: STChange): void {}
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
goBack() { goBack() {

View File

@ -74,7 +74,7 @@ export class DriverAccountComponent implements OnInit {
} }
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
private initSF(): SFSchema { private initSF(): SFSchema {

View File

@ -74,7 +74,7 @@ export class FreightAccountDetailComponent implements OnInit {
stChange(e: STChange): void {} stChange(e: STChange): void {}
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
goBack() { goBack() {

View File

@ -80,7 +80,7 @@ export class FreightAccountComponent implements OnInit {
} }
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
private initSF(): SFSchema { private initSF(): SFSchema {
@ -171,7 +171,7 @@ export class FreightAccountComponent implements OnInit {
{ title: '联系人', width: 120, index: 'name' }, { title: '联系人', width: 120, index: 'name' },
{ title: '联系人电话', width: 140, index: 'phone' }, { title: '联系人电话', width: 140, index: 'phone' },
{ title: '网络货运人', width: 140, index: 'ltdName' }, { title: '网络货运人', width: 140, index: 'ltdName' },
{ title: '银行类型',width: 120, index: 'bankTypeLabel' }, { title: '银行类型', width: 120, index: 'bankTypeLabel' },
{ title: '虚拟账户', width: 140, index: 'virtualAccount' }, { title: '虚拟账户', width: 140, index: 'virtualAccount' },
{ {
title: '可用余额', title: '可用余额',
@ -199,7 +199,7 @@ export class FreightAccountComponent implements OnInit {
{ {
title: '状态', title: '状态',
index: 'stateDeletedLabel', index: 'stateDeletedLabel',
width: 80, width: 80
}, },
{ {
title: '操作', title: '操作',

View File

@ -65,7 +65,7 @@ export class PlatformAccountDetailComponent implements OnInit {
stChange(e: STChange): void {} stChange(e: STChange): void {}
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
goBack() { goBack() {

View File

@ -49,7 +49,7 @@ export class RechargeRecordComponent implements OnInit {
} }
exportList() { exportList() {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps }); this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageSize: -1 });
} }
private initSF(): SFSchema { private initSF(): SFSchema {

View File

@ -104,10 +104,10 @@ export class InvoiceRequestedDetailComponent implements OnInit {
id: this.id id: this.id
}; };
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => { this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
console.log(res);
if (res) { if (res) {
this.loadHeadInfo(); this.loadHeadInfo();
this.st.load(1); this.st.load(1);
this.service.msgSrv.success('开票成功');
modal.destroy(); modal.destroy();
} }
}); });
@ -122,10 +122,10 @@ export class InvoiceRequestedDetailComponent implements OnInit {
id: this.id id: this.id
}; };
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => { this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
console.log(res);
if (res) { if (res) {
this.loadHeadInfo(); this.loadHeadInfo();
this.st.load(1); this.st.load(1);
this.service.msgSrv.success('开票成功');
modal.destroy(); modal.destroy();
} }
}); });

View File

@ -113,7 +113,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
exportList() { exportList() {
const params = this.reqParams; const params = this.reqParams;
this.service.downloadFile(this.service.$api_export_driver_cap, params); this.service.downloadFile(this.service.$api_export_driver_cap, {...params, pageSize: -1});
} }
private initSF(): SFSchema { private initSF(): SFSchema {

View File

@ -61,7 +61,7 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
exportList() { exportList() {
const params = this.reqParams; const params = this.reqParams;
this.service.downloadFile(this.service.$api_export_driver_cap, params); this.service.downloadFile(this.service.$api_export_driver_cap, { ...params, pageSize: -1 });
} }
private initSF(): SFSchema { private initSF(): SFSchema {

View File

@ -26,7 +26,13 @@ export class UserCenterComponentsDriverComponent implements OnInit {
promotersTelephone = ''; promotersTelephone = '';
resourceStatus: any = 10; resourceStatus: any = 10;
constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute,private modalHelper: ModalHelper) {} constructor(
public service: UsermanageService,
private modal: NzModalService,
private router: Router,
private ar: ActivatedRoute,
private modalHelper: ModalHelper
) {}
/** /**
* 查询参数 * 查询参数
@ -134,7 +140,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
exportList() { exportList() {
const params = this.reqParams; const params = this.reqParams;
this.service.downloadFile(this.service.$api_export_driver, params); this.service.downloadFile(this.service.$api_export_driver, { ...params, pageSize: -1 });
} }
private initSF(): SFSchema { private initSF(): SFSchema {
@ -223,7 +229,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '用户注册', value: 1 }, { label: '用户注册', value: 1 },
{ label: '货主添加', value: 2 }, { label: '货主添加', value: 2 },
{ label: '运营添加', value: 3 }, { label: '运营添加', value: 3 }
], ],
default: '', default: '',
ui: { ui: {
@ -249,18 +255,18 @@ export class UserCenterComponentsDriverComponent implements OnInit {
}; };
} }
add() { add() {
this.modalHelper.create(CarSettleAddDriverComponent, { size: 900 }).subscribe((res) => { this.modalHelper.create(CarSettleAddDriverComponent, { size: 900 }).subscribe(res => {
this.st.load(); this.st.load();
}); });
} }
private initST(): STColumn[] { private initST(): STColumn[] {
return [ return [
{ title: '司机姓名', className: 'text-center', index: 'name' , width: 150}, { title: '司机姓名', className: 'text-center', index: 'name', width: 150 },
{ title: '手机号', className: 'text-center', index: 'mobile',width: 150 }, { title: '手机号', className: 'text-center', index: 'mobile', width: 150 },
{ title: '身份证号码', className: 'text-center', index: 'identityNo', width: 200 }, { title: '身份证号码', className: 'text-center', index: 'identityNo', width: 200 },
{ title: '当前车辆', className: 'text-center', render: 'carNo' , width: 200}, { title: '当前车辆', className: 'text-center', render: 'carNo', width: 200 },
{ title: '驾驶证审核人', className: 'text-center', index: 'approvalUserName' , width: 200}, { title: '驾驶证审核人', className: 'text-center', index: 'approvalUserName', width: 200 },
{ title: '审核时间', className: 'text-center', index: 'approvalTime' , width: 200}, { title: '审核时间', className: 'text-center', index: 'approvalTime', width: 200 },
{ {
title: '实名认证状态', title: '实名认证状态',
className: 'text-center', className: 'text-center',
@ -271,9 +277,8 @@ export class UserCenterComponentsDriverComponent implements OnInit {
0: { text: '待审核', color: 'default' }, 0: { text: '待审核', color: 'default' },
1: { text: '通过', color: 'success' }, 1: { text: '通过', color: 'success' },
2: { text: '驳回', color: 'warning' } 2: { text: '驳回', color: 'warning' }
} },
, width: 180 width: 180
}, },
{ {
title: '驾驶证状态', title: '驾驶证状态',
@ -286,8 +291,8 @@ export class UserCenterComponentsDriverComponent implements OnInit {
20: { text: '审核通过', color: 'success' }, 20: { text: '审核通过', color: 'success' },
30: { text: '驳回', color: 'warning' }, 30: { text: '驳回', color: 'warning' },
40: { text: '证件过期', color: 'error' } 40: { text: '证件过期', color: 'error' }
} },
, width: 180 width: 180
}, },
{ {
title: '从业资格证状态', title: '从业资格证状态',
@ -300,24 +305,31 @@ export class UserCenterComponentsDriverComponent implements OnInit {
20: { text: '审核通过', color: 'success' }, 20: { text: '审核通过', color: 'success' },
30: { text: '驳回', color: 'warning' }, 30: { text: '驳回', color: 'warning' },
40: { text: '证件过期', color: 'error' } 40: { text: '证件过期', color: 'error' }
} },
, width: 180 width: 180
},
{ title: '推广业务员', className: 'text-center', render: 'promotersTelephone', width: 180 },
{
title: '注册渠道',
className: 'text-center',
index: 'source',
type: 'enum',
enum: { 1: '用户注册', 2: '货主添加', 3: '运营添加' },
width: 150
}, },
{ title: '推广业务员', className: 'text-center', render: 'promotersTelephone' , width: 180},
{ title: '注册渠道', className: 'text-center', index: 'source', type: 'enum', enum: { 1: '用户注册', 2: '货主添加', 3: '运营添加' }, width: 150 },
{ title: '注册时间', className: 'text-center', index: 'createTime', width: 200 }, { title: '注册时间', className: 'text-center', index: 'createTime', width: 200 },
{ {
title: '操作', title: '操作',
width: '110px', width: '110px',
className: 'text-center', className: 'text-center',
fixed:'right', fixed: 'right',
buttons: [ buttons: [
{ {
text: '查看<br/>', text: '查看<br/>',
click: item => { click: item => {
this.router.navigate(['./detail', item.appUserId], { relativeTo: this.ar }); this.router.navigate(['./detail', item.appUserId], { relativeTo: this.ar });
}, },
acl: { ability: ['USERCENTER-DRIVER-LIST-view'] }, acl: { ability: ['USERCENTER-DRIVER-LIST-view'] }
}, },
// { // {
// text: '基础设置', // text: '基础设置',
@ -327,13 +339,13 @@ export class UserCenterComponentsDriverComponent implements OnInit {
{ {
text: '资金账户', text: '资金账户',
click: item => this.showAccountDetail(item), click: item => this.showAccountDetail(item),
acl: { ability: ['USERCENTER-DRIVER-LIST-account'] }, acl: { ability: ['USERCENTER-DRIVER-LIST-account'] }
} }
] ]
} }
]; ];
} }
viewCar(item: any) { viewCar(item: any) {
this.router.navigate(['/vehicle/list/detail/' + item.carId] ); this.router.navigate(['/vehicle/list/detail/' + item.carId]);
} }
} }

View File

@ -102,17 +102,18 @@ export class AuditAdminComponent implements OnInit {
default: user.creditPhoto default: user.creditPhoto
}, },
approvalOpinion: { approvalOpinion: {
title: '备注', title: this.isReadOnly ? '驳回原因' : '备注',
type: 'string', type: 'string',
maxLength: 100, maxLength: 100,
ui: { ui: {
placeholder: '审核不通过需要说明原因', placeholder: '审核不通过需要说明原因',
widget: 'textarea', widget: this.i?.approvalStatus === 30 && this.isReadOnly ? 'text' : 'textarea',
autosize: { minRows: 3, maxRows: 6 }, autosize: { minRows: 3, maxRows: 6 },
visibleIf: { visibleIf: {
expand: (value: boolean) => !this.isReadOnly expand: (value: boolean) => !this.isReadOnly || this.i?.approvalStatus === 30
} }
} },
default: user.approvalOpinion
} }
} }
}; };

View File

@ -228,7 +228,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
} }
exportList() { exportList() {
const params = { ...this.sf.value, flag: this.tabType, listSource: 2 }; const params = { ...this.sf.value, flag: this.tabType, listSource: 2, pageSize: -1 };
this.service.downloadFile(this.service.$api_export_enterprise, params); this.service.downloadFile(this.service.$api_export_enterprise, params);
} }
@ -318,10 +318,10 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
return [ return [
{ title: '企业名称', className: 'text-center', index: 'enterpriseName' }, { title: '企业名称', className: 'text-center', index: 'enterpriseName' },
{ title: '当前管理员', className: 'text-center', index: 'oldAdminName', width: 140 }, { title: '当前管理员', className: 'text-center', index: 'oldAdminName', width: 140 },
{ title: '当前管理员手机号', className: 'text-center', index: 'oldAdminMobile', width: 150 }, { title: '当前管理员手机号', className: 'text-center', index: 'oldAdminMobile', width: 170 },
{ title: '转授对象', className: 'text-center', index: 'newAdminName', width: 140 }, { title: '转授对象', className: 'text-center', index: 'newAdminName', width: 140 },
{ title: '转授对象手机号', className: 'text-center', index: 'newAdminMobile', width: 150 }, { title: '转授对象手机号', className: 'text-center', index: 'newAdminMobile', width: 150 },
{ title: '申请时间', className: 'text-center', index: 'createTime', width: 160 }, { title: '申请时间', className: 'text-center', index: 'createTime', width: 170 },
{ {
title: '状态', title: '状态',
className: 'text-center', className: 'text-center',

View File

@ -21,7 +21,7 @@
class="text-right"> class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl
[acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button> [acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" acl <button nz-button nzType="primary" [disabled]="service.http.loading" acl (click)="exportList()"
[acl-ability]="['USERCENTER-FREIGHT-LIST-export']">导出</button> [acl-ability]="['USERCENTER-FREIGHT-LIST-export']">导出</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">

View File

@ -38,8 +38,6 @@ export class FreightConfigComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => { beforeReq = (requestOptions: STRequestOptions) => {
Object.assign(requestOptions.body, { listSource: 1 }); Object.assign(requestOptions.body, { listSource: 1 });
console.log(1);
if (this.sf?.value) { if (this.sf?.value) {
Object.assign(requestOptions.body, { Object.assign(requestOptions.body, {
...this.sf.value ...this.sf.value
@ -168,13 +166,13 @@ export class FreightConfigComponent implements OnInit {
} }
exportList() { exportList() {
const params = {}; const params = { listSource: 1, pageSize: -1 };
if (this.sf) { if (this.sf) {
Object.assign(params, { Object.assign(params, {
...this.sf.value ...this.sf.value
}); });
} }
this.service.downloadFile(this.service.$api_export_enterprise, params); this.service.downloadFile(this.service.$api_export_freight_config, params);
} }
loadltdId() { loadltdId() {
this.service.getNetworkFreightForwarder().subscribe(res => { this.service.getNetworkFreightForwarder().subscribe(res => {

View File

@ -280,7 +280,7 @@ export class FreightComponentsListComponent implements OnInit {
enum: [ enum: [
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '是', value: true }, { label: '是', value: true },
{ label: '否', value: false }, { label: '否', value: false }
], ],
default: '', default: '',
ui: { ui: {
@ -439,7 +439,7 @@ export class FreightComponentsListComponent implements OnInit {
} }
exportList() { exportList() {
const params = { listSource: 1 }; const params = { listSource: 1, pageSize: -1 };
if (this.sf) { if (this.sf) {
Object.assign(params, { Object.assign(params, {
...this.sf.value ...this.sf.value

View File

@ -39,6 +39,8 @@ export class UsermanageService extends ShipperBaseService {
// 查询货主配置列表 // 查询货主配置列表
$api_freight_config_page = '/api/mdc/cuc/enterpriseInfo/operate/list/configPage'; $api_freight_config_page = '/api/mdc/cuc/enterpriseInfo/operate/list/configPage';
// 导出货主配置列表
$api_export_freight_config = '/api/mdc/cuc/enterpriseInfo/operate/exportConfig';
// 更新企业超级管理员权限 // 更新企业超级管理员权限
$api_update_enter_role_batch = '/api/mdc/cuc/enterpriseInfo/operate/updateRole'; $api_update_enter_role_batch = '/api/mdc/cuc/enterpriseInfo/operate/updateRole';
// 批量更新企业网络货运人 // 批量更新企业网络货运人