diff --git a/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.ts b/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.ts
index 48c1b0d7..8e332560 100644
--- a/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.ts
+++ b/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.ts
@@ -62,7 +62,7 @@ export class SystemStaffStaffModalComponent implements OnInit {
default: staff?.roleId || null
}
},
- required: ['staffName', 'telephone']
+ required: ['staffName', 'telephone', 'roleId']
};
this.ui = {
'*': {
diff --git a/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.html b/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.html
index a95dc023..886c98d8 100644
--- a/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.html
+++ b/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.html
@@ -7,9 +7,9 @@
-
\ No newline at end of file
diff --git a/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.ts b/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.ts
index afcbedd7..2910a0ab 100644
--- a/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.ts
+++ b/src/app/routes/ticket-management/components/etc-blacklist/add-cart/add-cart.component.ts
@@ -7,7 +7,7 @@ import { TicketService } from '../../../services/ticket.service';
@Component({
selector: 'app-add-cart',
- templateUrl: './add-cart.component.html',
+ templateUrl: './add-cart.component.html'
})
export class AddCartComponent implements OnInit {
data = [];
@@ -18,25 +18,25 @@ export class AddCartComponent implements OnInit {
sf!: SFComponent;
columns: STColumn[] = [
{ title: '', index: 'key', type: 'checkbox' },
- { title: '车牌号', index: 'no' },
- { title: '车辆所有人', index: 'callNo' }
+ { title: '车牌号', index: 'carNo' },
+ { title: '车辆所有人', index: 'carOwner' }
];
searchSchema: SFSchema = {
properties: {
- params1: {
+ carNo: {
title: '',
type: 'string',
ui: {
placeholder: '请输入车牌号'
}
},
- params2: {
+ carOwner: {
title: '',
type: 'string',
ui: {
placeholder: '请输入车辆所有人'
}
- },
+ }
}
};
@@ -53,6 +53,10 @@ export class AddCartComponent implements OnInit {
return requestOptions;
};
+ afterRes = (data: any[], rawData?: any) => {
+ return data.map(item => ({ ...item, disabled: item.isWhiteList }));
+ };
+
stChange(e: STChange): void {
switch (e.type) {
case 'checkbox':
diff --git a/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.html b/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.html
index 52edb998..798a07a6 100644
--- a/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.html
+++ b/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.html
@@ -31,7 +31,7 @@
0" (click)="st.clearCheck()" class="ml-lg">清空
- {
this.tabs.forEach(i => (i.isActived = false));
item.isActived = !item.isActived;
- this.st.load(1);
+ // this.st.load(1);
this.st.resetColumns();
}, 500);
}
@@ -116,7 +117,19 @@ export class ETCBlacklistComponent implements OnInit {
nzWidth: 700,
nzComponentParams: { data: [] },
nzOnOk: com => {
- console.log(com.selectedData);
+ if (com.selectedData?.length <= 0) {
+ this.service.msgSrv.warning('请选择车辆');
+ return false;
+ }
+ const ids = com.selectedData.map(node => node.carId);
+ this.service.request(this.service.$api_save_etc_shipper, { carIds: ids }).subscribe(res => {
+ if (res) {
+ this.service.msgSrv.success('添加成功');
+ modal.destroy();
+ this.st.load(1);
+ }
+ });
+ return false;
}
});
modal.afterClose.subscribe(res => {
@@ -148,14 +161,16 @@ export class ETCBlacklistComponent implements OnInit {
if (res) {
this.service.msgSrv.success('删除成功');
this.st.load(1);
+ this.selectedRows = [];
modal.destroy();
}
});
} else {
- this.service.request(this.service.$api_delete_etc_shipper, ids).subscribe(res => {
+ this.service.request(this.service.$api_delete_etc_cart, ids).subscribe(res => {
if (res) {
this.service.msgSrv.success('删除成功');
this.st.load(1);
+ this.selectedRows = [];
modal.destroy();
}
});
@@ -250,7 +265,7 @@ export class ETCBlacklistComponent implements OnInit {
{ title: '', index: 'key', type: 'checkbox' },
{ title: '企业名称', index: 'shipperAppUserName', iif: () => this.tabType === 1 },
{ title: '联系人姓名', index: 'contactName', iif: () => this.tabType === 1 },
- { title: '联系人手机号', index: 'contactPhoneNumber' },
+ { title: '联系人手机号', index: 'contactPhoneNumber', iif: () => this.tabType === 1 },
{
title: '认证状态',
className: 'text-center',
@@ -259,8 +274,8 @@ export class ETCBlacklistComponent implements OnInit {
enum: { 1: '未上传', 0: '草稿', 10: '待审核', 20: '已审核', 30: '已驳回', 40: '证件过期' },
iif: () => this.tabType === 1
},
- { title: '车牌号', index: 'no', iif: () => this.tabType === 2 },
- { title: '车辆所有人', index: 'no', iif: () => this.tabType === 2 },
+ { title: '车牌号', index: 'carNo', iif: () => this.tabType === 2 },
+ { title: '车辆所有人', index: 'carOwner', iif: () => this.tabType === 2 },
{ title: '创建者', index: 'createUserIdLabel' },
{
title: '创建时间',
diff --git a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html
index 209784ce..3c35b449 100644
--- a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html
+++ b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html
@@ -32,16 +32,16 @@
-
- 张三
13812345678
+ {{item.driverName}}
{{item.driverTelephone}}
- 粤B88888
张三
+ {{item.licenseCarNo}}
{{item.licenseBelonging}}
\ No newline at end of file
diff --git a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts
index d391826b..9a9940fc 100644
--- a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts
+++ b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts
@@ -80,7 +80,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
hidden: true
}
},
- orderSn: {
+ wayBillCode: {
type: 'string',
title: '运单号',
ui: {
@@ -88,7 +88,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
placeholder: '请输入'
}
},
- orderS2n: {
+ billCode: {
type: 'string',
title: '订单号',
ui: {
@@ -96,7 +96,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
placeholder: '请输入'
}
},
- order2S2n: {
+ billType: {
type: 'string',
title: '订单类型',
ui: {
@@ -105,7 +105,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
placeholder: '请选择'
}
},
- orderSn1: {
+ driverName: {
type: 'string',
title: '司机姓名',
ui: {
@@ -115,7 +115,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
}
}
},
- ord0erSn1: {
+ driverPhone: {
type: 'string',
title: '司机手机',
ui: {
@@ -125,7 +125,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
}
}
},
- orderSn2: {
+ licenseCarNo: {
type: 'string',
title: '车牌号',
ui: {
@@ -135,7 +135,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
}
}
},
- orderS1n2: {
+ licenseBelonging: {
type: 'string',
title: '车辆所有人',
ui: {
@@ -145,7 +145,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
}
}
},
- orderS3: {
+ dischargePlace: {
type: 'string',
title: '卸货地',
ui: {
@@ -156,7 +156,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
}
}
},
- orderSn4: {
+ loadingPlace: {
type: 'string',
title: '装货地',
ui: {
@@ -167,7 +167,7 @@ export class ETCInvoicedRequestedComponent implements OnInit {
}
}
},
- orderSn5: {
+ shipperId: {
type: 'string',
title: '托运人',
enum: [{ label: '全部', value: '全部' }],
@@ -200,19 +200,19 @@ export class ETCInvoicedRequestedComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox' },
- { title: '运单号', index: 'no' },
- { title: '订单号', index: 'no' },
- { title: '订单类型', index: 'no' },
- { title: '装货地', index: 'callNo' },
- { title: '卸货地', index: 'callNo' },
+ { title: '运单号', index: 'wayBillCode' },
+ { title: '订单号', index: 'billCode' },
+ { title: '订单类型', index: 'billType' },
+ { title: '装货地', index: 'loadingPlace' },
+ { title: '卸货地', index: 'dischargePlace' },
{ title: '司机信息', render: 'call1No' },
{ title: '车辆信息', render: 'call1N2o' },
- { title: '托运人', index: 'callNo' },
- { title: '网络货运人', index: 'callNo' },
- { title: '接单时间', index: 'updatedAt', type: 'date' },
- { title: '装货时间', index: 'updatedAt', type: 'date' },
- { title: '卸货时间', index: 'updatedAt', type: 'date' },
- { title: '签收时间', index: 'updatedAt', type: 'date' }
+ { title: '托运人', index: 'shipperAppUserName' },
+ { title: '网络货运人', index: 'enterpriseInfoName' },
+ { title: '接单时间', index: 'orderReceivingTime', type: 'date' },
+ { title: '装货时间', index: 'shipperAppUserName', type: 'date' },
+ { title: '卸货时间', index: 'unloadingTime', type: 'date' },
+ { title: '签收时间', index: 'submissionTime', type: 'date' }
];
}
}
diff --git a/src/app/routes/ticket-management/services/ticket.service.ts b/src/app/routes/ticket-management/services/ticket.service.ts
index f60b4451..e7c53c5c 100644
--- a/src/app/routes/ticket-management/services/ticket.service.ts
+++ b/src/app/routes/ticket-management/services/ticket.service.ts
@@ -55,6 +55,17 @@ export class TicketService extends ShipperBaseService {
$api_save_etc_shipper = '/api/fcc/ficoShipperWhiteList/save';
// 查询ETC企业列表
$api_get_etc_list = '/api/mdc/cuc/enterpriseInfo/operate/etcList';
+ // 查询ETC认证车辆信息筛选
+ $api_get_etc_cart_list = '/api/mdc/cuc/carLicense/operate/findCarLicenseScreenList';
+ // 查询ETC认证车辆信息筛选
+ $api_get_etc_cart_page = '/api/fcc/ficoCarWhiteList/list/page';
+ // 保存ETC白名单(车辆)
+ $api_save_etc_cart = '/api/fcc/ficoCarWhiteList/save';
+ // 删除ETC白名单(车辆)
+ $api_delete_etc_cart = '/api/fcc/ficoCarWhiteList/deleteBatch';
+
+ // ETC申请开票界面查询
+ $api_get_apply_invoice_page = '/api/sdc/invoiceEtcOperate/list/listEtcApplyPageList';
// 进项发票查询
$api_get_input_invoice_page = '/api/fcc/ficoInpinvH/getListPage';