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

This commit is contained in:
Taric Xin
2022-01-12 15:10:38 +08:00
22 changed files with 215 additions and 188 deletions

View File

@ -16,8 +16,8 @@
} }
.ant-tabs-tab-btn { .ant-tabs-tab-btn {
padding-left : 16px;
padding-right: 16px; padding-right: 16px;
padding-left : 16px;
} }
.text-truncate { .text-truncate {

View File

@ -1,13 +1,13 @@
.expend-options { .expend-options {
margin-top: 0px; margin-top: 0;
} }
@media (min-width: 1200px) { @media (min-width: 1200px) {
.expend-options { .expend-options {
max-width: 450px;
position : absolute; position : absolute;
right : 0; right : 0;
bottom : 25px; bottom : 25px;
max-width: 450px;
} }
} }

View File

@ -199,16 +199,16 @@ tabs = {
.request(this.service.$api_get_getCarLicenseListByCarNo, { .request(this.service.$api_get_getCarLicenseListByCarNo, {
carNo: q carNo: q
}) })
.pipe(map((res: any[]) => (res 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.carNo } as SFSchemaEnum))))
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
} }
}, },
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value
}, }
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema
}, },
payeeId: { payeeId: {
title: '车队长', title: '车队长',
@ -287,18 +287,35 @@ tabs = {
asyncData: () => this.service2.getNetworkFreightForwarder(), asyncData: () => this.service2.getNetworkFreightForwarder(),
}, },
}, },
goodsName: { // goodsName: {
// type: 'string',
// title: '货物名称',
// ui: {
// widget: 'select',
// placeholder: '请选择',
// visibleIf: {
// _$expand: (value: boolean) => value,
// },
// allowClear: true,
// asyncData: () => this.getCatalogueMember(),
// },
// },
goodsTypeId: {
type: 'string', type: 'string',
title: '货物名称', title: '货物名称',
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
visibleIf: { errors: { required: '请选择货物类型' },
_$expand: (value: boolean) => value, asyncData: () =>
}, this.service2.loadConfigByKey('goods.name.config.type').pipe(
allowClear: true, map((data: any) => {
asyncData: () => this.getCatalogueMember(), return data[0].children?.map((m: any) => {
}, return { label: m.name, value: m.id };
});
})
),
} as SFSelectWidgetSchema
}, },
serviceType: { serviceType: {
title: '服务类型', title: '服务类型',
@ -640,7 +657,7 @@ tabs = {
nzComponentParams: { data: { ...data, billId: item.id } }, nzComponentParams: { data: { ...data, billId: item.id } },
}); });
modal.afterClose.subscribe(_ => this.st.reload()); modal.afterClose.subscribe(_ => this.st.reload(1));
} }
}); });
} }
@ -691,6 +708,7 @@ tabs = {
this.st?.reload(1); this.st?.reload(1);
this.initST(); this.initST();
} }
this.st?.reload(1);
}), }),
}) })
} }

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-12-16 10:19:08 * @Date: 2021-12-16 10:19:08
* @LastEditTime: 2022-01-12 10:42:22 * @LastEditTime: 2022-01-12 15:02:37
* @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\order-management\components\risk-detail\risk-detail.component.html * @FilePath: \tms-obc-web\src\app\routes\order-management\components\risk-detail\risk-detail.component.html
@ -29,29 +29,9 @@
<nz-card class="dealBox" nzTitle="投诉处理"> <nz-card class="dealBox" nzTitle="投诉处理">
<!-- <nz-timeline class="d-block pl-md pt-md">
<nz-timeline-item *ngFor="let i of datailList" [nzDot]="dotTpl">
<ng-template #dotTpl>
<div class="md-sm p-sm icon-sm rounded-circle text-white bg-{{ i.dot.bg }}">
<i nz-icon [nzType]="i.dot.icon"></i>
</div>
</ng-template>
<div class="pl-lg">
<strong>{{ i.time }}</strong>
<div class="py-sm" [innerHTML]="i.content | html"></div>
<div class="text-grey">{{ i.tags }}</div>
</div>
</nz-timeline-item>
</nz-timeline> -->
<nz-timeline nzMode="left"> <nz-timeline nzMode="left">
<nz-timeline-item >TMS运营管理系统 <nz-timeline-item *ngFor="let i of datailList?.processNodeVOS" [nzLabel]="i?.time">{{i?.nodeNameLabel}}
<div class="info">提交时间:{{datailList?.complainantTime}}</div> <div class="info">{{i?.nodeName}}{{i?.result}}</div>
</nz-timeline-item>
<nz-timeline-item [nzLabel]="datailList?.handleTime">运多星运营后台
<div class="info">操作人员:{{datailList?.complainantIdLabel}}</div>
<div class="info">处理状态:{{datailList?.complaintStatusLabel}}</div>
<div class="info">处理详情:{{datailList?.handleDetails}}</div>
<div class="info">处理结果:{{datailList?.handleResult}}</div>
</nz-timeline-item> </nz-timeline-item>
</nz-timeline> </nz-timeline>
</nz-card> </nz-card>

View File

@ -213,16 +213,16 @@ resourceStatus: any;
.request(this.service.$api_get_getCarLicenseListByCarNo, { .request(this.service.$api_get_getCarLicenseListByCarNo, {
carNo: q carNo: q
}) })
.pipe(map((res: any[]) => (res 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.carNo } as SFSchemaEnum))))
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
} }
}, },
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value
}, }
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema
}, },
payeeId: { payeeId: {
title: '车队长', title: '车队长',
@ -305,13 +305,10 @@ resourceStatus: any;
type: 'string', type: 'string',
title: '货物名称', title: '货物名称',
ui: { ui: {
widget: 'select',
placeholder: '请选择', placeholder: '请选择',
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value,
}, },
allowClear: true,
asyncData: () => this.getCatalogueMember(),
}, },
}, },
serviceType: { serviceType: {
@ -621,7 +618,7 @@ resourceStatus: any;
// return false; // return false;
// } // }
}); });
modal.afterClose.subscribe(_ => this.st.reload()); modal.afterClose.subscribe(_ => this.st.reload(1));
} }
}); });
} }
@ -683,6 +680,11 @@ resourceStatus: any;
// return false; // return false;
// } // }
}); });
modal.afterClose.subscribe((result) => {
if (result) {
this.st.load(1);
}
});
} }
/** /**
*修改网络货运人 *修改网络货运人
@ -713,6 +715,11 @@ resourceStatus: any;
// return false; // return false;
// } // }
}); });
modal.afterClose.subscribe((result) => {
if (result) {
this.st.load(1);
}
});
} }
// *确认签收 // *确认签收
@ -737,7 +744,7 @@ resourceStatus: any;
console.log(res) console.log(res)
if(res) { if(res) {
this.service.msgSrv.success('撤销成功!') this.service.msgSrv.success('撤销成功!')
this.stFloat.reload() this.stFloat.reload(1)
} else { } else {
this.service.msgSrv.error(res.msg) this.service.msgSrv.error(res.msg)
} }
@ -754,7 +761,7 @@ resourceStatus: any;
this.service.request(this.service.$api_get_cancelAnOrder, {id: item.id}).subscribe((res) => { this.service.request(this.service.$api_get_cancelAnOrder, {id: item.id}).subscribe((res) => {
if (res === true) { if (res === true) {
this.service.msgSrv.success('操作成功!'); this.service.msgSrv.success('操作成功!');
this.st?.reload(); this.st?.reload(1);
this.initST(); this.initST();
} }
}), }),
@ -772,6 +779,7 @@ resourceStatus: any;
this.service.request(this.service.$api_get_batchSignWholeOrder, params).subscribe(res => { this.service.request(this.service.$api_get_batchSignWholeOrder, params).subscribe(res => {
if (res) { if (res) {
console.log(res); console.log(res);
this.st?.reload(1);
} else { } else {
this.service.msgSrv.error(res.msg); this.service.msgSrv.error(res.msg);
} }

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-12-14 14:03:07 * @Date: 2021-12-14 14:03:07
* @LastEditTime: 2021-12-22 18:53:54 * @LastEditTime: 2022-01-12 14:01:33
* @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\order-management\modal\bulk\update-freight\update-freight.component.html * @FilePath: \tms-obc-web\src\app\routes\order-management\modal\bulk\update-freight\update-freight.component.html
@ -50,10 +50,10 @@ nzMessage="签收后不可再修改运费,请确保运费等信息准确无误
<div>{{detailList?.price}} 元</div> <div>{{detailList?.price}} 元</div>
</sv> </sv>
<sv label="司机车辆"> <sv label="司机车辆">
<div>{{driverList?.nickName}} / {{driverList?.telephone}}/ {{carList?.carNo}}</div> <div>{{detailList?.driverName}} / {{detailList?.driverPhone}}/ {{detailList?.carNo}}</div>
</sv> </sv>
<sv label="收款人"> <sv label="收款人">
<div>{{payeeList?.nickName}} / {{payeeList?.telephone}}</div> <div>{{detailList?.payeeName}} / {{detailList?.payeePhone}}</div>
</sv> </sv>
<sv label="回单凭证"> <sv label="回单凭证">
<nz-upload <nz-upload

View File

@ -2,7 +2,7 @@ import { preloaderFinished } from '@delon/theme';
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-12-14 14:03:07 * @Date: 2021-12-14 14:03:07
* @LastEditTime: 2021-12-22 19:10:07 * @LastEditTime: 2022-01-12 14:01:08
* @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\order-management\modal\bulk\update-freight\update-freight.component.ts * @FilePath: \tms-obc-web\src\app\routes\order-management\modal\bulk\update-freight\update-freight.component.ts
@ -96,18 +96,6 @@ export class ConfirReceiptComponent implements OnInit {
}) })
}); });
this.listImagUrls = arr; this.listImagUrls = arr;
this.service.request(this.service.$api_getUserDetailByAppUserId, {id: this.detailList?.payeeId}).subscribe((res: any) => {
console.log(res)
this.payeeList = res;
})
this.service.request(this.service.$api_getUserDetailByAppUserId, {id: this.detailList?.driverId}).subscribe((res: any) => {
console.log(res)
this.driverList = res;
})
this.service.request(this.service.$api_getCarLicenseByIds, {id: this.detailList?.carId}).subscribe((res: any) => {
console.log(res)
this.carList = res;
})
}) })

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-12-15 13:17:42 * @Date: 2021-12-15 13:17:42
* @LastEditTime: 2021-12-21 14:34:16 * @LastEditTime: 2022-01-12 14:04:38
* @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\order-management\modal\vehicle\confir-receipt\confir-receipt.component.html * @FilePath: \tms-obc-web\src\app\routes\order-management\modal\vehicle\confir-receipt\confir-receipt.component.html
@ -18,10 +18,10 @@
<st #st [widthMode]="{ type: 'strict' }" [data]="costDetail" [columns]="columns" bordered="true" [page]="{ show: false }"></st> <st #st [widthMode]="{ type: 'strict' }" [data]="costDetail" [columns]="columns" bordered="true" [page]="{ show: false }"></st>
</sv> </sv>
<sv label="司机车辆"> <sv label="司机车辆">
<div>{{driverList?.nickName}} / {{driverList?.telephone}}/ {{carList?.carNo}}</div> <div>{{dataInfo?.driverName}} / {{dataInfo?.driverPhone}}/ {{dataInfo?.carNo}}</div>
</sv> </sv>
<sv label="收款人"> <sv label="收款人">
<div>{{payeeList?.nickName}} / {{payeeList?.telephone}}</div> <div>{{dataInfo?.payeeName}} / {{dataInfo?.payeePhone}}</div>
</sv> </sv>
<sv label="回单凭证"> <sv label="回单凭证">
<nz-upload <nz-upload

View File

@ -1,7 +1,7 @@
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-12-15 13:17:42 * @Date: 2021-12-15 13:17:42
* @LastEditTime: 2022-01-12 13:37:05 * @LastEditTime: 2022-01-12 14:01:00
* @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\order-management\modal\vehicle\confir-receipt\confir-receipt.component.ts * @FilePath: \tms-obc-web\src\app\routes\order-management\modal\vehicle\confir-receipt\confir-receipt.component.ts
@ -143,19 +143,6 @@ export class VehicleConfirReceiptComponent implements OnInit {
}) })
}); });
this.listImagUrls = arr; this.listImagUrls = arr;
// this.service.request(this.service.$api_getUserDetailByAppUserId, {id: this.dataInfo?.payeeId}).subscribe((res: any) => {
// console.log(res)
// this.payeeList = res;
// })
// this.service.request(this.service.$api_getUserDetailByAppUserId, {id: this.dataInfo?.driverId}).subscribe((res: any) => {
// console.log(res)
// this.driverList = res;
// })
// this.service.request(this.service.$api_getCarLicenseByIds, {id: this.dataInfo?.carId}).subscribe((res: any) => {
// console.log(res)
// this.carList = res;
// })
console.log(cost)
this.costDetail = [cost]; this.costDetail = [cost];
}) })
} }

View File

@ -37,7 +37,7 @@ export class OrderManagementService extends ShipperBaseService {
// 整车详情 // 整车详情
$api_get_getWholeBillDetail = `/api/sdc/billOperate/getWholeBillDetail`; $api_get_getWholeBillDetail = `/api/sdc/billOperate/getWholeBillDetail`;
// 根据车牌号查询车辆信息 // 根据车牌号查询车辆信息
$api_get_getCarLicenseListByCarNo= `/api/mdc/cuc/carLicenseAudit/operate/getCarLicenseListByCarNo`; $api_get_getCarLicenseListByCarNo= `/api/mdc/cuc/carLicense/findCarLicenseByCarNo`;
// 查询大宗订单列表 // 查询大宗订单列表
$api_get_listBulkPage = `/api/sdc/billOperate/listBulkPage`; $api_get_listBulkPage = `/api/sdc/billOperate/listBulkPage`;

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-11-29 15:22:34 * @Date: 2021-11-29 15:22:34
* @LastEditTime: 2022-01-12 09:43:19 * @LastEditTime: 2022-01-12 14:18:32
* @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\usercenter\components\freight\list\list.component.html * @FilePath: \tms-obc-web\src\app\routes\usercenter\components\freight\list\list.component.html
@ -47,7 +47,7 @@
<nz-card> <nz-card>
<!-- 数据列表 --> <!-- 数据列表 -->
<!-- [data]="service.$api_get_supplier_page" --> <!-- [data]="service.$api_get_supplier_page" -->
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" > <nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzSelectedIndex]='defaultTabs'>
<nz-tab [nzTitle]="'全部'"></nz-tab> <nz-tab [nzTitle]="'全部'"></nz-tab>
<nz-tab [nzTitle]="'待审核'"></nz-tab> <nz-tab [nzTitle]="'待审核'"></nz-tab>
<nz-tab [nzTitle]="'未提交'"></nz-tab> <nz-tab [nzTitle]="'未提交'"></nz-tab>

View File

@ -13,6 +13,7 @@ import { VehicleService } from '../../../vehicle/services/vehicle.service';
export class VehicleComponentsAuditComponent implements OnInit { export class VehicleComponentsAuditComponent implements OnInit {
_$expand = false; _$expand = false;
resourceStatus: any; resourceStatus: any;
defaultTabs = 1;
ui!: SFUISchema; ui!: SFUISchema;
schema!: SFSchema; schema!: SFSchema;
columns!: STColumn[]; columns!: STColumn[];
@ -80,26 +81,24 @@ export class VehicleComponentsAuditComponent implements OnInit {
ui: { ui: {
widget: 'select', widget: 'select',
serverSearch: true, serverSearch: true,
searchDebounceTime: 250, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
onSearch: (q: any) => { onSearch: (q: any) => {
if (!!q) { if (!!q) {
return this.service return this.service
.request(this.service.$api_get_getCarLicenseListByCarNo_audit, { .request(this.service.$api_get_getCarLicenseListByCarNo, {
carNo: q carNo: q
}) })
.pipe(map((res: any) => (res.records as any[]).map((i) => ( .pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
{ label: i.carNo, value: i.carNo
} as SFSchemaEnum)
)
)
)
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
} }
}, },
} as SFSelectWidgetSchema, visibleIf: {
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
}, },
carNoColor: { carNoColor: {
type: 'string', type: 'string',

View File

@ -77,7 +77,7 @@ export class VehicleComponentsListComponent implements OnInit {
ui: { ui: {
widget: 'select', widget: 'select',
serverSearch: true, serverSearch: true,
searchDebounceTime: 250, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
onSearch: (q: any) => { onSearch: (q: any) => {
if (!!q) { if (!!q) {
@ -85,18 +85,16 @@ export class VehicleComponentsListComponent 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) => ( .pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
{ label: i.carNo, value: i.carNo
} as SFSchemaEnum)
)
)
)
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
} }
}, },
} as SFSelectWidgetSchema, visibleIf: {
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
}, },
carNoColor: { carNoColor: {
type: 'string', type: 'string',

View File

@ -166,7 +166,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
} }
} as SFSelectWidgetSchema } as SFSelectWidgetSchema
}, },
customerCode: { carNo: {
title: '车牌号', title: '车牌号',
type: 'string', type: 'string',
ui: { ui: {
@ -180,16 +180,16 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
.request(this.service.$api_get_getCarLicenseListByCarNo, { .request(this.service.$api_get_getCarLicenseListByCarNo, {
carNo: q carNo: q
}) })
.pipe(map((res: any[]) => (res 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.carNo } as SFSchemaEnum))))
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
} }
}, },
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value
}, }
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema
}, },
reportingTime: { reportingTime: {
title: '上报时间', title: '上报时间',

View File

@ -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: 2021-12-28 10:01:51 * @LastEditTime: 2022-01-12 14:53:26
* @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
@ -69,8 +69,11 @@
</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 *ngFor="let i of item?.billExpenseDetailVOList; let ii = index"> <div *ngIf="item.billExpenseDetailVOList.length > 0">
<span >{{i?.costName}}{{i?.price}}</span> <p *ngFor="let data of item.billExpenseDetailVOList">
{{ data.costCodeLabel }}{{ data.price }}
<span style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
</p>
</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">

View File

@ -1,3 +1,8 @@
:host ::ng-deep{
::ng-deep nz-range-picker{
width: 100%;
}
.left_btn { .left_btn {
width: 50px; width: 50px;
height: 32px; height: 32px;
@ -5,3 +10,4 @@
line-height:32px; line-height:32px;
background-color: #d7d7d7; background-color: #d7d7d7;
} }
}

View File

@ -161,16 +161,16 @@ tabs = {
.request(this.service.$api_get_getCarLicenseListByCarNo, { .request(this.service.$api_get_getCarLicenseListByCarNo, {
carNo: q carNo: q
}) })
.pipe(map((res: any[]) => (res 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.carNo } as SFSchemaEnum))))
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
} }
}, },
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value
}, }
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema
}, },
payeeId: { payeeId: {
title: '车队长', title: '车队长',
@ -261,18 +261,25 @@ tabs = {
}, },
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema,
}, },
goodsName: { goodsNameId: {
type: 'string', type: 'string',
title: '货物名称', title: '货物名称',
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
errors: { required: '请选择货物类型' },
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value
},
allowClear: true,
asyncData: () => this.getCatalogueMember(),
}, },
asyncData: () =>
this.service2.loadConfigByKey('goods.name.config.type').pipe(
map((data: any) => {
return data[0].children?.map((m: any) => {
return { label: m.name, value: m.id };
});
})
),
} as SFSelectWidgetSchema
}, },
serviceType: { serviceType: {
title: '服务类型', title: '服务类型',
@ -343,25 +350,25 @@ tabs = {
{ title: '', type: 'checkbox', width: '50px', className: 'text-center' }, { title: '', type: 'checkbox', width: '50px', className: 'text-center' },
{ {
title: '运单号', title: '运单号',
width: '100px', width: '180px',
className: 'text-center', className: 'text-center',
render: 'wayBillCode' render: 'wayBillCode'
}, },
{ {
title: '运费明细', title: '运费明细',
width: '100px', width: '150px',
className: 'text-center', className: 'text-center',
render: 'billExpenseDetailVOList' render: 'billExpenseDetailVOList'
}, },
{ title: '网络货运人', index: 'enterpriseInfoName', width: '120px', className: 'text-center' }, { title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-center' },
{ title: '货主', index: 'shipperAppUserName', width: '120px', className: 'text-center' }, { title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-center' },
{ title: '关联订单号', render: 'wayBill', width: '120px', className: 'text-center' }, { title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-center' },
{ title: '货源编号', index: 'resourceCode', width: '120px', className: 'text-center' }, { title: '货源编号', index: 'resourceCode', width: '180px', className: 'text-center' },
{ title: '装货地', index: 'loadingPlace', width: '120px', className: 'text-center' }, { title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-center' },
{ {
title: '卸货地', title: '卸货地',
className: 'text-center', className: 'text-center',
width: '120px', width: '180px',
index: 'dischargePlace' index: 'dischargePlace'
}, },
{ {
@ -409,7 +416,7 @@ tabs = {
}, },
{ {
title: '创建时间', title: '创建时间',
width: '130px', width: '180px',
className: 'text-center', className: 'text-center',
index: 'createTime', index: 'createTime',
}, },

View File

@ -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: 2021-12-22 11:31:50 * @LastEditTime: 2022-01-12 14:51:05
* @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
@ -52,10 +52,25 @@
[res]="{ reName: { list: 'data.records', total: 'data.total' } }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading"> [loading]="service.http.loading">
<ng-template st-row="billExpenseDetailVOList" let-item let-index="index"> <!-- <ng-template st-row="billExpenseDetailVOList" let-item let-index="index">
<div *ngFor="let i of item?.billExpenseDetailVOList; let ii = index"> <div *ngFor="let i of item?.billExpenseDetailVOList; let ii = index">
<span>{{i?.costName}}{{i?.price}}</span> <span>{{i?.costName}}{{i?.price}}</span>
</div> </div>
</ng-template> -->
<ng-template st-row="billExpenseDetailVOList2" let-item let-index="index">
<div *ngIf="item.billExpenseDetailVOList.length > 0">
<p *ngFor="let data of item.billExpenseDetailVOList">
{{ data.costCodeLabel }}{{ data.price }}
</p>
</div>
</ng-template>
<ng-template st-row="billExpenseDetailVOList" let-item let-index="index">
<div *ngIf="item.billExpenseDetailVOList.length > 0">
<p *ngFor="let data of item.billExpenseDetailVOList">
{{ data.costCodeLabel }}{{ data.price }}
<span style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
</p>
</div>
</ng-template> </ng-template>
<ng-template st-row="wayBillCode" let-item let-index="index"> <ng-template st-row="wayBillCode" 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.wayBillCode}}</a>

View File

@ -1,2 +1,5 @@
:host { :host ::ng-deep{
::ng-deep nz-range-picker{
width: 100%;
}
} }

View File

@ -102,9 +102,6 @@ export class WaybillManagementVehicleComponent implements OnInit {
serverSearch: true, serverSearch: true,
searchDebounceTime: 300, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
visibleIf: {
_$expand: (value: boolean) => value
},
onSearch: (q: any) => { onSearch: (q: any) => {
console.log(q) console.log(q)
if (!!q) { if (!!q) {
@ -173,7 +170,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 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.carNo } as SFSchemaEnum))))
.toPromise(); .toPromise();
} else { } else {
return of([]); return of([]);
@ -260,19 +257,36 @@ export class WaybillManagementVehicleComponent implements OnInit {
asyncData: () => this.service2.getNetworkFreightForwarder() asyncData: () => this.service2.getNetworkFreightForwarder()
} }
}, },
goodsName: { // goodsName: {
// type: 'string',
// title: '货物名称',
// ui: {
// placeholder: '请选择',
// visibleIf: {
// _$expand: (value: boolean) => value
// },
// }
// }
goodsNameId: {
type: 'string', type: 'string',
title: '货物名称', title: '货物名称',
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
errors: { required: '请选择货物类型' },
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
}, },
allowClear: true, asyncData: () =>
asyncData: () => this.getCatalogueMember() this.service2.loadConfigByKey('goods.name.config.type').pipe(
} map((data: any) => {
} return data[0].children?.map((m: any) => {
return { label: m.name, value: m.id };
});
})
),
} as SFSelectWidgetSchema
},
}, },
type: 'object' type: 'object'
}; };
@ -293,31 +307,31 @@ export class WaybillManagementVehicleComponent implements OnInit {
}, },
{ {
title: '货主出价', title: '货主出价',
width: '100px', width: '250px',
className: 'text-center', className: 'text-center',
index: 'resourceCode' render: 'billExpenseDetailVOList2'
}, },
{ {
title: '货源编号', title: '货源编号',
width: '100px', width: '150px',
className: 'text-center', className: 'text-center',
index: 'resourceCode' index: 'resourceCode'
}, },
{ {
title: '费明细', title: '费明细',
width: '100px', width: '250px',
className: 'text-center', className: 'text-center',
render: 'billExpenseDetailVOList' render: 'billExpenseDetailVOList'
}, },
{ title: '网络货运人', index: 'enterpriseInfoName', width: '120px', className: 'text-center' }, { title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-center' },
{ title: '货主', index: 'shipperAppUserName', width: '120px', className: 'text-center' }, { title: '货主', index: 'shipperAppUserName', width: '150px', className: 'text-center' },
{ title: '关联订单号', render: 'wayBill', width: '120px', className: 'text-center' }, { title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-center' },
{ title: '装货地', index: 'loadingAddressArr', width: '120px', className: 'text-center' }, { title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-center' },
{ {
title: '卸货地', title: '卸货地',
className: 'text-center', className: 'text-center',
width: '120px', width: '180px',
index: 'unloadingAddressArr' index: 'dischargePlace'
}, },
{ {
title: '货物信息', title: '货物信息',
@ -345,7 +359,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
}, },
{ {
title: '创建时间', title: '创建时间',
width: '130px', width: '180px',
className: 'text-center', className: 'text-center',
index: 'createTime' index: 'createTime'
}, },

View File

@ -2,7 +2,7 @@ import { WaybillManagementBulkComponent } from './../components/bulk/bulk.compon
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-12-07 14:52:29 * @Date: 2021-12-07 14:52:29
* @LastEditTime: 2022-01-11 19:07:29 * @LastEditTime: 2022-01-12 14:34:04
* @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\waybill-management\services\waybill-management.service.ts * @FilePath: \tms-obc-web\src\app\routes\waybill-management\services\waybill-management.service.ts
@ -35,7 +35,7 @@ export class WaybillManagementServe extends BaseService {
$api_get_getBulkStatistics = `/api/sdc/wayBillOperate/getBulkStatistics`; $api_get_getBulkStatistics = `/api/sdc/wayBillOperate/getBulkStatistics`;
// 根据车牌号查询车辆信息 // 根据车牌号查询车辆信息
$api_get_getCarLicenseListByCarNo= `/api/mdc/cuc/carLicenseAudit/operate/getCarLicenseListByCarNo`; $api_get_getCarLicenseListByCarNo= `/api/mdc/cuc/carLicense/findCarLicenseByCarNo`;
// 大宗确认发车 // 大宗确认发车
$api_get_insertBulkStartCarInfo= `/api/sdc/wayBillOperate/insertBulkStartCarInfo`; $api_get_insertBulkStartCarInfo= `/api/sdc/wayBillOperate/insertBulkStartCarInfo`;

View File

@ -140,6 +140,7 @@ export class ShipperBaseService extends BaseService {
getNetworkTransporterById(id: string) { getNetworkTransporterById(id: string) {
return this.request(this.$api_get_network_freight_forwarder_one, { id }); return this.request(this.$api_get_network_freight_forwarder_one, { id });
} }
// 根据FullKey获取系统子配置(树) // 根据FullKey获取系统子配置(树)
loadConfigByKey(configFullKey:string ='') { loadConfigByKey(configFullKey:string ='') {
return this.http.post(this.$api_getSysConfigTreeByParentFullKey, { configFullKey }).pipe( return this.http.post(this.$api_getSysConfigTreeByParentFullKey, { configFullKey }).pipe(