Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tms-obc-web",
|
||||
"version": "1.0.1",
|
||||
"version": "1.2.0",
|
||||
"description": "运营后台-WEB",
|
||||
"author": "cipchk <cipchk@qq.com>",
|
||||
"repository": {
|
||||
|
||||
@ -273,6 +273,7 @@ export class PayableOrderComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '浏览',
|
||||
acl: { ability: ['FINANCIAL-PAYABLE-view'] },
|
||||
click: item =>
|
||||
this.router.navigate(['/financial-management/payable-order/detail/' + item.id], { queryParams: { billHId: item.id } })
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div class="mr-sm">
|
||||
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()" acl
|
||||
[acl-ability]="['FINANCIAL-RECEIPT-list']">筛选</button>
|
||||
[acl-ability]="['FINANCIAL-PAYMENT-ORDER-list']">筛选</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -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])
|
||||
}
|
||||
// {
|
||||
|
||||
@ -40,7 +40,8 @@
|
||||
<label class="page_title"> <label class="driver">|</label> 充值记录</label>
|
||||
<div class="mr-sm">
|
||||
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
|
||||
<button nz-button nzDanger (click)="exportList()"> 导出</button>
|
||||
<button nz-button nzDanger (click)="exportList()" acl [acl-ability]="['FINANCIAL-RECHARGE-export']">
|
||||
导出</button>
|
||||
</div>
|
||||
</div>
|
||||
<st #st [data]="service.$api_get_recharge_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
||||
|
||||
@ -119,7 +119,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
|
||||
title: '账户名称',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
autocomplete: 'off',
|
||||
autocomplete: 'off'
|
||||
}
|
||||
},
|
||||
accountType: {
|
||||
@ -133,7 +133,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
placeholder: '请选择'
|
||||
},
|
||||
default: ''
|
||||
},
|
||||
@ -157,7 +157,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
placeholder: '请选择'
|
||||
},
|
||||
default: ''
|
||||
}
|
||||
@ -195,6 +195,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
|
||||
{ type: 'divider' },
|
||||
{
|
||||
text: '查看回单<br>',
|
||||
acl: { ability: ['FINANCIAL-RECHARGE-receiptApply'] },
|
||||
click: item =>
|
||||
this.service.getReceiptUrl(item.receiptUrl, {
|
||||
bankType: item.bankType,
|
||||
@ -207,6 +208,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
|
||||
},
|
||||
{
|
||||
text: '添加备注',
|
||||
acl: { ability: ['FINANCIAL-RECHARGE-addRemark'] },
|
||||
click: item => this.addRemark(item)
|
||||
}
|
||||
]
|
||||
|
||||
@ -50,7 +50,7 @@ const routes: Routes = [
|
||||
component: PlatformAccountDetailComponent,
|
||||
data: { guard: { ability: ['FINANCIAL-PLATFORM-DETAIL-detail'] } }
|
||||
},
|
||||
{ path: 'recharge-record', component: RechargeRecordComponent },
|
||||
{ path: 'recharge-record', component: RechargeRecordComponent, data: { guard: { ability: ['FINANCIAL-RECHARGE-list'] } } },
|
||||
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent },
|
||||
{ path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
|
||||
{ path: 'refund-record', component: RefundRecordComponent },
|
||||
|
||||
@ -25,8 +25,10 @@
|
||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.expend-options]="_$expand" class="text-right">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button [disabled]="false" nzType="primary">导出</button>
|
||||
<button nz-button nzType="primary" acl [acl-ability]="['SYSTEM-ANNOUNCEMENT-list']"
|
||||
[nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button [disabled]="false" nzType="primary" acl
|
||||
[acl-ability]="['SYSTEM-ANNOUNCEMENT-export']">导出</button>
|
||||
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
@ -40,7 +42,8 @@
|
||||
<nz-card class="content-box">
|
||||
<div class="d-flex justify-content-end mb-sm mt-sm">
|
||||
<div>
|
||||
<button nz-button nzType="primary" (click)="roleAction('', 1)">新增公告</button>
|
||||
<button nz-button nzType="primary" (click)="roleAction('', 1)" acl
|
||||
[acl-ability]="['SYSTEM-ANNOUNCEMENT-add']">新增公告</button>
|
||||
</div>
|
||||
</div>
|
||||
<st #st [data]="service.$api_getAnnouncementInfoList_page" [columns]="columns" [req]="{ params: reqParams }"
|
||||
|
||||
@ -39,10 +39,12 @@ export class AnnouncementMessageComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '编辑',
|
||||
acl: { ability: ['SYSTEM-ANNOUNCEMENT-edit'] },
|
||||
click: item => this.roleAction(item, 2)
|
||||
},
|
||||
{
|
||||
text: '删除',
|
||||
acl: { ability: ['SYSTEM-ANNOUNCEMENT-delete'] },
|
||||
click: item => this.deleteAction(item)
|
||||
},
|
||||
]
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
<nz-card class="content-box">
|
||||
|
||||
<div class="d-flex align-items-center mb-sm" style="justify-content: flex-end;">
|
||||
<button nz-button nzType="primary" (click)="menuAction('新增组织')">新增</button>
|
||||
<button nz-button nzType="primary" (click)="menuAction('新增组织')" acl
|
||||
[acl-ability]="['SYSTEM-ROLE-add']">新增</button>
|
||||
</div>
|
||||
|
||||
<nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed" nzBordered nzSize="small"
|
||||
@ -33,16 +34,16 @@
|
||||
</td>
|
||||
<td nzAlign="center" nzWidth="250px">
|
||||
<ng-container *ngIf="item.roleCode !== 'Administrator'">
|
||||
<a (click)="menuAction(item)">编辑</a>
|
||||
<a (click)="menuAction(item)" acl [acl-ability]="['SYSTEM-ROLE-edit']">编辑</a>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a (click)="deleteAction(item)">删除</a>
|
||||
<a (click)="deleteAction(item)" acl [acl-ability]="['SYSTEM-ROLE-delete']">删除</a>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a (click)="menuAction(null,item.id)">新增子组织</a>
|
||||
<a (click)="menuAction(null,item.id)" acl [acl-ability]="['SYSTEM-ROLE-add']">新增子组织</a>
|
||||
<br>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a (click)="configureAPIauth(item)">配置接口权限</a>
|
||||
<a (click)="configureAPIauth(item)" acl [acl-ability]="['SYSTEM-ROLE-api']">配置接口权限</a>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a>配置数据权限</a>
|
||||
<a acl [acl-ability]="['SYSTEM-ROLE-data']">配置数据权限</a>
|
||||
</ng-container>
|
||||
|
||||
</td>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
<nz-card>
|
||||
<div class="filter-wrap">
|
||||
<button nz-button nzType="primary" (click)="add()">新增</button>
|
||||
<button nz-button nzType="primary" (click)="add()" acl [acl-ability]="['SMS_TEMPLATE-add']">新增</button>
|
||||
<button nz-button nzType="primary" (click)="open()"><i nz-icon nzType="plus" nzTheme="outline"></i>筛选</button>
|
||||
</div>
|
||||
<st #st [data]="this.service.$api_smsTemplate_page " [columns]="columns" [req]="{ process: beforeReq }"
|
||||
@ -24,9 +24,10 @@
|
||||
</ng-template>
|
||||
</nz-drawer>
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisible" [nzTitle]="!isEdit?'新增':'编辑'" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" [nzOkDisabled]="!sfEdit?.valid">
|
||||
<nz-modal [(nzVisible)]="isVisible" [nzTitle]="!isEdit?'新增':'编辑'" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"
|
||||
[nzOkDisabled]="!sfEdit?.valid">
|
||||
<ng-container *nzModalContent>
|
||||
<sf #sfEdit [formData]="tempData" [schema]="editSchema" [ui]="{ '*': { spanLabelFixed: 90,grid: { span: 24 } }}" [compact]="true"
|
||||
[button]="'none'"></sf>
|
||||
<sf #sfEdit [formData]="tempData" [schema]="editSchema" [ui]="{ '*': { spanLabelFixed: 90,grid: { span: 24 } }}"
|
||||
[compact]="true" [button]="'none'"></sf>
|
||||
</ng-container>
|
||||
</nz-modal>
|
||||
@ -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';
|
||||
@ -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 {
|
||||
|
||||
@ -54,9 +54,9 @@ const routes: Routes = [
|
||||
{ path: 'network-freight/new/:id', component: NetworkFreightNewComponent },
|
||||
{ path: 'close-account', component: CloseAccountComponent },
|
||||
// { path: 'btn-management', component: BtnManagementComponent },
|
||||
{ path: 'announcement-message', component: AnnouncementMessageComponent },
|
||||
{ path: 'announcement-message', component: AnnouncementMessageComponent, data: { guard: { ability: ['SYSTEM-ANNOUNCEMENT-list'] } } },
|
||||
{ path: 'insurance-set', component: InsuranceSetComponent },
|
||||
{ path: 'sms-template', component: SmsTemplateComponent }
|
||||
{ path: 'sms-template', component: SmsTemplateComponent, data: { guard: { ability: ['SMS_TEMPLATE-search'] } } }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@ -290,11 +290,11 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
{ title: '数量', render: 'vatqty', width: 140, className: 'text-right' },
|
||||
{
|
||||
title: '金额',
|
||||
index: 'vattax',
|
||||
index: 'vatmoney',
|
||||
width: 140,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vattax }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatmoney }) }
|
||||
},
|
||||
{
|
||||
title: '税率',
|
||||
@ -305,11 +305,11 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
title: '税额',
|
||||
index: 'vatnotax',
|
||||
index: 'vattax',
|
||||
width: 140,
|
||||
type: 'widget',
|
||||
className: 'text-right',
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vatnotax }) }
|
||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.vattax }) }
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -16,17 +16,10 @@
|
||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
||||
<button
|
||||
nz-button
|
||||
nzType="primary"
|
||||
acl
|
||||
[acl-ability]="['VEHICLE-LIST-search']"
|
||||
[nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)"
|
||||
>查询</button>
|
||||
<button nz-button nzType="primary" [disabled]="false" (click)="exportFire()" acl [acl-ability]="'VEHICLE-LIST-export'"
|
||||
>导出</button
|
||||
>
|
||||
<button nz-button nzType="primary" acl [acl-ability]="['VEHICLE-LIST-search']" [nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)">查询</button>
|
||||
<button nz-button nzType="primary" [disabled]="false" (click)="exportFire()" acl
|
||||
[acl-ability]="'VEHICLE-LIST-export'">导出</button>
|
||||
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
@ -38,23 +31,14 @@
|
||||
<nz-card>
|
||||
<!-- 数据列表 -->
|
||||
|
||||
<st
|
||||
#st
|
||||
[bordered]="true"
|
||||
[scroll]="{ x: '1200px' }"
|
||||
[columns]="columns"
|
||||
[data]="service.$api_get_operate_list"
|
||||
<st #st [bordered]="true" [scroll]="{ x: '1200px' }" [columns]="columns" [data]="service.$api_get_operate_list"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loading]="false"
|
||||
>
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loading]="false">
|
||||
<ng-template st-row="carLength" let-item let-index="index">
|
||||
<div
|
||||
>{{ item?.carModelLabel }}-{{ item?.carLengthLabel ? item?.carLengthLabel + '米' : '' }}-{{
|
||||
item?.carLoad ? item?.carLoad + '吨' : ''
|
||||
}}</div
|
||||
>
|
||||
<div>{{ item?.carModelLabel }}-{{ item?.carLengthLabel ? item?.carLengthLabel + '米' : '' }}-{{
|
||||
item?.carLoad ? item?.carLoad + '吨' : ''
|
||||
}}</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="isSelf" let-item let-index="index">
|
||||
<div>
|
||||
@ -68,13 +52,19 @@
|
||||
</ng-template>
|
||||
<ng-template st-row="approvalAuditStatus" let-item let-index="index">
|
||||
<div>
|
||||
<span *ngIf="item?.approvalAuditStatus === -1 || (item?.approvalAuditStatus === '-1' && item?.isSelf)">未上传</span>
|
||||
<span
|
||||
*ngIf="item?.approvalAuditStatus === -1 || (item?.approvalAuditStatus === '-1' && item?.isSelf)">未上传</span>
|
||||
<span *ngIf="item?.approvalAuditStatus === 0 || (item?.approvalAuditStatus === '0' && item?.isSelf)">草稿</span>
|
||||
<span *ngIf="item?.approvalAuditStatus === 10 || (item?.approvalAuditStatus === '10' && item?.isSelf)">待审核</span>
|
||||
<span *ngIf="item?.approvalAuditStatus === 15 || (item?.approvalAuditStatus === '15' && item?.isSelf)">已撤销</span>
|
||||
<span *ngIf="item?.approvalAuditStatus === 20 || (item?.approvalAuditStatus === '20' && item?.isSelf)">已审核</span>
|
||||
<span *ngIf="item?.approvalAuditStatus === 30 || (item?.approvalAuditStatus === '30' && item?.isSelf)">已驳回</span>
|
||||
<span *ngIf="item?.approvalAuditStatus === 40 || (item?.approvalAuditStatus === '40' && item?.isSelf)">证件过期</span>
|
||||
<span
|
||||
*ngIf="item?.approvalAuditStatus === 10 || (item?.approvalAuditStatus === '10' && item?.isSelf)">待审核</span>
|
||||
<span
|
||||
*ngIf="item?.approvalAuditStatus === 15 || (item?.approvalAuditStatus === '15' && item?.isSelf)">已撤销</span>
|
||||
<span
|
||||
*ngIf="item?.approvalAuditStatus === 20 || (item?.approvalAuditStatus === '20' && item?.isSelf)">已审核</span>
|
||||
<span
|
||||
*ngIf="item?.approvalAuditStatus === 30 || (item?.approvalAuditStatus === '30' && item?.isSelf)">已驳回</span>
|
||||
<span
|
||||
*ngIf="item?.approvalAuditStatus === 40 || (item?.approvalAuditStatus === '40' && item?.isSelf)">证件过期</span>
|
||||
<span *ngIf="!item?.isSelf">-</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
@ -14,10 +14,14 @@ import { VehicleComponentsListDetailComponent } from './components/list/detail/d
|
||||
import { VehicleComponentsListComponent } from './components/list/list.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: 'list', component: VehicleComponentsListComponent },
|
||||
{ path: 'list/detail/:id', component: VehicleComponentsListDetailComponent },
|
||||
{ path: 'audit', component: VehicleComponentsAuditComponent },
|
||||
{ path: 'audit/detail/:id', component: VehicleComponentsAuditDetailComponent }
|
||||
{ path: 'list', component: VehicleComponentsListComponent, data: { guard: { ability: ['VEHICLE-LIST-search'] } } },
|
||||
{ path: 'list/detail/:id', component: VehicleComponentsListDetailComponent, data: { guard: { ability: ['VEHICLE-LIST-DETAIL-list'] } } },
|
||||
{ path: 'audit', component: VehicleComponentsAuditComponent, data: { guard: { ability: ['VEHICLE-AUDIT-search'] } } },
|
||||
{
|
||||
path: 'audit/detail/:id',
|
||||
component: VehicleComponentsAuditDetailComponent,
|
||||
data: { guard: { ability: ['VEHICLE-AUDIT-DETAIL-search'] } }
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
Reference in New Issue
Block a user