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

This commit is contained in:
Taric Xin
2022-04-11 20:17:38 +08:00
14 changed files with 92 additions and 44 deletions

View File

@ -556,7 +556,7 @@ export class DatatableOrderReportingComponent implements OnInit {
this.openWainingModal('请选择需要更新的数据'); this.openWainingModal('请选择需要更新的数据');
return; return;
} }
const ids = this.selectedRows.map(i => i?.id); const ids = this.selectedRows.map(i => i?.orderId);
this.service.request(this.service.$api_update_order_data, ids).subscribe(res => { this.service.request(this.service.$api_update_order_data, ids).subscribe(res => {
if (res) { if (res) {
this.service.msgSrv.success('更新成功'); this.service.msgSrv.success('更新成功');

View File

@ -6,7 +6,7 @@
</div> </div>
<div style="width: 90%;"> <div style="width: 90%;">
<st #st [scroll]="{x:'1000px',y:'600px'}" [data]="service.$api_get_order_valid_result" [columns]="columns" <st #st [scroll]="{x:'1000px',y:'600px'}" [data]="service.$api_get_order_valid_result" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams ,process: beforeReq }"
[res]="{ reName: { list: 'data', total: 'data.total' } }" [page]="{ show: false,showSize:false}" [res]="{ reName: { list: 'data', total: 'data.total' } }" [page]="{ show: false,showSize:false}"
[bordered]="true"> [bordered]="true">
<ng-template st-row="checkStatus" let-item> <ng-template st-row="checkStatus" let-item>

View File

@ -1,6 +1,6 @@
import { Component, OnInit, ViewChild } from '@angular/core'; import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { STColumn, STComponent } from '@delon/abc/st'; import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st';
import { NzModalRef } from 'ng-zorro-antd/modal'; import { NzModalRef } from 'ng-zorro-antd/modal';
import { ReportingService } from '../../services/reporting.service'; import { ReportingService } from '../../services/reporting.service';
@ -23,13 +23,21 @@ export class DatatableReportingVerifyResultComponent implements OnInit {
get reqParams() { get reqParams() {
return { return {
subjectType: this.subjectType, subjectType: this.subjectType,
subjectId: this.record?.orderId subjectId: this.record?.orderId,
}; };
} }
constructor(public service: ReportingService, private modalRef: NzModalRef, public router: Router) { constructor(public service: ReportingService, private modalRef: NzModalRef, public router: Router) {
} }
beforeReq(requestOptions: STRequestOptions) {
delete requestOptions?.body?.pageSize;
delete requestOptions?.body?.pageIndex;
return requestOptions;
}
ngOnInit(): void { ngOnInit(): void {
this.initST(); this.initST();
} }
@ -76,8 +84,8 @@ export class DatatableReportingVerifyResultComponent implements OnInit {
} }
selectTab(e: any) { selectTab(e: any) {
this.subjectType = e?.value;
setTimeout(() => { setTimeout(() => {
this.subjectType = e?.value;
this.st.load(1); this.st.load(1);
}) })
} }

View File

@ -32,7 +32,7 @@
<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">
<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

@ -200,7 +200,7 @@ export class WithdrawalsRecordComponent {
type: 'string', type: 'string',
title: '账户名称', title: '账户名称',
ui: { ui: {
placeholder: '请输入', placeholder: '请输入'
} }
}, },
accountType: { accountType: {
@ -302,4 +302,8 @@ export class WithdrawalsRecordComponent {
} }
]; ];
} }
// 导出
exprot() {
this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_asyncExportRefundApplicationList);
}
} }

View File

@ -164,6 +164,8 @@ export class FreightAccountService extends ShipperBaseService {
$api_get_asyncExportBillRefundApplicationList = '/api/fcc/billRefundApplication/asyncExportBillRefundApplicationList'; $api_get_asyncExportBillRefundApplicationList = '/api/fcc/billRefundApplication/asyncExportBillRefundApplicationList';
// 异步导出运营后台支付记录列表 // 异步导出运营后台支付记录列表
$api_get_asyncExportBillPaymentApplicationList = '/api/fcc/billPaymentApplicationOBC/asyncExportBillPaymentApplicationList'; $api_get_asyncExportBillPaymentApplicationList = '/api/fcc/billPaymentApplicationOBC/asyncExportBillPaymentApplicationList';
// 异步导出运营后台提现记录
$api_get_asyncExportRefundApplicationList = '/api/fcc/refundApplicationOBC/asyncExportRefundApplicationList';
constructor(public injector: Injector) { constructor(public injector: Injector) {
super(injector); super(injector);

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-24 16:58:02 * @Date : 2021-12-24 16:58:02
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-03-23 14:44:37 * @LastEditTime : 2022-04-11 19:26:19
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -589,6 +589,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
nzContent: AmapPoiPickerComponent, nzContent: AmapPoiPickerComponent,
nzWidth: 900, nzWidth: 900,
nzOnOk: item => { nzOnOk: item => {
if(item?.poi) {
const poi = item.poi; const poi = item.poi;
const locList = poi.pois; const locList = poi.pois;
switch (type) { switch (type) {
@ -620,7 +621,12 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
this.totalTime = res?.time; this.totalTime = res?.time;
}); });
} }
return true
} else {
this.service.msgSrv.warning('请重新手动选择地址!')
return false
} }
}
}); });
} }
initSF3() { initSF3() {

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-23 13:39:58 * @Date : 2021-12-23 13:39:58
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-06 15:12:24 * @LastEditTime : 2022-04-11 19:26:34
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -560,6 +560,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
nzContent: AmapPoiPickerComponent, nzContent: AmapPoiPickerComponent,
nzWidth: 900, nzWidth: 900,
nzOnOk: item => { nzOnOk: item => {
if(item?.poi) {
const poi = item.poi; const poi = item.poi;
const locList = poi.pois; const locList = poi.pois;
switch (type) { switch (type) {
@ -591,6 +592,11 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
this.totalTime = res?.time; this.totalTime = res?.time;
}); });
} }
return true
} else {
this.service.msgSrv.warning('请重新手动选择地址!')
return false
}
} }
}); });
} }

View File

@ -838,6 +838,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
nzContent: AmapPoiPickerComponent, nzContent: AmapPoiPickerComponent,
nzWidth: 900, nzWidth: 900,
nzOnOk: item => { nzOnOk: item => {
if(item?.poi) {
const poi = item.poi; const poi = item.poi;
const locList = poi.location.toString().split(','); const locList = poi.location.toString().split(',');
switch (type) { switch (type) {
@ -869,6 +870,11 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
this.totalTime = res.time; this.totalTime = res.time;
}); });
} }
return true
} else {
this.service.msgSrv.warning('请重新手动选择地址!')
return false
}
} }
}); });
} }

View File

@ -725,6 +725,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
nzContent: AmapPoiPickerComponent, nzContent: AmapPoiPickerComponent,
nzWidth: 900, nzWidth: 900,
nzOnOk: item => { nzOnOk: item => {
if(item?.poi) {
const poi = item.poi; const poi = item.poi;
const locList = poi.pois; const locList = poi.pois;
switch (type) { switch (type) {
@ -753,6 +754,11 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
this.totalTime = res.time; this.totalTime = res.time;
}); });
} }
return true
} else {
this.service.msgSrv.warning('请重新手动选择地址!')
return false
}
} }
}); });
} }

View File

@ -1080,37 +1080,44 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
nzContent: AmapPoiPickerComponent, nzContent: AmapPoiPickerComponent,
nzWidth: 900, nzWidth: 900,
nzOnOk: item => { nzOnOk: item => {
const poi = item.poi; console.log(item);
const locList = poi.pois; if(item?.poi) {
switch (type) { const poi = item.poi;
case 'start': const locList = poi.pois;
this.startInfo[index].detailedAddress = poi.formattedAddress; switch (type) {
this.startInfo[index].longitude = locList[0]; case 'start':
this.startInfo[index].latitude = locList[1]; this.startInfo[index].detailedAddress = poi.formattedAddress;
this.startInfo[index].province = poi.addressComponent.province; this.startInfo[index].longitude = locList[0];
this.startInfo[index].city = poi.addressComponent.city; this.startInfo[index].latitude = locList[1];
this.startInfo[index].area = poi.addressComponent.district; this.startInfo[index].province = poi.addressComponent.province;
this.startInfo[index].address = poi.formattedAddress; this.startInfo[index].city = poi.addressComponent.city;
break; this.startInfo[index].area = poi.addressComponent.district;
case 'end': this.startInfo[index].address = poi.formattedAddress;
this.endInfo[index].detailedAddress = poi.formattedAddress; break;
this.endInfo[index].longitude = locList[0]; case 'end':
this.endInfo[index].latitude = locList[1]; this.endInfo[index].detailedAddress = poi.formattedAddress;
this.endInfo[index].province = poi.addressComponent.province; this.endInfo[index].longitude = locList[0];
this.endInfo[index].city = poi.addressComponent.city; this.endInfo[index].latitude = locList[1];
this.endInfo[index].area = poi.addressComponent.district; this.endInfo[index].province = poi.addressComponent.province;
this.endInfo[index].address = poi.formattedAddress; this.endInfo[index].city = poi.addressComponent.city;
break; this.endInfo[index].area = poi.addressComponent.district;
default: this.endInfo[index].address = poi.formattedAddress;
break; break;
} default:
break;
}
if (this.startInfo[0]?.area && this.endInfo[0]?.area) { if (this.startInfo[0]?.area && this.endInfo[0]?.area) {
this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe((res: any) => { this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe((res: any) => {
this.totalDistance = res.distance; this.totalDistance = res.distance;
this.totalTime = res.time; this.totalTime = res.time;
this.getInsurersPrice(); // 计算保费金额 this.getInsurersPrice(); // 计算保费金额
}); });
}
return true
} else {
this.service.msgSrv.warning('请重新手动选择地址!')
return false
} }
} }
}); });

View File

@ -999,6 +999,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
nzContent: AmapPoiPickerComponent, nzContent: AmapPoiPickerComponent,
nzWidth: 900, nzWidth: 900,
nzOnOk: item => { nzOnOk: item => {
if(item?.poi) {
const poi = item.poi; const poi = item.poi;
const locList = poi.pois; const locList = poi.pois;
switch (type) { switch (type) {
@ -1029,6 +1030,11 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
this.getInsurersPrice(); // 计算保费金额 this.getInsurersPrice(); // 计算保费金额
}); });
} }
return true
} else {
this.service.msgSrv.warning('请重新手动选择地址!')
return false
}
} }
}); });
} }

View File

@ -129,9 +129,6 @@ export class TaxManagementIndividualCollectComponent implements OnInit {
widget: 'sl-from-to', widget: 'sl-from-to',
type: 'date', type: 'date',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
visibleIf: {
_$expand: (value: boolean) => value
}
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
sbrq: { sbrq: {

View File

@ -329,7 +329,7 @@ export class TaxManagementOrderReportingComponent implements OnInit {
} }
let params: any[] = []; let params: any[] = [];
this.selectedRows.forEach(item => { this.selectedRows.forEach(item => {
params.push(item.id); params.push(item.billId);
}); });
this.service.request(this.service.$api_get_renewalOrderById, params).subscribe((res: any) => { this.service.request(this.service.$api_get_renewalOrderById, params).subscribe((res: any) => {
if (res) { if (res) {