@dssp/supervision 0.0.18 → 0.0.20
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/client/pages/building-inspection/building-inspection-detail-checklist.ts +16 -10
- package/client/pages/building-inspection/building-inspection-detail-drawing.ts +17 -5
- package/client/pages/building-inspection/building-inspection-list.ts +152 -48
- package/client/pages/building-inspection/component/building-inspection-detail-header.ts +4 -1
- package/client/pages/building-inspection/component/inspection-event-provider.ts +32 -0
- package/client/pages/building-inspection/inspection-create-popup.ts +186 -124
- package/client/pages/checklist/checklist-view.ts +13 -29
- package/client/pages/checklist-template/checklist-template-list.ts +106 -9
- package/client/pages/checklist-template/checklist-type-management.ts +34 -14
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +1 -3
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +12 -8
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +21 -10
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +5 -1
- package/dist-client/pages/building-inspection/building-inspection-list.js +151 -47
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +4 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +6 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +26 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js +162 -97
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.js +9 -38
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +10 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +99 -9
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +8 -1
- package/dist-client/pages/checklist-template/checklist-type-management.js +35 -14
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +1 -1
- package/dist-server/service/building-inspection/building-inspection-history.js +3 -5
- package/dist-server/service/building-inspection/building-inspection-history.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +1 -0
- package/dist-server/service/building-inspection/building-inspection-query.js +32 -4
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +1 -0
- package/dist-server/service/building-inspection/building-inspection-type.js +4 -0
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +1 -1
- package/dist-server/service/building-inspection/building-inspection.js +3 -3
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +2 -0
- package/dist-server/service/checklist/checklist-query.js +11 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +12 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.js +2 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/server/service/building-inspection/building-inspection-history.ts +3 -5
- package/server/service/building-inspection/building-inspection-mutation.ts +0 -1
- package/server/service/building-inspection/building-inspection-query.ts +31 -4
- package/server/service/building-inspection/building-inspection-type.ts +3 -0
- package/server/service/building-inspection/building-inspection.ts +3 -4
- package/server/service/checklist/checklist-query.ts +6 -0
- package/server/service/checklist-template-item/checklist-template-item-query.ts +8 -3
- package/server/service/checklist-template-item/checklist-template-item.ts +2 -1
- package/server/service/checklist-type/checklist-type-query.ts +1 -1
|
@@ -8,7 +8,7 @@ import { DataGrist } from '@operato/data-grist/ox-grist.js'
|
|
|
8
8
|
import { client } from '@operato/graphql'
|
|
9
9
|
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'
|
|
10
10
|
import { notify } from '@operato/layout'
|
|
11
|
-
import { CHECKLIST_MAIN_TYPE_LIST } from './building-inspection-list'
|
|
11
|
+
import { BuildingInspectionStatus, CHECKLIST_MAIN_TYPE_LIST } from './building-inspection-list'
|
|
12
12
|
import '../checklist/checklist-view'
|
|
13
13
|
import { ChecklistMode } from '../checklist/checklist-view'
|
|
14
14
|
|
|
@@ -21,6 +21,7 @@ class InspectionCreatePopup extends LitElement {
|
|
|
21
21
|
:host {
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
|
+
padding: 15px 20px;
|
|
24
25
|
|
|
25
26
|
background-color: var(--md-sys-color-surface);
|
|
26
27
|
}
|
|
@@ -45,39 +46,80 @@ class InspectionCreatePopup extends LitElement {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
div[body] {
|
|
48
|
-
display: flex;
|
|
49
49
|
height: 100%;
|
|
50
|
-
gap: 15px;
|
|
51
|
-
justify-content: flex-start;
|
|
52
50
|
overflow-y: auto;
|
|
53
51
|
|
|
54
|
-
div[
|
|
55
|
-
|
|
52
|
+
div[tab-container][inactive] {
|
|
53
|
+
display: none !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div[edit] {
|
|
57
|
+
width: 100%;
|
|
56
58
|
|
|
57
|
-
div[
|
|
59
|
+
div[detail] {
|
|
60
|
+
margin-bottom: 30px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h3 {
|
|
58
64
|
position: relative;
|
|
65
|
+
color: #0595e5;
|
|
66
|
+
font-size: 17px;
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
background-color: var(--md-sys-color-surface);
|
|
69
|
+
margin-top: 0;
|
|
70
|
+
margin-bottom: 5px;
|
|
71
|
+
}
|
|
59
72
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
div[data-row] {
|
|
74
|
+
display: grid;
|
|
75
|
+
grid-template-columns: 100px 1fr 0.3fr 100px 1fr;
|
|
76
|
+
gap: 15px;
|
|
77
|
+
margin-bottom: 11px;
|
|
78
|
+
|
|
79
|
+
label {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: flex-end;
|
|
82
|
+
align-items: center;
|
|
83
|
+
font-size: 15px;
|
|
70
84
|
}
|
|
71
85
|
}
|
|
72
86
|
}
|
|
73
87
|
|
|
74
|
-
div[
|
|
88
|
+
div[preview] {
|
|
75
89
|
display: flex;
|
|
76
90
|
overflow-y: auto;
|
|
77
91
|
overflow-x: hidden;
|
|
78
92
|
max-width: calc(40% - 15px);
|
|
79
93
|
}
|
|
80
94
|
}
|
|
95
|
+
|
|
96
|
+
div[tabs] {
|
|
97
|
+
display: flex;
|
|
98
|
+
|
|
99
|
+
button {
|
|
100
|
+
background-color: #fff;
|
|
101
|
+
padding: 6px 14px;
|
|
102
|
+
color: #999;
|
|
103
|
+
border: solid 1px #999;
|
|
104
|
+
border-top: none;
|
|
105
|
+
border-radius: 0px 0px 8px 8px;
|
|
106
|
+
margin-right: -2px;
|
|
107
|
+
|
|
108
|
+
&[active] {
|
|
109
|
+
color: var(--button-color, var(--md-sys-color-on-secondary-container));
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
div[button-container] {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: flex-end;
|
|
118
|
+
|
|
119
|
+
md-elevated-button {
|
|
120
|
+
--md-filled-button-container-color: #0595e5;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
81
123
|
`
|
|
82
124
|
]
|
|
83
125
|
|
|
@@ -103,6 +145,8 @@ class InspectionCreatePopup extends LitElement {
|
|
|
103
145
|
@state() checklistTemplates: any = []
|
|
104
146
|
@state() checklist: any = {}
|
|
105
147
|
|
|
148
|
+
@state() activeTab: 'edit' | 'preview' = 'edit'
|
|
149
|
+
|
|
106
150
|
@query('md-filled-select[building]') htmlSelectBuilding
|
|
107
151
|
@query('md-filled-select[level]') htmlSelectLevel
|
|
108
152
|
@query('md-filled-select[constructionType]') htmlSelectConstructionType
|
|
@@ -117,100 +161,110 @@ class InspectionCreatePopup extends LitElement {
|
|
|
117
161
|
render() {
|
|
118
162
|
return html`
|
|
119
163
|
<div body>
|
|
120
|
-
<div
|
|
121
|
-
<div
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
164
|
+
<div tab-container ?inactive=${this.activeTab !== 'edit'} edit>
|
|
165
|
+
<div detail>
|
|
166
|
+
<h3>세부 정보</h3>
|
|
167
|
+
|
|
168
|
+
<div data-row>
|
|
169
|
+
<label>공종</label>
|
|
170
|
+
<md-filled-select label="공종" constructionType @change=${this._onSelectConstructionType}>
|
|
171
|
+
${this.constructionTypes?.map(constructionType => {
|
|
172
|
+
const selected = constructionType.id === this.selectedConstructionType?.id
|
|
173
|
+
return html`<md-select-option ?selected=${selected} .value=${constructionType.id}>
|
|
174
|
+
<div slot="headline">${constructionType.name}</div>
|
|
175
|
+
</md-select-option>`
|
|
176
|
+
})}
|
|
177
|
+
</md-filled-select>
|
|
178
|
+
|
|
179
|
+
<div partition></div>
|
|
180
|
+
|
|
181
|
+
<label>세부 공종</label>
|
|
182
|
+
<md-filled-select label="세부 공종" constructionDetailType @change=${this._onSelectConstructionDetailType}>
|
|
183
|
+
${this.selectedConstructionType?.constructionDetailTypes?.map(constructionDetailType => {
|
|
184
|
+
const selected = constructionDetailType.id === this.selectedConstructionDetailType.id
|
|
185
|
+
return html`<md-select-option ?selected=${selected} .value=${constructionDetailType.id}>
|
|
186
|
+
<div slot="headline">${constructionDetailType.name}</div>
|
|
187
|
+
</md-select-option>`
|
|
188
|
+
})}
|
|
189
|
+
</md-filled-select>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div data-row>
|
|
193
|
+
<label>동</label>
|
|
194
|
+
<md-filled-select label="동" building @change=${this._onSelectBuilding}>
|
|
195
|
+
${this.buildings?.map(building => {
|
|
196
|
+
return html` <md-select-option .value=${building.id}>
|
|
197
|
+
<div slot="headline">${building.name}</div>
|
|
198
|
+
</md-select-option>`
|
|
199
|
+
})}
|
|
200
|
+
</md-filled-select>
|
|
201
|
+
|
|
202
|
+
<div partition></div>
|
|
203
|
+
|
|
204
|
+
<label>층</label>
|
|
205
|
+
<md-filled-select label="층" level @change=${this._onSelectBuildingLevel}>
|
|
206
|
+
${this.selectedBuilding?.buildingLevels?.map(level => {
|
|
207
|
+
return html`<md-select-option .value=${level.id}>
|
|
208
|
+
<div slot="headline">${level.floor}</div>
|
|
209
|
+
</md-select-option>`
|
|
210
|
+
})}
|
|
211
|
+
</md-filled-select>
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
<div data-row>
|
|
215
|
+
<label>검측 도면</label>
|
|
216
|
+
<md-filled-select label="검측 도면" inspectionDrawingType @change=${this._onSelectInspectionDrawingType}>
|
|
217
|
+
${this.inspectionDrawingTypes?.map(inspectionDrawingType => {
|
|
218
|
+
return html` <md-select-option .value=${inspectionDrawingType.id}>
|
|
219
|
+
<div slot="headline">${inspectionDrawingType.name}</div>
|
|
220
|
+
</md-select-option>`
|
|
221
|
+
})}
|
|
222
|
+
</md-filled-select>
|
|
223
|
+
|
|
224
|
+
<div partition></div>
|
|
225
|
+
|
|
226
|
+
<label>검측 부위</label>
|
|
227
|
+
<md-filled-select label="검측 부위" inspectionParts>
|
|
228
|
+
<div slot="label">${this.selectedInspectionParts?.join(', ') || ''}</div>
|
|
229
|
+
|
|
230
|
+
${this.selectedInspectionDrawingType?.inspectionParts?.map(inspectionPart => {
|
|
231
|
+
return html`
|
|
232
|
+
<md-list-option @click=${() => this._onSelectInspectionPart(inspectionPart)}>
|
|
233
|
+
<md-checkbox ?checked="${this.isSelected(inspectionPart)}"></md-checkbox>
|
|
234
|
+
${inspectionPart.name}
|
|
235
|
+
</md-list-option>
|
|
236
|
+
`
|
|
237
|
+
})}
|
|
238
|
+
</md-filled-select>
|
|
239
|
+
</div>
|
|
190
240
|
</div>
|
|
191
241
|
|
|
192
|
-
<div>
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
<
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
label="
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
242
|
+
<div checklist>
|
|
243
|
+
<h3>체크리스트</h3>
|
|
244
|
+
|
|
245
|
+
<div data-row>
|
|
246
|
+
<label>이름</label>
|
|
247
|
+
<md-filled-text-field
|
|
248
|
+
name="checklistName"
|
|
249
|
+
type="text"
|
|
250
|
+
label="체크리스트 이름"
|
|
251
|
+
.value=${this.checklist?.name || ''}
|
|
252
|
+
@input=${this._onInputChange}
|
|
253
|
+
>
|
|
254
|
+
</md-filled-text-field>
|
|
255
|
+
|
|
256
|
+
<div partition></div>
|
|
257
|
+
|
|
258
|
+
<label>템플릿</label>
|
|
259
|
+
<md-filled-select label="템플릿" checklistTemplate @change=${this._onSelectChecklistTemplate}>
|
|
260
|
+
<md-select-option></md-select-option>
|
|
261
|
+
${this.checklistTemplates?.map((checklistTemplate, idx) => {
|
|
262
|
+
return html` <md-select-option .value=${checklistTemplate.id}>
|
|
263
|
+
<div slot="headline">${checklistTemplate.name}</div>
|
|
264
|
+
</md-select-option>`
|
|
265
|
+
})}
|
|
266
|
+
</md-filled-select>
|
|
267
|
+
</div>
|
|
214
268
|
</div>
|
|
215
269
|
|
|
216
270
|
<ox-grist
|
|
@@ -220,18 +274,23 @@ class InspectionCreatePopup extends LitElement {
|
|
|
220
274
|
@field-change=${this.onChangeGird}
|
|
221
275
|
>
|
|
222
276
|
</ox-grist>
|
|
223
|
-
|
|
224
|
-
<div button-container>
|
|
225
|
-
<md-elevated-button @click=${this._createInspection}>
|
|
226
|
-
<md-icon slot="icon">add</md-icon>검측 요청서 등록
|
|
227
|
-
</md-elevated-button>
|
|
228
|
-
</div>
|
|
229
277
|
</div>
|
|
230
278
|
|
|
231
|
-
<div
|
|
279
|
+
<div tab-container ?inactive=${this.activeTab !== 'preview'} preview>
|
|
232
280
|
<checklist-view .mode=${ChecklistMode.VIEWER} .checklist=${this.checklist}></checklist-view>
|
|
233
281
|
</div>
|
|
234
282
|
</div>
|
|
283
|
+
|
|
284
|
+
<div tabs>
|
|
285
|
+
<button ?active=${this.activeTab === 'edit'} @click=${() => (this.activeTab = 'edit')}>검측 요청 정보</button>
|
|
286
|
+
<button ?active=${this.activeTab === 'preview'} @click=${() => (this.activeTab = 'preview')}>미리보기</button>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div button-container>
|
|
290
|
+
<md-elevated-button @click=${this._createInspection}>
|
|
291
|
+
<md-icon slot="icon">add</md-icon>검측 요청서 등록
|
|
292
|
+
</md-elevated-button>
|
|
293
|
+
</div>
|
|
235
294
|
`
|
|
236
295
|
}
|
|
237
296
|
|
|
@@ -347,7 +406,10 @@ class InspectionCreatePopup extends LitElement {
|
|
|
347
406
|
constructionType: this.selectedConstructionType?.name,
|
|
348
407
|
constructionDetailType: this.selectedConstructionDetailType?.name,
|
|
349
408
|
location: `${this.selectedBuilding?.name || ''} ${this.selectedLevel.floor || ''}층`,
|
|
350
|
-
documentNo: '0000-000-000000'
|
|
409
|
+
documentNo: '0000-000-000000',
|
|
410
|
+
buildingInspection: {
|
|
411
|
+
status: BuildingInspectionStatus.WAIT
|
|
412
|
+
}
|
|
351
413
|
}
|
|
352
414
|
|
|
353
415
|
// 그리드 셋팅
|
|
@@ -606,6 +668,9 @@ class InspectionCreatePopup extends LitElement {
|
|
|
606
668
|
}
|
|
607
669
|
})
|
|
608
670
|
|
|
671
|
+
// 체크리스트 아이템 데이터 갱신
|
|
672
|
+
this.onChangeGird()
|
|
673
|
+
|
|
609
674
|
return {
|
|
610
675
|
records: response.data.checklistTemplateItems.items || []
|
|
611
676
|
}
|
|
@@ -614,17 +679,14 @@ class InspectionCreatePopup extends LitElement {
|
|
|
614
679
|
private _onSelectChecklistTemplate(e) {
|
|
615
680
|
const checklistTemplateId = e.target.value
|
|
616
681
|
|
|
682
|
+
// 체크 리스트 이름 셋팅
|
|
683
|
+
this.checklist = { ...this.checklist, name: e.target.displayText }
|
|
684
|
+
|
|
617
685
|
// 그리드 아이템 셋팅
|
|
618
686
|
if (checklistTemplateId) {
|
|
619
687
|
this.checklistTemplateId = checklistTemplateId
|
|
620
688
|
this.grist.fetch()
|
|
621
689
|
}
|
|
622
|
-
|
|
623
|
-
// 체크 리스트 이름 셋팅
|
|
624
|
-
this.checklist = { ...this.checklist, name: e.target.displayText }
|
|
625
|
-
|
|
626
|
-
// 체크리스트 아이템 데이터 갱신
|
|
627
|
-
this.onChangeGird()
|
|
628
690
|
}
|
|
629
691
|
|
|
630
692
|
async _createInspection() {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import '@material/web/icon/icon.js'
|
|
2
|
-
import { css, html, LitElement
|
|
3
|
-
import { customElement, property
|
|
2
|
+
import { css, html, LitElement } from 'lit'
|
|
3
|
+
import { customElement, property } from 'lit/decorators.js'
|
|
4
4
|
import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
CHECKLIST_MAIN_TYPE_LIST,
|
|
7
|
+
BuildingInspectionStatus,
|
|
8
|
+
BUILDING_INSPECTION_STATUS
|
|
9
|
+
} from '../building-inspection/building-inspection-list'
|
|
6
10
|
import '@operato/input/ox-input-signature.js'
|
|
7
11
|
|
|
8
12
|
export const enum ChecklistMode {
|
|
@@ -165,11 +169,6 @@ class ChecklistView extends LitElement {
|
|
|
165
169
|
@property({ type: Object }) checklist: any = {}
|
|
166
170
|
@property({ type: String }) status: BuildingInspectionStatus = BuildingInspectionStatus.WAIT
|
|
167
171
|
|
|
168
|
-
@query('ox-input-signature[name="overallConstructorSignature"]') private elOverallConstructorSignature
|
|
169
|
-
@query('ox-input-signature[name="taskConstructorSignature"]') private elTaskConstructorSignature
|
|
170
|
-
@query('ox-input-signature[name="overallSupervisorySignature"]') private elOverallSupervisorySignature
|
|
171
|
-
@query('ox-input-signature[name="taskSupervisorySignature"]') private elTaskSupervisorySignature
|
|
172
|
-
|
|
173
172
|
render() {
|
|
174
173
|
const today = this._getDate(new Date())
|
|
175
174
|
const isConstructorStep = this.status == BuildingInspectionStatus.WAIT || this.status == BuildingInspectionStatus.FAIL
|
|
@@ -191,8 +190,6 @@ class ChecklistView extends LitElement {
|
|
|
191
190
|
|
|
192
191
|
const processedItems = this.drawChecklistItems(this.checklist?.checklistItems || [])
|
|
193
192
|
|
|
194
|
-
console.log('this.checklist :', this.checklist)
|
|
195
|
-
|
|
196
193
|
return html`
|
|
197
194
|
<div wrapper>
|
|
198
195
|
<div name>${this.checklist.name}</div>
|
|
@@ -213,8 +210,8 @@ class ChecklistView extends LitElement {
|
|
|
213
210
|
<tr>
|
|
214
211
|
<th>검측 부위</th>
|
|
215
212
|
<td>${this.checklist?.inspectionParts?.join(', ') || ''}</td>
|
|
216
|
-
<th
|
|
217
|
-
<td
|
|
213
|
+
<th>검측 상태</th>
|
|
214
|
+
<td>${BUILDING_INSPECTION_STATUS[this.checklist?.buildingInspection?.status]}</td>
|
|
218
215
|
</tr>
|
|
219
216
|
</table>
|
|
220
217
|
|
|
@@ -311,7 +308,7 @@ class ChecklistView extends LitElement {
|
|
|
311
308
|
<td>
|
|
312
309
|
<span sign-text>(인)</span>
|
|
313
310
|
<ox-input-signature
|
|
314
|
-
.value=${this.checklist.overallConstructorSignature
|
|
311
|
+
.value=${this.checklist.overallConstructorSignature}
|
|
315
312
|
name="overallConstructorSignature"
|
|
316
313
|
@change=${this._onChangeSignature}
|
|
317
314
|
?disabled=${!isConstructorStep}
|
|
@@ -324,7 +321,7 @@ class ChecklistView extends LitElement {
|
|
|
324
321
|
<td>
|
|
325
322
|
<span sign-text>(인)</span>
|
|
326
323
|
<ox-input-signature
|
|
327
|
-
.value=${this.checklist.taskConstructorSignature
|
|
324
|
+
.value=${this.checklist.taskConstructorSignature}
|
|
328
325
|
name="taskConstructorSignature"
|
|
329
326
|
@change=${this._onChangeSignature}
|
|
330
327
|
?disabled=${!isConstructorStep}
|
|
@@ -341,7 +338,7 @@ class ChecklistView extends LitElement {
|
|
|
341
338
|
<td>
|
|
342
339
|
<span sign-text>(인)</span>
|
|
343
340
|
<ox-input-signature
|
|
344
|
-
.value=${this.checklist.overallSupervisorySignature
|
|
341
|
+
.value=${this.checklist.overallSupervisorySignature}
|
|
345
342
|
name="overallSupervisorySignature"
|
|
346
343
|
@change=${this._onChangeSignature}
|
|
347
344
|
?disabled=${!isSupervisoryStep}
|
|
@@ -354,7 +351,7 @@ class ChecklistView extends LitElement {
|
|
|
354
351
|
<td>
|
|
355
352
|
<span sign-text>(인)</span>
|
|
356
353
|
<ox-input-signature
|
|
357
|
-
.value=${this.checklist.taskSupervisorySignature
|
|
354
|
+
.value=${this.checklist.taskSupervisorySignature}
|
|
358
355
|
name="taskSupervisorySignature"
|
|
359
356
|
@change=${this._onChangeSignature}
|
|
360
357
|
?disabled=${!isSupervisoryStep}
|
|
@@ -376,19 +373,6 @@ class ChecklistView extends LitElement {
|
|
|
376
373
|
`
|
|
377
374
|
}
|
|
378
375
|
|
|
379
|
-
// updated(_changed: PropertyValues): void {
|
|
380
|
-
// if (_changed.has('checklist')) {
|
|
381
|
-
// if (this.checklist?.overallConstructorSignature)
|
|
382
|
-
// this.elOverallConstructorSignature.loadSignature(this.checklist?.overallConstructorSignature)
|
|
383
|
-
// if (this.checklist?.taskConstructorSignature)
|
|
384
|
-
// this.elTaskConstructorSignature.loadSignature(this.checklist?.taskConstructorSignature)
|
|
385
|
-
// if (this.checklist?.overallSupervisorySignature)
|
|
386
|
-
// this.elOverallSupervisorySignature.loadSignature(this.checklist?.overallSupervisorySignature)
|
|
387
|
-
// if (this.checklist?.taskSupervisorySignature)
|
|
388
|
-
// this.elTaskSupervisorySignature.loadSignature(this.checklist?.taskSupervisorySignature)
|
|
389
|
-
// }
|
|
390
|
-
// }
|
|
391
|
-
|
|
392
376
|
private _onChangeConfirmStatus(e: Event) {
|
|
393
377
|
const target = e.target as HTMLInputElement
|
|
394
378
|
const itemId = target.getAttribute('item-id')
|