Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
13
angular.json
13
angular.json
@ -35,8 +35,19 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"node_modules/perfect-scrollbar/css/perfect-scrollbar.css",
|
"node_modules/perfect-scrollbar/css/perfect-scrollbar.css",
|
||||||
"node_modules/quill/dist/quill.snow.css",
|
"node_modules/quill/dist/quill.snow.css",
|
||||||
"src/styles.less"
|
"src/styles.less",
|
||||||
|
{
|
||||||
|
"input": "src/styles/default.less",
|
||||||
|
"bundleName": "default",
|
||||||
|
"inject": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "src/styles/compact.less",
|
||||||
|
"bundleName": "compact",
|
||||||
|
"inject": false
|
||||||
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"node_modules/quill/dist/quill.min.js",
|
"node_modules/quill/dist/quill.min.js",
|
||||||
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.js",
|
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.js",
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import { environment } from '@env/environment';
|
|||||||
import { NzIconService } from 'ng-zorro-antd/icon';
|
import { NzIconService } from 'ng-zorro-antd/icon';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
|
import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
|
||||||
|
import { ThemeService } from './theme.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
@ -17,7 +18,8 @@ export class AppComponent implements OnInit {
|
|||||||
private router: Router,
|
private router: Router,
|
||||||
private titleSrv: TitleService,
|
private titleSrv: TitleService,
|
||||||
private modalSrv: NzModalService,
|
private modalSrv: NzModalService,
|
||||||
private iconService: NzIconService
|
private iconService: NzIconService,
|
||||||
|
private themeService: ThemeService
|
||||||
) {
|
) {
|
||||||
renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
|
renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
|
||||||
renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
|
renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
|
||||||
@ -47,5 +49,14 @@ export class AppComponent implements OnInit {
|
|||||||
this.modalSrv.closeAll();
|
this.modalSrv.closeAll();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const screen: any = window.screen
|
||||||
|
var zoom = window.devicePixelRatio || screen.deviceXDPI / screen?.logicalXDPI;
|
||||||
|
console.log(zoom)
|
||||||
|
if (document.body.clientWidth >= 1280) {
|
||||||
|
if (zoom != 1 && zoom != 2 && zoom != 3) {
|
||||||
|
this.themeService.toggleTheme().then();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.i)
|
console.log(this.i)
|
||||||
this.initData()
|
this.initData()
|
||||||
this.i.time = this.i.loadingTime;
|
this.i.time = this.i?.loadingTime;
|
||||||
this.initSF();
|
this.initSF();
|
||||||
}
|
}
|
||||||
initSF() {
|
initSF() {
|
||||||
@ -407,7 +407,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
} as SFUploadWidgetSchema,
|
} as SFUploadWidgetSchema,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['time', 'weight' ]
|
required: ['time' ]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
this.ui = {
|
this.ui = {
|
||||||
@ -422,19 +422,16 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
save(value: any): void {
|
save(value: any): void {
|
||||||
console.log('444');
|
|
||||||
if(this.Status === 1) {
|
if(this.Status === 1) {
|
||||||
console.log('555');
|
|
||||||
|
|
||||||
if(!value.time) {
|
if(!value.time) {
|
||||||
this.service.msgSrv.warning('必填项为空!')
|
this.service.msgSrv.warning('必填项为空!')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const params = {
|
const params = {
|
||||||
id: this.i.id,
|
id: this.i.id,
|
||||||
imgUrl1: value.imgUrl1.data.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value.imgUrl2.data.fullFilePath,
|
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
||||||
time: value.time,
|
time: value?.time,
|
||||||
}
|
}
|
||||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
||||||
this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
|
||||||
@ -444,12 +441,10 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(!value.time || !this.data.weight) {
|
if(!value.time ) {
|
||||||
this.service.msgSrv.warning('必填项为空!')
|
this.service.msgSrv.warning('必填项为空!')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(value)
|
|
||||||
console.log(this.i)
|
|
||||||
const params = {
|
const params = {
|
||||||
id: this.i?.id,
|
id: this.i?.id,
|
||||||
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
@ -459,7 +454,6 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
weight: this.data?.weight
|
weight: this.data?.weight
|
||||||
}
|
}
|
||||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
||||||
console.log(params)
|
|
||||||
this.service.request(this.service.$api_get_insertBulkUnloadCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertBulkUnloadCarInfo, params).subscribe((res) => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('确认到车成功!')
|
this.service.msgSrv.success('确认到车成功!')
|
||||||
|
|||||||
@ -99,7 +99,6 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
multiple: false,
|
multiple: false,
|
||||||
listType: 'picture-card',
|
listType: 'picture-card',
|
||||||
showRequired: true,
|
|
||||||
} as SFUploadWidgetSchema,
|
} as SFUploadWidgetSchema,
|
||||||
},
|
},
|
||||||
imgUrl2: {
|
imgUrl2: {
|
||||||
@ -138,11 +137,10 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
multiple: false,
|
multiple: false,
|
||||||
listType: 'picture-card',
|
listType: 'picture-card',
|
||||||
showRequired: true,
|
|
||||||
} as SFUploadWidgetSchema,
|
} as SFUploadWidgetSchema,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['reason']
|
required: ['time']
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.schema = {
|
this.schema = {
|
||||||
@ -210,7 +208,6 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
multiple: false,
|
multiple: false,
|
||||||
listType: 'picture-card',
|
listType: 'picture-card',
|
||||||
showRequired: true,
|
|
||||||
} as SFUploadWidgetSchema,
|
} as SFUploadWidgetSchema,
|
||||||
},
|
},
|
||||||
imgUrl2: {
|
imgUrl2: {
|
||||||
@ -249,11 +246,10 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
multiple: false,
|
multiple: false,
|
||||||
listType: 'picture-card',
|
listType: 'picture-card',
|
||||||
showRequired: true,
|
|
||||||
} as SFUploadWidgetSchema,
|
} as SFUploadWidgetSchema,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['time', 'weight']
|
required: ['time']
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,15 +264,15 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
save(value: any): void {
|
save(value: any): void {
|
||||||
if(this.Status === 1) {
|
if(this.Status === 1) {
|
||||||
if(!value.time) {
|
if(!value?.time) {
|
||||||
this.service.msgSrv.warning('必填项为空!')
|
this.service.msgSrv.warning('必填项为空!')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const params = {
|
const params = {
|
||||||
id: this.i.id,
|
id: this.i.id,
|
||||||
imgUrl1: value.imgUrl1.data.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value.imgUrl2.data.fullFilePath,
|
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
||||||
time: value.time,
|
time: value?.time,
|
||||||
}
|
}
|
||||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
||||||
this.service.request(this.service.$api_get_insertWholeStartCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertWholeStartCarInfo, params).subscribe((res) => {
|
||||||
@ -286,18 +282,18 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(!value.time || !this.data.weight) {
|
if(!value?.time) {
|
||||||
this.service.msgSrv.warning('必填项为空!')
|
this.service.msgSrv.warning('必填项为空!')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(value)
|
console.log(value)
|
||||||
const params = {
|
const params = {
|
||||||
id: this.i.id,
|
id: this.i.id,
|
||||||
imgUrl1: value.imgUrl1.data.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value.imgUrl2.data.fullFilePath,
|
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
||||||
time: value.time,
|
time: value?.time,
|
||||||
volume: this.data.volume,
|
volume: this.data?.volume,
|
||||||
weight: this.data.weight
|
weight: this.data?.weight
|
||||||
}
|
}
|
||||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
||||||
this.service.request(this.service.$api_get_insertBulkStartCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertBulkStartCarInfo, params).subscribe((res) => {
|
||||||
|
|||||||
@ -144,30 +144,30 @@ export class SupplyManagementBulkAssignedCarComponent implements OnInit {
|
|||||||
title: '司机姓名',
|
title: '司机姓名',
|
||||||
index: 'name',
|
index: 'name',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '80px'
|
width: '20%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '手机号',
|
title: '手机号',
|
||||||
index: 'telephone',
|
index: 'telephone',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '100px'
|
width: '15%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '车队长',
|
title: '车队长',
|
||||||
render: 'captain',
|
render: 'captain',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '200px'
|
width: '30%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '指定车辆',
|
title: '指定车辆',
|
||||||
render: 'carNo',
|
render: 'carNo',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '100px'
|
width: '15%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '80px',
|
width: '20%',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: '移除',
|
text: '移除',
|
||||||
|
|||||||
@ -65,7 +65,7 @@ export class SupplyManagementBulkDetailComponent implements OnInit {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
return {
|
return {
|
||||||
operateObject: this.i?.resourceCode,
|
operateObject: this.i?.resourceCode,
|
||||||
operateType: 4,
|
operateTypeList: [4,7],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
currentStatus = 0;
|
currentStatus = 0;
|
||||||
|
|||||||
@ -464,19 +464,6 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// receiptAddressId: {
|
|
||||||
// type: 'string',
|
|
||||||
// title: '选择地址',
|
|
||||||
// ui: {
|
|
||||||
// widget: 'custom',
|
|
||||||
// placeholder: '请点击选择收回单地址',
|
|
||||||
// // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
|
|
||||||
// visibleIf: {
|
|
||||||
// receiptType: value => value === '2'
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// default: ''
|
|
||||||
// },
|
|
||||||
receiptUserName: {
|
receiptUserName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系人',
|
title: '联系人',
|
||||||
@ -738,7 +725,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
nzContent: TranAgreementComponent,
|
nzContent: TranAgreementComponent,
|
||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
nzFooter: null,
|
nzFooter: null,
|
||||||
nzComponentParams: { object: params, shipperName: this.shipperName }
|
nzComponentParams: { object: params, shipperName: this.shipperName , type:'bulk'}
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe(result => {
|
modalRef.afterClose.subscribe(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|||||||
@ -48,6 +48,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
|
|||||||
maxTrainNumber: 99999,
|
maxTrainNumber: 99999,
|
||||||
maxFreight: 9999999
|
maxFreight: 9999999
|
||||||
}
|
}
|
||||||
|
shipperName = '';
|
||||||
// // 单位
|
// // 单位
|
||||||
startInfo: any[] = [];
|
startInfo: any[] = [];
|
||||||
endInfo: any[] = [];
|
endInfo: any[] = [];
|
||||||
@ -139,10 +140,11 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
|
|||||||
return of([]);
|
return of([]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
change: (q: any) => {
|
change: (q: any, qs: any) => {
|
||||||
let str =q.replace(/^\s+|\s+$/g,"");
|
let str =q.replace(/^\s+|\s+$/g,"");
|
||||||
if (str) {
|
if (str) {
|
||||||
this.getRegionCode(str);
|
this.getRegionCode(str);
|
||||||
|
this.shipperName = qs?.label;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
@ -606,20 +608,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
|
|||||||
this.service.msgSrv.error(`当前运费单价已超出限定值【${this.limitValues.maxFreight}元】`);
|
this.service.msgSrv.error(`当前运费单价已超出限定值【${this.limitValues.maxFreight}元】`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const modalRef = this.modalService.create({
|
|
||||||
nzTitle: '运输协议',
|
|
||||||
nzContent: TranAgreementComponent,
|
|
||||||
nzWidth: 900,
|
|
||||||
nzFooter: null
|
|
||||||
});
|
|
||||||
modalRef.afterClose.subscribe(result => {
|
|
||||||
if (result) {
|
|
||||||
this.submit(submitType);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
// 确认提交(下单)
|
|
||||||
submit(submitType: string): void {
|
|
||||||
// //装卸货信息
|
// //装卸货信息
|
||||||
const LoadingList = this.startInfo.concat(this.endInfo);
|
const LoadingList = this.startInfo.concat(this.endInfo);
|
||||||
|
|
||||||
@ -651,6 +640,22 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
|
|||||||
goodsInfoDTOList: goodsInfoList,
|
goodsInfoDTOList: goodsInfoList,
|
||||||
...this.sf6.value
|
...this.sf6.value
|
||||||
};
|
};
|
||||||
|
const modalRef = this.modalService.create({
|
||||||
|
nzTitle: '运输协议',
|
||||||
|
nzContent: TranAgreementComponent,
|
||||||
|
nzWidth: 900,
|
||||||
|
nzFooter: null,
|
||||||
|
nzComponentParams: { object: params, shipperName: this.shipperName , type:'bulk'}
|
||||||
|
});
|
||||||
|
modalRef.afterClose.subscribe(result => {
|
||||||
|
if (result) {
|
||||||
|
this.submit(submitType, params);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 确认提交(下单)
|
||||||
|
submit(submitType?: string, params?: any): void {
|
||||||
|
|
||||||
|
|
||||||
let reqUrl = this.service.$api_consignBulk;
|
let reqUrl = this.service.$api_consignBulk;
|
||||||
if (submitType === 'assign') {
|
if (submitType === 'assign') {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-12 10:52:50
|
* @Date : 2022-01-12 10:52:50
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-02 18:09:01
|
* @LastEditTime : 2022-03-04 15:45:58
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\bulk\\bulk.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\bulk\\bulk.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -32,7 +32,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
||||||
<button nz-button nzType="primary" [nzLoading]="loading" (click)="search()" acl [acl-ability]="['SUPPLY-INDEX-bulkSearch']">查询</button>
|
<button nz-button nzType="primary" [nzLoading]="loading" (click)="search()" acl [acl-ability]="['SUPPLY-INDEX-bulkSearch']">查询</button>
|
||||||
<button nz-button nzType="primary" [disabled]="loading">导入</button>
|
<button nz-button nzType="primary" [disabled]="loading" (click)="exportFire()">导出</button>
|
||||||
<button nz-button [disabled]="loading" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="loading" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
{{ !_$expand ? '展开' : '收起' }}
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
|
|||||||
@ -569,7 +569,12 @@ export class SupplyManagementBulkComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
userAction() {
|
// 导出
|
||||||
|
exportFire() {
|
||||||
|
this.service.request(this.service.$api_asyncExportBulkList, this.reqParams ).subscribe((res: any) => {
|
||||||
|
if(res) {
|
||||||
|
this.service.msgSrv.success('导出成功,请去下载中心下载!')
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -581,65 +581,45 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
receiptAddress: {
|
|
||||||
type: 'string',
|
|
||||||
title: '回单收件人信息',
|
|
||||||
ui: {
|
|
||||||
widget: 'custom',
|
|
||||||
placeholder: '请点击选择回单收件人信息',
|
|
||||||
// validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
|
|
||||||
visibleIf: {
|
|
||||||
receiptType: value => value === '2'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
default: ''
|
|
||||||
},
|
|
||||||
receiptAddressId: {
|
|
||||||
type: 'string',
|
|
||||||
title: '',
|
|
||||||
ui: {
|
|
||||||
hidden: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
receiptUserName: {
|
receiptUserName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系人',
|
title: '联系人',
|
||||||
|
maxLength: 15,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
readOnly: true
|
receiptUserPhone: {
|
||||||
},
|
|
||||||
phon: {
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
|
maxLength: 11,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
readOnly: true
|
receiptAddressArea: {
|
||||||
},
|
|
||||||
area: {
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '所在地区',
|
title: '所在地区',
|
||||||
|
maxLength: 30,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
readOnly: true
|
receiptAddress: {
|
||||||
},
|
|
||||||
address: {
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '详细地址',
|
title: '详细地址',
|
||||||
|
maxLength: 30,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
readOnly: true
|
|
||||||
},
|
},
|
||||||
remarks: {
|
remarks: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -652,11 +632,11 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
} as SFTextareaWidgetSchema
|
} as SFTextareaWidgetSchema
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['stateReceipt', 'receiptType', 'receiptAddress']
|
required: ['stateReceipt', 'receiptType', 'receiptUserName', 'receiptUserPhone', 'receiptAddressArea', 'receiptAddress']
|
||||||
};
|
};
|
||||||
this.ui6 = {
|
this.ui6 = {
|
||||||
'*': {
|
'*': {
|
||||||
spanLabelFixed: 115,
|
spanLabelFixed: 90,
|
||||||
grid: { span: 24 }
|
grid: { span: 24 }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1019,7 +999,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
nzContent: TranAgreementComponent,
|
nzContent: TranAgreementComponent,
|
||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
nzFooter: null,
|
nzFooter: null,
|
||||||
nzComponentParams: { object: params, shipperName: this.shipperName }
|
nzComponentParams: { object: params, shipperName: this.shipperName,type:'onecar' }
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe(result => {
|
modalRef.afterClose.subscribe(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|||||||
@ -281,15 +281,6 @@
|
|||||||
<div nz-row>
|
<div nz-row>
|
||||||
<div nz-col nzSpan="12">
|
<div nz-col nzSpan="12">
|
||||||
<sf #sf6 [schema]="schema6" [button]="'none'" [ui]="ui6" [formData]="sf6data">
|
<sf #sf6 [schema]="schema6" [button]="'none'" [ui]="ui6" [formData]="sf6data">
|
||||||
<!-- <ng-template sf-template="receiptAddressId" let-i let-ui="ui">
|
|
||||||
<input
|
|
||||||
nz-input
|
|
||||||
[ngModel]="i.value"
|
|
||||||
(ngModelChange)="i.setValue($event)"
|
|
||||||
placeholder="请点击选择收回单地址"
|
|
||||||
(click)="backBillChange()"
|
|
||||||
/>
|
|
||||||
</ng-template> -->
|
|
||||||
</sf>
|
</sf>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -565,65 +565,45 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
receiptAddress: {
|
|
||||||
type: 'string',
|
|
||||||
title: '回单收件人信息',
|
|
||||||
ui: {
|
|
||||||
widget: 'custom',
|
|
||||||
placeholder: '请点击选择回单收件人信息',
|
|
||||||
// validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
|
|
||||||
visibleIf: {
|
|
||||||
receiptType: value => value === '2'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
default: ''
|
|
||||||
},
|
|
||||||
receiptAddressId: {
|
|
||||||
type: 'string',
|
|
||||||
title: '',
|
|
||||||
ui: {
|
|
||||||
hidden: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
receiptUserName: {
|
receiptUserName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系人',
|
title: '联系人',
|
||||||
|
maxLength: 15,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
readOnly: true
|
receiptUserPhone: {
|
||||||
},
|
|
||||||
phon: {
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
|
maxLength: 11,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
readOnly: true
|
receiptAddressArea: {
|
||||||
},
|
|
||||||
area: {
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '所在地区',
|
title: '所在地区',
|
||||||
|
maxLength: 30,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
readOnly: true
|
receiptAddress: {
|
||||||
},
|
|
||||||
address: {
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '详细地址',
|
title: '详细地址',
|
||||||
|
maxLength: 30,
|
||||||
ui: {
|
ui: {
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
receiptType: value => value === '2'
|
receiptType: value => value === '2'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
readOnly: true
|
|
||||||
},
|
},
|
||||||
remarks: {
|
remarks: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -636,11 +616,11 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
} as SFTextareaWidgetSchema
|
} as SFTextareaWidgetSchema
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['stateReceipt', 'receiptType', 'receiptAddress']
|
required: ['stateReceipt', 'receiptType', 'receiptUserName', 'receiptUserPhone', 'receiptAddressArea', 'receiptAddress']
|
||||||
};
|
};
|
||||||
this.ui6 = {
|
this.ui6 = {
|
||||||
'*': {
|
'*': {
|
||||||
spanLabelFixed: 115,
|
spanLabelFixed: 90,
|
||||||
grid: { span: 24 }
|
grid: { span: 24 }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -994,7 +974,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
nzContent: TranAgreementComponent,
|
nzContent: TranAgreementComponent,
|
||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
nzFooter: null,
|
nzFooter: null,
|
||||||
nzComponentParams: { object: params ,shipperName: this.shipperName}
|
nzComponentParams: { object: params ,shipperName: this.shipperName,type:'onecar'}
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe(result => {
|
modalRef.afterClose.subscribe(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-02-24 20:19:51
|
* @Date : 2022-02-24 20:19:51
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-03 14:24:51
|
* @LastEditTime : 2022-03-04 16:46:31
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -28,6 +28,8 @@ import { SupplyManagementService } from '../../services/supply-management.servic
|
|||||||
styleUrls: ['./tran-agreement.component.less']
|
styleUrls: ['./tran-agreement.component.less']
|
||||||
})
|
})
|
||||||
export class TranAgreementComponent {
|
export class TranAgreementComponent {
|
||||||
|
enterpriseInfo:any; // 网络货运人
|
||||||
|
type:any;
|
||||||
object: any;
|
object: any;
|
||||||
agreement:any;
|
agreement:any;
|
||||||
envCache:any;
|
envCache:any;
|
||||||
@ -38,13 +40,30 @@ export class TranAgreementComponent {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.log(this.object)
|
console.log(this.object)
|
||||||
const params = {
|
// 获取托运人承运人信息
|
||||||
|
this.service.request(this.service.$api_getContractAtr,{id:this.object?.shipperAppUserId}).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.enterpriseInfo = res
|
||||||
|
this.getContent();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
getContent() {
|
||||||
|
let params:any;
|
||||||
|
if(this.type ==='onecar'){
|
||||||
|
|
||||||
|
params = {
|
||||||
contractType:'1',
|
contractType:'1',
|
||||||
resourceType: '1',
|
resourceType: '1',
|
||||||
signingObject: '1',
|
signingObject: '1',
|
||||||
templateType: 'MX',
|
templateType: 'MX',
|
||||||
parametersDTO: {
|
parametersDTO: {
|
||||||
contractCode:'',
|
contractCode:'',
|
||||||
|
shipperLegalPersonName:this.enterpriseInfo.legalPersonName, //托运法定代表人
|
||||||
|
carrierLegalPersonName:this.enterpriseInfo.netLegalPersonName, //承运法定代表人
|
||||||
shipperName:this?.shipperName, //托运人
|
shipperName:this?.shipperName, //托运人
|
||||||
carrierName:this.object?.enterpriseInfoName, //承运人
|
carrierName:this.object?.enterpriseInfoName, //承运人
|
||||||
consignorInfo: `${this.object?.unLoadingPlaceDTOList[0].appUserName} ${this.object?.unLoadingPlaceDTOList[0].contractTelephone}`, // 发货信息
|
consignorInfo: `${this.object?.unLoadingPlaceDTOList[0].appUserName} ${this.object?.unLoadingPlaceDTOList[0].contractTelephone}`, // 发货信息
|
||||||
@ -68,16 +87,49 @@ export class TranAgreementComponent {
|
|||||||
month:new Date().getMonth()+1, // 签约月份
|
month:new Date().getMonth()+1, // 签约月份
|
||||||
day:new Date().getDate(), // 签约日期
|
day:new Date().getDate(), // 签约日期
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
} else if(this.type ==='bulk'){
|
||||||
|
params = {
|
||||||
|
contractType:'1',
|
||||||
|
resourceType: '2',
|
||||||
|
signingObject: '1',
|
||||||
|
templateType: 'MX',
|
||||||
|
parametersDTO: {
|
||||||
|
contractCode:'',
|
||||||
|
shipperName:this?.shipperName, //托运人
|
||||||
|
carrierName:this.object?.enterpriseInfoName, //承运人
|
||||||
|
shipperLegalPersonName:this.enterpriseInfo.legalPersonName, //托运法定代表人
|
||||||
|
carrierLegalPersonName:this.enterpriseInfo.netLegalPersonName, //承运法定代表人
|
||||||
|
consignorInfo: `${this.object.unLoadingPlaceDTOList[0].appUserName} ${this.object.unLoadingPlaceDTOList[0].contractTelephone}`, // 发货信息
|
||||||
|
consignorAddress: this.object.unLoadingPlaceDTOList[0].detailedAddress, // 发货地址
|
||||||
|
consignorDate: '', // 发货时间
|
||||||
|
consigneeInfo: `${this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length-1].appUserName} ${this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length-1].contractTelephone}`, // 收货信息
|
||||||
|
consigneeDate: '', // 收货时间
|
||||||
|
consigneeAddress: this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length-1].detailedAddress, // 收货地址
|
||||||
|
goodsName:this.object.goodsInfoDTOList[0].goodsName, // 货物名称
|
||||||
|
shippingType:'大宗运输',
|
||||||
|
consignmentVolume:`${this.object.goodsInfoDTOList[0].weight}吨/${this.object.goodsInfoDTOList[0].volume}方/${this.object.goodsInfoDTOList[0].number}车`, //托运量
|
||||||
|
transporterInfo:'', //运输方信息
|
||||||
|
freightAmount:'', // 订单运费金额(元)
|
||||||
|
pre:'', //预付
|
||||||
|
rece:'',// 到付
|
||||||
|
back:'',// 回单付
|
||||||
|
lunarKnot:'',
|
||||||
|
total:'', // 合计(元)
|
||||||
|
paymentTime:`到货后${this.object.paymentDays}天`, // 承诺支付运费时间
|
||||||
|
year:new Date().getFullYear(), // 签约年份
|
||||||
|
month:new Date().getMonth()+1, // 签约月份
|
||||||
|
day:new Date().getDate(), // 签约日期
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log(params)
|
console.log(params)
|
||||||
this.service.request(this.service.$api_getContractContent,params).subscribe((res) => {
|
this.service.request(this.service.$api_getContractContent,params).subscribe((res) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
||||||
this.agreement = res.contractContent;
|
this.agreement = res.contractContent;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleOk(){
|
handleOk(){
|
||||||
this.modal.close(true);
|
this.modal.close(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,7 +53,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
return {
|
return {
|
||||||
operateObject: this.i?.resourceCode,
|
operateObject: this.i?.resourceCode,
|
||||||
operateType: 4,
|
operateTypeList: [4,7],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
[acl-ability]="['SUPPLY-INDEX-vehicleSearch']"
|
[acl-ability]="['SUPPLY-INDEX-vehicleSearch']"
|
||||||
>查询</button
|
>查询</button
|
||||||
>
|
>
|
||||||
<button nz-button nzType="primary" [disabled]="loading">导出</button>
|
<button nz-button nzType="primary" [disabled]="loading" (click)="exportFire()" >导出</button>
|
||||||
<button nz-button [disabled]="loading" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="loading" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
{{ !_$expand ? '展开' : '收起' }}
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
|
|||||||
@ -611,4 +611,12 @@ export class SupplyManagementVehicleComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
// 导出
|
||||||
|
exportFire() {
|
||||||
|
this.service.request(this.service.$api_asyncExportWholeList, this.reqParams ).subscribe((res: any) => {
|
||||||
|
if(res) {
|
||||||
|
this.service.msgSrv.success('导出成功,请去下载中心下载!')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -144,15 +144,15 @@ export class SupplyManagementService extends BaseService {
|
|||||||
piece: 'sys.config.goods.approvalCarMaxPiece', //整车-核载件数上限
|
piece: 'sys.config.goods.approvalCarMaxPiece', //整车-核载件数上限
|
||||||
maxDays: 'sys.config.goods.wholeLoadingMaxDays', //整车-计划装货时间上限
|
maxDays: 'sys.config.goods.wholeLoadingMaxDays', //整车-计划装货时间上限
|
||||||
intervalDays: 'sys.config.goods.wholeUnloadingIntervalDays', //计划装、卸货时间间隔
|
intervalDays: 'sys.config.goods.wholeUnloadingIntervalDays', //计划装、卸货时间间隔
|
||||||
maxTimes:'sys.config.goods.wholeLoadingMaxTimes', //整车-多装多卸地点上限
|
maxTimes: 'sys.config.goods.wholeLoadingMaxTimes' //整车-多装多卸地点上限
|
||||||
}
|
};
|
||||||
public limitKeys2 = {
|
public limitKeys2 = {
|
||||||
month: 'sys.config.goods.bulkEndMaxMonth', //大宗-截止时间上限
|
month: 'sys.config.goods.bulkEndMaxMonth', //大宗-截止时间上限
|
||||||
weight: 'sys.config.goods.bulkMaxWeight', //大宗-重量上限
|
weight: 'sys.config.goods.bulkMaxWeight', //大宗-重量上限
|
||||||
volume: 'sys.config.goods.bulkMaxVolume', //大宗-体积上限
|
volume: 'sys.config.goods.bulkMaxVolume', //大宗-体积上限
|
||||||
trainNumber: 'sys.config.goods.bulkMaxTrainNumber', //大宗-车次上限
|
trainNumber: 'sys.config.goods.bulkMaxTrainNumber', //大宗-车次上限
|
||||||
freight:'sys.config.goods.bulkMaxUnitFreight', //大宗-运费单价上限
|
freight: 'sys.config.goods.bulkMaxUnitFreight' //大宗-运费单价上限
|
||||||
}
|
};
|
||||||
// 根据ItemKey获取项值
|
// 根据ItemKey获取项值
|
||||||
public $api_findItemValueByItemKeys = '/api/mdc/pbc/sysConfigItem/findItemValueByItemKeys';
|
public $api_findItemValueByItemKeys = '/api/mdc/pbc/sysConfigItem/findItemValueByItemKeys';
|
||||||
// 获取保价费信息
|
// 获取保价费信息
|
||||||
@ -167,4 +167,10 @@ export class SupplyManagementService extends BaseService {
|
|||||||
$api_get_sys_config = `/api/mdc/pbc/sysConfigItem/findConfigValues`; // 根据项key、业务id获取配置信息
|
$api_get_sys_config = `/api/mdc/pbc/sysConfigItem/findConfigValues`; // 根据项key、业务id获取配置信息
|
||||||
// 获取指派熟车列表
|
// 获取指派熟车列表
|
||||||
$api_getListCars = '/api/mdc/cuc/enterpriseVehicle/getPracticeCarList';
|
$api_getListCars = '/api/mdc/cuc/enterpriseVehicle/getPracticeCarList';
|
||||||
|
// 异步导出运营后台大宗货源列表
|
||||||
|
$api_asyncExportBulkList = '/api/sdc/goodsResourceOperate/asyncExportBulkList';
|
||||||
|
// 异步导出运营后台整车货源列表
|
||||||
|
$api_asyncExportWholeList = '/api/sdc/goodsResourceOperate/asyncExportWholeList';
|
||||||
|
// 根据货主ID查询合同签署属性
|
||||||
|
public $api_getContractAtr = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getContractAtr';
|
||||||
}
|
}
|
||||||
|
|||||||
73
src/app/theme.service.ts
Normal file
73
src/app/theme.service.ts
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
enum ThemeType {
|
||||||
|
compact = 'compact',
|
||||||
|
default = 'default',
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root',
|
||||||
|
})
|
||||||
|
export class ThemeService {
|
||||||
|
currentTheme = ThemeType.default;
|
||||||
|
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
private reverseTheme(theme: string): ThemeType {
|
||||||
|
return theme === ThemeType.compact ? ThemeType.default : ThemeType.compact;
|
||||||
|
}
|
||||||
|
|
||||||
|
private removeUnusedTheme(theme: ThemeType): void {
|
||||||
|
document.documentElement.classList.remove(theme);
|
||||||
|
const removedThemeStyle = document.getElementById(theme);
|
||||||
|
if (removedThemeStyle) {
|
||||||
|
document.head.removeChild(removedThemeStyle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private loadCss(href: string, id: string): Promise<Event> {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const style01 = document.createElement('link');
|
||||||
|
style01.rel = 'stylesheet';
|
||||||
|
style01.href = 'compact.css';
|
||||||
|
style01.onload = resolve;
|
||||||
|
style01.onerror = reject;
|
||||||
|
document.body.after(style01);
|
||||||
|
|
||||||
|
const style = document.createElement('link');
|
||||||
|
style.rel = 'stylesheet';
|
||||||
|
style.href = href;
|
||||||
|
style.onload = resolve;
|
||||||
|
style.onerror = reject;
|
||||||
|
document.body.after(style);
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public loadTheme(firstLoad = true): Promise<Event> {
|
||||||
|
//const theme = this.currentTheme;
|
||||||
|
const theme = 'assets/style.compact';
|
||||||
|
if (firstLoad) {
|
||||||
|
document.documentElement.classList.add(theme);
|
||||||
|
}
|
||||||
|
return new Promise<Event>((resolve, reject) => {
|
||||||
|
this.loadCss(`${theme}.css`, theme).then(
|
||||||
|
(e) => {
|
||||||
|
if (!firstLoad) {
|
||||||
|
document.documentElement.classList.add(theme);
|
||||||
|
}
|
||||||
|
this.removeUnusedTheme(this.reverseTheme(theme));
|
||||||
|
resolve(e);
|
||||||
|
},
|
||||||
|
(e) => reject(e)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public toggleTheme(): Promise<Event> {
|
||||||
|
this.currentTheme = this.reverseTheme(this.currentTheme);
|
||||||
|
return this.loadTheme(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -15,13 +15,13 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>运多星运营平台</title>
|
<title>运多星运营平台</title>
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<!-- <meta name="viewport" content="width=device-width, initial-scale=0.3" /> -->
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||||
<link rel="stylesheet" href="https://at.alicdn.com/t/font_3153207_udngwyp35db.css" />
|
<link rel="stylesheet" href="https://at.alicdn.com/t/font_3153207_udngwyp35db.css" />
|
||||||
<!-- Apple Touch Icon -->
|
<!-- Apple Touch Icon -->
|
||||||
<!-- <link rel="apple-touch-icon" href="custom-icon.png"> -->
|
<!-- <link rel="apple-touch-icon" href="custom-icon.png"> -->
|
||||||
<style type="text/css">
|
<style type="text/css" id="css">
|
||||||
.preloader {
|
.preloader {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -66,18 +66,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var zoom = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
|
var zoom = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
|
||||||
if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
|
||||||
if (zoom != 1 && zoom != 2 && zoom != 3) {
|
// if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
||||||
alert('系统检测到您的设备对显示进行放大,可能导致页面显示不全,请调整后打开/或使用其他浏览器!')
|
// if (zoom != 1 && zoom != 2 && zoom != 3) {
|
||||||
}
|
// alert('系统检测到您的设备对显示进行放大,可能导致页面显示不全,请调整后打开/或使用其他浏览器!')
|
||||||
} else {
|
// }
|
||||||
if (document.body.clientWidth >= 1280) {
|
// } else {
|
||||||
if (zoom != 1 && zoom != 2 && zoom != 3) {
|
// if (document.body.clientWidth >= 1280) {
|
||||||
var c = document.querySelector('body');
|
// if (zoom != 1 && zoom != 2 && zoom != 3) {
|
||||||
c.style.zoom = -0.62 * zoom + 1.65;
|
// var c = document.querySelector('body');
|
||||||
}
|
// // c.style.zoom = -0.62 * zoom + 1.65;
|
||||||
}
|
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
</script>
|
</script>
|
||||||
<!-- <script type="text/javascript" src='//webapi.amap.com/maps?v=2.0&key=63f9573ca55fef2b92d4ffe0c85dea8f'></script>
|
<!-- <script type="text/javascript" src='//webapi.amap.com/maps?v=2.0&key=63f9573ca55fef2b92d4ffe0c85dea8f'></script>
|
||||||
<script src="//webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script> -->
|
<script src="//webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script> -->
|
||||||
25
src/styles/compact.less
Normal file
25
src/styles/compact.less
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
.alain-pro__sider-logo h1{
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
.page-header__title{
|
||||||
|
font-size: 14px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.alain-pro__body{
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
.alain-pro__page-header-content{
|
||||||
|
margin: 8px 8px 0px !important;
|
||||||
|
}
|
||||||
|
.ant-card-body{
|
||||||
|
padding: 6px !important;
|
||||||
|
}
|
||||||
|
.ant-card {
|
||||||
|
margin-bottom: 8px !important;
|
||||||
|
}
|
||||||
|
.ant-table tfoot>tr>td, .ant-table tfoot>tr>th, .ant-table-tbody>tr>td, .ant-table-thead>tr>th{
|
||||||
|
padding: 6px 4px !important;
|
||||||
|
}
|
||||||
|
.alain-pro__page-header-wrapper{
|
||||||
|
margin: 0 !important
|
||||||
|
}
|
||||||
2
src/styles/default.less
Normal file
2
src/styles/default.less
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@import '../app/layout/pro/styles/theme-default.less';
|
||||||
|
@import './fix/theme-default.less';
|
||||||
@ -1 +1,2 @@
|
|||||||
@import './theme-default.less';
|
@import './theme-default.less';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
/* You can add global styles to this file, and also import other style files */
|
/* You can add global styles to this file, and also import other style files */
|
||||||
|
|
||||||
@import './fix/index';
|
@import './fix/index';
|
||||||
|
.error-color {
|
||||||
|
color: #ff4d4f;
|
||||||
|
}
|
||||||
|
|
||||||
|
@primary-color: #F5222D;
|
||||||
|
@font-size-base: 15px;
|
||||||
Reference in New Issue
Block a user