diff --git a/package.json b/package.json index 2b60058a..1439c62d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tms-obc-web", - "version": "1.0.1", + "version": "1.2.0", "description": "运营后台-WEB", "author": "cipchk ", "repository": { diff --git a/proxy.conf.js b/proxy.conf.js index d12c4111..50eec04b 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-18 09:51:21 * @LastEditors : Shiming - * @LastEditTime : 2022-04-28 13:43:18 + * @LastEditTime : 2022-04-28 16:08:43 * @FilePath : \\tms-obc-web\\proxy.conf.js * Copyright (C) 2022 huzhenhong. All rights reserved. */ diff --git a/src/app/routes/contract-management/components/index/index.component.ts b/src/app/routes/contract-management/components/index/index.component.ts index 4c42914d..d3e7efc8 100644 --- a/src/app/routes/contract-management/components/index/index.component.ts +++ b/src/app/routes/contract-management/components/index/index.component.ts @@ -24,9 +24,8 @@ export class ContractManagementIndexComponent implements OnInit { constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) { const acls = acl.data.abilities || []; - this.isShowDetail = !!acls.find(acl => acl === 'CONTRACT-INDEX-searchDetail'); - this.isShowFrame = !!acls.find(acl => acl === 'CONTRACT-INDEX-listFrame'); - console.log(this.isShowFrame); + this.isShowDetail =acl.data.full || !!acls.find(acl => acl === 'CONTRACT-INDEX-searchDetail'); + this.isShowFrame =acl.data.full || !!acls.find(acl => acl === 'CONTRACT-INDEX-listFrame'); } diff --git a/src/app/routes/datatable/components/compliance/index/index.component.html b/src/app/routes/datatable/components/compliance/index/index.component.html index 5b3c4635..8063729e 100644 --- a/src/app/routes/datatable/components/compliance/index/index.component.html +++ b/src/app/routes/datatable/components/compliance/index/index.component.html @@ -24,7 +24,7 @@
- +
合格:{{cardData1?.leftQuantity}} 不合格:{{cardData1?.rightQuantity}} @@ -33,7 +33,7 @@
- +
货源单:{{cardData2?.leftQuantity}} 合同单:{{cardData2?.rightQuantity}} @@ -42,7 +42,7 @@
- +
司机:{{cardData3?.leftQuantity}} 车队长:{{cardData3?.rightQuantity}} @@ -51,7 +51,7 @@
- +
准时:{{cardData4?.leftQuantity}} 逾期:{{cardData4?.rightQuantity}} diff --git a/src/app/routes/datatable/components/compliance/index/index.component.ts b/src/app/routes/datatable/components/compliance/index/index.component.ts index b545a4f5..f531e14e 100644 --- a/src/app/routes/datatable/components/compliance/index/index.component.ts +++ b/src/app/routes/datatable/components/compliance/index/index.component.ts @@ -47,27 +47,30 @@ export class DatatableComplianceIndexComponent implements OnInit { time:this.time } this.service.request(this.service.$api_getBillRateQualified, params).subscribe(res => { + if (res) { this.cardData1 = res; - this.cardData1.proportion = this.cardData1.proportion*100 +'%' + console.log(this.cardData1); + + this.cardData1.proportion = (this.cardData1?.proportion*100).toFixed(2) +'%' } }); this.service.request(this.service.$api_getBillRateProportion, params).subscribe(res => { if (res) { this.cardData2 = res; - this.cardData2.proportion = this.cardData2.proportion*100 +'%' + this.cardData2.proportion = (this.cardData2?.proportion*100).toFixed(2) +'%' } }); this.service.request(this.service.$api_getBillRateDirectPayment, params).subscribe(res => { if (res) { this.cardData3 = res; - this.cardData3.proportion = this.cardData3.proportion*100 +'%' + this.cardData3.proportion = (this.cardData3?.proportion*100).toFixed(2) +'%' } }); this.service.request(this.service.$api_getBillTimelyPayment, params).subscribe(res => { if (res) { this.cardData4 = res; - this.cardData4.proportion = this.cardData4.proportion*100 +'%' + this.cardData4.proportion = (this.cardData4?.proportion*100).toFixed(2) +'%' } }); diff --git a/src/app/routes/financial-management/components/driver-account/driver-account.component.ts b/src/app/routes/financial-management/components/driver-account/driver-account.component.ts index c1404e1f..47e3e0cc 100644 --- a/src/app/routes/financial-management/components/driver-account/driver-account.component.ts +++ b/src/app/routes/financial-management/components/driver-account/driver-account.component.ts @@ -186,6 +186,7 @@ export class DriverAccountComponent extends BasicTableComponent implements OnIni buttons: [ { text: '查看明细', + acl: { ability: ['FINANCIAL-DRIVER-ACOUNT-view'] }, click: item => this.router.navigate(['/financial-management/driver-account/detail/' + item.id], { queryParams: { diff --git a/src/app/routes/financial-management/components/payment-order/payment-order.component.html b/src/app/routes/financial-management/components/payment-order/payment-order.component.html index 2443272a..f9ee3d69 100644 --- a/src/app/routes/financial-management/components/payment-order/payment-order.component.html +++ b/src/app/routes/financial-management/components/payment-order/payment-order.component.html @@ -32,7 +32,8 @@
- +
diff --git a/src/app/routes/financial-management/components/platform-account/platform-account.component.ts b/src/app/routes/financial-management/components/platform-account/platform-account.component.ts index 1cfb6a07..0fda4eae 100644 --- a/src/app/routes/financial-management/components/platform-account/platform-account.component.ts +++ b/src/app/routes/financial-management/components/platform-account/platform-account.component.ts @@ -23,7 +23,12 @@ export class PlatformAccountComponent implements OnInit { info: any = {}; static: any = {}; - constructor(public service: FreightAccountService, private router: Router, private nzModalService: NzModalService, public modal: NzModalService) { } + constructor( + public service: FreightAccountService, + private router: Router, + private nzModalService: NzModalService, + public modal: NzModalService + ) {} ngOnInit(): void { this.loadInfo(); @@ -187,6 +192,7 @@ export class PlatformAccountComponent implements OnInit { buttons: [ { text: '查看明细 ', + acl: { ability: ['FINANCIAL-PLATFORM-view'] }, click: item => this.router.navigate(['/financial-management/platform-account/detail/' + item.id], { queryParams: { ltdId: item.ltdId, bankType: item.bankType, ltdName: `${item.ltdName}(${item.bankTypeLabel})` } @@ -195,7 +201,7 @@ export class PlatformAccountComponent implements OnInit { { text: '提现', click: item => this.withdraw(item), - iif: (_record) => _record.bankType !== '1' + iif: _record => _record.bankType !== '1' }, // { // text: '绑定银行卡', @@ -204,8 +210,8 @@ export class PlatformAccountComponent implements OnInit { { text: '查看银行卡', click: item => this.viewBankcard(item), - iif: (_record) => _record.bankType !== '1' - }, + iif: _record => _record.bankType !== '1' + } ] } ]; @@ -224,10 +230,9 @@ export class PlatformAccountComponent implements OnInit { i: item } }); - modalRef.afterOpen.subscribe(() => { }); - modalRef.afterClose.subscribe((result) => { + modalRef.afterOpen.subscribe(() => {}); + modalRef.afterClose.subscribe(result => { if (result) this.st.reload(); - }); } @@ -244,7 +249,7 @@ export class PlatformAccountComponent implements OnInit { } exportList() { - this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPlatformAccountBalanceByOperator,); + this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPlatformAccountBalanceByOperator); } // 提现 @@ -264,7 +269,6 @@ export class PlatformAccountComponent implements OnInit { // this.getSummary(); // this.withdrawTable.refresh(); } - }) + }); } - } diff --git a/src/app/routes/financial-management/components/receipt-order/receipt-order.component.ts b/src/app/routes/financial-management/components/receipt-order/receipt-order.component.ts index 63a2ec0b..151c7e56 100644 --- a/src/app/routes/financial-management/components/receipt-order/receipt-order.component.ts +++ b/src/app/routes/financial-management/components/receipt-order/receipt-order.component.ts @@ -251,6 +251,7 @@ export class ReceiptOrderComponent extends BasicTableComponent implements OnInit buttons: [ { text: '浏览', + acl: { ability: ['FINANCIAL-RECEIPT-view'] }, click: item => this.router.navigate(['/financial-management/receipt-order/detail/' + item.id]) } // { diff --git a/src/app/routes/financial-management/components/voucher-summary/voucher-summary.component.ts b/src/app/routes/financial-management/components/voucher-summary/voucher-summary.component.ts index 029d31c7..0f556f33 100644 --- a/src/app/routes/financial-management/components/voucher-summary/voucher-summary.component.ts +++ b/src/app/routes/financial-management/components/voucher-summary/voucher-summary.component.ts @@ -283,10 +283,12 @@ export class VoucherSummaryComponent extends BasicTableComponent implements OnIn buttons: [ { text: '浏览', + acl: { ability: ['FINANCIAL-VOUCHER-SUMMARY-view'] }, click: (item: any) => this.router.navigate(['/financial-management/voucher-summary/detail/' + item.id]) }, { text: '列表', + acl: { ability: ['FINANCIAL-VOUCHER-SUMMARY-child-list'] }, click: (item: any) => this.router.navigate(['/financial-management/voucher-summary/list/' + item.vc2code]) } ] diff --git a/src/app/routes/financial-management/financial-managemen-routing.module.ts b/src/app/routes/financial-management/financial-managemen-routing.module.ts index bcea97b3..aa5ba856 100644 --- a/src/app/routes/financial-management/financial-managemen-routing.module.ts +++ b/src/app/routes/financial-management/financial-managemen-routing.module.ts @@ -38,17 +38,25 @@ import { CwcBankCardManagementIndexComponent } from './components/bank-card-mana const routes: Routes = [ { path: 'freight-account', component: FreightAccountComponent, data: { guard: { ability: ['FINANCIAL-FREIGHT-ACOUNT-list'] } } }, { path: 'freight-account/detail/:id', component: FreightAccountDetailComponent }, - { path: 'driver-account', component: DriverAccountComponent }, - { path: 'driver-account/detail/:id', component: DriverAccountDetailComponent }, - { path: 'platform-account', component: PlatformAccountComponent }, - { path: 'platform-account/detail/:id', component: PlatformAccountDetailComponent }, + { path: 'driver-account', component: DriverAccountComponent, data: { guard: { ability: ['FINANCIAL-DRIVER-ACOUNT-list'] } } }, + { + path: 'driver-account/detail/:id', + component: DriverAccountDetailComponent, + data: { guard: { ability: ['FINANCIAL-DRIVER-ACOUNT-DETAIL-view'] } } + }, + { path: 'platform-account', component: PlatformAccountComponent, data: { guard: { ability: ['FINANCIAL-PLATFORM-list'] } } }, + { + path: 'platform-account/detail/:id', + component: PlatformAccountDetailComponent, + data: { guard: { ability: ['FINANCIAL-PLATFORM-DETAIL-detail'] } } + }, { path: 'recharge-record', component: RechargeRecordComponent }, { path: 'withdrawals-record', component: WithdrawalsRecordComponent }, { path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent }, { path: 'refund-record', component: RefundRecordComponent }, { path: 'voucher-management', component: VoucherManagementComponent }, { path: 'voucher-management/detail/:id', component: VoucherDetailComponent }, - { path: 'voucher-summary', component: VoucherSummaryComponent }, + { path: 'voucher-summary', component: VoucherSummaryComponent, data: { guard: { ability: ['FINANCIAL-VOUCHER-SUMMARY-list'] } } }, { path: 'voucher-summary/detail/:id', component: SummaryDetailComponent }, { path: 'voucher-summary/list/:id', component: VoucherListComponent }, { path: 'voucher-summary/list/detail/:id', component: VoucherDetailComponent }, @@ -60,22 +68,29 @@ const routes: Routes = [ { path: 'abnormal-gold/detail/:id', component: AbnormalGoldDetailComponent }, { path: 'payment-record', component: PaymentRecordComponent }, { path: 'transaction-flow', component: TransactionFlowComponent }, - { path: 'payment-order', component: PaymentOrderComponent }, + { path: 'payment-order', component: PaymentOrderComponent, data: { guard: { ability: ['FINANCIAL-PAYMENT-ORDER-list'] } } }, { path: 'payment-order/detail/:id', component: PaymentOrderDetailComponent }, - { path: 'receipt-order', component: ReceiptOrderComponent }, + { path: 'receipt-order', component: ReceiptOrderComponent, data: { guard: { ability: ['FINANCIAL-RECEIPT-list'] } } }, { path: 'receipt-order/detail/:id', component: ReceiptOrderDetailComponent }, { path: 'advance-collection', component: AdvanceCollectionComponent }, { path: 'advance-collection/detail/:id', component: AdvanceCollectionDetailComponent }, - { path: 'receivable-order', component: ReceivableOrderComponent }, - { path: 'receivable-order/detail/:id', component: ReceivableOrderDetailComponent }, - { path: 'payable-order', component: PayableOrderComponent }, - { path: 'payable-order/detail/:id', component: PayableOrderDetailComponent }, - { path: 'bank-card-management/index', component: CwcBankCardManagementIndexComponent }, - + { path: 'receivable-order', component: ReceivableOrderComponent, data: { guard: { ability: ['FINANCIAL-RECEIVABLE-list'] } } }, + { + path: 'receivable-order/detail/:id', + component: ReceivableOrderDetailComponent, + data: { guard: { ability: ['FINANCIAL-RECEIVABLE-DETAIL-view'] } } + }, + { path: 'payable-order', component: PayableOrderComponent, data: { guard: { ability: ['FINANCIAL-PAYABLE-list'] } } }, + { + path: 'payable-order/detail/:id', + component: PayableOrderDetailComponent, + data: { guard: { ability: ['FINANCIAL-PAYABLE-DETAIL-view'] } } + }, + { path: 'bank-card-management/index', component: CwcBankCardManagementIndexComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) -export class FinancialManagementRoutingModule { } +export class FinancialManagementRoutingModule {} diff --git a/src/app/routes/insurance-management/insurance-management-routing.module.ts b/src/app/routes/insurance-management/insurance-management-routing.module.ts index 1ff630fd..d9348af8 100644 --- a/src/app/routes/insurance-management/insurance-management-routing.module.ts +++ b/src/app/routes/insurance-management/insurance-management-routing.module.ts @@ -1,5 +1,5 @@ /* - * @Description : + * @Description : * @Version : 1.0 * @Author : Shiming * @Date : 2022-01-06 09:24:00 @@ -13,13 +13,12 @@ import { RouterModule, Routes } from '@angular/router'; import { insuranceManagementListComponent } from './components/list/list.component'; import { insuranceManagementSetComponent } from './components/set/set.component'; - const routes: Routes = [ - { path: 'list', component: insuranceManagementListComponent }, - { path: 'list-set', component: insuranceManagementSetComponent }, -] + { path: 'list', component: insuranceManagementListComponent, data: { guard: { ability: ['INSURANCE-LIST-search'] } } }, + { path: 'list-set', component: insuranceManagementSetComponent, data: { guard: { ability: ['INSURANCE-LISTDETAIL-set'] } } } +]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) -export class InsuranceManagementRoutingModule { } +export class InsuranceManagementRoutingModule {} diff --git a/src/app/routes/menu-manager/components/api-auth/api-auth.component.html b/src/app/routes/menu-manager/components/api-auth/api-auth.component.html index f1d7c7f0..86ffe160 100644 --- a/src/app/routes/menu-manager/components/api-auth/api-auth.component.html +++ b/src/app/routes/menu-manager/components/api-auth/api-auth.component.html @@ -23,8 +23,8 @@ - - + + + [nzLoading]="service.http.loading" *ngIf="isShowFre || isShowBackEND"> @@ -65,7 +65,7 @@ {{ item.sorted }} - 权限配置 + 权限配置 diff --git a/src/app/routes/menu-manager/components/api-auth/api-auth.component.ts b/src/app/routes/menu-manager/components/api-auth/api-auth.component.ts index c61cab04..f6004b13 100644 --- a/src/app/routes/menu-manager/components/api-auth/api-auth.component.ts +++ b/src/app/routes/menu-manager/components/api-auth/api-auth.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit, ViewChild } from '@angular/core'; +import { ACLService } from '@delon/acl'; import { SFComponent, SFSchema } from '@delon/form'; import { EAEnvironmentService } from '@shared'; import { NzDrawerService } from 'ng-zorro-antd/drawer'; @@ -34,14 +35,26 @@ export class ApiAuthComponent implements OnInit { mapOfExpandedData: { [key: string]: any[] } = {}; listOfMapData: any[] = []; - constructor(private envSrv: EAEnvironmentService, public service: MenuManagerService, private drawer: NzDrawerService) { + + isShowBackEND = false; + isShowFre = false; + + constructor( + private envSrv: EAEnvironmentService, + public service: MenuManagerService, + private drawer: NzDrawerService, + private acl: ACLService + ) { + const acls = acl.data.abilities || []; + this.isShowBackEND = acl.data.full || !!acls.find(acl => acl === 'MENU-AUTH-obclist'); + this.isShowFre = acl.data.full || !!acls.find(acl => acl === 'MENU-AUTH-smclist'); this.initData(); } ngOnInit(): void {} initData(): void { - this.selectedPlatform = this.platforms[0]; + this.selectedPlatform = this.isShowFre ? this.platforms[0] : this.platforms[1]; this.loadMemu(this.selectedPlatform.appId); } diff --git a/src/app/routes/menu-manager/components/index/index.component.html b/src/app/routes/menu-manager/components/index/index.component.html index 8b1acd73..3577b04b 100644 --- a/src/app/routes/menu-manager/components/index/index.component.html +++ b/src/app/routes/menu-manager/components/index/index.component.html @@ -23,14 +23,15 @@ - - + +
- - + + + [nzLoading]="service.http.loading" *ngIf="isShowFre || isShowBackEND"> @@ -85,12 +86,12 @@ 查看 - 编辑 + 编辑 - 删除 + 删除 - 新增子项 + 新增子项 diff --git a/src/app/routes/menu-manager/components/index/index.component.ts b/src/app/routes/menu-manager/components/index/index.component.ts index 2f9b1306..3cd5cf8c 100644 --- a/src/app/routes/menu-manager/components/index/index.component.ts +++ b/src/app/routes/menu-manager/components/index/index.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st'; +import { ACLService } from '@delon/acl'; import { SFComponent, SFSchema } from '@delon/form'; import { Menu, ModalHelper } from '@delon/theme'; import { EAEnvironmentService } from '@shared'; @@ -37,14 +38,26 @@ export class MenuManagerComponentsIndexComponent implements OnInit { mapOfExpandedData: { [key: string]: any[] } = {}; listOfMapData: any[] = []; - constructor(private envSrv: EAEnvironmentService, public service: MenuManagerService, private modal: NzModalService, private modalHelper: ModalHelper,) { + + isShowBackEND = false; + isShowFre = false; + constructor( + private envSrv: EAEnvironmentService, + public service: MenuManagerService, + private modal: NzModalService, + private modalHelper: ModalHelper, + private acl: ACLService + ) { + const acls = acl.data.abilities || []; + this.isShowBackEND = acl.data.full || !!acls.find(acl => acl === 'MENU-INDEX-obclist'); + this.isShowFre = acl.data.full || !!acls.find(acl => acl === 'MENU-INDEX-smclist'); this.initData(); } ngOnInit(): void {} initData(): void { - this.selectedPlatform = this.platforms[0]; + this.selectedPlatform = this.isShowFre ? this.platforms[0] : this.platforms[1]; this.loadMemu(this.selectedPlatform.appId); } @@ -126,13 +139,13 @@ export class MenuManagerComponentsIndexComponent implements OnInit { } }); } - menuSort(){ + menuSort() { const dialogData = { appId: this.selectedPlatform.appId }; - this.modalHelper.create(MenuManagerMenusortComponent, { i: dialogData }, { size: 900 }).subscribe((res:any) => { - if(res) { - console.log('a') + this.modalHelper.create(MenuManagerMenusortComponent, { i: dialogData }, { size: 900 }).subscribe((res: any) => { + if (res) { + console.log('a'); this.loadMemu(this.selectedPlatform.appId); } }); diff --git a/src/app/routes/menu-manager/menu-manager-routing.module.ts b/src/app/routes/menu-manager/menu-manager-routing.module.ts index d46c398f..4879b5aa 100644 --- a/src/app/routes/menu-manager/menu-manager-routing.module.ts +++ b/src/app/routes/menu-manager/menu-manager-routing.module.ts @@ -5,12 +5,16 @@ import { MenuManagerComponentsIndexComponent } from './components/index/index.co const routes: Routes = [ { path: '', redirectTo: 'index', pathMatch: 'full' }, - { path: 'index', component: MenuManagerComponentsIndexComponent }, - { path: 'auth', component: ApiAuthComponent }, + { + path: 'index', + component: MenuManagerComponentsIndexComponent, + data: { guard: { ability: ['MENU-INDEX-obclist', 'MENU-INDEX-smclist'] } } + }, + { path: 'auth', component: ApiAuthComponent, data: { guard: { ability: ['MENU-AUTH-obclist', 'MENU-AUTH-smclist'] } } } ]; @NgModule({ imports: [RouterModule.forChild(routes)], - exports: [RouterModule], + exports: [RouterModule] }) export class MenuManagerRoutingModule {} diff --git a/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.html b/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.html index 601a0121..020c7594 100644 --- a/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.html +++ b/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.html @@ -6,13 +6,21 @@ -
+
-

货源编码 : {{ i?.resourceCode }}

+ 货源编码 : {{ i?.resourceCode }}
-
-
网络货运人:{{ i?.shipperAppUserName }}
-
+
+ + + +
+ +
+ {{ i?.shipperAppUserName }} {{ i?.enterpriseProjectName }} {{ i?.deadlineTime }} {{ i?.createUserName }}/{{ i?.createUserPhone }} @@ -37,13 +46,12 @@ -
- -

货源编码 : {{ i?.resourceCode }}

-
-
-
网络货运人:{{ i?.shipperAppUserName }}
-
+
+
+ + 货源编码 : {{ i?.resourceCode }} +
+
-
+ + +
+ {{ i?.shipperAppUserName }} {{ i?.enterpriseProjectName }} {{ i?.deadlineTime }} {{ i?.createUserName }}/{{ i?.createUserPhone }} @@ -66,8 +75,8 @@ {{ i?.serviceTypeLabel }}
-
- +
+
-

装货卸货信息 +
+ + 装货卸货信息 ( ) -

+
+
@@ -95,7 +113,7 @@

装货地:{{ item?.province }}{{ item?.city }}{{ item?.area }}{{ item?.detailedAddress }}

-

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

+

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

@@ -109,7 +127,7 @@

卸货地:{{ item?.province }}{{ item?.city }}{{ item?.area }}{{ item?.detailedAddress }}

-

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

+

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

@@ -140,6 +158,15 @@ {{item.carModelLabel || '--'}} / {{item.carLengthLabel || '--'}} + + {{i?.carrierInformationVO?.driverName || '--'}} / {{i?.carrierInformationVO?.driverTelephone || '--'}} / + {{i?.carrierInformationVO?.driverLicensePlate || '--'}} + + + {{i?.driverCarModelLabel || '--'}} / {{(i?.driverCarLength || '--') +'米'}} / {{(i?.driverCarWeight || + '--')+'吨'}} + +

{{ settlementBasis[item?.settlementBasis] }},{{ rule[item?.rule] }}

+
- + +
+ + 关联订单 +
({{ item?.count }}) @@ -190,7 +226,11 @@ -->
- + +
+ + 补充信息 +
{{ i?.supplementaryInformationVO?.stateReceipt ? '是' : '否' }} @@ -213,10 +253,14 @@
- + +
+ + 操作日志 +
+ [res]="{ reName: { list: 'data.records', total: 'data.total' } }" [size]="'small'">
diff --git a/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.less b/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.less index df21f696..ef0733e8 100644 --- a/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.less +++ b/src/app/routes/supply-management/components/bulk-detail/bulk-detail.component.less @@ -48,7 +48,7 @@ } .handling-info { - min-height: 100px; + min-height: 90px; border: 1px solid #ccc; .loading-row { 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 b7711049..f8b11cf7 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 @@ -125,7 +125,7 @@ export class SupplyManagementBulkDetailComponent implements OnInit { */ placeOrder(record: any) { console.log(record) - this.router.navigate(['/supply-management/bulk-amend', record.id], { + this.router.navigate(['/supply-management/bulk-next', record.id], { queryParams: { sta: 4 }, 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 5055964a..aa0b4eae 100644 --- a/src/app/routes/supply-management/components/bulk/bulk.component.ts +++ b/src/app/routes/supply-management/components/bulk/bulk.component.ts @@ -492,7 +492,7 @@ export class SupplyManagementBulkComponent extends BasicTableComponent implement // 再下一单 nextOrder(item: any) { - this.router.navigate(['/supply-management/bulk-amend', item.id], { + this.router.navigate(['/supply-management/bulk-next', item.id], { queryParams: { sta: 4 } diff --git a/src/app/routes/supply-management/components/index/index.component.html b/src/app/routes/supply-management/components/index/index.component.html index ebe89624..8849d48c 100644 --- a/src/app/routes/supply-management/components/index/index.component.html +++ b/src/app/routes/supply-management/components/index/index.component.html @@ -25,10 +25,10 @@
- + - + diff --git a/src/app/routes/supply-management/components/index/index.component.ts b/src/app/routes/supply-management/components/index/index.component.ts index 17b7b0c7..ef804c30 100644 --- a/src/app/routes/supply-management/components/index/index.component.ts +++ b/src/app/routes/supply-management/components/index/index.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { STColumn, STComponent } from '@delon/abc/st'; +import { ACLService } from '@delon/acl'; import { SFSchema } from '@delon/form'; import { ModalHelper, _HttpClient } from '@delon/theme'; import { SearchDrawerService } from '@shared'; @@ -12,7 +13,14 @@ import { BasicTableComponent } from 'src/app/routes/commom'; }) export class SupplyManagementIndexComponent implements OnInit { selectedIndex = 0; + isShowVehicle = false; + isShowBulk = false; + constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) { + const acls = acl.data.abilities || []; + this.isShowVehicle = acl.data.full || !!acls.find(acl => acl === 'SUPPLY-INDEX-vehicleSearch'); + this.isShowBulk = acl.data.full || !!acls.find(acl => acl === 'SUPPLY-INDEX-bulkSearch'); + } ngOnInit(): void {} } diff --git a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html index 3c489ffb..73a34d9a 100644 --- a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html +++ b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html @@ -260,9 +260,9 @@ + [acl-ability]="['SUPPLY-VEHICLE-PLACEORDER-vehicleDesignate']">指派熟车 + [acl-ability]="['SUPPLY-VEHICLE-PLACEORDER-vehicleAnotherOrder']">司机抢单
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 bcb7cb4a..94f27bc7 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,48 +6,14 @@ - -
- -

货源编码 : {{ i?.resourceCode }}

-
-
-
网络货运人:{{ i?.enterpriseInfoName }}
-
- - - - -
-
-
-
- 总费用:{{ i?.totalAmount | currency }} -
-
- -
- {{ i?.externalResourceCode }} - {{ i?.enterpriseProjectName }} - {{ i?.createUserName }}/{{ i?.createUserPhone }} - {{ i?.dispatchName }}/{{ i?.dispatchPhone }} - {{ i?.serviceTypeLabel }} -
-
-
- -

货源编码 : {{ i?.resourceCode }}

-
-
-
网络货运人:{{ i?.enterpriseInfoName }}
-
+
+
+ + 货源编码 : {{ i?.resourceCode }} +
+
--> -
+
+ {{ i?.enterpriseInfoName }} {{ i?.externalResourceCode }} {{ i?.enterpriseProjectName }} {{ i?.createUserName }}/{{ i?.createUserPhone }} @@ -85,50 +52,24 @@
- - -
- - 基本信息 -
- - - - - {{ item.goodsTypeName }} - {{ item.goodsName }} - - {{ item.weight }}吨,{{ item.volume }}方,{{ item.number }}件 - - - - - - {{ i?.carrierInformationVO?.driverName }} - - - {{ i?.carrierInformationVO?.driverTelephone }} - - - {{ i?.carrierInformationVO?.driverLicensePlate }} - - - - {{i?.carrierInformationVO.driverName || '--'}} / {{i?.carrierInformationVO.driverTelephone || '--'}} / - {{i?.carrierInformationVO.driverLicensePlate || '--'}} - - - {{i?.driverCarModelLabel || '--'}} / {{(i?.driverCarLength || '--') +'米'}} / {{(i?.driverCarWeight || - '--')+'吨'}} -
-

装货卸货信息 + +
+ + 装货卸货信息 + ( + + + ) + +
@@ -166,6 +107,42 @@
+ +
+ + 基本信息 +
+ + + + + {{ item.goodsTypeName }} - {{ item.goodsName }} + + {{ item.weight }}吨,{{ item.volume }}方,{{ item.number }}件 + + {{i?.carrierInformationVO?.driverName || '--'}} / {{i?.carrierInformationVO?.driverTelephone || '--'}} / + {{i?.carrierInformationVO?.driverLicensePlate || '--'}} + + + {{i?.driverCarModelLabel || '--'}} / {{(i?.driverCarLength || '--') +'米'}} / {{(i?.driverCarWeight || + '--')+'吨'}} + + + + +
+
@@ -204,7 +181,7 @@
-

+

{{ i?.totalAmount | currency }} @@ -249,7 +226,7 @@

+ [res]="{ reName: { list: 'data.records', total: 'data.total' } }" [size]="'small'">
{{ item?.operator }} {{ item?.telephone ? '/' + item?.telephone : '' }} diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.less b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.less index 172f5525..2fd2b362 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.less +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.less @@ -48,7 +48,7 @@ } .handling-info { - min-height: 176px; + min-height: 100px; border: 1px solid #ccc; .loading-row { @@ -79,6 +79,7 @@ .time-info { margin-left: 56px; + margin-bottom: 0; } } } 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 c2af6ae7..bf86c271 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 @@ -115,18 +115,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { }) } - /** - *再下一单 - * @param record - */ - placeOrder(record: any) { - this.router.navigate(['./pbg/onecar-publish'], { - queryParams: { - id: record?.id, - type: 'add' - } - }) - } + /** * 编辑外部货源号 * @param item st当前行对象 @@ -168,7 +157,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { }); } nextOrder(item: any) { - this.router.navigate(['/supply-management/vehicle-amend', item.id], { + this.router.navigate(['/supply-management/vehicle-next', item.id], { queryParams: { sta: 2 } 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 1d0f3c65..817a0c97 100644 --- a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts @@ -324,7 +324,7 @@ export class SupplyManagementVehicleComponent extends BasicTableComponent implem }); } nextOrder(item: any) { - this.router.navigate(['/supply-management/vehicle-amend', item.id], { + this.router.navigate(['/supply-management/vehicle-next', item.id], { queryParams: { sta: 2 } diff --git a/src/app/routes/supply-management/supply-management-routing.module.ts b/src/app/routes/supply-management/supply-management-routing.module.ts index c3eb4ba2..29f59068 100644 --- a/src/app/routes/supply-management/supply-management-routing.module.ts +++ b/src/app/routes/supply-management/supply-management-routing.module.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-03 11:10:14 * @LastEditors : Shiming - * @LastEditTime : 2022-02-10 14:39:00 + * @LastEditTime : 2022-04-28 14:45:50 * @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\supply-management-routing.module.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -21,13 +21,76 @@ import { SupplyManagementReleasePublishComponent } from './components/release-pu import { SupplyManagementVehicleDetailComponent } from './components/vehicle-detail/vehicle-detail.component'; const routes: Routes = [ - { path: 'index', component: SupplyManagementIndexComponent }, - { path: 'index/bulk-detail/:id', component: SupplyManagementBulkDetailComponent }, - { path: 'index/vehicle-detail/:id', component: SupplyManagementVehicleDetailComponent }, + { + path: 'index', + component: SupplyManagementIndexComponent, + data: { guard: { ability: ['SUPPLY-INDEX-vehicleSearch', 'SUPPLY-INDEX-bulkSearch'] } } + }, + { + path: 'index/bulk-detail/:id', + component: SupplyManagementBulkDetailComponent, + data: { + guard: { ability: ['SUPPLY-BULK-DETAIL-cancelSupply', 'SUPPLY-BULK-DETAIL-updatePrice', 'SUPPLY-BULK-DETAIL-bulkAnotherOrder'] } + } + }, + { + path: 'index/vehicle-detail/:id', + component: SupplyManagementVehicleDetailComponent, + data: { + guard: { + ability: [ + 'SUPPLY-VEHICLE-DETAIL-cancelSupply', + 'SUPPLY-VEHICLE-DETAIL-changeSupply', + 'SUPPLY-VEHICLE-DETAIL-vehiclePlaceOrder', + 'SUPPLY-VEHICLE-DETAIL-vehicleAnew' + ] + } + } + }, { path: 'add-drivers', component: SupplyManagementAddDriversComponent }, - { path: 'vehicle-amend/:id', component: SupplyManagementOnecarPublishComponent }, - { path: 'vehicle-release', component: SupplyManagementReleasePublishComponent }, - { path: 'bulk-release', component: SupplyManagementBulkReleasePublishComponent }, + { + path: 'vehicle-amend/:id', + component: SupplyManagementOnecarPublishComponent, + data: { + guard: { + ability: ['SUPPLY-VEHICLE-AMEND-submitChange'] + } + } + }, + { + path: 'vehicle-next/:id', + component: SupplyManagementOnecarPublishComponent, + data: { + guard: { + ability: [ + 'SUPPLY-VEHICLE-PLACEORDER-QRCode', + 'SUPPLY-VEHICLE-PLACEORDER-vehicleDesignate', + 'SUPPLY-VEHICLE-PLACEORDER-vehicleAnotherOrder' + ] + } + } + }, + { + path: 'vehicle-release', + component: SupplyManagementReleasePublishComponent, + data: { + guard: { ability: ['SUPPLY-VEHICLE-RELEASE-bulkDesignate', 'SUPPLY-VEHICLE-RELEASE-bulkDriverOrder'] } + } + }, + { + path: 'bulk-release', + component: SupplyManagementBulkReleasePublishComponent, + data: { + guard: { ability: ['SUPPLY-BULK-RELEASE-consignBulkAssign', 'SUPPLY-BULK-RELEASE-consignBulk'] } + } + }, + { + path: 'bulk-next/:id', + component: SupplyManagementBulkPublishComponent, + data: { + guard: { ability: ['SUPPLY-BULK-PLACEORDER-vehicleAnotherOrder', 'SUPPLY-BULK-PLACEORDER-vehicleDesignate'] } + } + }, { path: 'bulk-amend/:id', component: SupplyManagementBulkPublishComponent } ]; diff --git a/src/app/routes/sys-setting/components/agreement-config/agreement-config.component.html b/src/app/routes/sys-setting/components/agreement-config/agreement-config.component.html index 17d718f0..a9e98fc1 100644 --- a/src/app/routes/sys-setting/components/agreement-config/agreement-config.component.html +++ b/src/app/routes/sys-setting/components/agreement-config/agreement-config.component.html @@ -19,7 +19,8 @@ 更新时间: {{ tabItem.modifyTime }} 预览 - +
diff --git a/src/app/routes/sys-setting/components/cart-config/cart-config.component.html b/src/app/routes/sys-setting/components/cart-config/cart-config.component.html index c5cfa144..00d6b58b 100644 --- a/src/app/routes/sys-setting/components/cart-config/cart-config.component.html +++ b/src/app/routes/sys-setting/components/cart-config/cart-config.component.html @@ -1,7 +1,11 @@ - + + + + + @@ -22,10 +26,10 @@
- +
+ [req]="{process: beforeReq }" [res]="{ process: afterRes }" [loading]="loading" [scroll]="{ y: '370px' }">
\ No newline at end of file diff --git a/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts b/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts index b7039fb0..0682a22e 100644 --- a/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts +++ b/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts @@ -1,5 +1,6 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; +import { ACLService } from '@delon/acl'; import { SFComponent, SFSchema } from '@delon/form'; import { NzModalService } from 'ng-zorro-antd/modal'; import { SystemService } from '../../services/system.service'; @@ -20,17 +21,20 @@ export class CartConfigComponent implements OnInit { { name: '车型配置', type: 1, - isActived: false + isActived: false, + isShow: true }, { name: '车长配置', type: 2, - isActived: false + isActived: false, + isShow: true }, { name: '禁限物品名单', type: 3, - isActived: false + isActived: false, + isShow: true } ]; tabType = 1; @@ -102,10 +106,12 @@ export class CartConfigComponent implements OnInit { buttons: [ { text: '编辑', + acl: { ability: ['SYSTEM-CART-CONFIG-edit'] }, click: item => this.configAction(item) }, { text: '删除', + acl: { ability: ['SYSTEM-CART-CONFIG-delete'] }, click: item => this.deleteAction(item) } ] @@ -113,7 +119,35 @@ export class CartConfigComponent implements OnInit { ]; loading = true; - constructor(public service: SystemService, private nzModalService: NzModalService, private cdr: ChangeDetectorRef) {} + constructor( + public service: SystemService, + private nzModalService: NzModalService, + private cdr: ChangeDetectorRef, + private acl: ACLService + ) { + const acls = acl.data.abilities || []; + this.tabs = [ + { + name: '车型配置', + type: 1, + isActived: false, + isShow: acl.data.full || !!acls.find(acl => acl === 'SYSTEM-CART-CONFIG-modeList') + }, + { + name: '车长配置', + type: 2, + isActived: false, + isShow: acl.data.full || !!acls.find(acl => acl === 'SYSTEM-CART-CONFIG-cartLength') + }, + { + name: '禁限物品名单', + type: 3, + isActived: false, + isShow: acl.data.full || !!acls.find(acl => acl === 'SYSTEM-CART-CONFIG-goodsList') + } + ]; + this.tabType = this.tabs.find(tab => tab.isShow)?.type || 1; + } ngOnInit(): void {} diff --git a/src/app/routes/sys-setting/components/config/config.component.ts b/src/app/routes/sys-setting/components/config/config.component.ts index 90340eca..4cb4e19f 100644 --- a/src/app/routes/sys-setting/components/config/config.component.ts +++ b/src/app/routes/sys-setting/components/config/config.component.ts @@ -45,9 +45,9 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges { auditTime!: any; // 审核时间 silenceClient!: number; // 沉默客户 loseClient!: number; // 流失客户 - everyDay: boolean = false; + everyDay: any; auditTimeStatus: boolean = false; - MonthDay: boolean = false; + MonthDay: any; time: Date | null = null; defaultOpenValue = new Date(0, 0, 0, 0, 0, 0); tabs = [ @@ -123,13 +123,16 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges { this.everyDayData= changes.configList.currentValue[0]?.remark.everyDayData // 流失客户 this.MonthDayData= changes.configList.currentValue[0]?.remark.MonthDayData // 流失客户 if (this.auditTime == '2') { - this.auditTimeStatus = true; // 每天 + this.auditTimeStatus = true; if(this.everyDayData){ this.everyDayData = this.everyDayData - } else if(this.MonthDay) { + this.everyDay = 1 + } else if(this.MonthDayData) { // 每周 + this.MonthDay = 2 this.MonthDayData = this.MonthDayData + this.TimeStatus =false } } else { this.auditTimeStatus = false; @@ -162,23 +165,47 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges { }); } addMonth() { - this.MonthDayData.push({ - month: [ - { label: '周一', value: '周一' }, - { label: '周二', value: '周二' }, - { label: '周三', value: '周三' }, - { label: '周四', value: '周四' }, - { label: '周五', value: '周五' }, - { label: '周六', value: '周六' }, - { label: '周日', value: '周日' } - ], - Times: [ + console.log(this.MonthDayData); + if(this.MonthDayData) { + this.MonthDayData.push({ + month: [ + { label: '周一', value: '周一' }, + { label: '周二', value: '周二' }, + { label: '周三', value: '周三' }, + { label: '周四', value: '周四' }, + { label: '周五', value: '周五' }, + { label: '周六', value: '周六' }, + { label: '周日', value: '周日' } + ], + Times: [ + { + startTime: '', + endTime: '' + } + ] + }); + } else { + this.MonthDayData = [ { - startTime: '', - endTime: '' + month: [ + { label: '周一', value: '周一' }, + { label: '周二', value: '周二' }, + { label: '周三', value: '周三' }, + { label: '周四', value: '周四' }, + { label: '周五', value: '周五' }, + { label: '周六', value: '周六' }, + { label: '周日', value: '周日' } + ], + Times: [ + { + startTime: [], + endTime: [] + } + ] } - ] - }); + ]; + } + } delMonth(value: number, index: number) { this.MonthDayData[value].Times.splice(index, 1); @@ -356,6 +383,9 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges { }; if(this.auditTime == '2') { // 每天 + console.log(this.everyDay); + console.log(this.MonthDay); + if(this.everyDay){ params.everyDayData = this.everyDayData } else if(this.MonthDay) { diff --git a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html index db84f3c8..180dc545 100644 --- a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html +++ b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html @@ -14,10 +14,14 @@
    -
  • 编辑
  • -
  • 上移
  • -
  • 下移
  • -
  • 删除
  • +
  • 编辑
  • +
  • 上移
  • +
  • 下移
  • +
  • 删除
@@ -25,7 +29,8 @@
-
@@ -39,7 +44,8 @@ -
diff --git a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts index 4806f3d7..0d3cf1d9 100644 --- a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts +++ b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts @@ -28,18 +28,22 @@ export class GoodsNameConfigComponent implements OnInit { buttons: [ { text: '编辑', + acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-edit'] }, click: item => this.typeItemAction(item) }, { text: '上移', + acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-sort'] }, click: item => this.sortTypeItem(item, 3) }, { text: '下移', + acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-sort'] }, click: item => this.sortTypeItem(item, 4) }, { text: '删除', + acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-delete'] }, click: item => this.removeTypeItem(item) } ] diff --git a/src/app/routes/sys-setting/components/organization-management/organization-management.component.html b/src/app/routes/sys-setting/components/organization-management/organization-management.component.html index a7fdf0d0..38f4416d 100644 --- a/src/app/routes/sys-setting/components/organization-management/organization-management.component.html +++ b/src/app/routes/sys-setting/components/organization-management/organization-management.component.html @@ -1,7 +1,8 @@
- +
- 编辑 + 编辑 - 删除 + 删除 - 新增子组织 + 新增子组织
- 配置接口权限 + 配置接口权限 - 配置数据权限 + 配置数据权限
- + diff --git a/src/app/routes/sys-setting/components/sms-template/sms-template.component.html b/src/app/routes/sys-setting/components/sms-template/sms-template.component.html index 2b413ab5..41716b59 100644 --- a/src/app/routes/sys-setting/components/sms-template/sms-template.component.html +++ b/src/app/routes/sys-setting/components/sms-template/sms-template.component.html @@ -2,7 +2,7 @@
- +
- + - + \ No newline at end of file diff --git a/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts b/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts index 43d1df9c..7adb409a 100644 --- a/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts +++ b/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts @@ -1,4 +1,3 @@ - import { AfterViewInit, ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st'; @@ -23,7 +22,7 @@ export class SmsTemplateComponent implements OnInit { isVisible = false; tempData = {}; isEdit = false; - + searchSchema: SFSchema = { properties: { templateName: { @@ -50,27 +49,27 @@ export class SmsTemplateComponent implements OnInit { templateName: { type: 'string', title: '模板名称', - ui: { placeholder: '请输入模板名称', errors: { require: '必填项'} } + ui: { placeholder: '请输入模板名称', errors: { require: '必填项' } } }, templateCode: { type: 'string', title: '模板编码', readOnly: this.isEdit, - ui: { placeholder: '请输入模板编码', errors: { require: '必填项'} } + ui: { placeholder: '请输入模板编码', errors: { require: '必填项' } } }, templateContent: { type: 'string', title: '模板内容', - ui: { placeholder: '请输入模板内容', errors: { require: '必填项'} } + ui: { placeholder: '请输入模板内容', errors: { require: '必填项' } } } }, - required: ['templateName','templateCode','templateContent'] - } + required: ['templateName', 'templateCode', 'templateContent'] + }; } columns: STColumn[] = [ - { title: '模板名称', className: 'text-center', index: 'templateName' }, - { title: '模板编码', className: 'text-center', index: 'templateCode' }, + { title: '模板名称', className: 'text-center', width: '200px', index: 'templateName' }, + { title: '模板编码', className: 'text-center', width: '140px', index: 'templateCode' }, { title: '模板内容', className: 'text-center', index: 'templateContent' }, // { // title: '创建人', className: 'text-center', index: 'content', @@ -79,21 +78,23 @@ export class SmsTemplateComponent implements OnInit { title: '更新时间', index: 'modifyTime', type: 'date', + width: '160px', className: 'text-center' }, { title: '操作', + width: '90px', buttons: [ { text: '编辑', - click: i => this.edit(i), + acl: { ability: ['SMS_TEMPLATE-save'] }, + click: i => this.edit(i) } ] } ]; - constructor(public service: SystemService, private nzModalService: NzModalService, private route: ActivatedRoute) { - } + constructor(public service: SystemService, private nzModalService: NzModalService, private route: ActivatedRoute) {} ngOnInit(): void { this.initSF(); @@ -144,7 +145,7 @@ export class SmsTemplateComponent implements OnInit { templateCode, templateName, templateContent - } + }; this.service.request(this.service.$api_smsTemplate_edit, params).subscribe(res => { // console.log(res); @@ -152,8 +153,7 @@ export class SmsTemplateComponent implements OnInit { this.isVisible = false; this.st.reload(); } - }) - + }); } handleCancel(): void { diff --git a/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts b/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts index f29c7b7d..d363a597 100644 --- a/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts +++ b/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts @@ -68,20 +68,20 @@ export class StaffManagementComponent implements OnInit { { text: '冻结', iif: item => - item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, + !item.stateLocked && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, click: item => this.action(item, 1), acl: { ability: ['SYSTEM-STAFF-lock'] } }, { text: '超管转授', - iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1, + iif: item => !item.stateLocked && item.roleCode.split(',').indexOf('Administrator') === -1, click: item => this.transpowerAction(item), acl: { ability: ['SYSTEM-STAFF-shiftAdmin'] } }, { text: '删除', iif: item => - item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, + !item.stateLocked && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, click: item => this.action(item, 3), acl: { ability: ['SYSTEM-STAFF-delete'] } } diff --git a/src/app/routes/sys-setting/sys-setting-routing.module.ts b/src/app/routes/sys-setting/sys-setting-routing.module.ts index ea5ae5c4..17f14f29 100644 --- a/src/app/routes/sys-setting/sys-setting-routing.module.ts +++ b/src/app/routes/sys-setting/sys-setting-routing.module.ts @@ -29,26 +29,34 @@ import { SmsTemplateComponent } from './components/sms-template/sms-template.com import { OrganizationManagementComponent } from './components/organization-management/organization-management.component'; const routes: Routes = [ - { path: 'staff-management', component: StaffManagementComponent }, + { path: 'staff-management', component: StaffManagementComponent, data: { guard: { ability: ['SYSTEM-STAFF-list'] } } }, { path: 'role-management/user/:type', component: RoleManagementComponent }, { path: 'role-management/freight/:type', component: RoleManagementComponent }, - { path: 'organization-management', component: OrganizationManagementComponent }, - { path: 'basic-setting', component: BasicSettingComponent }, + { path: 'organization-management', component: OrganizationManagementComponent, data: { guard: { ability: ['SYSTEM-ROLE-list'] } } }, + { path: 'basic-setting', component: BasicSettingComponent, data: { guard: { ability: ['SYSTEM-BASIC_SETTING-list'] } } }, { path: 'note-management', component: NoTeManagementComponent }, { path: 'basic-config', component: BasicConfigComponent }, { path: 'audit-reason-config', component: AuditReasonConfigComponent }, - { path: 'cart-config', component: CartConfigComponent }, - { path: 'agreement-config', component: AgreementConfigComponentsBaseComponent }, + { + path: 'cart-config', + component: CartConfigComponent, + data: { guard: { ability: ['SYSTEM-CART-CONFIG-modeList', 'SYSTEM-CART-CONFIG-cartLength', 'SYSTEM-CART-CONFIG-goodsList'] } } + }, + { + path: 'agreement-config', + component: AgreementConfigComponentsBaseComponent, + data: { guard: { ability: ['SYSTEM-AGREEMENT-CONFIG-list'] } } + }, { path: 'system-config', component: SystemConfigComponent }, - { path: 'goods-name-config', component: GoodsNameConfigComponent }, - { path: 'crm-management', component: CrmManagementComponent }, - { path: 'network-freight', component: NetworkFreightComponent }, + { path: 'goods-name-config', component: GoodsNameConfigComponent, data: { guard: { ability: ['SYSTEM-GOODS-NAME-CONFIG-list'] } } }, + { path: 'crm-management', component: CrmManagementComponent, data: { guard: { ability: ['SYSTEM-CRM-list'] } } }, + { path: 'network-freight', component: NetworkFreightComponent, data: { guard: { ability: ['SYSTEM-NETWORK-FREIGHT-list'] } } }, { path: 'network-freight/new/:id', component: NetworkFreightNewComponent }, { path: 'close-account', component: CloseAccountComponent }, // { path: 'btn-management', component: BtnManagementComponent }, { path: 'announcement-message', component: AnnouncementMessageComponent }, { path: 'insurance-set', component: InsuranceSetComponent }, - { path: 'sms-template', component: SmsTemplateComponent} + { path: 'sms-template', component: SmsTemplateComponent, data: { guard: { ability: ['SMS_TEMPLATE-search'] } } } ]; @NgModule({ diff --git a/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html b/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html index 010dee32..6784c8fd 100644 --- a/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html +++ b/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html @@ -9,7 +9,7 @@
- +
- +
diff --git a/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.ts b/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.ts index 9ec54f1a..4bf92d71 100644 --- a/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.ts +++ b/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.ts @@ -281,26 +281,7 @@ export class TaxManagementInvoiceReportingComponent implements OnInit { }); } - /** - *撤销 - * @param record 记录实例 - */ - resetData() { - if (this.selectedRows.length === 0) { - this.openWainingModal('请选择需要更新的数据!'); - return; - } - let params: any[] = []; - this.selectedRows.forEach(item => { - params.push(item.billId); - }); - this.service.request(this.service.$api_get_renewalOrderById, params).subscribe((res: any) => { - if (res) { - this.service.msgSrv.success('更新成功'); - this.st.load(1); - } - }) - } + /** *撤销 * @param record 记录实例 @@ -333,28 +314,13 @@ export class TaxManagementInvoiceReportingComponent implements OnInit { } selectChange(item: any) { - console.log(item); - this.selectedIndex = item?.value || ''; - console.log(this.selectedIndex); setTimeout(() => { this.st.load(); }) } - /** - * 查看当行数据 - */ - view(record: STData) { - // this.router.navigate(['../view', record.uuid], { relativeTo: this.ar }); - this.router.navigate(['../detail'], { - queryParams: { - id: record.id, - }, - relativeTo: this.ar - }); - } /** * 上传 @@ -368,6 +334,7 @@ export class TaxManagementInvoiceReportingComponent implements OnInit { this.selectedRows.forEach(item => { params.push(item.id); }); + return; //TODO 接口未提供 this.service.request(this.service.$api_get_uploadingTaxOrder, params).subscribe((res: any) => { if (res) { this.service.msgSrv.success('上传成功'); diff --git a/src/app/routes/ticket-management/components/billing-order/billing-order.component.html b/src/app/routes/ticket-management/components/billing-order/billing-order.component.html index 047cdf2a..e6588a35 100644 --- a/src/app/routes/ticket-management/components/billing-order/billing-order.component.html +++ b/src/app/routes/ticket-management/components/billing-order/billing-order.component.html @@ -11,9 +11,9 @@
- + - +
- - + +

@@ -48,30 +48,30 @@ 保存 diff --git a/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.html b/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.html index 3d52444d..5df97748 100644 --- a/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.html +++ b/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.html @@ -112,19 +112,23 @@
- - + [nzShowUploadList]="{showPreviewIcon:true,showRemoveIcon:true}" + [nzFileList]="item.itemValue?[{uid:item.id,name:'',url:item.itemValue}]:[]" + (nzChange)="uploadChange($event,item)" [nzLimit]="1" + [nzShowButton]="filst?.nzFileList?.length===0 " [nzPreview]="nzPreview" + [nzRemove]="nzRemove"> +
上传
- -
+

支持 diff --git a/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.ts b/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.ts index 5c3b0261..a3013280 100644 --- a/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.ts +++ b/src/app/shared/components/dynamic-setting/dynamic-setting-h5/dynamic-setting-h5.component.ts @@ -98,6 +98,17 @@ export class DynamicSettingH5Component implements OnInit { } } + nzPreview = (file: NzUploadFile) => { + this.showImg(file.url); + }; + nzRemove = (file: NzUploadFile) => { + const config = this.configList.find((c: any) => c.id === file.uid); + if (config) { + config.itemValue = ''; + } + return true; + }; + showImg(url: any) { this.nzImageService.preview([{ src: url }]); } diff --git a/src/styles/theme.less b/src/styles/theme.less index 1082d2fa..82b97923 100644 --- a/src/styles/theme.less +++ b/src/styles/theme.less @@ -24,3 +24,7 @@ .ant-btn { border-radius: 4px; } + +.ant-card-body { + padding: 16px; +}