Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-03-08 13:22:21 +08:00
40 changed files with 173 additions and 89 deletions

View File

@ -12,6 +12,7 @@
"ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng", "ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng",
"ng": "ng", "ng": "ng",
"start": "ng s -o --port 4202 --host 0.0.0.0", "start": "ng s -o --port 4202 --host 0.0.0.0",
"startIp": "ng serve -o --port 4202 --host 172.29.9.71 --open",
"hmr": "ng s -o --hmr", "hmr": "ng s -o --hmr",
"build": "npm run ng-high-memory build --", "build": "npm run ng-high-memory build --",
"build:dev": "npm run build -- -c dev", "build:dev": "npm run build -- -c dev",

View File

@ -35,7 +35,7 @@
.total-footer { .total-footer {
position : absolute; position : absolute;
bottom : 30px; bottom : 25px;
height : 32px; height : 32px;
margin : 16px 0; margin : 16px 0;
line-height: 32px; line-height: 32px;

View File

@ -154,7 +154,7 @@ export class ContractManagementTemplateFrameComponent implements OnInit {
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -154,7 +154,7 @@ export class ContractManagementTemplatePartnerComponent implements OnInit {
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -154,7 +154,7 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -275,6 +275,7 @@ export class ReceivableOrderComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: 120, width: 120,
className: 'text-center',
buttons: [ buttons: [
{ {
text: '浏览', text: '浏览',

View File

@ -323,6 +323,7 @@ export class VoucherManagementComponent implements OnInit {
title: '操作', title: '操作',
width: '130px', width: '130px',
fixed: 'right', fixed: 'right',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '浏览', text: '浏览',

View File

@ -213,6 +213,7 @@ export class VoucherListComponent implements OnInit {
title: '操作', title: '操作',
width: '130px', width: '130px',
fixed: 'right', fixed: 'right',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '浏览', text: '浏览',

View File

@ -270,6 +270,7 @@ export class WithdrawalsRecordComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '110px', width: '110px',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看回单', text: '查看回单',

View File

@ -476,7 +476,7 @@ export class insuranceManagementListComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '110px', width: '110px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看保单', text: '查看保单',

View File

@ -502,7 +502,7 @@ export class OrderManagementBulkComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '130px', width: '130px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '运费变更记录', text: '运费变更记录',
@ -579,7 +579,7 @@ export class OrderManagementBulkComponent implements OnInit {
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看', text: '查看',

View File

@ -177,7 +177,7 @@ export class OrderManagementComplaintComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '100px', width: '100px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
// { // {
// text: '处理', // text: '处理',

View File

@ -389,7 +389,7 @@ export class OrderManagementComplianceAuditComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '140px', width: '140px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看申诉记录', text: '查看申诉记录',
@ -433,7 +433,7 @@ export class OrderManagementComplianceAuditComponent implements OnInit {
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看', text: '查看',

View File

@ -331,7 +331,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '136px', width: '136px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '生成电子单据', text: '生成电子单据',

View File

@ -302,7 +302,7 @@ export class OrderManagementRiskComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '90px', width: '90px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '审核', text: '审核',

View File

@ -435,7 +435,7 @@ resourceStatus: any;
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '130px', width: '130px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
@ -519,7 +519,7 @@ resourceStatus: any;
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看', text: '查看',

View File

@ -112,7 +112,17 @@ export class SupplyManagementVehicleAssignedCarComponent implements OnInit {
console.log(this.params) console.log(this.params)
} }
dataProcess(data: STData[]): STData[] { dataProcess = (data: STData[], rawData: any): STData[] => {
if (rawData.status === 505016) {
this.modalSrv.confirm({
nzTitle: '系统提示',
nzContent: '<b>该司机还未注册,是否邀请他注册?点击"是"系统将发送邀请短信给司机</b>',
nzOkText: '确定',
nzCancelText: '取消',
nzOnOk: () => console.log('OK')
});
return [];
}
return data.map((i, index) => { return data.map((i, index) => {
i.carId = ''; i.carId = '';
i.disabled = (i?.certificationStatus === 1 && i.driverStatus === 1); i.disabled = (i?.certificationStatus === 1 && i.driverStatus === 1);

View File

@ -323,7 +323,7 @@ export class SupplyManagementBulkComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '110px', width: '110px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '货源审核', text: '货源审核',

View File

@ -1,17 +1,15 @@
import { ChangeDetectorRef, Component, Input, OnInit, ViewChild } from '@angular/core'; import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; import { STColumn, STComponent, STData } from '@delon/abc/st';
import { SFComponent, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
import { ModalHelper } from '@delon/theme'; import { ModalHelper } from '@delon/theme';
import { EAEnvironmentService, processSingleSort } from '@shared'; import { EAEnvironmentService } from '@shared';
import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd/drawer'; import { NzDrawerService } from 'ng-zorro-antd/drawer';
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
import { SupplyManagementAddDriversComponent } from 'src/app/routes/supply-management/components/add-drivers/add-drivers.component'; import { SupplyManagementAddDriversComponent } from 'src/app/routes/supply-management/components/add-drivers/add-drivers.component';
import { SupplyManagementService } from '../../services/supply-management.service'; import { SupplyManagementService } from '../../services/supply-management.service';
import { CarAddmodalComponent } from '../addmodal/addmodal.component'; import { CarAddmodalComponent } from '../addmodal/addmodal.component';
import { PublishchooseFamifiarAddComponent } from './add/add.component';
import { PublishchooseFamifiarSetCaptainComponent } from './set-captain/set-captain.component';
@Component({ @Component({
selector: 'app-publish-goods-choose-famifiar', selector: 'app-publish-goods-choose-famifiar',
@ -37,7 +35,7 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
submitUrl = ''; submitUrl = '';
@Input() @Input()
submitParams:any; submitParams: any;
constructor( constructor(
private modal: NzModalRef, private modal: NzModalRef,
@ -241,7 +239,17 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
} }
// 熟车请求数据处理 // 熟车请求数据处理
reqProcess(data: STData[]): STData[] { reqProcess = (data: STData[], rawData: any): STData[] => {
if (rawData.status === 505016) {
this.modalService.confirm({
nzTitle: '系统提示',
nzContent: '<b>该司机还未注册,是否邀请他注册?点击"是"系统将发送邀请短信给司机</b>',
nzOkText: '确定',
nzCancelText: '取消',
nzOnOk: () => console.log('OK')
});
return [];
}
return data.map((i, index) => { return data.map((i, index) => {
const defaultCart = i.userCarLicenseDesensitizationVOList.find((cart: any) => cart.isDefault); const defaultCart = i.userCarLicenseDesensitizationVOList.find((cart: any) => cart.isDefault);
return { ...i, default: defaultCart || '' }; return { ...i, default: defaultCart || '' };
@ -271,52 +279,52 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
} }
carChange(event: any, item: STData) { carChange(event: any, item: STData) {
} }
/** /**
* 验证车辆的状态 * 验证车辆的状态
*/ */
verifyVechicleStatus(_record: STData) { verifyVechicleStatus(_record: STData) {
const { carId, appUserId: driverId, captainAppUserId: carCaptainId } = _record; const { carId, appUserId: driverId, captainAppUserId: carCaptainId } = _record;
const carInfo: any = { carId, driverId, carCaptainId }; const carInfo: any = { carId, driverId, carCaptainId };
const goodsInfoList = this.submitParams?.goodsInfoList; const goodsInfoList = this.submitParams?.goodsInfoList;
this.service.request(this.service.$api_verify_vehicle_status, { ...carInfo, goodsInfoList }).subscribe((res: any) => { this.service.request(this.service.$api_verify_vehicle_status, { ...carInfo, goodsInfoList }).subscribe((res: any) => {
if (res) { if (res) {
const { title, alert, subContent, content } = res; const { title, alert, subContent, content } = res;
switch (alert) { switch (alert) {
case 'Error': case 'Error':
this.error(title, content, subContent); this.error(title, content, subContent);
break; break;
case 'Warn': case 'Warn':
this.showConfirm(_record, title, content, subContent); this.showConfirm(_record, title, content, subContent);
break; break;
case 'Success': case 'Success':
this.choose(_record); this.choose(_record);
break; break;
}
} }
}); }
});
}
}
error(title: string, content: string, subContent: string): void {
this.modalService.error({ error(title: string, content: string, subContent: string): void {
nzTitle: title, this.modalService.error({
nzContent: `<span class="text-error-dark">${content ? content : ''}</span><span class="text-grey-dark">${subContent ? subContent : ''}</span>`, nzTitle: title,
nzOkText: '知道了' nzContent: `<span class="text-error-dark">${content ? content : ''}</span><span class="text-grey-dark">${subContent ? subContent : ''}</span>`,
}); nzOkText: '知道了'
} });
}
showConfirm(_record: STData, title: string, content: string, subContent: string): void {
this.modalService.confirm({ showConfirm(_record: STData, title: string, content: string, subContent: string): void {
nzTitle: title, this.modalService.confirm({
nzContent: `<span class="text-error-dark">${content ? content : ''}</span><span class="text-grey-dark">${subContent ? subContent : ''}</span>`, nzTitle: title,
nzOkText: '继续', nzContent: `<span class="text-error-dark">${content ? content : ''}</span><span class="text-grey-dark">${subContent ? subContent : ''}</span>`,
nzCancelText: '取消', nzOkText: '继续',
nzOnOk: () => { nzCancelText: '取消',
this.choose(_record); nzOnOk: () => {
} this.choose(_record);
}); }
} });
}
} }

View File

@ -35,6 +35,7 @@ export class AnnouncementMessageComponent implements OnInit {
{ title: '公告内容', index: 'announcementContent' }, { title: '公告内容', index: 'announcementContent' },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -77,6 +77,7 @@ export class AuditReasonConfigComponent implements OnInit {
}, },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -67,6 +67,7 @@ export class BasicConfigComponent implements OnInit {
}, },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -35,6 +35,7 @@ export class BtnManagementComponent implements OnInit {
{ title: '按钮编码', index: 'code' }, { title: '按钮编码', index: 'code' },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -98,6 +98,7 @@ export class CartConfigComponent implements OnInit {
}, },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -36,6 +36,7 @@ export class CloseAccountComponent implements OnInit {
{ title: '客户编码', index: 'crmCustomerCode' }, { title: '客户编码', index: 'crmCustomerCode' },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -31,6 +31,7 @@ export class CrmManagementComponent implements OnInit {
{ title: '客户编码', index: 'customerCode' }, { title: '客户编码', index: 'customerCode' },
{ {
title: '操作', title: '操作',
className: 'text-left',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -24,6 +24,7 @@ export class GoodsNameConfigComponent implements OnInit {
{ title: '更新时间', index: 'modifyTime' }, { title: '更新时间', index: 'modifyTime' },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -35,6 +35,7 @@ export class InsuranceSetComponent implements OnInit {
{ title: '公告内容', index: 'announcementContent' }, { title: '公告内容', index: 'announcementContent' },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -107,7 +107,7 @@ export class NetworkFreightComponent implements OnInit {
title: '操作', title: '操作',
width: '110px', width: '110px',
fixed: 'right', fixed: 'right',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '基础设置', text: '基础设置',

View File

@ -28,20 +28,20 @@ export class RoleManagementComponent implements OnInit {
}; };
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '角色名称', index: 'roleName' }, { title: '角色名称', className: 'text-center', index: 'roleName' },
{ title: '角色描述', index: 'roleDescription' }, { title: '角色描述', className: 'text-center', index: 'roleDescription' },
{ title: '企业数量', index: 'userNumber', iif: _ => this.type === 'freight' }, { title: '企业数量', className: 'text-center', index: 'userNumber', iif: _ => this.type === 'freight' },
{ title: '创建人手机号', index: 'telephone' }, { title: '创建人手机号', className: 'text-center', index: 'telephone' },
{ {
title: '创建时间', title: '创建时间',
width: 170, width: 170,
index: 'createTime', index: 'createTime',
type: 'date', type: 'date',
className: 'text-left', className: 'text-center'
sort: true
}, },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -16,7 +16,7 @@
<nz-card class="content-box"> <nz-card class="content-box">
<div class="d-flex justify-content-between mb-sm"> <div class="d-flex justify-content-between mb-sm">
<label style="font-size: 18px;">员工列表</label> <label style="font-size: 18px;"></label>
<div> <div>
<button nz-button nzType="primary" (click)="staffAction()" acl [acl-ability]="['SYSTEM-STAFF-add']">添加员工</button> <button nz-button nzType="primary" (click)="staffAction()" acl [acl-ability]="['SYSTEM-STAFF-add']">添加员工</button>
<button nz-button acl [acl-ability]="['SYSTEM-STAFF-export']">导出</button> <button nz-button acl [acl-ability]="['SYSTEM-STAFF-export']">导出</button>

View File

@ -29,13 +29,14 @@ export class StaffManagementComponent implements OnInit {
}; };
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '', index: 'key', type: 'checkbox' }, { title: '', index: 'key', className: 'text-center', type: 'checkbox' },
{ title: '员工姓名', index: 'name' }, { title: '员工姓名', className: 'text-center', index: 'name' },
{ title: '手机号码', index: 'telephone' }, { title: '手机号码', className: 'text-center', index: 'telephone' },
{ title: '角色', index: 'roleName' }, { title: '角色',className: 'text-center', index: 'roleName' },
{ {
title: '最后登录时间', title: '最后登录时间',
index: 'lastLoginDate', index: 'lastLoginDate',
className: 'text-center',
type: 'date', type: 'date',
format: item => `${item.lastLoginDate || '-'}` format: item => `${item.lastLoginDate || '-'}`
}, },
@ -51,6 +52,7 @@ export class StaffManagementComponent implements OnInit {
}, },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',

View File

@ -365,6 +365,7 @@ export class CancellationInvoiceComponent implements OnInit {
title: '操作', title: '操作',
width: '120px', width: '120px',
fixed: 'right', fixed: 'right',
className: 'text-center',
buttons: [ buttons: [
{ type: 'divider' }, { type: 'divider' },
{ {

View File

@ -284,6 +284,7 @@ export class ETCBlacklistComponent implements OnInit {
}, },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '删除', text: '删除',

View File

@ -174,6 +174,7 @@ export class ETCInvoicedListComponent implements OnInit {
{ title: '申请时间', index: 'orderReceivingTime', type: 'date' }, { title: '申请时间', index: 'orderReceivingTime', type: 'date' },
{ {
title: '操作', title: '操作',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '交易明细', text: '交易明细',

View File

@ -19,6 +19,11 @@
<div class="mt-md mb-sm"> <div class="mt-md mb-sm">
<button nz-button nzType="primary" (click)="printOrder()">打印面单</button> <button nz-button nzType="primary" (click)="printOrder()">打印面单</button>
</div> </div>
<<<<<<< HEAD
<st #st [data]="url" [columns]="columns" [req]="{ process:beforeReq }" [loading]="service.http.loading" [page]="{}"
(change)="stChange($event)" [scroll]="{ x: '1200px' }" ></st>
=======
<st #st [data]="url" [columns]="columns" [req]="{ process:beforeReq }" [loading]="service.http.loading" [page]="{}" [scroll]="{x:'1200px'}" <st #st [data]="url" [columns]="columns" [req]="{ process:beforeReq }" [loading]="service.http.loading" [page]="{}" [scroll]="{x:'1200px'}"
(change)="stChange($event)"></st> (change)="stChange($event)"></st>
>>>>>>> 9894aafcc1c3326f1d6dcb9a0c3eb42079a623a9
</nz-card> </nz-card>

View File

@ -407,6 +407,7 @@ export class InvoiceRequestedComponent implements OnInit {
title: '操作', title: '操作',
width: 125, width: 125,
fixed: 'right', fixed: 'right',
className: 'text-center',
buttons: [ buttons: [
{ type: 'divider' }, { type: 'divider' },
{ {

View File

@ -317,7 +317,7 @@ tabs = {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '110px', width: '110px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '确认发车', text: '确认发车',

View File

@ -336,7 +336,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
width: '110px', width: '110px',
className: 'text-left', className: 'text-center',
buttons: [ buttons: [
{ {
text: '确认发车', text: '确认发车',

View File

@ -11,15 +11,56 @@
.alain-pro__page-header-content{ .alain-pro__page-header-content{
margin: 8px 8px 0px !important; margin: 8px 8px 0px !important;
} }
.ant-card-body{
padding: 6px !important;
}
.ant-card { .ant-card {
margin-bottom: 8px !important; margin-bottom: 8px !important;
} }
.ant-table tfoot>tr>td, .ant-table tfoot>tr>th, .ant-table-tbody>tr>td, .ant-table-thead>tr>th{ .ant-table tfoot>tr>td, .ant-table tfoot>tr>th, .ant-table-tbody>tr>td, .ant-table-thead>tr>th{
padding: 6px 4px !important; padding: 6px 10px;
} }
.alain-pro__page-header-wrapper{ .alain-pro__page-header-wrapper{
margin: 0 !important margin: 0 !important
} }
.alain-pro__menu-icon{
font-size: 14px !important;
margin: 3px 5px 0 0 ;
}
.sf__compact .ant-form-item {
margin-top: 4px !important;
margin-bottom: 4px !important;
}
.body-box{
max-width: 760px !important;
.box-content{
height: 77% !important;
}
}
.login-logo{
width:250px !important;
height: 100% !important;
}
.ant-tabs-tab-btn{
font-size: 18px !important;
}
.login-box-content{
max-width: 300px !important;
padding: 58px 0 38px !important;
height: 100% !important;
}
.total-footer {
bottom: 10px !important;
}
.ant-layout-header{
height: 44px;
padding: 0 25px;
line-height: 44px;
img{
width: 22px
}
.title{
font-size: 14px;
}
}
.ant-tabs-tab-btn{
font-size: 14px !important;
}