diff --git a/src/app/routes/supply-management/components/assigned-car/assigned-car.component.html b/src/app/routes/supply-management/components/assigned-car/assigned-car.component.html index 3250285a..f15c5a54 100644 --- a/src/app/routes/supply-management/components/assigned-car/assigned-car.component.html +++ b/src/app/routes/supply-management/components/assigned-car/assigned-car.component.html @@ -1,7 +1,15 @@ +
- - + +
\ No newline at end of file diff --git a/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.ts b/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.ts index 9efd9693..93655fac 100644 --- a/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.ts +++ b/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.ts @@ -1,3 +1,11 @@ +/* + * @Author: your name + * @Date: 2021-12-03 11:10:14 + * @LastEditTime: 2021-12-07 19:51:21 + * @LastEditors: your name + * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\bulk-detail\bulk-detail.component.ts + */ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { STColumn } from '@delon/abc/st'; @@ -65,14 +73,14 @@ export class SupplyManagementBulkDetailComponent implements OnInit { nzTitle: '删除确认', nzContent: `请仔细核对,避免误操作!
是否删除?
`, nzOnOk: () => { - this.service.http.post(this.service.$api_del_driver, { id }).subscribe((res) => { - if (res) { - this.service.msgSrv.success('数据删除成功!'); - // this.st1.reload(); - } else { - this.service.msgSrv.error('删除失败!'); - } - }); + // this.service.http.post(this.service.$api_del_driver, { id }).subscribe((res) => { + // if (res) { + // this.service.msgSrv.success('数据删除成功!'); + // // this.st1.reload(); + // } else { + // this.service.msgSrv.error('删除失败!'); + // } + // }); }, }); } diff --git a/src/app/routes/supply-management/components/bulk/bulk.component.html b/src/app/routes/supply-management/components/bulk/bulk.component.html index 5beed3b3..270a45cd 100644 --- a/src/app/routes/supply-management/components/bulk/bulk.component.html +++ b/src/app/routes/supply-management/components/bulk/bulk.component.html @@ -49,7 +49,19 @@
- + {{item.no}} diff --git a/src/app/routes/supply-management/components/bulk/bulk.component.ts b/src/app/routes/supply-management/components/bulk/bulk.component.ts index 8cd0ef88..db70fa62 100644 --- a/src/app/routes/supply-management/components/bulk/bulk.component.ts +++ b/src/app/routes/supply-management/components/bulk/bulk.component.ts @@ -53,7 +53,14 @@ export class SupplyManagementBulkComponent implements OnInit { this.initST(); this.initSFFre(); } - + /** + * 查询参数 + */ + get reqParams() { + return { + ...this.sf?.value, + }; + } /** * 初始化查询表单 */ @@ -315,13 +322,13 @@ export class SupplyManagementBulkComponent implements OnInit { getCatalogueMember() { const params = { }; - return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe( - map((res) => { - if (res) { - console.log(res) - } - }), - ); + // return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe( + // map((res) => { + // if (res) { + // console.log(res) + // } + // }), + // ); } selectChange(e: number) { diff --git a/src/app/routes/supply-management/components/update-price/update-price.component.html b/src/app/routes/supply-management/components/update-price/update-price.component.html index 9ca3db20..a4734c9f 100644 --- a/src/app/routes/supply-management/components/update-price/update-price.component.html +++ b/src/app/routes/supply-management/components/update-price/update-price.component.html @@ -1,3 +1,11 @@ +
@@ -15,10 +23,10 @@

变更日志

- +
\ No newline at end of file diff --git a/src/app/routes/supply-management/components/update-price/update-price.component.ts b/src/app/routes/supply-management/components/update-price/update-price.component.ts index 8e942bb0..30fbe169 100644 --- a/src/app/routes/supply-management/components/update-price/update-price.component.ts +++ b/src/app/routes/supply-management/components/update-price/update-price.component.ts @@ -1,3 +1,11 @@ +/* + * @Author: your name + * @Date: 2021-12-03 11:10:14 + * @LastEditTime: 2021-12-07 19:50:40 + * @LastEditors: your name + * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\update-price\update-price.component.ts + */ import { Component, OnInit, ViewChild } from '@angular/core'; import { STColumn } from '@delon/abc/st'; import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html index 61cbd133..cddaeaea 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html @@ -6,12 +6,15 @@ -
- {{ i?.no }} - 待接单 + {{ dataList?.resourceCode }} + + 待接单 + 已接单 + 已取消 +
修改单价 @@ -24,64 +27,83 @@
- +
-
- {{ i?.owner }} - 32943898021309809423 - 3321944288191034921 - 18112345678 - 曲丽丽 18100000000 - 曲丽丽 18100000000 +
+ {{ dataList?.enterpriseProjectId }} + {{ dataList?.externalResourceCode }} + {{ dataList?.enterpriseProjectId }} + {{ dataList?.dispatchName }}
-

装卸货信息

-

装货地:广东省深圳市龙岗区怡亚通大厦

-

联系人:奥利给/13680058545

-

卸货地:广东省深圳市福田区岗厦村9巷8号405(新村)

-

联系人:花花世界/13680058545

-

发货日期:广东省深圳市福田区岗厦村9巷8号405(新村)

-

卸货日期:花花世界/13680058545

+
+

装卸货信息

+
+

装货地:{{item?.detailedAddress}}

+

联系人:{{item?.appUserName}}/{{item?.contractTelephone}}

+
+
+

卸货地:{{item?.detailedAddress}}

+

联系人:{{item?.appUserName}}/{{item?.contractTelephone}}

+
+

发货日期:{{item?.createTime}}

+

卸货日期:{{item?.modifyTime}}

+
-
+
-

货物信息

-

货物名称:广东省深圳市龙岗区怡亚通大厦

-

重量/体积:广东省深圳市福田区岗厦村9巷8号405(新村)

-

车型/车长:花花世界/13680058545

+
+

货物信息

+

货物名称:{{item?.goodsName}}

+

货物数量:{{item?.weight}}吨/{{item?.volume}}立方

+

用车需求:{{item?.vehicleDemand}}

+
-
+
-

承运信息

-

司机:广东省深圳市龙岗区怡亚通大厦

-

车牌号:广东省深圳市福田区岗厦村9巷8号405(新村)

-

车型/车长/承重:{{'拖车'}} | {{'4.5米'}} | {{'15吨'}}

+

承运信息

+

网络货运人:{{dataList?.carrierInformationVO?.enterpriseInfoName}}

+

服务类型:{{dataList?.carrierInformationVO?.serviceType === 1 ? '抢单' : '指派'}}

+

司机姓名:{{dataList?.carrierInformationVO?.driverName}}

+

手机号:{{dataList?.carrierInformationVO?.driverTelephone}}

+

车牌号:{{dataList?.carrierInformationVO?.driverLicensePlate}}

+
+
+
+
+

服务信息

+

货物价值:{{dataList?.goodsInfoList?.goodsName}}

+

保价费金额:{{dataList?.goodsInfoList?.goodsName}}

-

补充信息

-

需要回单

-

备注:奥利给/13680058545

+

补充信息

+

{{dataList?.supplementaryInformationVO?.stateReceipt === 2 ? '不需要回单' : '需要回单'}}

+

联系人:{{dataList?.supplementaryInformationVO?.receiptUserId}}

+

联系电话:{{dataList?.supplementaryInformationVO?.remarks}}

+

所在地区:{{dataList?.supplementaryInformationVO?.remarks}}

+

详细地址:{{dataList?.supplementaryInformationVO?.receiptAddress}}

+

备注:{{dataList?.supplementaryInformationVO?.remarks}}

-

运费信息

+

运费信息

-

{{400 | currency }}

-

{{400 | currency }}

-

{{400 | currency }}

-

{{400 | currency}}

-

{{400 | currency }}

+
+

{{'到货后15天内支付运费' }}

+

{{item.price | currency:'¥' }}

+

{{400 | currency:'¥' }}

+
diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts index 0f719e6f..1bafd013 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts @@ -1,3 +1,11 @@ +/* + * @Author: your name + * @Date: 2021-12-03 11:10:14 + * @LastEditTime: 2021-12-08 10:21:11 + * @LastEditors: Please set LastEditors + * @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-detail\vehicle-detail.component.ts + */ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { STColumn } from '@delon/abc/st'; @@ -14,6 +22,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { id = this.route.snapshot.params.id; i: any; + dataList: any; logColumns: STColumn[] = [ { title: '内容', index: 'theme' }, { title: '操作人', index: 'operationUserPhone' }, @@ -29,12 +38,22 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { } ngOnInit(): void { - this.service.http.get(`/user/${this.id}?_allow_anonymous=true&_allow_badcode=true`).subscribe(res => { - console.log(res); - this.i = res - }); + console.log(this.id) + if(this.id) { + this.getDetailList(this.id) + } } + // 获取录单员 + getDetailList(id: any) { + const params = { + id: id + }; + this.service.request(`${this.service.$api_get_getCompleteVehicleDetail}`, params).subscribe((res) => { + console.log(res) + this.dataList = res + }) + } diff --git a/src/app/routes/supply-management/components/vehicle/vehicle.component.html b/src/app/routes/supply-management/components/vehicle/vehicle.component.html index f5f6aa17..9b6deaec 100644 --- a/src/app/routes/supply-management/components/vehicle/vehicle.component.html +++ b/src/app/routes/supply-management/components/vehicle/vehicle.component.html @@ -1,7 +1,7 @@
- - - {{item.no}} + + + {{item.resourceCode}} - - + +
+ {{item?.LoadingAddressArr[i]}} +
+
+ + 抢单 + 指派 + +
{{item.no}}
diff --git a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts index 34243b32..26cb58f6 100644 --- a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts @@ -16,7 +16,6 @@ import { SupplyManagementUpdateFreightComponent } from '../update-freight/update styleUrls: ['./vehicle.component.less'] }) export class SupplyManagementVehicleComponent implements OnInit { - url = `/user?_allow_anonymous=true`; ui: SFUISchema = {}; ui2: SFUISchema = {}; schema: SFSchema = {}; @@ -30,32 +29,40 @@ export class SupplyManagementVehicleComponent implements OnInit { columns: STColumn[] = []; tabs = [ { name: '全部', - type: 5, + type: 0, count: 0, }, { name: '待接单', - type: 5, + type: 1, count: 0, }, { name: '已接单', - type: 5, + type: 2, count: 0, }, { name: '已取消', - type: 5, + type: 3, count: 0, }, ]; + resourceStatus: any; constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,private ar: ActivatedRoute) { } /** * 查询参数 */ get reqParams() { + console.log(this.resourceStatus) + const a:any = {}; + if(this.resourceStatus) { + a.resourceStatus = this.resourceStatus + } + console.log(a) return { + ...a, ...this.sf?.value, }; } @@ -77,35 +84,35 @@ export class SupplyManagementVehicleComponent implements OnInit { this.schema = { properties: { _$expand: { type: 'boolean', ui: { hidden: true } }, - no: { + resourceCode: { type: 'string', title: '货源编号', }, - sex2: { + serviceType: { title: '服务类型', type: 'string', - default: 0, enum: [ - { label: '未知', value: 0 }, - { label: '男', value: 1 }, - { label: '女', value: 2 }, - { label: '保密', value: 3 }, + { label: '抢单', value: 1 }, + { label: '指派', value: 2 }, ], ui: { widget: 'select', } as SFSelectWidgetSchema, }, - categoryId: { + goodsName: { type: 'string', title: '货物名称', - // enum: this.secondCatList || [], + enum: [ + { label: '普货', value: 1 }, + { label: '指派', value: 2 }, + ], ui: { widget: 'select', placeholder: '请选择', } as SFSelectWidgetSchema, }, - no2: { + loadingPlace: { type: 'string', title: '装货地', ui: { @@ -135,12 +142,11 @@ export class SupplyManagementVehicleComponent implements OnInit { sex: { title: '审核状态', type: 'string', - default: 0, enum: [ - { label: '未知', value: 0 }, - { label: '男', value: 1 }, - { label: '女', value: 2 }, - { label: '保密', value: 3 }, + { label: '待审核', value: 1 }, + { label: '审核通过', value: 2 }, + { label: '不通过', value: 3 }, + { label: '已取消', value: 4 }, ], ui: { widget: 'select', @@ -159,7 +165,7 @@ export class SupplyManagementVehicleComponent implements OnInit { _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.getCatalogueMember(), + // asyncData: () => this.getCatalogueMember(), }, }, }, @@ -193,26 +199,31 @@ export class SupplyManagementVehicleComponent implements OnInit { title: '货源编号', width: '100px', className: 'text-center', - render: 'goodsId' + render: 'resourceCode' }, - { title: '服务类型', index: 'externalSn', width: '120px', className: 'text-center' }, - { title: '货主', index: 'linkUrl', width: '120px', className: 'text-center' }, + { title: '服务类型', index: 'serviceType', width: '120px', className: 'text-center',render: 'serviceType'}, + { title: '货主', index: 'shipperAppUserName', width: '120px', className: 'text-center' }, { title: '项目名称', + index: 'enterpriseProjectName', className: 'text-center', width: '120px', }, { title: '装货地', + index: 'loadingAddressArr', className: 'text-center', width: '120px', + render: 'loadingAddressArr' }, { title: '卸货地', + index: 'unloadingAddressArr', className: 'text-center', width: '120px', }, { title: '货物名称', + index: 'goodsName', className: 'text-center', width: '120px', }, @@ -220,9 +231,12 @@ export class SupplyManagementVehicleComponent implements OnInit { title: '货物数量', className: 'text-center', width: '120px', + index: 'goodsNumber', + }, { title: '用车需求', + index: 'vehicleDemand', className: 'text-center', width: '120px', }, @@ -230,41 +244,43 @@ export class SupplyManagementVehicleComponent implements OnInit { title: '总费用', className: 'text-center', width: '120px', - index: 'goodsId', - render: 'enStatusStr27878' + index: 'totalAmount', + render: 'totalAmount' }, { title: '附加费', className: 'text-center', width: '120px', + index: 'surcharge', }, { title: '货源状态', className: 'text-center', - index: 'enStatusStr2', + index: 'resourceStatus', type: 'badge', width: '120px', badge: { - 正常: { text: '正常', color: 'success' }, - 冻结: { text: '冻结', color: 'warning' }, - 废弃: { text: '废弃', color: 'default' }, + 1: { text: '待接单', color: 'success' }, + 2: { text: '已接单', color: 'warning' }, }, }, { title: '创建时间', width: '170px', + index: 'releaseTime', className: 'text-center', }, { title: '审核状态', className: 'text-center', - index: 'enStatusStr3', + index: 'auditStatus', type: 'badge', width: '170px', badge: { - 正常: { text: '正常', color: 'success' }, - 冻结: { text: '冻结', color: 'warning' }, - 废弃: { text: '废弃', color: 'default' }, + 1: { text: '待审核', color: 'warning' }, + 2: { text: '审核通过', color: 'success' }, + 3: { text: '不通过', color: 'default' }, + 4: { text: '已取消', color: 'default' }, }, }, { @@ -276,10 +292,12 @@ export class SupplyManagementVehicleComponent implements OnInit { { text: '货源审核', click: (_record) => this.audit(_record, 1), + iif: item => item.status === 1, }, { text: '修改货源', click: (_record) => this.amend(_record), + iif: item => item.status === 1 || item.status === 2, }, { text: '修改运费', @@ -287,6 +305,7 @@ export class SupplyManagementVehicleComponent implements OnInit { }, { text: '取消货源', + iif: item => item.status === 1 || item.status === 2, // click: (_record) => this.delOne(_record), }, { @@ -296,6 +315,7 @@ export class SupplyManagementVehicleComponent implements OnInit { { text: '重新指派', click: (_record) => this.assignedCar(_record), + iif: item => item.status === 2, }, ], }, @@ -332,21 +352,14 @@ export class SupplyManagementVehicleComponent implements OnInit { - // 获取录单员 - getCatalogueMember() { - const params = { - }; - return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe( - map((res) => { - if (res) { - console.log(res) - } - }), - ); - } selectChange(e: number) { console.log(e); + this.resourceStatus = e; + this.initST(); + setTimeout(() => { + this.st.load(); + }, 500); } /** diff --git a/src/app/routes/supply-management/services/supply-management.service.ts b/src/app/routes/supply-management/services/supply-management.service.ts index 80882fb7..56310ac2 100644 --- a/src/app/routes/supply-management/services/supply-management.service.ts +++ b/src/app/routes/supply-management/services/supply-management.service.ts @@ -1,3 +1,11 @@ +/* + * @Author: your name + * @Date: 2021-12-03 11:10:14 + * @LastEditTime: 2021-12-07 20:09:14 + * @LastEditors: Please set LastEditors + * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts + */ import { Injectable, Injector } from '@angular/core'; import { BaseService } from 'src/app/shared/services'; @@ -5,9 +13,15 @@ import { BaseService } from 'src/app/shared/services'; providedIn: 'root' }) export class SupplyManagementService extends BaseService { + // 整车获取货源表详情 + $api_get_getCompleteVehicleDetail = `api/sdc/goodsResourceOperate/getCompleteVehicleDetail`; + // 大宗获取货源表详情 + $api_get_getBulkDetail = `api/sdc/goodsResourceOperate/getBulkDetail`; + // 查询运营后台大宗货源列表 + $api_get_bulkPage_list = `api/sdc/goodsResourceOperate/list/bulkPage`; + // 查询运营后台整车货源列表 + $api_get_wholePage_list = `api/sdc/goodsResourceOperate/list/wholePage`; - $api_get_catalogue_member = `/user?_allow_anonymous=true`; - $api_del_driver = ``; constructor(public injector: Injector) { super(injector) }