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

This commit is contained in:
Taric Xin
2022-04-08 17:00:18 +08:00
9 changed files with 87 additions and 61 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-12 10:52:50 * @Date : 2022-01-12 10:52:50
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-07 10:11:15 * @LastEditTime : 2022-04-08 16:34:26
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\abnormal-warning\\abnormal-warning.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\abnormal-warning\\abnormal-warning.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -70,7 +70,7 @@
<ng-template st-row="driverName" let-item let-index="index"> <ng-template st-row="driverName" let-item let-index="index">
<div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : '' }}{{ item?.carNo ? "/" + item?.carNo : '' }} </div> <div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : '' }} </div>
</ng-template> </ng-template>
<ng-template st-row="longitude" let-item let-index="index"> <ng-template st-row="longitude" let-item let-index="index">
<div> {{ item?.longitude }} <div> {{ item?.longitude }}

View File

@ -227,7 +227,9 @@ export class OrderManagementAbnormalWarningComponent implements OnInit {
className: 'text-left', className: 'text-left',
index: 'billCode' index: 'billCode'
}, },
{ title: '服务类型', index: 'serviceTypeLabel', width: '220px', className: 'text-left' }, { title: '服务类型', index: 'serviceTypeLabel', width: '220px', className: 'text-left',format: (item) => {
return item?.resourceTypeLabel + item?.serviceTypeLabel
} },
{ title: '货主', index: 'shipperName', width: '220px', className: 'text-left' }, { title: '货主', index: 'shipperName', width: '220px', className: 'text-left' },
{ title: '装货地', index: 'loadingAddressArr', width: '220px', className: 'text-left' }, { title: '装货地', index: 'loadingAddressArr', width: '220px', className: 'text-left' },
{ title: '卸货地', index: 'unloadingAddressArr', width: '220px', className: 'text-left' }, { title: '卸货地', index: 'unloadingAddressArr', width: '220px', className: 'text-left' },

View File

@ -177,7 +177,7 @@ export class TaxManagementOrderReportingComponent implements OnInit {
} }
}, },
checkStatus: { checkStatus: {
title: '精准', title: '本地校验',
type: 'string', type: 'string',
ui: { ui: {
placeholder: '请选择', placeholder: '请选择',
@ -241,7 +241,7 @@ export class TaxManagementOrderReportingComponent implements OnInit {
this.columns = [ this.columns = [
{ title: '', type: 'checkbox', className: 'text-center', width: '60px', }, { title: '', type: 'checkbox', className: 'text-center', width: '60px', },
{ title: '上传状态', render: 'putStatus', className: 'text-center', width: '120px', }, { title: '上传状态', render: 'putStatus', className: 'text-center', width: '120px', },
{ title: '精准', render: 'checkStatus', className: 'text-center', width: '120px', }, { title: '本地校验', render: 'checkStatus', className: 'text-center', width: '120px', },
{ {
title: '订单号', title: '订单号',
index: 'billCode', index: 'billCode',

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-03-30 14:26:01 * @Date : 2022-03-30 14:26:01
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-08 15:36:04 * @LastEditTime : 2022-04-08 15:48:58
* @FilePath : \\tms-obc-web\\src\\app\\routes\\tax-management\\components\\order-reporting\\verify-result\\verify-result.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\tax-management\\components\\order-reporting\\verify-result\\verify-result.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -63,11 +63,29 @@ export class TaxManagementOrderVerifyResultComponent implements OnInit {
initST() { initST() {
this.columns = [ this.columns = [
{ title: '序号', type: 'no', className: 'text-center', width: '60px', }, { title: '序号', type: 'no', className: 'text-center', width: '60px', },
{ title: '校验字段', index: 'orderStatus', className: 'text-center', width: '120px', }, { title: '校验字段', index: 'checkFieldName', className: 'text-center', width: '120px', },
{ title: '是否必填', index: 'orderStatus', className: 'text-center', width: '100px', }, {
{ title: '上传值', index: 'orderStatus', className: 'text-center', width: '120px', }, title: '是否必填',
{ title: '本地校验', index: 'orderStatus', className: 'text-center', width: '100px', }, index: 'requiredStatus',
{ title: '错误内容', index: 'orderStatus', className: 'text-center', width: '150px', }, className: 'text-center',
width: '100px',
type: 'enum',
enum: {
0: '否',
1: '是'
}
},
{ title: '上传值', index: 'fieldValue', className: 'text-center', width: '150px', },
{
title: '本地校验', index: 'checkStatus', className: 'text-center', width: '100px',
type: 'enum',
enum: {
0: '校验中',
1: '通过',
2: '不通过'
}
},
{ title: '错误内容', index: 'remark', className: 'text-center', width: '150px', },
] ]
} }

View File

@ -12,7 +12,7 @@
class="text-right"> class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button> <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
<button nz-button (click)="resetSF()">重置</button> <button nz-button (click)="resetSF()">重置</button>
<button nz-button> 导出</button> <button nz-button (click)="exprot()"> 导出</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }} {{ !_$expand ? '展开' : '收起' }}
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i> <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>

View File

@ -227,4 +227,8 @@ export class ETCInvoicedRequestedComponent implements OnInit {
{ title: '签收时间', index: 'submissionTime', type: 'date', width: '150px' } { title: '签收时间', index: 'submissionTime', type: 'date', width: '150px' }
]; ];
} }
// 导出
exprot() {
this.service.exportStart(this.sf?.value, this.service.$api_get_asyncExportEtcApplyList);
}
} }

View File

@ -1,10 +1,10 @@
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-12-29 13:12:35 * @Date: 2021-12-29 13:12:35
* @LastEditTime: 2022-01-04 10:36:02 * @LastEditTime : 2022-04-08 16:37:58
* @LastEditors: Please set LastEditors * @LastEditors : Shiming
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\ticket-management\services\ticket.service.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\services\\ticket.service.ts
*/ */
import { Injectable, Injector } from '@angular/core'; import { Injectable, Injector } from '@angular/core';
import { EACacheService, ShipperBaseService } from '@shared'; import { EACacheService, ShipperBaseService } from '@shared';
@ -132,6 +132,8 @@ export class TicketService extends ShipperBaseService {
// 根据地区code查询列表 // 根据地区code查询列表
$api_get_region_by_code = '/api/mdc/pbc/region/getRegionByCode'; $api_get_region_by_code = '/api/mdc/pbc/region/getRegionByCode';
// ETC申请开票导出
$api_get_asyncExportEtcApplyList = '/api/sdc/invoiceEtcOperate/asyncExportEtcApplyList';
constructor(public injector: Injector) { constructor(public injector: Injector) {
super(injector); super(injector);

View File

@ -10,7 +10,7 @@ import { VehicleService } from '../../../vehicle/services/vehicle.service';
import { CarSettleCarauthComponent } from '../list/carauth/carauth.component'; import { CarSettleCarauthComponent } from '../list/carauth/carauth.component';
@Component({ @Component({
selector: 'app-Vehicle-components-audit', selector: 'app-Vehicle-components-audit',
templateUrl: './audit.component.html', templateUrl: './audit.component.html'
}) })
export class VehicleComponentsAuditComponent implements OnInit { export class VehicleComponentsAuditComponent implements OnInit {
_$expand = false; _$expand = false;
@ -22,7 +22,13 @@ export class VehicleComponentsAuditComponent implements OnInit {
@ViewChild('st', { static: false }) st!: STComponent; @ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
constructor(public service: VehicleService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute, private modalHelper: ModalHelper) { } constructor(
public service: VehicleService,
private modal: NzModalService,
private router: Router,
private ar: ActivatedRoute,
private modalHelper: ModalHelper
) {}
/** /**
* 查询字段个数navigate * 查询字段个数navigate
*/ */
@ -36,26 +42,26 @@ export class VehicleComponentsAuditComponent implements OnInit {
get reqParams() { get reqParams() {
const a: any = {}; const a: any = {};
if (this.resourceStatus === 1) { if (this.resourceStatus === 1) {
a.approvalStatus = 10 a.approvalStatus = 10;
} else if (this.resourceStatus === 2) { } else if (this.resourceStatus === 2) {
a.approvalStatus = 20 a.approvalStatus = 20;
} else if (this.resourceStatus === 3) { } else if (this.resourceStatus === 3) {
a.approvalStatus = 30 a.approvalStatus = 30;
} }
return { return {
...a, ...a,
...this.sf?.value, ...this.sf?.value
}; };
} }
get selectedRows() { get selectedRows() {
return this.st?.list.filter((item) => item.checked) || []; return this.st?.list.filter(item => item.checked) || [];
} }
ngOnInit() { ngOnInit() {
this.initSF(); this.initSF();
this.initST(); this.initST();
this.ar.url.subscribe((params) => { this.ar.url.subscribe(params => {
this.st?.load(1); this.st?.load(1);
}); });
} }
@ -71,8 +77,8 @@ export class VehicleComponentsAuditComponent implements OnInit {
expand: { expand: {
type: 'boolean', type: 'boolean',
ui: { ui: {
hidden: true, hidden: true
}, }
}, },
carNo: { carNo: {
title: '车牌号', title: '车牌号',
@ -106,7 +112,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
ui: { ui: {
widget: 'dict-select', widget: 'dict-select',
params: { dictKey: 'car:color' }, params: { dictKey: 'car:color' },
containsAllLabel: true, containsAllLabel: true
} }
}, },
isSelf: { isSelf: {
@ -114,11 +120,11 @@ export class VehicleComponentsAuditComponent implements OnInit {
title: '是否挂靠', title: '是否挂靠',
enum: [ enum: [
{ label: '是', value: 1 }, { label: '是', value: 1 },
{ label: '否', value: 0 }, { label: '否', value: 0 }
], ],
ui: { ui: {
widget: 'select', widget: 'select',
allowClear: true, allowClear: true
} }
}, },
saveUser: { saveUser: {
@ -126,10 +132,10 @@ export class VehicleComponentsAuditComponent implements OnInit {
title: '录入人员', title: '录入人员',
ui: { ui: {
visibleIf: { visibleIf: {
expand: (value: boolean) => value, expand: (value: boolean) => value
}, }
}, }
}, }
// approvalStatus: { // approvalStatus: {
// type: 'string', // type: 'string',
// title: '审核状态', // title: '审核状态',
@ -149,7 +155,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
// }, // },
// }, // },
// }, // },
}, }
}; };
this.ui = { '*': { spanLabelFixed: 90, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } }; this.ui = { '*': { spanLabelFixed: 90, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } };
} }
@ -162,7 +168,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
{ title: '车型-车长-载重', width: '180px', className: 'text-center', render: 'carLength' }, { title: '车型-车长-载重', width: '180px', className: 'text-center', render: 'carLength' },
{ title: '是否挂靠', width: '180px', className: 'text-center', render: 'isSelf' }, { title: '是否挂靠', width: '180px', className: 'text-center', render: 'isSelf' },
{ title: '所有人', width: '180px', className: 'text-center', index: 'carOwner' }, { title: '所有人', width: '180px', className: 'text-center', index: 'carOwner' },
{ title: '录入人员', width: '180px', className: 'text-center', index: 'saveUser', }, { title: '录入人员', width: '180px', className: 'text-center', index: 'saveUser' },
{ {
title: '审核状态', title: '审核状态',
className: 'text-center', className: 'text-center',
@ -176,8 +182,8 @@ export class VehicleComponentsAuditComponent implements OnInit {
10: { text: '待审核', color: 'warning' }, 10: { text: '待审核', color: 'warning' },
20: { text: '已审核', color: 'success' }, 20: { text: '已审核', color: 'success' },
30: { text: '已驳回', color: 'error' }, 30: { text: '已驳回', color: 'error' },
40: { text: '证件过期', color: 'error' }, 40: { text: '证件过期', color: 'error' }
}, }
}, },
{ title: '申请时间', width: '180px', className: 'text-center', index: 'createTime' }, { title: '申请时间', width: '180px', className: 'text-center', index: 'createTime' },
{ {
@ -189,13 +195,13 @@ export class VehicleComponentsAuditComponent implements OnInit {
{ {
text: '查看', text: '查看',
acl: { ability: ['VEHICLE-AUDIT-view'] }, acl: { ability: ['VEHICLE-AUDIT-view'] },
click: (item) => { click: item => {
this.router.navigate(['./detail', item.id], { relativeTo: this.ar, queryParams: { carId: item.carId } }); this.router.navigate(['./detail', item.id], { relativeTo: this.ar, queryParams: { carId: item.carId } });
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
}, }
}, }
], ]
}, }
]; ];
} }
selectChange(e: number) { selectChange(e: number) {
@ -213,7 +219,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
this.sf?.setValue('/expand', this._$expand); this.sf?.setValue('/expand', this._$expand);
} }
creat() { creat() {
this.router.navigate(['./new',], { relativeTo: this.ar }); this.router.navigate(['./new'], { relativeTo: this.ar });
} }
/** /**
* 重置表单 * 重置表单
@ -224,19 +230,16 @@ export class VehicleComponentsAuditComponent implements OnInit {
} }
// 导出 // 导出
exportFire() { exportFire() {
this.service.request(this.service.$api_carLicenseAudit_export, this.reqParams).subscribe((res: any) => { let params = Object.assign({}, this.reqParams || {});
if(res) { params.pageSize = -1;
this.service.msgSrv.success('导出成功,请去右上角下载中心下载') this.service.exportStart(params, this.service.$api_carLicenseAudit_export);
return
}
});
} }
addModal() { addModal() {
const i = { const i = {
appUserId: '', appUserId: ''
} };
this.modalHelper.create(CarSettleCarauthComponent, { i }, { size: 900 }).subscribe((res) => { this.modalHelper.create(CarSettleCarauthComponent, { i }, { size: 900 }).subscribe(res => {
this.st.load() this.st.load();
}); });
} }
} }

View File

@ -19,7 +19,7 @@ export class VehicleComponentsListComponent implements OnInit {
@ViewChild('st', { static: false }) st!: STComponent; @ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
constructor(public service: VehicleService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) { } constructor(public service: VehicleService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {}
/** /**
* 查询参数 * 查询参数
@ -199,7 +199,7 @@ export class VehicleComponentsListComponent implements OnInit {
expand: (value: boolean) => value expand: (value: boolean) => value
} }
} }
}, }
// putOnRecord: { // putOnRecord: {
// type: 'string', // type: 'string',
// title: '是否已备案', // title: '是否已备案',
@ -278,7 +278,7 @@ export class VehicleComponentsListComponent implements OnInit {
text: '查看', text: '查看',
acl: { ability: ['VEHICLE-LIST-view'] }, acl: { ability: ['VEHICLE-LIST-view'] },
click: item => { click: item => {
this.router.navigate(['/vehicle/list/detail/' + item.id] ); this.router.navigate(['/vehicle/list/detail/' + item.id]);
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
} }
} }
@ -308,11 +308,8 @@ export class VehicleComponentsListComponent implements OnInit {
} }
// 导出 // 导出
exportFire() { exportFire() {
this.service.request(this.service.$api_carLicense_export, this.reqParams).subscribe((res: any) => { let params = Object.assign({}, this.reqParams || {});
if(res) { params.pageSize = -1;
this.service.msgSrv.success('导出成功,请去右上角下载中心下载') this.service.exportStart(params, this.service.$api_carLicense_export);
return
}
});
} }
} }