fix bug
This commit is contained in:
@ -1,9 +1,11 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { STColumn, STComponent, STData } from '@delon/abc/st';
|
import { STColumn, STComponent, STData } from '@delon/abc/st';
|
||||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
||||||
import { ShipperBaseService } from '@shared';
|
import { ShipperBaseService } from '@shared';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
|
import { of } from 'rxjs';
|
||||||
|
import { map } from 'rxjs/operators';
|
||||||
import { TaxManagementService } from '../../services/tax-management.service';
|
import { TaxManagementService } from '../../services/tax-management.service';
|
||||||
// import { DatatableReportingUploadSettingComponent } from '../upload-setting/upload-setting.component';
|
// import { DatatableReportingUploadSettingComponent } from '../upload-setting/upload-setting.component';
|
||||||
// import { DatatableReportingVerifyResultComponent } from '../verify-result/verify-result.component';
|
// import { DatatableReportingVerifyResultComponent } from '../verify-result/verify-result.component';
|
||||||
@ -34,6 +36,7 @@ export class TaxManagementOrderReportingComponent implements OnInit {
|
|||||||
public service: TaxManagementService,
|
public service: TaxManagementService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private ar: ActivatedRoute,
|
private ar: ActivatedRoute,
|
||||||
|
public shipperservice: ShipperBaseService,
|
||||||
private modal: NzModalService,
|
private modal: NzModalService,
|
||||||
public shipperSrv: ShipperBaseService
|
public shipperSrv: ShipperBaseService
|
||||||
) {
|
) {
|
||||||
@ -102,26 +105,31 @@ export class TaxManagementOrderReportingComponent implements OnInit {
|
|||||||
placeholder: '请输入',
|
placeholder: '请输入',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
enterpriseInfoId: {
|
shipperAppUserId: {
|
||||||
title: '网络货运人',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
|
||||||
placeholder: '请选择',
|
|
||||||
widget: 'select',
|
|
||||||
asyncData: () => this.shipperSrv.getNetworkFreightForwarder({}, false),
|
|
||||||
|
|
||||||
allowClear: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
externalResourceCode: {
|
|
||||||
title: '货主',
|
title: '货主',
|
||||||
type: 'string',
|
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入',
|
widget: 'select',
|
||||||
|
serverSearch: true,
|
||||||
|
searchDebounceTime: 300,
|
||||||
|
searchLoadingText: '搜索中...',
|
||||||
|
allowClear: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
}
|
onSearch: (q: any) => {
|
||||||
|
let str =q.replace(/^\s+|\s+$/g,"");
|
||||||
|
if (str) {
|
||||||
|
return this.service
|
||||||
|
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
||||||
|
.pipe(map((res: any) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
||||||
|
.toPromise();
|
||||||
|
} else {
|
||||||
|
return of([]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
driverName: {
|
driverName: {
|
||||||
title: '承运司机',
|
title: '承运司机',
|
||||||
@ -143,7 +151,19 @@ export class TaxManagementOrderReportingComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
serviceType: {
|
carNo3: {
|
||||||
|
title: '收款人',
|
||||||
|
type: 'string',
|
||||||
|
maxLength: 9,
|
||||||
|
ui: {
|
||||||
|
placeholder: '请输入',
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
serviceType2: {
|
||||||
title: '上传状态',
|
title: '上传状态',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
@ -169,6 +189,19 @@ export class TaxManagementOrderReportingComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
enterpriseInfoId: {
|
||||||
|
type: 'string',
|
||||||
|
title: '网络货运人',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
placeholder: '请选择',
|
||||||
|
allowClear: true,
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
},
|
||||||
|
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
||||||
|
}
|
||||||
|
},
|
||||||
createTime: {
|
createTime: {
|
||||||
title: '上传时间',
|
title: '上传时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -181,32 +214,8 @@ export class TaxManagementOrderReportingComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
} as SFDateWidgetSchema,
|
} as SFDateWidgetSchema,
|
||||||
},
|
},
|
||||||
createTime1: {
|
|
||||||
title: '运单生成时间',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
widget: 'sl-from-to',
|
|
||||||
type: 'date',
|
|
||||||
format: 'yyyy-MM-dd',
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value,
|
|
||||||
},
|
|
||||||
} as SFDateWidgetSchema,
|
|
||||||
},
|
|
||||||
createTime2: {
|
|
||||||
title: '发货时间',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
widget: 'sl-from-to',
|
|
||||||
type: 'date',
|
|
||||||
format: 'yyyy-MM-dd',
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value,
|
|
||||||
},
|
|
||||||
} as SFDateWidgetSchema,
|
|
||||||
},
|
|
||||||
createTime3: {
|
createTime3: {
|
||||||
title: '收货时间',
|
title: '结束时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'sl-from-to',
|
widget: 'sl-from-to',
|
||||||
@ -217,39 +226,6 @@ export class TaxManagementOrderReportingComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
} as SFDateWidgetSchema,
|
} as SFDateWidgetSchema,
|
||||||
},
|
},
|
||||||
|
|
||||||
loadingPlace: {
|
|
||||||
title: '车辆轨迹',
|
|
||||||
type: 'string',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '有', value: '1' },
|
|
||||||
{ label: '无', value: '0' }
|
|
||||||
],
|
|
||||||
ui: {
|
|
||||||
placeholder: '请选择',
|
|
||||||
widget: 'select',
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
loadingPlace1: {
|
|
||||||
title: '司机轨迹',
|
|
||||||
type: 'string',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '有', value: '1' },
|
|
||||||
{ label: '无', value: '0' }
|
|
||||||
],
|
|
||||||
ui: {
|
|
||||||
placeholder: '请选择',
|
|
||||||
widget: 'select',
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
this.ui = {
|
this.ui = {
|
||||||
|
|||||||
@ -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-03-30 14:05:39
|
* @LastEditTime : 2022-03-30 14:18:01
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\tax-management\\services\\tax-management.service.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\tax-management\\services\\tax-management.service.ts
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -20,7 +20,8 @@ import { EAFileUtil } from 'src/app/shared/utils/file.util';
|
|||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class TaxManagementService extends BaseService {
|
export class TaxManagementService extends BaseService {
|
||||||
|
// 获取货主企业列表
|
||||||
|
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
// 查询运营报表
|
// 查询运营报表
|
||||||
$api_listOperationalReportPage = `/api/sdc/report/listOperationalReportPage`;
|
$api_listOperationalReportPage = `/api/sdc/report/listOperationalReportPage`;
|
||||||
$api_order_reporting_page = `/api/sdc/billOperate/listWholePage`; // 订单上报列表
|
$api_order_reporting_page = `/api/sdc/billOperate/listWholePage`; // 订单上报列表
|
||||||
|
|||||||
Reference in New Issue
Block a user