Browse Source

[完善]卸油流程名称兼容;省公司改销售公司

beijing
邵佳豪 2 years ago
parent
commit
ea9c1b1b4d
  1. 37
      src/app/pages/records/oil-unloading-process-list/oil-unloading-process-list.component.ts
  2. 6
      src/app/system-management/navigation/navigation.component.html
  3. 2
      src/app/system-management/organization/addor/addor.component.ts
  4. 2
      src/app/system-management/organization/editor/editor.component.ts

37
src/app/pages/records/oil-unloading-process-list/oil-unloading-process-list.component.ts

@ -75,7 +75,7 @@ export class OilUnloadingProcessListComponent implements OnInit {
isMisinformation: boolean = false//误报按钮的显隐 isMisinformation: boolean = false//误报按钮的显隐
button=false button = false
tableScrollHeight tableScrollHeight
resizeListener resizeListener
ngOnInit(): void { ngOnInit(): void {
@ -136,20 +136,20 @@ export class OilUnloadingProcessListComponent implements OnInit {
} }
returnLastMenus(e) { returnLastMenus(e) {
let userMenu let userMenu
if(e){ if (e) {
userMenu = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).menus userMenu = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).menus
}else{ } else {
userMenu = JSON.parse(sessionStorage.getItem('userdata')).menus userMenu = JSON.parse(sessionStorage.getItem('userdata')).menus
} }
for (let index = 0; index < userMenu.length; index++) { for (let index = 0; index < userMenu.length; index++) {
for (let k = 0; k < userMenu.length; k++) { for (let k = 0; k < userMenu.length; k++) {
if (userMenu[index].name=="卸油统计") { if (userMenu[index].name == "卸油统计") {
if(userMenu[index].id==userMenu[k].parentId){ if (userMenu[index].id == userMenu[k].parentId) {
this.button = true this.button = true
} }
} }
} }
} }
} }
@ -746,24 +746,17 @@ export class OilUnloadingProcessListComponent implements OnInit {
} }
look(item) { look(item) {
// console.log(item) console.log(item)
let arr = [] let arr = []
let arr1 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '车辆进场' }); let arr1 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '车辆进场' || item.nodeName == '油罐车进场' });
let arr2 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '设置卸油隔离区' }); let arr2 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '设置卸油隔离区' || item.nodeName == '设置隔离区域' });
let arr3 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油连接静电接地' }); let arr3 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油连接静电接地' || item.nodeName == '连接静电接地' });
let arr4 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油设置消防器材' }); let arr4 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油设置消防器材' || item.nodeName == '放置消防器材' });
let arr5 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '连接卸油管' }); let arr5 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '连接卸油管' });
let arr6 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油中无人监卸' }); let arr6 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '卸油中无人监卸' || item.nodeName == '全程监卸'});
let arr7 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '拆除卸油管' }); let arr7 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '拆除卸油管' });
let arr8 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '车辆离场' || item.nodeName == '车辆离厂' || item.nodeName == '车辆出厂' }); let arr8 = item.oilUnloadingNodes.find((item) => { return item.nodeName == '车辆离场' || item.nodeName == '车辆离厂' || item.nodeName == '车辆出厂' || item.nodeName == '油罐车离场' });
// console.log(1, arr1)
// console.log(2, arr2)
// console.log(3, arr3)
// console.log(4, arr4)
// console.log(5, arr5)
// console.log(6, arr6)
// console.log(7, arr7)
// console.log(8, arr8)
arr = [arr1, arr2, arr3, arr4, arr5, arr6, arr7, arr8] arr = [arr1, arr2, arr3, arr4, arr5, arr6, arr7, arr8]
console.log('卸油流程', arr) console.log('卸油流程', arr)

6
src/app/system-management/navigation/navigation.component.html

@ -16,9 +16,9 @@
</div> </div>
<div class="nav"> <div class="nav">
<ul> <ul>
<li *ngFor="let item of menuList2" [routerLink]="item.url" routerLinkActive="router-link-active"><img <li *ngFor="let item of menuList2" [routerLink]="item.url" routerLinkActive="router-link-active">
[src]="item.img" alt="">{{item.name}}</li> <img [src]="item.img" alt="">{{item.name}}
</li>
</ul> </ul>
</div> </div>
</nz-sider> </nz-sider>

2
src/app/system-management/organization/addor/addor.component.ts

@ -21,7 +21,7 @@ export class AddorComponent implements OnInit {
}); });
} }
OrgnizationLevel = ['无', '公司', '省公司', '区域', '油站'] OrgnizationLevel = ['无', '销售公司', '省公司', '区域', '油站']
destroyModal(): void { destroyModal(): void {
this.modal.destroy({ data: 'this the result data' }); this.modal.destroy({ data: 'this the result data' });

2
src/app/system-management/organization/editor/editor.component.ts

@ -16,7 +16,7 @@ export class EditorComponent implements OnInit {
datacopy: any datacopy: any
isParticipationAudit isParticipationAudit
OrgnizationLevel = ['无', '公司', '省公司', '区域', '油站'] OrgnizationLevel = ['无', '销售公司', '省公司', '区域', '油站']
ngOnInit(): void { ngOnInit(): void {
this.validateForm = this.fb.group({ this.validateForm = this.fb.group({
name: [null, [Validators.required]], name: [null, [Validators.required]],

Loading…
Cancel
Save