批量审核
This commit is contained in:
@ -249,7 +249,7 @@ tabs = {
|
|||||||
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
||||||
carNo: q
|
carNo: q
|
||||||
})
|
})
|
||||||
.pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.id } as SFSchemaEnum))))
|
.pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.appUserId } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
@ -273,7 +273,7 @@ tabs = {
|
|||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_get_getDriverInfo, { keyword: q,
|
.request(this.service.$api_get_getDriverInfo, { keyword: q,
|
||||||
model: 1, type: 2 })
|
model: 1, type: 2 })
|
||||||
.pipe(map((res) => (res as any[]).map((i) => ({ label: i.name, value: i.id } as SFSchemaEnum))))
|
.pipe(map((res) => (res as any[]).map((i) => ({ label: i.name, value: i.userId } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
|
|||||||
@ -269,7 +269,7 @@ resourceStatus: any;
|
|||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_get_getDriverInfo, { keyword: q,
|
.request(this.service.$api_get_getDriverInfo, { keyword: q,
|
||||||
model: 1, type: 2 })
|
model: 1, type: 2 })
|
||||||
.pipe(map((res) => (res as any[]).map((i) => ({ label: i.name, value: i.id } as SFSchemaEnum))))
|
.pipe(map((res) => (res as any[]).map((i) => ({ label: i.name, value: i.userId } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
|
|||||||
@ -118,7 +118,7 @@
|
|||||||
[nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit?'calendar':''"></nz-date-picker>
|
[nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit?'calendar':''"></nz-date-picker>
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="行驶证签发机关">
|
<sv label="行驶证签发机关">
|
||||||
<input nz-input type="text" [(ngModel)]="detailData.driverLicenseSigningOrg" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
<input nz-input style="width: '300px'" type="text" [(ngModel)]="detailData.driverLicenseSigningOrg" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
@ -153,7 +153,7 @@
|
|||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="所有人">
|
<sv label="所有人">
|
||||||
<input nz-input type="text" [(ngModel)]="detailData.carOwner" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
<input nz-input style="width: '300px'" type="text" [(ngModel)]="detailData.carOwner" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
|
|||||||
@ -109,7 +109,7 @@
|
|||||||
[nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit?'calendar':''"></nz-date-picker>
|
[nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit?'calendar':''"></nz-date-picker>
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="行驶证签发机关">
|
<sv label="行驶证签发机关">
|
||||||
<input nz-input type="text" [(ngModel)]="detailData.driverLicenseSigningOrg" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
<input style="width: '300px'" nz-input type="text" [(ngModel)]="detailData.driverLicenseSigningOrg" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
@ -144,7 +144,7 @@
|
|||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="所有人">
|
<sv label="所有人">
|
||||||
<input nz-input type="text" [(ngModel)]="detailData.carOwner" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
<input style="width: '300px'" nz-input type="text" [(ngModel)]="detailData.carOwner" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
|
|||||||
@ -182,7 +182,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
roadTransportStatus: {
|
roadTransportStatus: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '驾驶证到期状态',
|
title: '道运证到期状态',
|
||||||
enum: [
|
enum: [
|
||||||
{ label: '正常', value: 1 },
|
{ label: '正常', value: 1 },
|
||||||
{ label: '即将到期', value: 2 },
|
{ label: '即将到期', value: 2 },
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-13 16:14:43
|
* @LastEditTime: 2022-01-17 20:39:18
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @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\supply-management\components\vehicle\vehicle.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||||
@ -71,7 +71,7 @@
|
|||||||
<ng-template st-row="billExpenseDetailVOList" let-item let-index="index">
|
<ng-template st-row="billExpenseDetailVOList" let-item let-index="index">
|
||||||
<div *ngIf="item.billExpenseDetailVOList.length > 0">
|
<div *ngIf="item.billExpenseDetailVOList.length > 0">
|
||||||
<p *ngFor="let data of item.billExpenseDetailVOList">
|
<p *ngFor="let data of item.billExpenseDetailVOList">
|
||||||
{{ data.costCodeLabel }}:{{ data.price }}
|
{{ data.costCodeLabel }}:{{ data.price |currency }}
|
||||||
<span style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
<span style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -105,9 +105,26 @@ tabs = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货源编号'
|
title: '货源编号'
|
||||||
},
|
},
|
||||||
no1: {
|
shipperAppUserId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货主'
|
title: '货主',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
serverSearch: true,
|
||||||
|
searchDebounceTime: 300,
|
||||||
|
searchLoadingText: '搜索中...',
|
||||||
|
onSearch: (q: any) => {
|
||||||
|
console.log(q)
|
||||||
|
if (!!q) {
|
||||||
|
return this.service
|
||||||
|
.request(this.service.$api_enterpriceList, { enterpriseName: q})
|
||||||
|
.pipe(map((res: any) => (res as any[]).map((i) => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
||||||
|
.toPromise();
|
||||||
|
} else {
|
||||||
|
return of([]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
} as SFSelectWidgetSchema,
|
||||||
},
|
},
|
||||||
loadingPlace: {
|
loadingPlace: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -362,7 +379,7 @@ tabs = {
|
|||||||
{
|
{
|
||||||
title: '运费明细',
|
title: '运费明细',
|
||||||
width: '220px',
|
width: '220px',
|
||||||
className: 'text-left',
|
className: 'text-right',
|
||||||
render: 'billExpenseDetailVOList'
|
render: 'billExpenseDetailVOList'
|
||||||
},
|
},
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-13 16:14:58
|
* @LastEditTime: 2022-01-17 20:13:41
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @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\supply-management\components\vehicle\vehicle.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||||
@ -60,14 +60,14 @@
|
|||||||
<ng-template st-row="billExpenseDetailVOList2" let-item let-index="index">
|
<ng-template st-row="billExpenseDetailVOList2" let-item let-index="index">
|
||||||
<div *ngIf="item.billExpenseDetailVOList.length > 0">
|
<div *ngIf="item.billExpenseDetailVOList.length > 0">
|
||||||
<p *ngFor="let data of item.billExpenseDetailVOList">
|
<p *ngFor="let data of item.billExpenseDetailVOList">
|
||||||
{{ data.costCodeLabel }}:{{ data.price }}
|
{{ data.costCodeLabel }}:{{ data.price | currency }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="billExpenseDetailVOList" let-item let-index="index">
|
<ng-template st-row="billExpenseDetailVOList" let-item let-index="index">
|
||||||
<div *ngIf="item.billExpenseDetailVOList.length > 0">
|
<div *ngIf="item.billExpenseDetailVOList.length > 0">
|
||||||
<p *ngFor="let data of item.billExpenseDetailVOList">
|
<p *ngFor="let data of item.billExpenseDetailVOList">
|
||||||
{{ data.costCodeLabel }}:{{ data.price }}
|
{{ data.costCodeLabel }}:{{ data.price | currency}}
|
||||||
<span style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
<span style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -84,7 +84,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="wayBill" let-item let-index="index">
|
<ng-template st-row="wayBill" let-item let-index="index">
|
||||||
<a [routerLink]="'/waybill-management/vehicle-detail/'+item.id">{{item.wayBillCode}}</a>
|
<a [routerLink]="'/waybill-management/vehicle-detail/'+item.id">{{item.billCode}}</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="goodsInfos" let-item let-index="index">
|
<ng-template st-row="goodsInfos" let-item let-index="index">
|
||||||
<div>{{item?.goodsInfos?.goodsName}}</div>
|
<div>{{item?.goodsInfos?.goodsName}}</div>
|
||||||
|
|||||||
@ -68,9 +68,15 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
if (this.resourceStatus) {
|
if (this.resourceStatus) {
|
||||||
a.wayBillStatus = this.resourceStatus;
|
a.wayBillStatus = this.resourceStatus;
|
||||||
}
|
}
|
||||||
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
|
delete params._$expand;
|
||||||
return {
|
return {
|
||||||
...a,
|
...a,
|
||||||
...this.sf?.value
|
...params,
|
||||||
|
createTime: {
|
||||||
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.createTime?.[1] || '',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
get selectedRows() {
|
get selectedRows() {
|
||||||
@ -150,7 +156,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
if (!!q) {
|
if (!!q) {
|
||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_get_getDriverInfo, { keyword: q, model: 1, type: 1 })
|
.request(this.service.$api_get_getDriverInfo, { keyword: q, model: 1, type: 1 })
|
||||||
.pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.id } as SFSchemaEnum))))
|
.pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.appUserId } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
@ -175,7 +181,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
||||||
carNo: q
|
carNo: q
|
||||||
})
|
})
|
||||||
.pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
|
.pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.id } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
@ -198,7 +204,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
if (!!q) {
|
if (!!q) {
|
||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_get_getDriverInfo, { keyword: q, model: 1, type: 2 })
|
.request(this.service.$api_get_getDriverInfo, { keyword: q, model: 1, type: 2 })
|
||||||
.pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.id } as SFSchemaEnum))))
|
.pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.userId } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
@ -214,7 +220,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'payment:status' },
|
params: { dictKey: 'overall:payment:status' },
|
||||||
containAllLable: true,
|
containAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
@ -249,7 +255,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
enterpriseInfoName: {
|
enterpriseInfoId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
ui: {
|
ui: {
|
||||||
@ -320,17 +326,17 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '货主出价',
|
title: '货主出价',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
className: 'text-left',
|
className: 'text-right',
|
||||||
render: 'billExpenseDetailVOList2'
|
render: 'billExpenseDetailVOList2'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '费用明细',
|
title: '费用明细',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
className: 'text-left',
|
className: 'text-right',
|
||||||
render: 'billExpenseDetailVOList'
|
render: 'billExpenseDetailVOList'
|
||||||
},
|
},
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: '220px', className: 'text-left' },
|
||||||
{ title: '货主', index: 'shipperAppUserName', width: '150px', className: 'text-left' },
|
{ title: '货主', index: 'shipperAppUserName', width: '200px', className: 'text-left' },
|
||||||
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-left' },
|
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-left' },
|
||||||
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-left' },
|
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-left' },
|
||||||
{
|
{
|
||||||
@ -541,7 +547,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
this.isVisibleEvaluate = true;
|
this.isVisibleEvaluate = true;
|
||||||
}
|
}
|
||||||
getGoodsSourceStatistical() {
|
getGoodsSourceStatistical() {
|
||||||
this.service.request(this.service.$api_get_getWholeStatistics).subscribe(res => {
|
this.service.request(this.service.$api_get_getWholeStatistics, this.reqParams).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
let totalCount = 0;
|
let totalCount = 0;
|
||||||
res.forEach((ele: any) => {
|
res.forEach((ele: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user