From e41c238d071fd772a765bdad21fb7042b5755326 Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Fri, 22 Jul 2022 11:05:10 +0800
Subject: [PATCH 1/4] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E6=B2=B9=E7=AB=99?=
=?UTF-8?q?=E5=85=B6=E4=BB=96=E4=BF=A1=E6=81=AF=E7=9A=84=E4=BF=9D=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../audit/audit-ing/audit-ing.component.ts | 6 +-
.../gas-base-info.component.html | 92 +++-
.../gas-base-info.component.scss | 124 +++--
.../gas-base-info/gas-base-info.component.ts | 38 +-
.../oil-station-info.component.html | 472 ++++++++++++++----
.../oil-station-info.component.scss | 115 +++--
.../oil-station-info.component.ts | 143 +++++-
src/theme.less | 2 +-
8 files changed, 781 insertions(+), 211 deletions(-)
diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.ts b/src/app/pages/audit/audit-ing/audit-ing.component.ts
index 86c93bc..286285d 100644
--- a/src/app/pages/audit/audit-ing/audit-ing.component.ts
+++ b/src/app/pages/audit/audit-ing/audit-ing.component.ts
@@ -81,9 +81,9 @@ export class AuditIngComponent implements OnInit {
dispose(item) {
- console.log(item)
+ // console.log(item)
this.getData(item).then(res => {
- console.log('审批具体信息', res)
+ // console.log('审批具体信息', res)
item.getData = res
const modal = this.modal.create({
nzContent: AuditDisposeComponent,
@@ -189,6 +189,8 @@ export class AuditIngComponent implements OnInit {
}
return new Promise((resolve, reject) => {
let params = { id: item.itemId }
+
+ console.log('xxxxxxxxxxxxxxx走着了吗')
this.http.get(url, { params }).subscribe((data: any) => {
let auditLog = { rejectReason: item.rejectReason }
let organization = { displayName: item.organization ? item.organization.displayName : "" }
diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.html b/src/app/pages/audit/gas-base-info/gas-base-info.component.html
index 8e7685e..11a6ee9 100644
--- a/src/app/pages/audit/gas-base-info/gas-base-info.component.html
+++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.html
@@ -1,4 +1,4 @@
-
+
详情
@@ -12,7 +12,8 @@
-
+
@@ -75,6 +76,91 @@
+
+
加油机
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
油罐设备
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
输油管
+
+
+
+
+
+
+
+
+
+
+
+
+
+
油气回收
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
阀门
+
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.scss b/src/app/pages/audit/gas-base-info/gas-base-info.component.scss
index 8604584..b280cfd 100644
--- a/src/app/pages/audit/gas-base-info/gas-base-info.component.scss
+++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.scss
@@ -1,47 +1,89 @@
+.box {
+ max-height: 520px;
+ overflow-y: auto;
+
+}
+
+::-webkit-input-placeholder {
+ /* WebKit browsers */
+ color: #345d85;
+}
+
+//滚动条样式
+::-webkit-scrollbar {
+ width: 5px;
+}
+
+::-webkit-scrollbar-thumb {
+ background-image: linear-gradient(#2495f8, #1c73c2, #0a3d6a, #061d3c);
+}
+
+::-webkit-scrollbar-track {
+ background-color: #061d3c;
+}
+
p {
- margin-bottom: 0;
- color: #C4E2FC;
- margin: 10px 0;
- img {
- width: 88px;
- height: 56px;
- cursor: pointer;
- }
-}
-label{ display: inline-block; vertical-align: middle; }
+ margin-bottom: 0;
+ color: #C4E2FC;
+ margin: 10px 0;
+
+ img {
+ width: 88px;
+ height: 56px;
+ cursor: pointer;
+ }
+}
+
+label {
+ display: inline-block;
+ vertical-align: middle;
+}
+
.marginLeft {
- width: 55%;
- overflow: hidden;
+ width: 55%;
+ overflow: hidden;
+}
+
+.marginLeft2 {
+ width: 100%;
+ overflow: hidden;
+
+ img {
+ width: 120px;
+ height: 80px;
+ }
}
+
.title {
- font-family: sybold;
+ font-family: sybold;
+ width: 100%;
+ height: 48px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ display: flex;
+ align-items: center;
+ position: relative;
+
+ .titlecontent {
width: 100%;
- height: 48px;
+ height: 32px;
+ line-height: 32px;
background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
- display: flex;
- align-items: center;
- position: relative;
-
- .titlecontent {
- width: 100%;
- height: 32px;
- line-height: 32px;
- background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
- text-align: center;
- color: #91CCFF;
- font-size: 16px;
- }
-
- i {
- position: absolute;
- right: 12px;
- color: #fff;
- font-size: 18px;
- cursor: pointer;
- }
-}
-.recordP{
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
\ No newline at end of file
+ text-align: center;
+ color: #91CCFF;
+ font-size: 16px;
+ }
+
+ i {
+ position: absolute;
+ right: 12px;
+ color: #fff;
+ font-size: 18px;
+ cursor: pointer;
+ }
+}
+
+.recordP {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts
index 2a21d19..d5ecea4 100644
--- a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts
+++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts
@@ -1,7 +1,7 @@
import { HttpClient } from '@angular/common/http';
import { Component, Input, OnInit } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
-
+import Viewer from 'viewerjs';
@Component({
selector: 'app-gas-base-info',
templateUrl: './gas-base-info.component.html',
@@ -9,7 +9,7 @@ import { NzModalRef } from 'ng-zorro-antd/modal';
})
export class GasBaseInfoComponent implements OnInit {
- constructor(private modal: NzModalRef,private http: HttpClient) { }
+ constructor(private modal: NzModalRef, private http: HttpClient) { }
@Input() data?: any;
isDetails: boolean = false; //是否是详情
@@ -24,14 +24,36 @@ export class GasBaseInfoComponent implements OnInit {
baseInfo: any = {
stationType: null,
}
+
+ otherData
getBaseInfo() {
let params = { organizationUnitId: this.data.organizationId }
- this.http.get('/api/services/app/GasStation/Get',{params}).subscribe((data: any)=>{
- data.result.govUnitDetail? data.result.govUnitDetail = JSON.parse(data.result.govUnitDetail) : null;
+ this.http.get('/api/services/app/GasStation/Get', { params }).subscribe((data: any) => {
+ data.result.govUnitDetail ? data.result.govUnitDetail = JSON.parse(data.result.govUnitDetail) : null;
this.baseInfo = data.result
+ this.baseInfo.otherData ? this.otherData = JSON.parse(this.baseInfo.otherData) : null
+ console.log('otherData', this.otherData)
})
}
-
+ //查看图片
+ viewImg(url) {
+ let dom = document.getElementById(`viewerjs`)
+ let pObjs = dom.childNodes;
+ let node = document.createElement("img")
+ node.style.display = "none";
+ node.src = url;
+ node.id = 'img'
+ dom.appendChild(node)
+ setTimeout(() => {
+ let viewer = new Viewer(document.getElementById(`viewerjs`), {
+ hidden: () => {
+ dom.removeChild(pObjs[0]);
+ viewer.destroy();
+ }
+ });
+ node.click();
+ }, 0);
+ }
destroyModal() {
this.modal.destroy({ data: 'this the result data' });
}
@@ -43,7 +65,7 @@ export class GasBaseInfoComponent implements OnInit {
return
}
let params = { orgId: this.data.organizationId }
- this.http.get(`/api/services/app/GasStation/GetAuditted`,{params}).subscribe((data: any)=>{
+ this.http.get(`/api/services/app/GasStation/GetAuditted`, { params }).subscribe((data: any) => {
//this.auditList = data.result.actionList || []
console.log(data)
})
@@ -52,7 +74,7 @@ export class GasBaseInfoComponent implements OnInit {
//获取审核次数
getVerifyNum(): number {
let num = 0
- this.auditList.forEach(item=>{
+ this.auditList.forEach(item => {
if (item.auditStatus == 2 || item.auditStatus == 3) {
num = num + 1
}
@@ -63,7 +85,7 @@ export class GasBaseInfoComponent implements OnInit {
//获取驳回次数
getRejectNum(): number {
let num = 0
- this.auditList.forEach(item=>{
+ this.auditList.forEach(item => {
if (item.auditStatus == 3) {
num = num + 1
}
diff --git a/src/app/pages/oil-station-info/oil-station-info.component.html b/src/app/pages/oil-station-info/oil-station-info.component.html
index 72eb763..dd807d1 100644
--- a/src/app/pages/oil-station-info/oil-station-info.component.html
+++ b/src/app/pages/oil-station-info/oil-station-info.component.html
@@ -301,136 +301,410 @@
-
-
-
- 审核中...
-
-
+
+
+
+
+ 油罐设备
+
+
+
-->
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/src/app/pages/oil-station-info/oil-station-info.component.scss b/src/app/pages/oil-station-info/oil-station-info.component.scss
index 997ab9e..a48d5b6 100644
--- a/src/app/pages/oil-station-info/oil-station-info.component.scss
+++ b/src/app/pages/oil-station-info/oil-station-info.component.scss
@@ -45,7 +45,7 @@
tr {
td {
- height: 40px;
+ min-height: 40px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
diff --git a/src/app/pages/oil-station-info/oil-station-info.component.ts b/src/app/pages/oil-station-info/oil-station-info.component.ts
index feac988..321d38b 100644
--- a/src/app/pages/oil-station-info/oil-station-info.component.ts
+++ b/src/app/pages/oil-station-info/oil-station-info.component.ts
@@ -28,7 +28,7 @@ export class OilStationInfoComponent implements OnInit {
laneNumber: [null],
address: [null],
locationName: [null],
- companyName: [null],
+ companyName: [null, [Validators.required]],
leaderName: [null],
leaderContact: [null],
stationLevel: [null],
@@ -184,10 +184,10 @@ export class OilStationInfoComponent implements OnInit {
{ name: '', connectTanker: '', connectOilTank: '', designPaper: '' }
],
oilVaporRecovery: [
- { name: '', onceSystemType: '', twiceSystemType: 0, twicePumpType: '', thriceProcessingUnit: '', monitoringDevice: '', designPaper: '' }
+ { name: '油气回收管线', onceSystemType: '将卸油时产生的油气进行回收', twiceSystemType: 1, twicePumpType: 'mini9000', thriceProcessingUnit: '冷凝+吸附', monitoringDevice: '监测气液比、密闭性,出现异常可及时预警', designPaper: '' }
],
valve: [
- { name: '', description: '' }
+ { name: 'P/V阀(机械呼吸阀)', description: '阀内设计双向开启功能,阀门处于常闭状态,当油罐压力/真空达到阀门预设压力/真空值时,阀门自行打开进行排气/吸气,以维持油罐内压力与大气压保持平衡。' }
]
}
diff --git a/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts b/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts
index 44a2fba..3a302ee 100644
--- a/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts
+++ b/src/app/pages/plan-admin/oil-station-list/oil-station-list.component.ts
@@ -104,7 +104,8 @@ export class OilStationListComponent implements OnInit {
'top': '50px',
},
nzComponentParams: {
- data: { organizationId: (JSON.parse(sessionStorage.getItem('userdataOfgasstation'))).organization.id }
+ data: { organizationId: (JSON.parse(sessionStorage.getItem('userdataOfgasstation'))).organization.id },
+ url: '/api/services/app/GasStation/GetAuditted'
},
nzFooter: null,
nzClosable: false,
From 32a097a4b629aede231b1a528d56a2ebcaaa59ed Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Mon, 25 Jul 2022 14:12:57 +0800
Subject: [PATCH 3/4] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=A1=E6=A0=B8?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=90=9C=E7=B4=A2=E6=A1=86=E8=81=94=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/pages/audit/audit-record/audit-record.component.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/app/pages/audit/audit-record/audit-record.component.ts b/src/app/pages/audit/audit-record/audit-record.component.ts
index 0e64e24..3a323ce 100644
--- a/src/app/pages/audit/audit-record/audit-record.component.ts
+++ b/src/app/pages/audit/audit-record/audit-record.component.ts
@@ -173,6 +173,8 @@ export class AuditRecordComponent implements OnInit {
this.typeList = this.typeListOfUpdate
} else if (e == '3') {
this.typeList = this.typeListOfFile
+ } else if (e == '4') {
+ this.typeList = this.typeListOfUsers
} else {
this.typeList = [...this.typeListOfStationData, ...this.typeListOfUpdate, ...this.typeListOfFile]
}
From ad0116cb823fa76a4edc99b8dbe4c8d935b76563 Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Mon, 25 Jul 2022 15:06:49 +0800
Subject: [PATCH 4/4] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=BE=85=E5=8A=9E?=
=?UTF-8?q?=E5=92=8C=E5=AE=A1=E6=A0=B8=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=BE=E9=9A=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/pages/audit/audit-ing/audit-ing.component.html | 8 ++++----
src/app/pages/audit/audit-ing/audit-ing.component.ts | 4 ++++
.../pages/audit/audit-record/audit-record.component.html | 8 ++++----
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.html b/src/app/pages/audit/audit-ing/audit-ing.component.html
index 40fa59c..7da6832 100644
--- a/src/app/pages/audit/audit-ing/audit-ing.component.html
+++ b/src/app/pages/audit/audit-ing/audit-ing.component.html
@@ -8,8 +8,8 @@
审批类型
审批信息 |
- 油站名称 |
- 区域名称 |
+ 油站名称 |
+ 区域名称 |
公司名称 |
审批状态 |
@@ -28,8 +28,8 @@
资产类证照
用户信息
- |
- |
+ |
+ |
diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.ts b/src/app/pages/audit/audit-ing/audit-ing.component.ts
index 286285d..6888703 100644
--- a/src/app/pages/audit/audit-ing/audit-ing.component.ts
+++ b/src/app/pages/audit/audit-ing/audit-ing.component.ts
@@ -23,6 +23,8 @@ export class AuditIngComponent implements OnInit {
tableScrollHeight
resizeListener
+
+ level
ngOnInit(): void {
this.tableScrollHeight = '100px'
// 页面监听
@@ -31,6 +33,8 @@ export class AuditIngComponent implements OnInit {
this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - tableHeader - 10) + 'px'
});
this.getStationList()
+
+ this.level = JSON.parse(sessionStorage.getItem('userdata')).organization.level
}
ngOnDestroy(): void {
this.resizeListener.unsubscribe()
diff --git a/src/app/pages/audit/audit-record/audit-record.component.html b/src/app/pages/audit/audit-record/audit-record.component.html
index 45de75b..c203f21 100644
--- a/src/app/pages/audit/audit-record/audit-record.component.html
+++ b/src/app/pages/audit/audit-record/audit-record.component.html
@@ -95,8 +95,8 @@
审批类型
审批信息 |
-
+ 油站名称 |
+ 区域名称 |
公司名称 |
申请人 |
审批时间 |
@@ -118,8 +118,8 @@
资产类证照
用户信息
|
-
+ |
+ |
|