From d93fd449af384ee5384b91696eb054de60af8a08 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 17 Jan 2022 17:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../clearing-modal.component.ts | 22 ++++-- .../bulk-detail-change.component.ts | 4 +- .../components/bulk/bulk.component.ts | 17 ++--- .../components/risk/risk.component.ts | 10 +-- .../vehicle-detail-change.component.ts | 4 +- .../components/vehicle/vehicle.component.ts | 55 +++++++++++---- .../update-freight.component.html | 25 ++++--- .../update-freight.component.ts | 68 +++++++++++++------ .../freight-people.component.ts | 14 ++-- .../components/bulk/bulk.component.ts | 35 ++++++++-- .../close-account/close-account.component.ts | 6 +- .../components/bulk/bulk.component.ts | 12 ++-- .../components/vehicle/vehicle.component.ts | 12 ++-- .../services/waybill-management.service.ts | 6 +- 14 files changed, 194 insertions(+), 96 deletions(-) diff --git a/src/app/routes/financial-management/components/abnormal-gold/clearing-modal/clearing-modal.component.ts b/src/app/routes/financial-management/components/abnormal-gold/clearing-modal/clearing-modal.component.ts index b96e5fe3..592e7bc4 100644 --- a/src/app/routes/financial-management/components/abnormal-gold/clearing-modal/clearing-modal.component.ts +++ b/src/app/routes/financial-management/components/abnormal-gold/clearing-modal/clearing-modal.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { apiConf } from '@conf/api.conf'; import { SFComponent, SFSchema, SFTextWidgetSchema, SFUISchema, SFUploadWidgetSchema } from '@delon/form'; +import { ShipperBaseService } from '@shared'; import { NzModalRef } from 'ng-zorro-antd/modal'; import { FreightAccountService } from '../../../services/freight-account.service'; @@ -35,7 +36,11 @@ export class ClearingModalComponent implements OnInit { } }; - constructor(private modal: NzModalRef, public service: FreightAccountService) {} + constructor( + private modal: NzModalRef, + public service: FreightAccountService, + public shipperservice: ShipperBaseService, + ) {} ngOnInit(): void { this.initSF(this.i); @@ -51,13 +56,18 @@ export class ClearingModalComponent implements OnInit { } as SFTextWidgetSchema, default: '10000.00' }, - name2: { - title: '网络货运人', + enterpriseInfoId: { type: 'string', + title: '网络货运人', ui: { - widget: 'text' - } as SFTextWidgetSchema, - default: '天津怡亚通物流科技有限公司' + widget: 'select', + placeholder: '请选择', + visibleIf: { + _$expand: (value: boolean) => value, + }, + allowClear: true, + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), + }, }, name3: { title: '银行类型', diff --git a/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts b/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts index 584b883c..455893c2 100644 --- a/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts +++ b/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts @@ -74,7 +74,7 @@ loadTime: any; // 货源单设置回显 public service: OrderManagementService, private modalService: NzModalService, private amapService: AmapService, - public service2: ShipperBaseService, + public shipperservice: ShipperBaseService, fb: FormBuilder, private envSrv: EAEnvironmentService, ) { @@ -528,7 +528,7 @@ initSF3() { // ui: { // placeholder: '请选择', // widget: 'select', - // asyncData: () => this.service2.getNetworkFreightForwarder(), + // asyncData: () => this.shipperservice.getNetworkFreightForwarder(), // visibleIf: { // _$expand: (value: boolean) => value, // }, diff --git a/src/app/routes/order-management/components/bulk/bulk.component.ts b/src/app/routes/order-management/components/bulk/bulk.component.ts index 42169214..c3b782bc 100644 --- a/src/app/routes/order-management/components/bulk/bulk.component.ts +++ b/src/app/routes/order-management/components/bulk/bulk.component.ts @@ -68,7 +68,7 @@ tabs = { constructor( public service: OrderManagementService, private modal: NzModalService, - public service2: ShipperBaseService, + public shipperservice: ShipperBaseService, private router: Router, ) { } @@ -243,7 +243,7 @@ tabs = { .request(this.service.$api_get_getCarLicenseListByCarNo, { 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(); } else { return of([]); @@ -302,13 +302,13 @@ tabs = { } } as SFDateWidgetSchema }, - isRiskSheet: { + riskStatus: { type: 'string', title: '是否风险单', enum: [ { label: '全部', value: '' }, - { label: '是', value: '1' }, - { label: '否', value: '2' } + { label: '是', value: '3' }, + { label: '否', value: '1' } ], ui: { widget: 'select', @@ -328,7 +328,7 @@ tabs = { _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder(), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), }, }, // goodsName: { @@ -355,7 +355,7 @@ tabs = { _$expand: (value: boolean) => value, }, asyncData: () => - this.service2.loadConfigByKey('goods.name.config.type').pipe( + this.shipperservice.loadConfigByKey('goods.name.config.type').pipe( map((data: any) => { return data[0].children?.map((m: any) => { return { label: m.name, value: m.id }; @@ -494,7 +494,7 @@ tabs = { title: '创建时间', width: '180px', className: 'text-left', - index: 'creationTime', + index: 'createTime', }, { title: '操作', @@ -714,6 +714,7 @@ tabs = { nzWidth: 580, nzContent: UpdateFreightComponent, nzComponentParams: { data: { ...data, billId: item.id } }, + nzFooter: null }); modal.afterClose.subscribe(_ => diff --git a/src/app/routes/order-management/components/risk/risk.component.ts b/src/app/routes/order-management/components/risk/risk.component.ts index 1c5f70f1..dfc01f56 100644 --- a/src/app/routes/order-management/components/risk/risk.component.ts +++ b/src/app/routes/order-management/components/risk/risk.component.ts @@ -36,7 +36,7 @@ export class OrderManagementRiskComponent implements OnInit { }; constructor( public service: OrderManagementService, - public service2: ShipperBaseService, + public shipperservice: ShipperBaseService, private modal: NzModalService, public router: Router ) {} @@ -190,18 +190,18 @@ export class OrderManagementRiskComponent implements OnInit { } } as SFSelectWidgetSchema }, - enterpriseInfoName: { + enterpriseInfoId: { type: 'string', title: '网络货运人', ui: { widget: 'select', placeholder: '请选择', visibleIf: { - _$expand: (value: boolean) => value + _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder() - } + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), + }, }, createTime: { title: '创建时间', diff --git a/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts b/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts index c6385ec1..428e99f9 100644 --- a/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts +++ b/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts @@ -74,7 +74,7 @@ loadTime: any; // 货源单设置回显 public service: OrderManagementService, private modalService: NzModalService, private amapService: AmapService, - public service2: ShipperBaseService, + public shipperservice: ShipperBaseService, fb: FormBuilder, private envSrv: EAEnvironmentService, ) { @@ -523,7 +523,7 @@ initSF3() { // ui: { // placeholder: '请选择', // widget: 'select', - // asyncData: () => this.service2.getNetworkFreightForwarder(), + // asyncData: () => this.shipperservice.getNetworkFreightForwarder(), // visibleIf: { // _$expand: (value: boolean) => value, // }, diff --git a/src/app/routes/order-management/components/vehicle/vehicle.component.ts b/src/app/routes/order-management/components/vehicle/vehicle.component.ts index b7493ca3..371e442c 100644 --- a/src/app/routes/order-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/order-management/components/vehicle/vehicle.component.ts @@ -70,7 +70,7 @@ resourceStatus: any; constructor( public service: OrderManagementService, private modal: NzModalService, - public service2: ShipperBaseService, + public shipperservice: ShipperBaseService, public router: Router, ) { } @@ -91,11 +91,25 @@ resourceStatus: any; const a:any = {}; if(this.resourceStatus) { a.billStatus = this.resourceStatus; - } - return { + } + const params: any = Object.assign({}, this.sf?.value || {}); + delete params._$expand; + return { ...a, - ...this.sf?.value, - }; + ...params, + createTime: { + start: this.sf?.value?.createTime?.[0] || '', + end: this.sf?.value?.createTime?.[1] || '', + }, + }; + // const a:any = {}; + // if(this.resourceStatus) { + // a.billStatus = this.resourceStatus; + // } + // return { + // ...a, + // ...this.sf?.value, + // }; } get selectedRows() { return this.st?.list.filter((item) => item.checked) || []; @@ -225,7 +239,7 @@ resourceStatus: any; } as SFSelectWidgetSchema }, - plateNumber: { + CarNo: { title: '车牌号', type: 'string', ui: { @@ -239,7 +253,7 @@ resourceStatus: any; .request(this.service.$api_get_getCarLicenseListByCarNo, { 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(); } else { return of([]); @@ -286,7 +300,7 @@ resourceStatus: any; }, } as SFSelectWidgetSchema, }, - creationTime: { + createTime: { title: '创建时间', type: 'string', ui: { @@ -298,13 +312,13 @@ resourceStatus: any; } } as SFDateWidgetSchema }, - isRiskSheet: { + riskStatus: { type: 'string', title: '是否风险单', enum: [ { label: '全部', value: '' }, - { label: '是', value: '1' }, - { label: '否', value: '2' } + { label: '是', value: '3' }, + { label: '否', value: '1' } ], ui: { widget: 'select', @@ -314,6 +328,19 @@ resourceStatus: any; }, }, }, + // riskStatus: { + // title: '是否风险单', + // type: 'string', + // default: '', + // ui: { + // widget: 'dict-select', + // params: { dictKey: 'bill:risk:status' }, + // containAllLable:true, + // visibleIf: { + // _$expand: (value: boolean) => value, + // }, + // } as SFSelectWidgetSchema, + // }, enterpriseInfoId: { type: 'string', title: '网络货运人', @@ -324,7 +351,7 @@ resourceStatus: any; _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder(), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), }, }, goodsNameId: { @@ -338,7 +365,7 @@ resourceStatus: any; _$expand: (value: boolean) => value, }, asyncData: () => - this.service2.loadConfigByKey('goods.name.config.type').pipe( + this.shipperservice.loadConfigByKey('goods.name.config.type').pipe( map((data: any) => { return data[0].children?.map((m: any) => { return { label: m.name, value: m.id }; @@ -428,7 +455,7 @@ resourceStatus: any; { title: '创建时间', className: 'text-left', - index: 'creationTime', + index: 'createTime', width: '170px', }, { diff --git a/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html b/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html index a4bc86a9..5e01abfc 100644 --- a/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html +++ b/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html @@ -1,17 +1,22 @@ - - - + +
-

- 总运费:{{ data.totalFreight | currency }} -

-

运输费:{{ data.freight | currency}},附加费:{{ data.surcharge | currency }}

-
\ No newline at end of file +

+ 总运费:{{ data.totalFreight |currency }} +

+

运输费:{{ data.freight |currency }},附加费:{{ data.surcharge |currency}}

+ + diff --git a/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.ts b/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.ts index 134a72f5..702ba68e 100644 --- a/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.ts +++ b/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.ts @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-12-14 14:03:07 - * @LastEditTime: 2022-01-13 13:33:14 + * @LastEditTime: 2022-01-17 17:02:25 * @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\order-management\modal\bulk\update-freight\update-freight.component.ts @@ -12,6 +12,7 @@ import { SFSelectWidgetSchema, SFStringWidgetSchema, SFTextWidgetSchema } from '@delon/form'; +import { NzModalRef } from 'ng-zorro-antd/modal'; import { Subscription } from 'rxjs'; import { OrderManagementService } from '../../../services/order-management.service'; @@ -28,7 +29,7 @@ export class UpdateFreightComponent implements OnInit { data: any; calculateSub!: Subscription; - constructor(private service: OrderManagementService) {} + constructor(private service: OrderManagementService,private modal: NzModalRef, ) {} ngOnInit(): void { this.schema = this.initSF(this.data); @@ -44,8 +45,10 @@ export class UpdateFreightComponent implements OnInit { type: 'object', properties: { freightPrice: { - type: 'string', + type: 'number', title: '运费单价', + minimum:0, + maximum:99999, ui: { addOnAfter: data.freightTypeLabel, placeholder: '请输入', @@ -104,6 +107,8 @@ export class UpdateFreightComponent implements OnInit { type: 'number', title: '装货重量', default: data.acceptWeight, + minimum:0, + maximum:99999, ui: { unit: '吨', placeholder: '请输入', @@ -118,8 +123,10 @@ export class UpdateFreightComponent implements OnInit { type: 'number', title: '装货体积', default: data.acceptVolume, + minimum:0, + maximum:99999, ui: { - unit: '方', + unit: '吨', placeholder: '请输入', grid: { span: 12 @@ -132,6 +139,8 @@ export class UpdateFreightComponent implements OnInit { type: 'number', title: '卸货重量', default: data.settlementWeight, + minimum:0, + maximum:99999, ui: { unit: '吨', placeholder: '请输入', @@ -146,8 +155,10 @@ export class UpdateFreightComponent implements OnInit { type: 'number', title: '卸货体积', default: data.settlementVolume, + minimum:0, + maximum:99999, ui: { - unit: '方', + unit: '吨', placeholder: '请输入', grid: { span: 12 @@ -179,23 +190,36 @@ export class UpdateFreightComponent implements OnInit { } changeNumVal() { - console.log(this.sf.valid) - if(this.sf.valid) { - console.log(this.sf.valid) + if (this.calculateSub) { + this.calculateSub.unsubscribe(); } - // if (this.calculateSub) { - // this.calculateSub.unsubscribe(); - // } - // this.calculateSub = this.service - // .request(this.service.$api_calculate_cost, { billId: this.data.billId, ...this.sf.value, changeCause: '' }) - // .subscribe((res: any) => { - // if (res) { - // Object.assign(this.data, { - // totalFreight: res.totalFreight, - // freight: res.freight, - // surcharge: res.surcharge - // }); - // } - // }); + this.calculateSub = this.service + .request(this.service.$api_calculate_cost, { billId: this.data.billId, ...this.sf.value, changeCause: '' }) + .subscribe(res => { + if (res) { + Object.assign(this.data, { + totalFreight: res.totalFreight, + freight: res.freight, + surcharge: res.surcharge + }); + } + }); + } + + save(value: any): void { + if(!this.sf.valid){ + this.sf.validator({ emitError: true }); + return; + } + this.service.request(this.service.$api_change_bulk, { billId: this.data.billId, ...this.sf.value }).subscribe(res => { + if (res) { + this.service.msgSrv.success('变更运费成功'); + this.modal.destroy(true); + } + }); + } + + close(): void { + this.modal.destroy(); } } diff --git a/src/app/routes/order-management/modal/vehicle/freight-people/freight-people.component.ts b/src/app/routes/order-management/modal/vehicle/freight-people/freight-people.component.ts index 80a50ae7..2168d5f1 100644 --- a/src/app/routes/order-management/modal/vehicle/freight-people/freight-people.component.ts +++ b/src/app/routes/order-management/modal/vehicle/freight-people/freight-people.component.ts @@ -2,7 +2,7 @@ import { Params } from '@angular/router'; /* * @Author: your name * @Date: 2021-12-14 14:03:07 - * @LastEditTime: 2022-01-04 09:37:50 + * @LastEditTime: 2022-01-17 16:20:06 * @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\order-management\modal\bulk\update-freight\update-freight.component.ts @@ -12,6 +12,7 @@ import {SFComponent, SFNumberWidgetSchema, SFSchema, SFUISchema} from '@delon/fo import { NzMessageService } from 'ng-zorro-antd/message'; import { NzModalRef } from 'ng-zorro-antd/modal'; import { OrderManagementService } from '../../../services/order-management.service'; +import { ShipperBaseService } from '@shared'; @Component({ @@ -28,7 +29,12 @@ export class VehicleFreightPeopleComponent implements OnInit { data: any; - constructor(private modal: NzModalRef, private msgSrv: NzMessageService, public service: OrderManagementService, ) {} + constructor( + private modal: NzModalRef, + private msgSrv: NzMessageService, + public service: OrderManagementService, + public shipperservice: ShipperBaseService, + ) {} ngOnInit(): void { console.log(this.data) @@ -37,7 +43,7 @@ export class VehicleFreightPeopleComponent implements OnInit { initSF() { this.schema = { properties: { - enterpriseInfoName: { + enterpriseInfoId: { type: 'string', title: '网络货运人', ui: { @@ -47,7 +53,7 @@ export class VehicleFreightPeopleComponent implements OnInit { _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.service.getNetworkFreightForwarderHistory(this.data), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), }, }, }, 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 f37c3c6f..183be6a0 100644 --- a/src/app/routes/supply-management/components/bulk/bulk.component.ts +++ b/src/app/routes/supply-management/components/bulk/bulk.component.ts @@ -37,7 +37,7 @@ export class SupplyManagementBulkComponent implements OnInit { receivedQuantity: 0, stayQuantity: 0 }; - constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,public service2: ShipperBaseService) { } + constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,public shipperservice: ShipperBaseService) { } ngOnInit(): void { this.initSF(); @@ -53,10 +53,33 @@ export class SupplyManagementBulkComponent implements OnInit { if(this.resourceStatus) { a.resourceStatus = this.resourceStatus } - return { + const params: any = Object.assign({}, this.sf?.value || {}); + delete params._$expand; + return { ...a, - ...this.sf?.value, - }; + ...params, + releaseTime: { + start: this.sf?.value?.releaseTime?.[0] || '', + end: this.sf?.value?.releaseTime?.[1] || '', + }, + deadlineTime: { + start: this.sf?.value?.deadlineTime?.[0] || '', + end: this.sf?.value?.deadlineTime?.[1] || '', + }, + }; + + // const a:any = {}; + // if(this.resourceStatus) { + // a.resourceStatus = this.resourceStatus + // } + // return { + // ...a, + // ...this.sf?.value, + // createTime: { + // start: this.sf.value.createTime?.[0] || null, + // end: this.sf.value.createTime?.[1] || null, + // } + // }; } search() { this.st?.load(1); @@ -108,7 +131,7 @@ export class SupplyManagementBulkComponent implements OnInit { }, } as SFSelectWidgetSchema, }, - createTime: { + releaseTime: { title: '发布时间', type: 'string', ui: { @@ -142,7 +165,7 @@ export class SupplyManagementBulkComponent implements OnInit { _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder(), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), }, }, shipperAppUserId: { 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 5fd15502..41c25906 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 @@ -55,7 +55,7 @@ export class CloseAccountComponent implements OnInit { constructor( public service: SystemService, private nzModalService: NzModalService, - public service2: ShipperBaseService, + public shipperservice: ShipperBaseService, ) {} ngOnInit(): void { @@ -106,7 +106,7 @@ export class CloseAccountComponent implements OnInit { ui: { placeholder: '请选择', widget: 'select', - asyncData: () => this.service2.getNetworkFreightForwarder(), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), visibleIf: { _$expand: (value: boolean) => value, }, @@ -144,7 +144,7 @@ export class CloseAccountComponent implements OnInit { ui: { placeholder: '请选择', widget: 'select', - asyncData: () => this.service2.getNetworkFreightForwarder(), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), visibleIf: { _$expand: (value: boolean) => value, }, diff --git a/src/app/routes/waybill-management/components/bulk/bulk.component.ts b/src/app/routes/waybill-management/components/bulk/bulk.component.ts index 83a6b864..9cb4a7d1 100644 --- a/src/app/routes/waybill-management/components/bulk/bulk.component.ts +++ b/src/app/routes/waybill-management/components/bulk/bulk.component.ts @@ -61,7 +61,7 @@ tabs = { constructor( public service: WaybillManagementServe, private modal: NzModalService, - public service2: ShipperBaseService) { } + public shipperservice: ShipperBaseService) { } /** * 查询参数 @@ -224,13 +224,13 @@ tabs = { }, } as SFDateWidgetSchema, }, - isRiskSheet: { + riskStatus: { type: 'string', title: '是否风险单', enum: [ { label: '全部', value: '' }, - { label: '是', value: '1' }, - { label: '否', value: '2' } + { label: '是', value: '3' }, + { label: '否', value: '1' } ], ui: { widget: 'select', @@ -250,7 +250,7 @@ tabs = { _$expand: (value: boolean) => value, }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder(), + asyncData: () => this.shipperservice.getNetworkFreightForwarder(), }, }, settlementBasis: { @@ -276,7 +276,7 @@ tabs = { _$expand: (value: boolean) => value }, asyncData: () => - this.service2.loadConfigByKey('goods.name.config.type').pipe( + this.shipperservice.loadConfigByKey('goods.name.config.type').pipe( map((data: any) => { return data[0].children?.map((m: any) => { return { label: m.name, value: m.id }; diff --git a/src/app/routes/waybill-management/components/vehicle/vehicle.component.ts b/src/app/routes/waybill-management/components/vehicle/vehicle.component.ts index f3e054cd..5eb56cd6 100644 --- a/src/app/routes/waybill-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/waybill-management/components/vehicle/vehicle.component.ts @@ -58,7 +58,7 @@ export class WaybillManagementVehicleComponent implements OnInit { constructor( public service: WaybillManagementServe, private modal: NzModalService, - public service2: ShipperBaseService) {} + public shipperservice: ShipperBaseService) {} /** * 查询参数 @@ -233,13 +233,13 @@ export class WaybillManagementVehicleComponent implements OnInit { } } as SFDateWidgetSchema }, - isRiskSheet: { + riskStatus: { type: 'string', title: '是否风险单', enum: [ { label: '全部', value: '' }, - { label: '是', value: '1' }, - { label: '否', value: '2' } + { label: '是', value: '3' }, + { label: '否', value: '1' } ], ui: { widget: 'select', @@ -259,7 +259,7 @@ export class WaybillManagementVehicleComponent implements OnInit { _$expand: (value: boolean) => value }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder() + asyncData: () => this.shipperservice.getNetworkFreightForwarder() } }, // goodsName: { @@ -283,7 +283,7 @@ export class WaybillManagementVehicleComponent implements OnInit { _$expand: (value: boolean) => value }, asyncData: () => - this.service2.loadConfigByKey('goods.name.config.type').pipe( + this.shipperservice.loadConfigByKey('goods.name.config.type').pipe( map((data: any) => { return data[0].children?.map((m: any) => { return { label: m.name, value: m.id }; diff --git a/src/app/routes/waybill-management/services/waybill-management.service.ts b/src/app/routes/waybill-management/services/waybill-management.service.ts index d5ab48d6..d133c543 100644 --- a/src/app/routes/waybill-management/services/waybill-management.service.ts +++ b/src/app/routes/waybill-management/services/waybill-management.service.ts @@ -2,7 +2,7 @@ import { WaybillManagementBulkComponent } from './../components/bulk/bulk.compon /* * @Author: your name * @Date: 2021-12-07 14:52:29 - * @LastEditTime: 2022-01-12 14:34:04 + * @LastEditTime: 2022-01-17 15:06:56 * @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\waybill-management\services\waybill-management.service.ts @@ -52,8 +52,10 @@ export class WaybillManagementServe extends BaseService { // 查询CRM客户信息表 $api_get_crmCustomer_page = '/api/mdc/cuc/crmCustomer/list/page'; - // 查询运营端异常上报 + // 查询运营端未回复异常上报 $api_get_listOperatePage = '/api/sdc/exceptionReport/listOperateUnReplyPage'; + // 查询运营端已回复异常上报 + $api_get_listOperateReplyPage = '/api/sdc/exceptionReport/listOperateReplyPage'; // 获取货主企业列表 public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';