From 674dba6cf8b68a2a65eb5a07c5f6bed70cb4f916 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Thu, 28 Apr 2022 19:27:46 +0800 Subject: [PATCH] fix bug --- .../modify-captain.component.html | 4 ++-- .../modify-captain/modify-captain.component.ts | 18 +++++++++++++++++- .../services/order-management.service.ts | 5 ++++- .../close-account/close-account.component.html | 7 +++---- .../close-account/close-account.component.ts | 2 +- 5 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.html b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.html index dee32307..88299e93 100644 --- a/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.html +++ b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-29 17:27:37 * @LastEditors : Shiming - * @LastEditTime : 2022-01-18 17:22:55 + * @LastEditTime : 2022-04-28 19:27:13 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-captain\\modify-captain.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -29,7 +29,7 @@ - + diff --git a/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts index 7e3ab9d6..68d4bdc0 100644 --- a/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts +++ b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-30 14:45:39 * @LastEditors : Shiming - * @LastEditTime : 2022-04-22 16:31:57 + * @LastEditTime : 2022-04-28 19:27:14 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-captain\\modify-captain.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -38,6 +38,21 @@ export class VehicleModifyCaptainComponent implements OnInit { this.initSF(); this.initST(); } + initData(id: string) { + // this.service.request(this.service.$api_getDriverBankInfoList, {roleId: id}).subscribe((res:any) => { + // console.log(res); + // if(res) { + // let List :any= [] + // res.forEach((element: any) => { + // List.push({ + // bankCardNumber: element.bankBranchName + '/'+element.bankCardNumber, + // value: element.id + // }) + // }); + // this.bankData = List + // } + // }) + } initSF() { this.schema = { properties: { @@ -120,6 +135,7 @@ export class VehicleModifyCaptainComponent implements OnInit { this.service.request(this.service.$api_get_getCarCaptainByMobile, params).subscribe((res: any) => { if (res) { this.dataList = [res]; + this.initData(res.appUserId); } }); } diff --git a/src/app/routes/order-management/services/order-management.service.ts b/src/app/routes/order-management/services/order-management.service.ts index f68ed55c..a684e125 100644 --- a/src/app/routes/order-management/services/order-management.service.ts +++ b/src/app/routes/order-management/services/order-management.service.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-03 15:31:52 * @LastEditors : Shiming - * @LastEditTime : 2022-04-22 17:14:39 + * @LastEditTime : 2022-04-28 19:19:01 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -222,6 +222,9 @@ export class OrderManagementService extends ShipperBaseService { // 订单上报推送 $api_manualOrderSubmission = '/api/sdc/billOperate/manualOrderSubmission'; + // 获取司机所有银行卡信息 + $api_getDriverBankInfoList= '/api/fcc/bankInfoDMC/getDriverBankInfoList'; + // // 生成卸货单 // public $api_createBillDischargeGoods = `/api/sdc/billOperate/createBillDischargeGoods`; // // 生成提货单 diff --git a/src/app/routes/sys-setting/components/close-account/close-account.component.html b/src/app/routes/sys-setting/components/close-account/close-account.component.html index 0dae990d..b29143f4 100644 --- a/src/app/routes/sys-setting/components/close-account/close-account.component.html +++ b/src/app/routes/sys-setting/components/close-account/close-account.component.html @@ -1,10 +1,10 @@ @@ -16,7 +16,6 @@ - edit
diff --git a/src/app/routes/sys-setting/components/close-account/close-account.component.ts b/src/app/routes/sys-setting/components/close-account/close-account.component.ts index 1472bf4e..c63b5418 100644 --- a/src/app/routes/sys-setting/components/close-account/close-account.component.ts +++ b/src/app/routes/sys-setting/components/close-account/close-account.component.ts @@ -188,7 +188,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } }; if(res) { this.formData = res; const List: any = []; - List.push({ label: res.enterpriseName, value: res.id }); + List.push({ label: res.enterpriseName, value: res.enterpriseId }); this.sfFre.getProperty('/enterpriseId')!.schema.enum = List; this.sfFre.getProperty('/enterpriseId')!.widget.reset(List); }