@dssp/dkpi 1.0.0-alpha.41 → 1.0.0-alpha.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/components/{pagenation.d.ts → sv-pagenation-control.d.ts} +1 -1
- package/dist-client/components/{pagenation.js → sv-pagenation-control.js} +10 -10
- package/dist-client/components/sv-pagenation-control.js.map +1 -0
- package/dist-client/icons/menu-icons.d.ts +6 -0
- package/dist-client/icons/menu-icons.js +42 -0
- package/dist-client/icons/menu-icons.js.map +1 -1
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.d.ts +12 -0
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.js +274 -0
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.js.map +1 -0
- package/dist-client/pages/project-complete-tabs/pc-tab2-final.d.ts +11 -0
- package/dist-client/pages/project-complete-tabs/pc-tab2-final.js +277 -0
- package/dist-client/pages/project-complete-tabs/pc-tab2-final.js.map +1 -0
- package/dist-client/pages/project-complete-tabs/pc-tab3-rating.d.ts +10 -0
- package/dist-client/pages/project-complete-tabs/pc-tab3-rating.js +230 -0
- package/dist-client/pages/project-complete-tabs/pc-tab3-rating.js.map +1 -0
- package/dist-client/pages/project-complete-tabs/pc-tab4-upload.d.ts +13 -0
- package/dist-client/pages/project-complete-tabs/pc-tab4-upload.js +217 -0
- package/dist-client/pages/project-complete-tabs/pc-tab4-upload.js.map +1 -0
- package/dist-client/pages/sv-project-complete.d.ts +26 -0
- package/dist-client/pages/sv-project-complete.js +299 -0
- package/dist-client/pages/sv-project-complete.js.map +1 -0
- package/dist-client/pages/sv-project-completed-list.d.ts +1 -1
- package/dist-client/pages/sv-project-completed-list.js +189 -168
- package/dist-client/pages/sv-project-completed-list.js.map +1 -1
- package/dist-client/pages/sv-project-detail.d.ts +13 -0
- package/dist-client/pages/sv-project-detail.js +486 -0
- package/dist-client/pages/sv-project-detail.js.map +1 -0
- package/dist-client/pages/sv-project-list.d.ts +6 -1
- package/dist-client/pages/sv-project-list.js +201 -186
- package/dist-client/pages/sv-project-list.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +6 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/shared/complete-api.d.ts +3 -0
- package/dist-client/shared/complete-api.js +83 -0
- package/dist-client/shared/complete-api.js.map +1 -0
- package/dist-client/shared/func.d.ts +2 -0
- package/dist-client/shared/func.js +22 -0
- package/dist-client/shared/func.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/viewparts/menu-tools.js +1 -0
- package/dist-client/viewparts/menu-tools.js.map +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/service/kpi-metric-value/index.d.ts +2 -1
- package/dist-server/service/kpi-metric-value/index.js +2 -1
- package/dist-server/service/kpi-metric-value/index.js.map +1 -1
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.d.ts +7 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.js +104 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/schema.graphql +66 -3
- package/things-factory.config.js +3 -1
- package/dist-client/components/pagenation.js.map +0 -1
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { navigate, PageView } from '@operato/shell';
|
|
3
|
+
import { css, html } from 'lit';
|
|
4
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
5
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements';
|
|
6
|
+
import { PROJECT_STATE } from './sv-project-list';
|
|
7
|
+
import { client } from '@operato/graphql';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
let SvProjectDetailPage = class SvProjectDetailPage extends ScopedElementsMixin(PageView) {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.project = {};
|
|
13
|
+
}
|
|
14
|
+
get context() {
|
|
15
|
+
return {
|
|
16
|
+
title: '프로젝트 상세 정보'
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f;
|
|
21
|
+
return html `
|
|
22
|
+
<div content>
|
|
23
|
+
<div left>
|
|
24
|
+
<div class="card">
|
|
25
|
+
<div class="card-title">
|
|
26
|
+
<div>${this.project.name}</div>
|
|
27
|
+
<div class="triangle"></div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="top-info" style="margin-top: 10px;">
|
|
31
|
+
<img pic src=${((_a = this.project.mainPhoto) === null || _a === void 0 ? void 0 : _a.fullpath) || '/assets/images/no-image.png'} alt="project" />
|
|
32
|
+
<div class="info">
|
|
33
|
+
<div class="address">• ${(_b = this.project.buildingComplex) === null || _b === void 0 ? void 0 : _b.address}</div>
|
|
34
|
+
<div class="row">
|
|
35
|
+
<div class="label">• 공사기간</div>
|
|
36
|
+
<div class="value">${this.project.startDate} ~ ${this.project.endDate}</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="label">• 현장상태</div>
|
|
40
|
+
<div class="value status-value">${PROJECT_STATE[this.project.state]}</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="row">
|
|
43
|
+
<div class="label">• 요청상세</div>
|
|
44
|
+
<div class="value bold">???</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="row">
|
|
47
|
+
<div class="label">• 알람</div>
|
|
48
|
+
<div class="value">???</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="detail-grid">
|
|
54
|
+
<div class="grid-item row">
|
|
55
|
+
<div class="label">• 공사비</div>
|
|
56
|
+
<div class="value">${((_d = (_c = this.project.buildingComplex) === null || _c === void 0 ? void 0 : _c.constructionCost) === null || _d === void 0 ? void 0 : _d.toLocaleString()) || '-'} 원</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="grid-item row">
|
|
59
|
+
<div class="label">• 연면적</div>
|
|
60
|
+
<div class="value">${((_f = (_e = this.project.buildingComplex) === null || _e === void 0 ? void 0 : _e.area) === null || _f === void 0 ? void 0 : _f.toLocaleString()) || '-'} ㎡</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="grid-item row">
|
|
63
|
+
<div class="label">• 용적률</div>
|
|
64
|
+
<div class="value">??? %</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="grid-item row">
|
|
67
|
+
<div class="label">• 투입인력</div>
|
|
68
|
+
<div class="value">??? 명</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div class="card">
|
|
74
|
+
<div class="card-title">
|
|
75
|
+
<div>입력 대기 중</div>
|
|
76
|
+
<div class="triangle"></div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="sub-desc">
|
|
79
|
+
현재 입력 기한이 도래했거나, 입력이 지연되고 있는 KPI 항목입니다. 해당 항목에 대한 데이터를 입력 해 주시기 바랍니다.
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div class="list-block">
|
|
83
|
+
<div class="list-title">• 입력 대기 중 2건</div>
|
|
84
|
+
<div class="list-text"># 2033312-Y5.1 : 검수자재 불합격률</div>
|
|
85
|
+
<div class="list-text"># 2033312-Y5.1 : 품질시험 불합격 건수</div>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="list-block">
|
|
88
|
+
<div class="list-title">• 입력 기한 초과 1건</div>
|
|
89
|
+
<div class="list-text">
|
|
90
|
+
# 2033312-Y5.2 : 검측 불합격률 <span class="warn">2025.2.12 <md-icon>report</md-icon></span>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="list-block">
|
|
94
|
+
<div class="list-title">• 입력 예정 4건</div>
|
|
95
|
+
<div class="list-text"># 2033320-Y4.32 : 연면적 대비 공기입력</div>
|
|
96
|
+
<div class="list-text"># 2012345-Y4.32 : 책임감리원의 일정성과 수준 평가</div>
|
|
97
|
+
<div class="list-text"># 2035641-Y5.22 : 설계 변경에 따른 공기 증감률</div>
|
|
98
|
+
<div class="list-text"># 2096412-Y5.31 : 현장별 일정 이탈 수준</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="list-block">
|
|
101
|
+
<div class="list-title">• 입력 기한 없음 3건</div>
|
|
102
|
+
<div class="list-text"># 2033320-Y4.32 : 연면적 대비 공기입력</div>
|
|
103
|
+
<div class="list-text"># 2012345-Y4.32 : 책임감리원의 일정성과 수준 평가</div>
|
|
104
|
+
<div class="list-text"># 2035641-Y5.22 : 설계 변경에 따른 공기 증감률</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<div right>
|
|
110
|
+
<div class="button-line">
|
|
111
|
+
<div class="ghost-btn" @click=${() => navigate(`project-complete/${this.project.id}`)}>
|
|
112
|
+
<md-icon slot="">schedule</md-icon>
|
|
113
|
+
<div>프로젝트 완공 처리</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<div class="card kpi-box">
|
|
118
|
+
<div class="kpi-header">
|
|
119
|
+
<div>종합 KPI</div>
|
|
120
|
+
<div class="triangle"></div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="kpi-desc">
|
|
123
|
+
프로젝트의 생산성, 품질, 안전, 환경, 비용, 일정 등 6개의 성과를 종합한 종합KPI 포인트 정보와 각 지표별
|
|
124
|
+
분포차트입니다.
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<div class="kpi-summary">
|
|
128
|
+
<div class="mini-boxplot" title="boxplot placeholder">
|
|
129
|
+
<div class="boxplot-area">boxplot area</div>
|
|
130
|
+
|
|
131
|
+
<div class="boxplot-point">
|
|
132
|
+
<div class="value">???</div>
|
|
133
|
+
<div class="label">Point</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<div class="spider-area">spider chart</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<div class="card group-box">
|
|
142
|
+
<div class="kpi-header">
|
|
143
|
+
<div>그룹별 분포</div>
|
|
144
|
+
<div class="triangle"></div>
|
|
145
|
+
</div>
|
|
146
|
+
<div class="desc">
|
|
147
|
+
Boxplot(박스플롯)은 각 카테고리별로 값의 분포(최소, 1사분위, 중앙값, 3사분위, 최대, 평균, 이상치 등)를 보여줍니다.
|
|
148
|
+
박스는 중앙 50% 구간, 수염은 전체 범위, 굵은 검정색 가로선은 중앙값(메디안), 초록색 원은 평균값(Mean)을 의미합니다.
|
|
149
|
+
이 프로젝트의 값은 진한 오렌지색 원으로 별도 강조되어 표시되며, 중앙값/평균과 다를 수 있습니다.
|
|
150
|
+
</div>
|
|
151
|
+
<div class="group-chart"></div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
`;
|
|
156
|
+
}
|
|
157
|
+
async pageUpdated(changes, lifecycle) {
|
|
158
|
+
if (this.active) {
|
|
159
|
+
await this.initProject(lifecycle.resourceId);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async initProject(projectId = '') {
|
|
163
|
+
var _a;
|
|
164
|
+
const response = await client.query({
|
|
165
|
+
query: gql `
|
|
166
|
+
query Project($id: String!) {
|
|
167
|
+
project(id: $id) {
|
|
168
|
+
id
|
|
169
|
+
name
|
|
170
|
+
state
|
|
171
|
+
startDate
|
|
172
|
+
endDate
|
|
173
|
+
projectType
|
|
174
|
+
mainPhoto {
|
|
175
|
+
fullpath
|
|
176
|
+
}
|
|
177
|
+
totalProgress
|
|
178
|
+
weeklyProgress
|
|
179
|
+
kpi
|
|
180
|
+
inspPassRate
|
|
181
|
+
robotProgressRate
|
|
182
|
+
structuralSafetyRate
|
|
183
|
+
robotCount
|
|
184
|
+
buildingComplex {
|
|
185
|
+
id
|
|
186
|
+
address
|
|
187
|
+
latitude
|
|
188
|
+
longitude
|
|
189
|
+
area
|
|
190
|
+
clientCompany
|
|
191
|
+
constructionCompany
|
|
192
|
+
supervisoryCompany
|
|
193
|
+
designCompany
|
|
194
|
+
drawing {
|
|
195
|
+
id
|
|
196
|
+
name
|
|
197
|
+
fullpath
|
|
198
|
+
}
|
|
199
|
+
constructionType
|
|
200
|
+
constructionCost
|
|
201
|
+
etc
|
|
202
|
+
notice
|
|
203
|
+
householdCount
|
|
204
|
+
buildingCount
|
|
205
|
+
virtualTourLink
|
|
206
|
+
buildings {
|
|
207
|
+
id
|
|
208
|
+
name
|
|
209
|
+
floorCount
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
`,
|
|
215
|
+
variables: { id: projectId }
|
|
216
|
+
});
|
|
217
|
+
if (response.errors)
|
|
218
|
+
return;
|
|
219
|
+
this.project = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.project) || {};
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
SvProjectDetailPage.styles = [
|
|
223
|
+
css `
|
|
224
|
+
:host {
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
overflow-y: auto;
|
|
228
|
+
|
|
229
|
+
width: 100%;
|
|
230
|
+
height: 100%;
|
|
231
|
+
background-color: var(--md-sys-color-background, #f6f6f6);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* content layout */
|
|
235
|
+
div[content] {
|
|
236
|
+
display: flex;
|
|
237
|
+
gap: 35px;
|
|
238
|
+
padding: 25px;
|
|
239
|
+
}
|
|
240
|
+
div[left] {
|
|
241
|
+
flex: 1;
|
|
242
|
+
display: flex;
|
|
243
|
+
flex-direction: column;
|
|
244
|
+
gap: 20px;
|
|
245
|
+
}
|
|
246
|
+
div[right] {
|
|
247
|
+
flex: 1;
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
gap: 20px;
|
|
251
|
+
padding: 0 1px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* card */
|
|
255
|
+
.card {
|
|
256
|
+
background: #ffffff;
|
|
257
|
+
border-radius: 10px;
|
|
258
|
+
padding: 15px;
|
|
259
|
+
box-shadow: 3px 3px 3px 0 rgba(0, 0, 0, 0.1);
|
|
260
|
+
}
|
|
261
|
+
.card-title {
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: 5px;
|
|
265
|
+
color: #35618e;
|
|
266
|
+
font-weight: 700;
|
|
267
|
+
}
|
|
268
|
+
.triangle {
|
|
269
|
+
width: 0;
|
|
270
|
+
height: 0;
|
|
271
|
+
border-left: 6px solid transparent;
|
|
272
|
+
border-right: 6px solid transparent;
|
|
273
|
+
border-top: 8px solid #35618e;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* left top info box */
|
|
277
|
+
.bold {
|
|
278
|
+
font-weight: bold;
|
|
279
|
+
}
|
|
280
|
+
.top-info {
|
|
281
|
+
display: flex;
|
|
282
|
+
gap: 10px;
|
|
283
|
+
}
|
|
284
|
+
.top-info img[pic] {
|
|
285
|
+
width: 284px;
|
|
286
|
+
height: 160px;
|
|
287
|
+
object-fit: cover;
|
|
288
|
+
background: #e5e7eb;
|
|
289
|
+
}
|
|
290
|
+
.top-info .info {
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-direction: column;
|
|
293
|
+
gap: 15px;
|
|
294
|
+
padding: 10px 0;
|
|
295
|
+
flex: 1;
|
|
296
|
+
}
|
|
297
|
+
.row {
|
|
298
|
+
display: flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
gap: 10px;
|
|
301
|
+
}
|
|
302
|
+
.label {
|
|
303
|
+
min-width: fit-content;
|
|
304
|
+
color: #35618e;
|
|
305
|
+
font-size: 16px;
|
|
306
|
+
letter-spacing: -0.05em;
|
|
307
|
+
}
|
|
308
|
+
.value {
|
|
309
|
+
color: #212529;
|
|
310
|
+
font-size: 16px;
|
|
311
|
+
}
|
|
312
|
+
.status-value {
|
|
313
|
+
color: #4cbb49;
|
|
314
|
+
font-weight: 700;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.address {
|
|
318
|
+
color: #35618e;
|
|
319
|
+
font-size: 16px;
|
|
320
|
+
letter-spacing: -0.05em;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.detail-grid {
|
|
324
|
+
display: grid;
|
|
325
|
+
grid-template-columns: 284px 1fr;
|
|
326
|
+
gap: 15px 10px;
|
|
327
|
+
padding: 5px 0;
|
|
328
|
+
}
|
|
329
|
+
.detail-grid .grid-item .label {
|
|
330
|
+
width: auto;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* left second card (requests) */
|
|
334
|
+
.sub-desc {
|
|
335
|
+
color: #35618e;
|
|
336
|
+
font-size: 14px;
|
|
337
|
+
letter-spacing: -0.05em;
|
|
338
|
+
margin-bottom: 8px;
|
|
339
|
+
}
|
|
340
|
+
.list-block {
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
gap: 5px;
|
|
344
|
+
padding: 5px 25px;
|
|
345
|
+
}
|
|
346
|
+
.list-title {
|
|
347
|
+
color: #212529;
|
|
348
|
+
font-weight: 700;
|
|
349
|
+
font-size: 16px;
|
|
350
|
+
letter-spacing: -0.05em;
|
|
351
|
+
}
|
|
352
|
+
.list-text {
|
|
353
|
+
color: #35618e;
|
|
354
|
+
font-size: 16px;
|
|
355
|
+
letter-spacing: -0.05em;
|
|
356
|
+
margin-left: 8px;
|
|
357
|
+
}
|
|
358
|
+
.list-text .warn {
|
|
359
|
+
margin-left: 10px;
|
|
360
|
+
color: #e13232;
|
|
361
|
+
|
|
362
|
+
md-icon {
|
|
363
|
+
font-size: 17px;
|
|
364
|
+
width: 13px;
|
|
365
|
+
height: 13px;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* right buttons */
|
|
370
|
+
.button-line {
|
|
371
|
+
display: flex;
|
|
372
|
+
justify-content: flex-end;
|
|
373
|
+
gap: 10px;
|
|
374
|
+
}
|
|
375
|
+
.ghost-btn {
|
|
376
|
+
display: flex;
|
|
377
|
+
align-items: center;
|
|
378
|
+
gap: 3px;
|
|
379
|
+
padding: 5px 10px;
|
|
380
|
+
background: #35618e;
|
|
381
|
+
color: #ffffff;
|
|
382
|
+
border-radius: 5px;
|
|
383
|
+
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);
|
|
384
|
+
cursor: pointer;
|
|
385
|
+
|
|
386
|
+
/* Material Symbols Outlined (stroke style) */
|
|
387
|
+
md-icon {
|
|
388
|
+
font-variation-settings:
|
|
389
|
+
'FILL' 0,
|
|
390
|
+
'wght' 300,
|
|
391
|
+
'GRAD' 0,
|
|
392
|
+
'opsz' 24;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* right KPI box */
|
|
397
|
+
.kpi-box {
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-direction: column;
|
|
400
|
+
gap: 10px;
|
|
401
|
+
padding: 15px;
|
|
402
|
+
}
|
|
403
|
+
.kpi-header {
|
|
404
|
+
display: flex;
|
|
405
|
+
align-items: center;
|
|
406
|
+
gap: 5px;
|
|
407
|
+
color: #35618e;
|
|
408
|
+
font-weight: 700;
|
|
409
|
+
font-size: 20px;
|
|
410
|
+
letter-spacing: -0.05em;
|
|
411
|
+
}
|
|
412
|
+
.kpi-desc {
|
|
413
|
+
color: #35618e;
|
|
414
|
+
font-size: 13px;
|
|
415
|
+
letter-spacing: -0.05em;
|
|
416
|
+
}
|
|
417
|
+
.kpi-summary {
|
|
418
|
+
display: flex;
|
|
419
|
+
align-items: center;
|
|
420
|
+
gap: 35px;
|
|
421
|
+
padding: 0 30px;
|
|
422
|
+
}
|
|
423
|
+
.mini-boxplot {
|
|
424
|
+
width: 70px;
|
|
425
|
+
height: 100%;
|
|
426
|
+
position: relative;
|
|
427
|
+
}
|
|
428
|
+
.boxplot-area {
|
|
429
|
+
width: 100%;
|
|
430
|
+
height: 190px;
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
433
|
+
background: #ffffff;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.boxplot-point {
|
|
437
|
+
display: flex;
|
|
438
|
+
flex-direction: column;
|
|
439
|
+
align-items: center;
|
|
440
|
+
gap: 6px;
|
|
441
|
+
color: #35618e;
|
|
442
|
+
}
|
|
443
|
+
.boxplot-point .value {
|
|
444
|
+
font-size: 30px;
|
|
445
|
+
font-weight: 700;
|
|
446
|
+
color: #35618e;
|
|
447
|
+
border-radius: 6px;
|
|
448
|
+
padding: 4px 8px;
|
|
449
|
+
}
|
|
450
|
+
.boxplot-point .label {
|
|
451
|
+
font-size: 14px;
|
|
452
|
+
font-weight: 300;
|
|
453
|
+
width: auto;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* spider chart placeholder */
|
|
457
|
+
.spider-area {
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
justify-content: center;
|
|
461
|
+
gap: 10px;
|
|
462
|
+
flex: 1;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* group distribution */
|
|
466
|
+
.group-box .desc {
|
|
467
|
+
color: #35618e;
|
|
468
|
+
font-size: 13px;
|
|
469
|
+
letter-spacing: -0.05em;
|
|
470
|
+
margin-top: 4px;
|
|
471
|
+
}
|
|
472
|
+
.group-chart {
|
|
473
|
+
height: 205px;
|
|
474
|
+
margin-top: 25px;
|
|
475
|
+
}
|
|
476
|
+
`
|
|
477
|
+
];
|
|
478
|
+
__decorate([
|
|
479
|
+
state(),
|
|
480
|
+
__metadata("design:type", Object)
|
|
481
|
+
], SvProjectDetailPage.prototype, "project", void 0);
|
|
482
|
+
SvProjectDetailPage = __decorate([
|
|
483
|
+
customElement('sv-project-detail')
|
|
484
|
+
], SvProjectDetailPage);
|
|
485
|
+
export { SvProjectDetailPage };
|
|
486
|
+
//# sourceMappingURL=sv-project-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sv-project-detail.js","sourceRoot":"","sources":["../../client/pages/sv-project-detail.ts"],"names":[],"mappings":"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","sourcesContent":["import { navigate, PageLifecycle, PageView } from '@operato/shell'\nimport { css, html } from 'lit'\nimport { customElement, state } from 'lit/decorators.js'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { Project, PROJECT_STATE } from './sv-project-list'\nimport { client } from '@operato/graphql'\nimport gql from 'graphql-tag'\n\n@customElement('sv-project-detail')\nexport class SvProjectDetailPage extends ScopedElementsMixin(PageView) {\n static styles = [\n css`\n :host {\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n\n width: 100%;\n height: 100%;\n background-color: var(--md-sys-color-background, #f6f6f6);\n }\n\n /* content layout */\n div[content] {\n display: flex;\n gap: 35px;\n padding: 25px;\n }\n div[left] {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n div[right] {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 20px;\n padding: 0 1px;\n }\n\n /* card */\n .card {\n background: #ffffff;\n border-radius: 10px;\n padding: 15px;\n box-shadow: 3px 3px 3px 0 rgba(0, 0, 0, 0.1);\n }\n .card-title {\n display: flex;\n align-items: center;\n gap: 5px;\n color: #35618e;\n font-weight: 700;\n }\n .triangle {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 8px solid #35618e;\n }\n\n /* left top info box */\n .bold {\n font-weight: bold;\n }\n .top-info {\n display: flex;\n gap: 10px;\n }\n .top-info img[pic] {\n width: 284px;\n height: 160px;\n object-fit: cover;\n background: #e5e7eb;\n }\n .top-info .info {\n display: flex;\n flex-direction: column;\n gap: 15px;\n padding: 10px 0;\n flex: 1;\n }\n .row {\n display: flex;\n align-items: center;\n gap: 10px;\n }\n .label {\n min-width: fit-content;\n color: #35618e;\n font-size: 16px;\n letter-spacing: -0.05em;\n }\n .value {\n color: #212529;\n font-size: 16px;\n }\n .status-value {\n color: #4cbb49;\n font-weight: 700;\n }\n\n .address {\n color: #35618e;\n font-size: 16px;\n letter-spacing: -0.05em;\n }\n\n .detail-grid {\n display: grid;\n grid-template-columns: 284px 1fr;\n gap: 15px 10px;\n padding: 5px 0;\n }\n .detail-grid .grid-item .label {\n width: auto;\n }\n\n /* left second card (requests) */\n .sub-desc {\n color: #35618e;\n font-size: 14px;\n letter-spacing: -0.05em;\n margin-bottom: 8px;\n }\n .list-block {\n display: flex;\n flex-direction: column;\n gap: 5px;\n padding: 5px 25px;\n }\n .list-title {\n color: #212529;\n font-weight: 700;\n font-size: 16px;\n letter-spacing: -0.05em;\n }\n .list-text {\n color: #35618e;\n font-size: 16px;\n letter-spacing: -0.05em;\n margin-left: 8px;\n }\n .list-text .warn {\n margin-left: 10px;\n color: #e13232;\n\n md-icon {\n font-size: 17px;\n width: 13px;\n height: 13px;\n }\n }\n\n /* right buttons */\n .button-line {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n }\n .ghost-btn {\n display: flex;\n align-items: center;\n gap: 3px;\n padding: 5px 10px;\n background: #35618e;\n color: #ffffff;\n border-radius: 5px;\n box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);\n cursor: pointer;\n\n /* Material Symbols Outlined (stroke style) */\n md-icon {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 300,\n 'GRAD' 0,\n 'opsz' 24;\n }\n }\n\n /* right KPI box */\n .kpi-box {\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 15px;\n }\n .kpi-header {\n display: flex;\n align-items: center;\n gap: 5px;\n color: #35618e;\n font-weight: 700;\n font-size: 20px;\n letter-spacing: -0.05em;\n }\n .kpi-desc {\n color: #35618e;\n font-size: 13px;\n letter-spacing: -0.05em;\n }\n .kpi-summary {\n display: flex;\n align-items: center;\n gap: 35px;\n padding: 0 30px;\n }\n .mini-boxplot {\n width: 70px;\n height: 100%;\n position: relative;\n }\n .boxplot-area {\n width: 100%;\n height: 190px;\n display: flex;\n align-items: center;\n background: #ffffff;\n }\n\n .boxplot-point {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n color: #35618e;\n }\n .boxplot-point .value {\n font-size: 30px;\n font-weight: 700;\n color: #35618e;\n border-radius: 6px;\n padding: 4px 8px;\n }\n .boxplot-point .label {\n font-size: 14px;\n font-weight: 300;\n width: auto;\n }\n\n /* spider chart placeholder */\n .spider-area {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n flex: 1;\n }\n\n /* group distribution */\n .group-box .desc {\n color: #35618e;\n font-size: 13px;\n letter-spacing: -0.05em;\n margin-top: 4px;\n }\n .group-chart {\n height: 205px;\n margin-top: 25px;\n }\n `\n ]\n\n get context() {\n return {\n title: '프로젝트 상세 정보'\n }\n }\n\n @state() private project: Project = {} as Project\n\n render() {\n return html`\n <div content>\n <div left>\n <div class=\"card\">\n <div class=\"card-title\">\n <div>${this.project.name}</div>\n <div class=\"triangle\"></div>\n </div>\n\n <div class=\"top-info\" style=\"margin-top: 10px;\">\n <img pic src=${this.project.mainPhoto?.fullpath || '/assets/images/no-image.png'} alt=\"project\" />\n <div class=\"info\">\n <div class=\"address\">• ${this.project.buildingComplex?.address}</div>\n <div class=\"row\">\n <div class=\"label\">• 공사기간</div>\n <div class=\"value\">${this.project.startDate} ~ ${this.project.endDate}</div>\n </div>\n <div class=\"row\">\n <div class=\"label\">• 현장상태</div>\n <div class=\"value status-value\">${PROJECT_STATE[this.project.state]}</div>\n </div>\n <div class=\"row\">\n <div class=\"label\">• 요청상세</div>\n <div class=\"value bold\">???</div>\n </div>\n <div class=\"row\">\n <div class=\"label\">• 알람</div>\n <div class=\"value\">???</div>\n </div>\n </div>\n </div>\n\n <div class=\"detail-grid\">\n <div class=\"grid-item row\">\n <div class=\"label\">• 공사비</div>\n <div class=\"value\">${this.project.buildingComplex?.constructionCost?.toLocaleString() || '-'} 원</div>\n </div>\n <div class=\"grid-item row\">\n <div class=\"label\">• 연면적</div>\n <div class=\"value\">${this.project.buildingComplex?.area?.toLocaleString() || '-'} ㎡</div>\n </div>\n <div class=\"grid-item row\">\n <div class=\"label\">• 용적률</div>\n <div class=\"value\">??? %</div>\n </div>\n <div class=\"grid-item row\">\n <div class=\"label\">• 투입인력</div>\n <div class=\"value\">??? 명</div>\n </div>\n </div>\n </div>\n\n <div class=\"card\">\n <div class=\"card-title\">\n <div>입력 대기 중</div>\n <div class=\"triangle\"></div>\n </div>\n <div class=\"sub-desc\">\n 현재 입력 기한이 도래했거나, 입력이 지연되고 있는 KPI 항목입니다. 해당 항목에 대한 데이터를 입력 해 주시기 바랍니다.\n </div>\n\n <div class=\"list-block\">\n <div class=\"list-title\">• 입력 대기 중 2건</div>\n <div class=\"list-text\"># 2033312-Y5.1 : 검수자재 불합격률</div>\n <div class=\"list-text\"># 2033312-Y5.1 : 품질시험 불합격 건수</div>\n </div>\n <div class=\"list-block\">\n <div class=\"list-title\">• 입력 기한 초과 1건</div>\n <div class=\"list-text\">\n # 2033312-Y5.2 : 검측 불합격률 <span class=\"warn\">2025.2.12 <md-icon>report</md-icon></span>\n </div>\n </div>\n <div class=\"list-block\">\n <div class=\"list-title\">• 입력 예정 4건</div>\n <div class=\"list-text\"># 2033320-Y4.32 : 연면적 대비 공기입력</div>\n <div class=\"list-text\"># 2012345-Y4.32 : 책임감리원의 일정성과 수준 평가</div>\n <div class=\"list-text\"># 2035641-Y5.22 : 설계 변경에 따른 공기 증감률</div>\n <div class=\"list-text\"># 2096412-Y5.31 : 현장별 일정 이탈 수준</div>\n </div>\n <div class=\"list-block\">\n <div class=\"list-title\">• 입력 기한 없음 3건</div>\n <div class=\"list-text\"># 2033320-Y4.32 : 연면적 대비 공기입력</div>\n <div class=\"list-text\"># 2012345-Y4.32 : 책임감리원의 일정성과 수준 평가</div>\n <div class=\"list-text\"># 2035641-Y5.22 : 설계 변경에 따른 공기 증감률</div>\n </div>\n </div>\n </div>\n\n <div right>\n <div class=\"button-line\">\n <div class=\"ghost-btn\" @click=${() => navigate(`project-complete/${this.project.id}`)}>\n <md-icon slot=\"\">schedule</md-icon>\n <div>프로젝트 완공 처리</div>\n </div>\n </div>\n\n <div class=\"card kpi-box\">\n <div class=\"kpi-header\">\n <div>종합 KPI</div>\n <div class=\"triangle\"></div>\n </div>\n <div class=\"kpi-desc\">\n 프로젝트의 생산성, 품질, 안전, 환경, 비용, 일정 등 6개의 성과를 종합한 종합KPI 포인트 정보와 각 지표별\n 분포차트입니다.\n </div>\n\n <div class=\"kpi-summary\">\n <div class=\"mini-boxplot\" title=\"boxplot placeholder\">\n <div class=\"boxplot-area\">boxplot area</div>\n\n <div class=\"boxplot-point\">\n <div class=\"value\">???</div>\n <div class=\"label\">Point</div>\n </div>\n </div>\n\n <div class=\"spider-area\">spider chart</div>\n </div>\n </div>\n\n <div class=\"card group-box\">\n <div class=\"kpi-header\">\n <div>그룹별 분포</div>\n <div class=\"triangle\"></div>\n </div>\n <div class=\"desc\">\n Boxplot(박스플롯)은 각 카테고리별로 값의 분포(최소, 1사분위, 중앙값, 3사분위, 최대, 평균, 이상치 등)를 보여줍니다.\n 박스는 중앙 50% 구간, 수염은 전체 범위, 굵은 검정색 가로선은 중앙값(메디안), 초록색 원은 평균값(Mean)을 의미합니다.\n 이 프로젝트의 값은 진한 오렌지색 원으로 별도 강조되어 표시되며, 중앙값/평균과 다를 수 있습니다.\n </div>\n <div class=\"group-chart\"></div>\n </div>\n </div>\n </div>\n `\n }\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n await this.initProject(lifecycle.resourceId)\n }\n }\n\n async initProject(projectId: string = '') {\n const response = await client.query({\n query: gql`\n query Project($id: String!) {\n project(id: $id) {\n id\n name\n state\n startDate\n endDate\n projectType\n mainPhoto {\n fullpath\n }\n totalProgress\n weeklyProgress\n kpi\n inspPassRate\n robotProgressRate\n structuralSafetyRate\n robotCount\n buildingComplex {\n id\n address\n latitude\n longitude\n area\n clientCompany\n constructionCompany\n supervisoryCompany\n designCompany\n drawing {\n id\n name\n fullpath\n }\n constructionType\n constructionCost\n etc\n notice\n householdCount\n buildingCount\n virtualTourLink\n buildings {\n id\n name\n floorCount\n }\n }\n }\n }\n `,\n variables: { id: projectId }\n })\n\n if (response.errors) return\n\n this.project = response.data?.project || ({} as Project)\n }\n}\n"]}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../components/pagenation';
|
|
3
2
|
import { PageView } from '@operato/shell';
|
|
4
3
|
import { Attachment } from '@things-factory/attachment-base';
|
|
5
4
|
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
5
|
+
import '../components/sv-pagenation-control';
|
|
6
6
|
export declare enum ProjectState {
|
|
7
7
|
'ONGOING' = "10",
|
|
8
8
|
'COMPLETED' = "20"
|
|
9
9
|
}
|
|
10
|
+
export declare const PROJECT_STATE: {
|
|
11
|
+
"10": string;
|
|
12
|
+
"20": string;
|
|
13
|
+
};
|
|
10
14
|
export declare enum BuildingInspectionStatus {
|
|
11
15
|
WAIT = "WAIT",
|
|
12
16
|
OVERALL_WAIT = "OVERALL_WAIT",
|
|
@@ -31,6 +35,7 @@ export declare enum ProjectType {
|
|
|
31
35
|
export interface Project {
|
|
32
36
|
id?: string;
|
|
33
37
|
name: string;
|
|
38
|
+
state: ProjectState;
|
|
34
39
|
startDate?: string;
|
|
35
40
|
endDate?: string;
|
|
36
41
|
mainPhoto?: Attachment;
|