@dssp/supervision 1.0.0-alpha.7 → 1.0.0-alpha.74
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/graphql/building-inspection.d.ts +1 -0
- package/dist-client/graphql/building-inspection.js +101 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +59 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +868 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +147 -72
- 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 +78 -14
- 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 +26 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +375 -34
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +72 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1256 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +3 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +112 -20
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +42 -18
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +17 -5
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +791 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +16 -2
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +249 -45
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +9 -3
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +5 -0
- package/dist-client/pages/checklist/checklist-view.js +191 -30
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js +15 -5
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
- package/dist-client/pages/checklist-database/checklist-database.js +539 -0
- package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +39 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +242 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js +409 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
- package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
- package/dist-client/pages/issue/issue-list-page.js +1 -2
- package/dist-client/pages/issue/issue-list-page.js.map +1 -1
- package/dist-client/pages/project-checklist/project-checklist-management.d.ts +50 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +910 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
- package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +18 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +13 -8
- package/dist-client/stt/speech-to-text.js +282 -40
- package/dist-client/stt/speech-to-text.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +5 -6
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
- package/dist-server/service/action-plan/action-plan-query.js +5 -11
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +77 -39
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +5 -7
- package/dist-server/service/building-inspection/building-inspection-query.js +54 -52
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +26 -7
- package/dist-server/service/building-inspection/building-inspection-type.js +92 -13
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +5 -0
- package/dist-server/service/building-inspection/building-inspection.js +37 -4
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -4
- package/dist-server/service/building-inspection/index.js +10 -3
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
- package/dist-server/service/checklist/checklist-mutation.js +1 -67
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +7 -0
- package/dist-server/service/checklist/checklist-query.js +83 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -13
- package/dist-server/service/checklist/checklist-type.js +1 -49
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +28 -3
- package/dist-server/service/checklist/checklist.js +89 -15
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +1 -2
- package/dist-server/service/checklist/index.js +1 -2
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
- package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -1
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +2 -5
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +13 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +9 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +22 -2
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +2 -5
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
- package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template/index.js +9 -0
- package/dist-server/service/construction-checklist-template/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +60 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template-item/index.js +9 -0
- package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js +50 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/index.d.ts +8 -1
- package/dist-server/service/index.js +38 -3
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +5 -6
- package/dist-server/service/issue/issue-mutation.js.map +1 -1
- package/dist-server/service/issue/issue-query.d.ts +2 -2
- package/dist-server/service/issue/issue-query.js +5 -11
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/project-checklist/index.d.ts +5 -0
- package/dist-server/service/project-checklist/index.js +9 -0
- package/dist-server/service/project-checklist/index.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js +109 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
- package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
- package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
- package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
- package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
- package/dist-server/service/project-checklist/project-checklist.js +90 -0
- package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
- package/dist-server/service/project-checklist-item/index.d.ts +4 -0
- package/dist-server/service/project-checklist-item/index.js +9 -0
- package/dist-server/service/project-checklist-item/index.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +17 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js +82 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
- package/dist-server/service/project-report/project-report-mutation.js +5 -6
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
- package/dist-server/service/project-report/project-report-query.d.ts +2 -2
- package/dist-server/service/project-report/project-report-query.js +5 -11
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -2
- package/dist-server/service/project-report/project-report.js +0 -6
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +5 -6
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
- package/dist-server/service/supervisor/supervisor-query.js +5 -11
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/things-factory.config.js +9 -1
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
- package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
- package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection-grid-detail.js","sourceRoot":"","sources":["../../../client/pages/building-inspection-grid/building-inspection-grid-detail.ts"],"names":[],"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xC,aAAa,CAAC,iCAAiC,CAAC;GACpC,4BAA4B,CA+4BxC","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@material/web/button/elevated-button.js'\nimport '@material/web/textfield/outlined-text-field.js'\nimport '@material/web/button/outlined-button.js'\n\nimport { PageView } from '@operato/shell'\nimport { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'\nimport { css, html } from 'lit'\nimport { customElement, state, query } from 'lit/decorators.js'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { client } from '@operato/graphql'\nimport gql from 'graphql-tag'\nimport { notify, openPopup } from '@operato/layout'\n\nimport './component/notice-comment-popup'\nimport './component/grid-inspection-create-popup'\nimport { BUILDING_INSPECTION_STATUS_DISPLAY, BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\nimport { ChecklistMode } from '../checklist/checklist-view'\nimport { verifyBiometric } from '@things-factory/auth-base/dist-client'\nimport { OxPrompt } from '@operato/popup'\nimport './component/plan-preview-popup'\n\n@customElement('building-inspection-grid-detail')\nexport class BuildingInspectionGridDetail extends ScopedElementsMixin(PageView) {\n static styles = [\n css`\n :host {\n display: grid;\n grid-template-rows: 75px auto;\n color: #4e5055;\n\n width: 100%;\n background-color: #f7f7f7;\n overflow-y: auto;\n\n --grid-record-emphasized-background-color: red;\n --grid-record-emphasized-color: yellow;\n }\n\n md-filled-button {\n --md-filled-button-container-color: #0595e5;\n --md-filled-button-container-height: 30px;\n --md-filled-button-trailing-space: 15px;\n --md-filled-button-leading-space: 15px;\n }\n md-filled-button[update] {\n --md-filled-button-container-color: #42b382;\n }\n md-filled-button[apply-to-all] {\n --md-filled-button-container-color: #aaa;\n }\n md-outlined-button {\n color: #586878;\n font-weight: bold;\n --md-outlined-button-label-text-size: 13px;\n --md-outlined-button-container-height: 30px;\n --md-outlined-button-trailing-space: 15px;\n --md-outlined-button-leading-space: 15px;\n }\n md-filled-select {\n width: auto;\n min-width: 150px;\n --md-filled-select-text-field-container-color: transparent;\n --md-filled-select-text-field-active-indicator-color: #999;\n --md-filled-select-text-field-input-text-size: 14px;\n --md-filled-select-text-field-input-text-weight: bold;\n --md-filled-select-text-field-input-text-line-height: 6px;\n }\n md-filled-select[level] {\n min-width: 110px;\n margin-left: 20px;\n }\n\n md-icon[request],\n md-icon[pass],\n md-icon[fail] {\n width: 20px;\n height: 20px;\n margin-right: 4px;\n border-radius: 5px;\n font-size: 21px;\n font-weight: 700;\n color: #fff;\n }\n md-icon[request] {\n background-color: #4e5055;\n }\n md-icon[pass] {\n background-color: #4bbb4a;\n }\n md-icon[fail] {\n background-color: #ff4444;\n }\n\n *[bold] {\n font-weight: bold;\n }\n\n div[header] {\n display: flex;\n margin: 0px 20px;\n\n h2 {\n flex: 0.5;\n color: #3f71a0;\n }\n\n div[button-container] {\n display: flex;\n align-items: center;\n justify-content: end;\n flex: 0.5;\n\n md-elevated-button {\n margin: 0px 3px;\n\n --md-elevated-button-container-height: 35px;\n --md-elevated-button-label-text-size: 16px;\n --md-elevated-button-container-color: #0595e5;\n\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n }\n }\n\n div[body] {\n display: grid;\n grid-template-columns: 1fr 200px;\n margin: 0px 25px 25px 25px;\n gap: 10px;\n min-height: fit-content;\n\n h3 {\n color: #2e79be;\n font-size: 18px;\n margin: 0px;\n }\n\n & > div {\n display: flex;\n gap: 10px;\n border-radius: 5px;\n }\n\n div[left] {\n flex-direction: column;\n\n div[select] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #2ea4df1a;\n border: 1px solid #2ea4df33;\n font-size: 18px;\n padding: 7px 10px;\n border-radius: 5px;\n gap: 12px;\n\n & > div[state] {\n display: flex;\n font-size: 15px;\n margin-right: 12px;\n gap: 10px;\n\n & > span {\n display: flex;\n align-items: center;\n margin-left: 15px;\n gap: 2px;\n }\n }\n }\n\n div[drawing] {\n width: 100%;\n background-color: #ffffff;\n border: 1px solid #cccccc;\n border-radius: 5px;\n position: relative;\n }\n\n img {\n width: 100%;\n background-size: contain;\n }\n\n div[grid] {\n display: flex;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 1px #ccc solid;\n justify-content: space-between;\n\n & > div[row] {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex: 1;\n\n & > div[column] {\n flex: 1;\n border: dashed 1px #2ea4df99;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n }\n\n div[row='1'] div[column] {\n border-left: none !important;\n }\n div[row]:last-of-type div[column] {\n border-right: none !important;\n }\n div[column='1'] {\n border-top: none !important;\n }\n div[column]:last-of-type {\n border-bottom: none !important;\n }\n\n div[cell] {\n &[status='WAIT'],\n &[status='REQUEST'],\n &[status='OVERALL_WAIT'],\n &[status='OVERALL_REQUEST'],\n &[status='PASS'],\n &[status='FAIL'] {\n background-color: #2ea4df1a;\n }\n\n &[active] {\n background-color: #2ea4df99;\n }\n }\n }\n }\n\n div[right] {\n flex-direction: column;\n gap: 15px;\n\n & > div {\n background-color: #ffffff;\n border: 1px solid #cccccc80;\n padding: 11px 12px 15px 12px;\n border-radius: 5px;\n }\n\n div[top] {\n div[content] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 5px;\n align-items: center;\n margin-top: 8px;\n justify-content: space-between;\n\n span {\n display: flex;\n align-items: center;\n min-width: 55px;\n }\n }\n }\n\n div[bottom] {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 10px;\n\n & > div {\n display: flex;\n flex-direction: column;\n gap: 9px;\n\n hr {\n border: 1px #cccccc dashed;\n width: 100%;\n margin: 0;\n }\n }\n\n div[view] {\n flex: 1;\n\n div[status] {\n display: flex;\n align-items: center;\n margin-bottom: 7px;\n }\n\n div[date],\n div[manager] {\n font-size: 14px;\n }\n }\n\n div[edit] {\n flex: 1;\n }\n\n md-elevated-button {\n --md-elevated-button-container-color: #fafafa;\n\n --md-elevated-button-label-text-color: #586878;\n --md-elevated-button-hover-label-text-color: #586878;\n --md-elevated-button-pressed-label-text-color: #586878;\n --md-elevated-button-focus-label-text-color: #586878;\n --md-elevated-button-icon-color: #586878;\n --md-elevated-button-hover-icon-color: #586878;\n --md-elevated-button-pressed-icon-color: #586878;\n --md-elevated-button-focus-icon-color: #586878;\n }\n }\n }\n }\n `\n ]\n\n get context() {\n return {\n title: '층별 시공검측 상세 정보'\n }\n }\n\n private defaultProject = {\n name: '',\n buildingComplex: {\n buildings: []\n }\n }\n @state() project: any = { ...this.defaultProject }\n @state() buildingInspections: any = []\n @state() buildingInspectionSummaryOfProject: any = {}\n @state() buildingInspectionSummaryOfBuildingLevel: any = {}\n @state() selectedBuilding: any = {}\n @state() selectedLevel: any = {}\n @state() selectedInspection: any = {}\n @state() cell: string = ''\n\n @query('md-filled-select[building]') htmlSelectBuilding\n @query('md-filled-select[level]') htmlSelectLevel\n\n render() {\n // 그리드 가로, 세로 길이 배열 생성\n const planXScale = Array.from({ length: this.project?.buildingComplex?.planXScale || 0 }, (_, i) => i)\n const planYScale = Array.from({ length: this.project?.buildingComplex?.planYScale || 0 }, (_, i) => i)\n\n return html`\n <div header>\n <h2>${this.project.name} ${this.selectedBuilding?.name} ${this.selectedLevel?.floorDisplayName}층</h2>\n <div button-container>\n <md-elevated-button href=${`project-update/${this.project.id}`}>\n <md-icon slot=\"icon\">assignment</md-icon>프로젝트 정보 수정\n </md-elevated-button>\n <md-elevated-button href=${`project-plan-management/${this.project.id}`}>\n <md-icon slot=\"icon\">description</md-icon>도면 관리\n </md-elevated-button>\n <md-elevated-button @click=${this._openPlanPreviewPopup}>\n <md-icon slot=\"icon\">folder_eye</md-icon>추가 도면 보기\n </md-elevated-button>\n </div>\n </div>\n\n <div body>\n <div left>\n <div select>\n <div>\n <md-filled-select building @change=${this._onSelectBuilding}>\n ${this.project?.buildingComplex?.buildings?.map(building => {\n const selected = building.id === this.selectedBuilding?.id\n\n return html` <md-select-option ?selected=${selected} .value=${building.id}>\n <div slot=\"headline\">${building.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <md-filled-select level @change=${this._onSelectBuildingLevel}>\n ${this.selectedBuilding?.buildingLevels?.map(level => {\n const selected = level.id === this.selectedLevel.id\n\n return html`<md-select-option ?selected=${selected} .value=${level.id}>\n <div slot=\"headline\">${level.floor}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n\n <div state>\n <span>\n <md-icon request slot=\"icon\">frame_inspect</md-icon> 검측대기\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.WAIT.toLowerCase()]}</span>\n </span>\n <span>\n <md-icon request slot=\"icon\">exclamation</md-icon> 검측요청\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.REQUEST.toLowerCase()]}</span>\n </span>\n <span>\n <md-icon pass slot=\"icon\">check</md-icon> 합격\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.PASS.toLowerCase()]}</span>\n </span>\n <span>\n <md-icon fail slot=\"icon\">close</md-icon> 불합격\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.FAIL.toLowerCase()]}</span>\n </span>\n </div>\n </div>\n\n <div drawing>\n <img src=${this.selectedLevel?.mainDrawingImage || '/assets/images/img-drawing-default.png'} />\n\n <div grid>\n ${planXScale.map(\n v =>\n html` <div row=${v}>\n ${planYScale.map(vv => {\n const buildingInspection = this.buildingInspections.find(i => i.cellX === v && i.cellY === vv)\n const status = buildingInspection?.status || ''\n\n return html`<div\n column=${vv}\n cell=${`${v},${vv}`}\n buildingInspectionId=${buildingInspection?.id}\n status=${status}\n @click=${this._onClickGrid}\n >\n ${this._getIconHtmlByStatus(status)}\n </div>`\n })}\n </div>`\n )}\n </div>\n </div>\n </div>\n\n <div right>\n <div top bold>\n <div>신규 등록 현황</div>\n <div content>\n <span>\n <md-icon request slot=\"icon\">frame_inspect</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.WAIT.toLowerCase()]}\n </span>\n <span>\n <md-icon request slot=\"icon\">exclamation</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.REQUEST.toLowerCase()]}\n </span>\n <span>\n <md-icon pass slot=\"icon\">check</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.PASS.toLowerCase()]}\n </span>\n <span>\n <md-icon fail slot=\"icon\">close</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.FAIL.toLowerCase()]}\n </span>\n </div>\n </div>\n\n <div bottom>\n <div name bold>층별 공지사항</div>\n <md-elevated-button @click=${e => this._onClicPopupNotice()}>\n 공지사항 확인하기(${this.selectedLevel?.noticeCount || 0})\n </md-elevated-button>\n\n <div name bold>시공검측 세부사항</div>\n ${html`\n <div view>\n <div status>\n ${this._getIconHtmlByStatus(this.selectedInspection.status)}\n <span bold> ${BUILDING_INSPECTION_STATUS_DISPLAY[this.selectedInspection.status]}</span>\n </div>\n\n <div>\n <div date>공종 : ${this.selectedInspection?.checklist?.constructionType || ''}</div>\n </div>\n\n <hr />\n\n <div>\n <div date>세부 공종 : ${this.selectedInspection?.checklist?.constructionDetailType || ''}</div>\n </div>\n\n <hr />\n <div>\n <div date>검측일 : ${this.selectedInspection.requestDate}</div>\n </div>\n\n <hr />\n\n <div manager>\n 담당자 : ${this.selectedInspection?.manager?.name} <br />\n ${this.selectedInspection?.manager?.phone}\n </div>\n <hr />\n </div>\n\n <!-- 전층 동일 적용 버튼 -->\n ${this.selectedInspection.status\n ? html`<md-filled-button apply-to-all @click=${() => this._onClickApplyToAll()}>전층 동일 적용</md-filled-button>`\n : html``}\n\n <!-- 검측 정보 등록, 수정 버튼 -->\n ${!this.cell || this.selectedInspection.status == BuildingInspectionStatus.PASS\n ? html``\n : !this.selectedInspection.status\n ? html`<md-outlined-button @click=${() => this._onClickCreateInspection()}>검측 정보 등록 </md-outlined-button>`\n : html`<md-filled-button update @click=${() => this._onClickUpdateInspection()}\n >검측 정보 수정\n </md-filled-button> `}\n `}\n </div>\n </div>\n </div>\n `\n }\n\n async pageInitialized(lifecycle: PageLifecycle) {}\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n const params: any = lifecycle.params\n await this.initProject(lifecycle.resourceId, params.buildingId, params.levelId)\n }\n }\n\n async initProject(projectId: string = '', buildingId: string = '', levelId: string = '') {\n const response = await client.query({\n query: gql`\n query Project(\n $id: String!\n $projectId: String!\n $buildingLevelId: String!\n $params: BuildingInspectionsOfBuildingLevel!\n ) {\n project(id: $id) {\n id\n name\n buildingComplex {\n id\n planXScale\n planYScale\n overallConstructorEmails\n taskConstructorEmails\n overallSupervisoryEmails\n taskSupervisoryEmails\n\n buildings {\n id\n name\n }\n }\n }\n\n buildingInspectionSummaryOfProject(projectId: $projectId) {\n wait\n request\n pass\n fail\n }\n\n buildingInspectionSummaryOfBuildingLevel(buildingLevelId: $buildingLevelId) {\n wait\n request\n pass\n fail\n }\n\n buildingInspectionsOfBuildingLevel(params: $params) {\n items {\n id\n cellX\n cellY\n status\n requestDate\n creator {\n id\n name\n }\n }\n }\n }\n `,\n variables: {\n id: projectId,\n projectId: projectId,\n buildingLevelId: levelId,\n params: { buildingLevelId: levelId }\n }\n })\n\n if (response.errors) return\n\n this.project = response.data?.project\n this.buildingInspections = response.data?.buildingInspectionsOfBuildingLevel?.items\n this.buildingInspectionSummaryOfProject = response.data?.buildingInspectionSummaryOfProject\n this.buildingInspectionSummaryOfBuildingLevel = response.data?.buildingInspectionSummaryOfBuildingLevel\n\n // buildingId 파라미터가 있으면 선택된 빌딩, 없으면 첫번째 빌딩 선택\n this.selectedBuilding = buildingId\n ? this.project?.buildingComplex?.buildings?.filter(v => v.id === buildingId)[0]\n : this.project?.buildingComplex?.buildings?.[0]\n\n // 선택된 동의 층 리스트 가져오기\n this.selectedBuilding = await this._getBuilding(this.selectedBuilding.id)\n\n // levelId 파라미터가 있으면 선택된 층, 없으면 첫번째 층 선택\n this.selectedLevel = levelId\n ? this.selectedBuilding?.buildingLevels?.filter(v => v.id === levelId)[0]\n : this.selectedBuilding?.buildingLevels?.[0]\n\n // 동, 층이 랜더링 된 후에 select를 위해 이 시점에서 랜더링\n this.selectedBuilding = await { ...this.selectedBuilding }\n\n // 기본 값 셋팅 select\n await this.htmlSelectBuilding.select(this.selectedBuilding.id)\n await this.htmlSelectLevel.select(this.selectedLevel.id)\n }\n\n async _getBuilding(buildingId: string = '') {\n const response = await client.query({\n query: gql`\n query Building($id: String!) {\n building(id: $id) {\n id\n name\n buildingLevels {\n id\n floor\n floorDisplayName\n noticeCount\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n }\n }\n }\n `,\n variables: {\n id: buildingId\n }\n })\n\n if (response.errors) return\n\n return response.data?.building || {}\n }\n\n async _getBuildingInspection(buildingInspectionId: string = '') {\n const response = await client.query({\n query: gql`\n query BuildingInspection($id: String!) {\n buildingInspection(id: $id) {\n id\n cellX\n cellY\n status\n requestDate\n\n checklist {\n id\n name\n constructionType\n constructionDetailType\n location\n inspectionParts\n documentNo\n constructionInspectionDate\n supervisorInspectionDate\n overallConstructorSignature\n taskConstructorSignature\n overallSupervisorySignature\n taskSupervisorySignature\n\n checklistItems {\n id\n name\n sequence\n mainType\n detailType\n inspctionCriteria\n constructionConfirmStatus\n supervisoryConfirmStatus\n checklistItemCommentCount\n checklistItemAttachmentCount\n }\n }\n\n manager {\n userId\n name\n }\n }\n }\n `,\n variables: {\n id: buildingInspectionId\n }\n })\n\n if (response.errors) return\n\n return response.data?.buildingInspection || {}\n }\n\n private async _onSelectBuilding(e) {\n const buildingId = e.target.value\n this.selectedBuilding = await this._getBuilding(buildingId)\n this.selectedLevel = { ...this.selectedBuilding?.buildingLevels?.[0] }\n\n this.refresh()\n }\n\n private _onSelectBuildingLevel(e) {\n // SELECT event는 target, 팝업 Close는 detail\n const buildingLevelId = e?.target?.value || e.detail.buildingLevelId\n this.selectedLevel = {\n ...(this.selectedBuilding?.buildingLevels?.find(v => v.id == buildingLevelId) || {})\n }\n\n this.refresh()\n }\n\n private async _onClickGrid(e) {\n const target = e.currentTarget\n const buildingInspectionId = target.getAttribute('buildingInspectionId')\n const cell = target.getAttribute('cell')\n\n // active 속성 모두 제거후 클릭한 셀만 active로 변경\n this.shadowRoot?.querySelectorAll('div[cell][active]').forEach(e => e.removeAttribute('active'))\n target.setAttribute('active', true)\n\n const [cellX, cellY] = cell.split(',')\n this.selectedInspection = buildingInspectionId ? await this._getBuildingInspection(buildingInspectionId) : { cellX, cellY }\n\n this.cell = cell\n }\n\n private _onClicPopupNotice() {\n openPopup(\n html`<notice-comment-popup\n .buildingLevelId=${this.selectedLevel.id}\n .title=${`${this.selectedBuilding?.name} ${this.selectedLevel?.floor}층 공지사항`}\n @change-comment=${(e: CustomEvent) => {\n if (e.detail.type === 'create') {\n this.selectedLevel.noticeCount++ // 코멘트 카운트 + 1\n } else if (e.detail.type === 'delete') {\n this.selectedLevel.noticeCount-- // 코멘트 카운트 - 1\n }\n\n this.requestUpdate()\n }}\n ></notice-comment-popup>`,\n { backdrop: true, size: 'medium', title: '층별 공지사항' }\n )\n }\n\n _onClickCreateInspection() {\n if (!this.cell) {\n notify({ message: '셀을 선택해주세요.' })\n return\n }\n\n openPopup(\n html`\n <grid-inspection-create-popup\n .projectId=${this.project.id}\n .selectedBuildingId=${this.selectedBuilding.id}\n .selectedBuildingLevelId=${this.selectedLevel.id}\n .cell=${this.cell}\n @requestRefresh=${async (e: CustomEvent) => {\n await this.refresh(e.detail.buildingInspectionId)\n }}\n ></grid-inspection-create-popup>\n `,\n { backdrop: true, size: 'large', title: '검측 요청서 등록' }\n )\n }\n\n _onClickUpdateInspection() {\n openPopup(\n html`\n <div style=\"overflow-y: auto; height: 100%;\">\n <checklist-view\n .mode=${ChecklistMode.EDITOR}\n .status=${this.selectedInspection.status}\n .checklist=${this.selectedInspection.checklist || {}}\n .buildingComplex=${this.project?.buildingComplex || {}}\n ></checklist-view>\n\n <div style=\"text-align: right; margin-right: 20px; margin-bottom: 15px\">\n <md-elevated-button\n ?disabled=${this.selectedInspection.status == BuildingInspectionStatus.PASS}\n @click=${this._onClickModifyChecklist.bind(this)}\n >\n <md-icon slot=\"icon\">assignment</md-icon>등록\n </md-elevated-button>\n </div>\n </div>\n `,\n { backdrop: true, size: 'large', title: '검측 요청서 수정' }\n )\n }\n\n async refresh(buildingInspectionId: string = '') {\n // 그리드, 서머리 정보 갱신\n await this.initProject(this.project.id, this.selectedBuilding.id, this.selectedLevel.id)\n // 선택된 검측 정보 갱신\n this.selectedInspection = buildingInspectionId ? await this._getBuildingInspection(buildingInspectionId) : {}\n }\n\n _getIconHtmlByStatus(status: string) {\n if (!status) return ''\n\n if (status == BuildingInspectionStatus.WAIT || status == BuildingInspectionStatus.OVERALL_WAIT) {\n return html`<md-icon request slot=\"icon\">frame_inspect</md-icon>`\n }\n\n if (status == BuildingInspectionStatus.REQUEST || status == BuildingInspectionStatus.OVERALL_REQUEST) {\n return html`<md-icon request slot=\"icon\">exclamation</md-icon>`\n }\n\n if (status == BuildingInspectionStatus.PASS) {\n return html`<md-icon pass slot=\"icon\">check</md-icon>`\n }\n\n return html`<md-icon fail slot=\"icon\">close</md-icon>`\n }\n\n private _onClickModifyChecklist() {\n this.validateChecklist(this.selectedInspection.checklist)\n }\n\n private async validateChecklist(checklist: any) {\n try {\n const result = await verifyBiometric()\n if (result.verified) {\n console.log('Verification successful. Proceeding with sensitive action.')\n } else {\n notify({ message: 'Verification failed:' + result.message })\n return\n }\n } catch (error) {\n notify({ message: 'Error during biometric verification:' + error })\n return\n }\n\n const response = await client.mutate({\n mutation: gql`\n mutation UpdateBuildingInspectionChecklist($buildingInspection: UpdateBuildingInspectionSubmitType!) {\n updateBuildingInspectionChecklist(buildingInspection: $buildingInspection)\n }\n `,\n variables: {\n buildingInspection: {\n id: this.selectedInspection.id,\n checklist: {\n id: checklist.id,\n overallConstructorSignature: checklist.overallConstructorSignature,\n taskConstructorSignature: checklist.taskConstructorSignature,\n overallSupervisorySignature: checklist.overallSupervisorySignature,\n taskSupervisorySignature: checklist.taskSupervisorySignature\n },\n checklistItem: checklist.checklistItems.map(item => ({\n id: item.id,\n constructionConfirmStatus: item.constructionConfirmStatus,\n supervisoryConfirmStatus: item.supervisoryConfirmStatus\n }))\n }\n }\n })\n\n if (!response.errors) {\n notify({ message: '검측 요청서를 등록하였습니다.' })\n this.refresh(this.selectedInspection.id)\n history.back()\n } else {\n notify({ message: response.errors?.[0]?.message || '검측 요청서 등록에 실패하였습니다.', level: 'error' })\n }\n }\n\n async _onClickApplyToAll() {\n if (\n (await OxPrompt.open({\n title: '전층 동일 적용',\n text: '해당 검측을 전층에 동일하게 적용 하시겠습니까?',\n confirmButton: { text: '확인' },\n cancelButton: { text: '취소' }\n })) === false\n ) {\n return\n }\n\n const response = await client.mutate({\n mutation: gql`\n mutation ApplyToAllBuildingInspection($buildingInspectionId: String!) {\n applyToAllBuildingInspection(buildingInspectionId: $buildingInspectionId)\n }\n `,\n variables: {\n buildingInspectionId: this.selectedInspection.id\n }\n })\n\n if (!response.errors) {\n notify({ message: '전층 동일 적용 완료' })\n this.refresh(this.selectedInspection.id)\n } else {\n notify({ message: response.errors?.[0]?.message || '전층 동일 적용에 실패하였습니다.', level: 'error' })\n }\n }\n\n _openPlanPreviewPopup() {\n openPopup(html`<plan-preview-popup .buildingLevelId=${this.selectedLevel.id}></plan-preview-popup>`, {\n backdrop: true,\n size: 'large',\n title: '추가 도면 보기'\n })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"building-inspection-grid-detail.js","sourceRoot":"","sources":["../../../client/pages/building-inspection-grid/building-inspection-grid-detail.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,yCAAyC,CAAA;AAChD,OA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqXF;CACF,AAvXY,CAuXZ;AAcQ;IAAR,KAAK,EAAE;;6DAA0C;AACzC;IAAR,KAAK,EAAE;;yEAA8B;AAC7B;IAAR,KAAK,EAAE;;uEAA8C;AAC7C;IAAR,KAAK,EAAE;;wFAA6C;AAC5C;IAAR,KAAK,EAAE;;8FAAmD;AAClD;IAAR,KAAK,EAAE;;sEAA2B;AAC1B;IAAR,KAAK,EAAE;;mEAAwB;AACvB;IAAR,KAAK,EAAE;;wEAA6B;AAC5B;IAAR,KAAK,EAAE;;0DAAkB;AAEjB;IAAR,KAAK,EAAE;;+DAIgC;AAEH;IAApC,KAAK,CAAC,4BAA4B,CAAC;;wEAAmB;AACrB;IAAjC,KAAK,CAAC,yBAAyB,CAAC;;qEAAgB;AAC1B;IAAtB,KAAK,CAAC,cAAc,CAAC;8BAAoB,cAAc;sEAAA;AAxZ7C,4BAA4B;IADxC,aAAa,CAAC,iCAAiC,CAAC;GACpC,4BAA4B,CAqlCxC","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@material/web/button/elevated-button.js'\nimport '@material/web/textfield/outlined-text-field.js'\nimport '@material/web/button/outlined-button.js'\n\nimport { PageView } from '@operato/shell'\nimport { PageLifecycle } from '@operato/shell/dist/src/app/pages/page-view'\nimport { css, html } from 'lit'\nimport { customElement, state, query } from 'lit/decorators.js'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { client } from '@operato/graphql'\nimport gql from 'graphql-tag'\nimport { notify, openPopup } from '@operato/layout'\nimport './component/notice-comment-popup'\nimport './component/grid-inspection-create-popup'\nimport { BUILDING_INSPECTION_STATUS_DISPLAY, BUILDING_INSPECTION_RE_STATUS_DISPLAY, BuildingInspectionStatus } from '../building-inspection/building-inspection-list'\nimport '../checklist/inspection-tab-popup'\nimport { verifyBiometric } from '@things-factory/auth-base/dist-client'\nimport { OxPrompt } from '@operato/popup'\nimport './component/plan-preview-popup'\nimport './component/grid-inspection-list-layer'\n\n@customElement('building-inspection-grid-detail')\nexport class BuildingInspectionGridDetail extends ScopedElementsMixin(PageView) {\n static styles = [\n css`\n :host {\n display: grid;\n grid-template-rows: 75px auto;\n color: #4e5055;\n\n width: 100%;\n background-color: #f7f7f7;\n overflow-y: auto;\n\n --grid-record-emphasized-background-color: red;\n --grid-record-emphasized-color: yellow;\n }\n\n md-filled-button {\n --md-filled-button-container-color: #0595e5;\n --md-filled-button-container-height: 30px;\n --md-filled-button-trailing-space: 15px;\n --md-filled-button-leading-space: 15px;\n }\n md-filled-button[update] {\n --md-filled-button-container-color: #42b382;\n }\n md-filled-button[apply-to-all] {\n --md-filled-button-container-color: #aaa;\n }\n md-filled-button[delete] {\n --md-filled-button-container-color: #ff4444;\n }\n md-outlined-button {\n color: #586878;\n font-weight: bold;\n --md-outlined-button-label-text-size: 13px;\n --md-outlined-button-container-height: 30px;\n --md-outlined-button-trailing-space: 15px;\n --md-outlined-button-leading-space: 15px;\n }\n md-filled-select {\n width: auto;\n min-width: 150px;\n --md-filled-select-text-field-container-color: transparent;\n --md-filled-select-text-field-active-indicator-color: #999;\n --md-filled-select-text-field-input-text-size: 14px;\n --md-filled-select-text-field-input-text-weight: bold;\n --md-filled-select-text-field-input-text-line-height: 6px;\n }\n md-filled-select[level] {\n min-width: 110px;\n margin-left: 20px;\n }\n\n md-icon[request],\n md-icon[pass],\n md-icon[fail] {\n width: 20px;\n height: 20px;\n margin-right: 4px;\n border-radius: 5px;\n font-size: 21px;\n font-weight: 700;\n color: #fff;\n }\n md-icon[request] {\n background-color: #4e5055;\n }\n md-icon[pass] {\n background-color: #4bbb4a;\n }\n md-icon[fail] {\n background-color: #ff4444;\n }\n\n *[bold] {\n font-weight: bold;\n }\n\n div[header] {\n display: flex;\n margin: 0px 20px;\n\n h2 {\n display: flex;\n gap: 7px;\n flex: 0.5;\n color: #3f71a0;\n font-size: 18px;\n\n md-icon[back] {\n background: linear-gradient(135deg, #3f71a0 0%, #5a8cc7 100%);\n color: white;\n padding: 8px;\n border-radius: 50%;\n cursor: pointer;\n box-shadow: 0 2px 8px rgba(63, 113, 160, 0.3);\n width: 14px;\n height: 14px;\n --md-icon-size: 20px;\n }\n\n md-icon[back]:hover {\n background: linear-gradient(135deg, #2e5c89 0%, #4a7bb0 100%);\n box-shadow: 0 4px 12px rgba(63, 113, 160, 0.4);\n }\n }\n\n div[button-container] {\n display: flex;\n align-items: center;\n justify-content: end;\n flex: 0.5;\n\n md-elevated-button {\n margin: 0px 3px;\n\n --md-elevated-button-container-height: 35px;\n --md-elevated-button-label-text-size: 16px;\n --md-elevated-button-container-color: #0595e5;\n\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n }\n }\n\n div[body] {\n display: grid;\n grid-template-columns: 1fr 200px;\n margin: 0px 25px 25px 25px;\n gap: 10px;\n min-height: fit-content;\n\n h3 {\n color: #2e79be;\n font-size: 18px;\n margin: 0px;\n }\n\n & > div {\n display: flex;\n gap: 10px;\n border-radius: 5px;\n }\n\n div[left] {\n flex-direction: column;\n\n div[select] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #2ea4df1a;\n border: 1px solid #2ea4df33;\n font-size: 18px;\n padding: 7px 10px;\n border-radius: 5px;\n gap: 12px;\n\n & > div[state] {\n display: flex;\n font-size: 15px;\n margin-right: 12px;\n gap: 10px;\n\n & > span {\n display: flex;\n align-items: center;\n margin-left: 15px;\n gap: 2px;\n }\n }\n }\n\n div[drawing] {\n width: 100%;\n background-color: #ffffff;\n border: 1px solid #cccccc;\n border-radius: 5px;\n position: relative;\n }\n\n img {\n width: 100%;\n background-size: contain;\n }\n\n div[grid] {\n display: flex;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 1px #ccc solid;\n justify-content: space-between;\n\n & > div[row] {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex: 1;\n\n & > div[column] {\n flex: 1;\n border: dashed 1px #2ea4df99;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n }\n }\n\n div[row='1'] div[column] {\n border-left: none !important;\n }\n div[row]:last-of-type div[column] {\n border-right: none !important;\n }\n div[column='1'] {\n border-top: none !important;\n }\n div[column]:last-of-type {\n border-bottom: none !important;\n }\n\n div[cell] {\n &[status='WAIT'],\n &[status='REQUEST'],\n &[status='OVERALL_WAIT'],\n &[status='OVERALL_REQUEST'],\n &[status='PASS'],\n &[status='FAIL'] {\n background-color: #2ea4df1a;\n }\n\n &[active] {\n background-color: #2ea4df99;\n }\n }\n }\n }\n\n div[right] {\n flex-direction: column;\n gap: 15px;\n\n & > div {\n background-color: #ffffff;\n border: 1px solid #cccccc80;\n padding: 11px 12px 15px 12px;\n border-radius: 5px;\n }\n\n div[top] {\n div[content] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 5px;\n align-items: center;\n margin-top: 8px;\n justify-content: space-between;\n\n span {\n display: flex;\n align-items: center;\n min-width: 55px;\n }\n }\n }\n\n div[bottom] {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 10px;\n\n & > div {\n display: flex;\n flex-direction: column;\n gap: 9px;\n\n hr {\n border: 1px #cccccc dashed;\n width: 100%;\n margin: 0;\n }\n }\n\n div[view] {\n flex: 1;\n\n div[status] {\n display: flex;\n align-items: center;\n margin-bottom: 7px;\n }\n\n div[date],\n div[manager] {\n font-size: 14px;\n }\n }\n\n div[edit] {\n flex: 1;\n }\n\n md-elevated-button {\n --md-elevated-button-container-color: #fafafa;\n\n --md-elevated-button-label-text-color: #586878;\n --md-elevated-button-hover-label-text-color: #586878;\n --md-elevated-button-pressed-label-text-color: #586878;\n --md-elevated-button-focus-label-text-color: #586878;\n --md-elevated-button-icon-color: #586878;\n --md-elevated-button-hover-icon-color: #586878;\n --md-elevated-button-pressed-icon-color: #586878;\n --md-elevated-button-focus-icon-color: #586878;\n }\n }\n }\n }\n\n .attachment-info {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n gap: 5px;\n flex-direction: column;\n align-items: flex-start;\n }\n\n .attachment-count {\n font-size: 14px;\n color: #586878;\n }\n .cell-count {\n position: absolute;\n top: 4px;\n right: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n justify-self: anchor-center;\n align-self: anchor-center;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid #cccccc;\n border-radius: 50%;\n font-weight: 700;\n font-size: 13px;\n line-height: 1;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);\n }\n .cell-count.green {\n color: #2e7d32;\n border-color: #4bbb4a;\n }\n .cell-count.red {\n color: #b71c1c;\n border-color: #ff4444;\n }\n .cell-count.black {\n color: #333333;\n border-color: #4e5055;\n }\n `\n ]\n\n get context() {\n return {\n title: '층별 시공검측 상세 정보'\n }\n }\n\n private defaultProject = {\n name: '',\n buildingComplex: {\n buildings: []\n }\n }\n @state() project: any = { ...this.defaultProject }\n @state() buildingInspections: any = []\n @state() cellToInspections: Record<string, any[]> = {}\n @state() buildingInspectionSummaryOfProject: any = {}\n @state() buildingInspectionSummaryOfBuildingLevel: any = {}\n @state() selectedBuilding: any = {}\n @state() selectedLevel: any = {}\n @state() selectedInspection: any = {}\n @state() cell: string = ''\n\n @state() listLayer: {\n open: boolean\n cell: string\n items: any[]\n } = { open: false, cell: '', items: [] }\n\n @query('md-filled-select[building]') htmlSelectBuilding\n @query('md-filled-select[level]') htmlSelectLevel\n @query('div[drawing]') drawingContainer!: HTMLDivElement\n\n render() {\n // 그리드 가로, 세로 길이 배열 생성\n const planXScale = Array.from({ length: this.project?.buildingComplex?.planXScale || 0 }, (_, i) => i)\n const planYScale = Array.from({ length: this.project?.buildingComplex?.planYScale || 0 }, (_, i) => i)\n\n return html`\n <div header>\n <h2>\n <md-icon slot=\"icon\" back @click=${() => history.back()}>arrow_back</md-icon>\n ${this.project.name} ${this.selectedBuilding?.name} ${this.selectedLevel?.floorDisplayName}층\n </h2>\n <div button-container>\n <md-elevated-button href=${`project-update/${this.project.id}`}>\n <md-icon slot=\"icon\">assignment</md-icon>프로젝트 정보 수정\n </md-elevated-button>\n <md-elevated-button href=${`project-plan-management/${this.project.id}`}>\n <md-icon slot=\"icon\">description</md-icon>도면 관리\n </md-elevated-button>\n <md-elevated-button @click=${this._openPlanPreviewPopup}>\n <md-icon slot=\"icon\">folder_eye</md-icon>추가 도면 보기\n </md-elevated-button>\n </div>\n </div>\n\n <div body>\n <div left>\n <div select>\n <div>\n <md-filled-select building @change=${this._onSelectBuilding}>\n ${this.project?.buildingComplex?.buildings?.map(building => {\n const selected = building.id === this.selectedBuilding?.id\n\n return html` <md-select-option ?selected=${selected} .value=${building.id}>\n <div slot=\"headline\">${building.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <md-filled-select level @change=${this._onSelectBuildingLevel}>\n ${this.selectedBuilding?.buildingLevels?.map(level => {\n const selected = level.id === this.selectedLevel.id\n\n return html`<md-select-option ?selected=${selected} .value=${level.id}>\n <div slot=\"headline\">${level.floor}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n\n <div state>\n <span>\n <md-icon request slot=\"icon\">frame_inspect</md-icon> 검측대기\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.WAIT.toLowerCase()]}</span>\n </span>\n <span>\n <md-icon request slot=\"icon\">exclamation</md-icon> 검측요청\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.REQUEST.toLowerCase()]}</span>\n </span>\n <span>\n <md-icon pass slot=\"icon\">check</md-icon> 합격\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.PASS.toLowerCase()]}</span>\n </span>\n <span>\n <md-icon fail slot=\"icon\">close</md-icon> 불합격\n <span bold>${this.buildingInspectionSummaryOfProject[BuildingInspectionStatus.FAIL.toLowerCase()]}</span>\n </span>\n </div>\n </div>\n\n <div drawing>\n <img src=${this.selectedLevel?.mainDrawingImage || '/assets/images/img-drawing-default.png'} />\n\n <div grid>\n ${planXScale.map(\n v =>\n html` <div row=${v}>\n ${planYScale.map(vv => {\n const cellKey = `${v},${vv}`\n const inspections = this.cellToInspections[cellKey] || []\n const count = inspections.length\n let countClass = ''\n if (count > 0) {\n const allPass = inspections.every(i => i.status === BuildingInspectionStatus.PASS)\n const anyFail = inspections.some(i => i.status === BuildingInspectionStatus.FAIL)\n countClass = allPass ? 'green' : anyFail ? 'red' : 'black'\n }\n\n return html`<div column=${vv} cell=${cellKey} @click=${this._onClickGrid}>\n ${count > 0 ? html`<span class=\"cell-count ${countClass}\">${count}</span>` : ''}\n </div>`\n })}\n </div>`\n )}\n </div>\n ${this.listLayer.open\n ? html`<grid-inspection-list-layer\n .items=${this.listLayer.items}\n .anchorEl=${this._getCellElement(this.listLayer.cell)}\n .containerEl=${this.drawingContainer}\n @select=${this._onSelectListItem}\n @close=${this._closeListLayer}\n ></grid-inspection-list-layer>`\n : ''}\n </div>\n </div>\n\n <div right>\n <div top bold>\n <div>신규 등록 현황</div>\n <div content>\n <span>\n <md-icon request slot=\"icon\">frame_inspect</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.WAIT.toLowerCase()]}\n </span>\n <span>\n <md-icon request slot=\"icon\">exclamation</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.REQUEST.toLowerCase()]}\n </span>\n <span>\n <md-icon pass slot=\"icon\">check</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.PASS.toLowerCase()]}\n </span>\n <span>\n <md-icon fail slot=\"icon\">close</md-icon>\n ${this.buildingInspectionSummaryOfBuildingLevel[BuildingInspectionStatus.FAIL.toLowerCase()]}\n </span>\n </div>\n </div>\n\n <div bottom>\n <div name bold>층별 공지사항</div>\n <md-elevated-button @click=${e => this._onClicPopupNotice()}>\n 공지사항 확인하기(${this.selectedLevel?.noticeCount || 0})\n </md-elevated-button>\n\n <div name bold>시공검측 세부사항</div>\n ${html`\n <div view>\n <div status>\n ${this._getIconHtmlByStatus(this.selectedInspection.status)}\n <span bold> ${(this.selectedInspection.failCount > 0 ? BUILDING_INSPECTION_RE_STATUS_DISPLAY : BUILDING_INSPECTION_STATUS_DISPLAY)[this.selectedInspection.status]}</span>\n </div>\n\n <div>\n <div date>공종 : ${this.selectedInspection?.checklist?.constructionType || ''}</div>\n </div>\n\n <hr />\n\n <div>\n <div date>세부 공종 : ${this.selectedInspection?.checklist?.constructionDetailType || ''}</div>\n </div>\n\n <hr />\n\n <div>\n <div date>검측일 : ${this.selectedInspection.requestDate}</div>\n </div>\n\n <hr />\n\n <div manager>\n 담당자 : ${this.selectedInspection?.manager?.name} <br />\n ${this.selectedInspection?.manager?.phone}\n </div>\n\n <hr />\n\n ${this.selectedInspection.memo\n ? html`\n <div>\n <div date>메모 : ${this.selectedInspection.memo}</div>\n </div>\n <hr />\n `\n : html``}\n ${this.selectedInspection.attachments?.length > 0\n ? html`\n <div class=\"attachment-info\">\n <span class=\"attachment-count\">첨부파일: ${this.selectedInspection.attachments.length}개</span>\n <md-elevated-button @click=${() => this._onClickUpdateInspection(1)}>\n <md-icon slot=\"icon\">attach_file</md-icon>첨부파일 보기\n </md-elevated-button>\n </div>\n <hr />\n `\n : html``}\n </div>\n\n <!-- 전층 동일 적용 버튼 -->\n ${this.selectedInspection.status\n ? html`<md-filled-button apply-to-all @click=${() => this._onClickApplyToAll()}>전층 동일 적용</md-filled-button>`\n : html``}\n\n <!-- 검측 정보 등록, 수정 버튼 -->\n ${!this.cell\n ? html``\n : !this.selectedInspection.status\n ? html`<md-outlined-button @click=${() => this._onClickCreateInspection()}>검측 정보 등록 </md-outlined-button>`\n : this.selectedInspection.status == BuildingInspectionStatus.PASS\n ? html`<md-filled-button @click=${() => this._onClickUpdateInspection()}>검측 정보 보기 </md-filled-button> `\n : html`\n <md-filled-button update @click=${() => this._onClickUpdateInspection()}>\n 검측 정보 수정\n </md-filled-button>\n ${this.selectedInspection.status == BuildingInspectionStatus.WAIT\n ? html`<md-filled-button delete @click=${() => this._onClickDeleteInspection()}>\n 삭제\n </md-filled-button>`\n : html``}\n `}\n `}\n </div>\n </div>\n </div>\n `\n }\n\n async pageInitialized(lifecycle: PageLifecycle) {}\n\n async pageUpdated(changes: any, lifecycle: PageLifecycle) {\n if (this.active) {\n const params: any = lifecycle.params\n await this.initProject(lifecycle.resourceId, params.buildingId, params.levelId)\n }\n }\n\n async initProject(projectId: string = '', buildingId: string = '', levelId: string = '') {\n const response = await client.query({\n query: gql`\n query Project(\n $id: String!\n $projectId: String!\n $buildingLevelId: String!\n $params: BuildingInspectionsOfBuildingLevel!\n ) {\n project(id: $id) {\n id\n name\n projectType\n buildingComplex {\n id\n planXScale\n planYScale\n overallConstructorEmails\n taskConstructorEmails\n overallSupervisoryEmails\n taskSupervisoryEmails\n\n buildings {\n id\n name\n }\n }\n }\n\n buildingInspectionSummaryOfProject(projectId: $projectId) {\n wait\n request\n pass\n fail\n }\n\n buildingInspectionSummaryOfBuildingLevel(buildingLevelId: $buildingLevelId) {\n wait\n request\n pass\n fail\n }\n\n buildingInspectionsOfBuildingLevel(params: $params) {\n items {\n id\n cellX\n cellY\n status\n failCount\n requestDate\n checklist {\n constructionType\n constructionDetailType\n }\n creator {\n id\n name\n }\n }\n }\n }\n `,\n variables: {\n id: projectId,\n projectId: projectId,\n buildingLevelId: levelId,\n params: { buildingLevelId: levelId }\n }\n })\n\n if (response.errors) return\n\n this.project = response.data?.project\n this.buildingInspections = response.data?.buildingInspectionsOfBuildingLevel?.items\n this._groupInspectionsByCell()\n this.buildingInspectionSummaryOfProject = response.data?.buildingInspectionSummaryOfProject\n this.buildingInspectionSummaryOfBuildingLevel = response.data?.buildingInspectionSummaryOfBuildingLevel\n\n // buildingId 파라미터가 있으면 선택된 빌딩, 없으면 첫번째 빌딩 선택\n this.selectedBuilding = buildingId\n ? this.project?.buildingComplex?.buildings?.filter(v => v.id === buildingId)[0]\n : this.project?.buildingComplex?.buildings?.[0]\n\n // 선택된 동의 층 리스트 가져오기\n this.selectedBuilding = await this._getBuilding(this.selectedBuilding.id)\n\n // levelId 파라미터가 있으면 선택된 층, 없으면 첫번째 층 선택\n this.selectedLevel = levelId\n ? this.selectedBuilding?.buildingLevels?.filter(v => v.id === levelId)[0]\n : this.selectedBuilding?.buildingLevels?.[0]\n\n // 동, 층이 랜더링 된 후에 select를 위해 이 시점에서 랜더링\n this.selectedBuilding = await { ...this.selectedBuilding }\n\n // 기본 값 셋팅 select\n await this.htmlSelectBuilding.select(this.selectedBuilding.id)\n await this.htmlSelectLevel.select(this.selectedLevel.id)\n }\n\n async _getBuilding(buildingId: string = '') {\n const response = await client.query({\n query: gql`\n query Building($id: String!) {\n building(id: $id) {\n id\n name\n buildingLevels {\n id\n floor\n floorDisplayName\n noticeCount\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n }\n }\n }\n `,\n variables: {\n id: buildingId\n }\n })\n\n if (response.errors) return\n\n return response.data?.building || {}\n }\n\n async _getBuildingInspection(buildingInspectionId: string = '') {\n const response = await client.query({\n query: gql`\n query BuildingInspection($id: String!) {\n buildingInspection(id: $id) {\n id\n cellX\n cellY\n status\n failCount\n requestDate\n memo\n attachments {\n id\n }\n\n checklist {\n id\n name\n constructionType\n constructionDetailType\n location\n inspectionParts\n documentNo\n constructionInspectionDate\n supervisorInspectionDate\n overallConstructorSignature\n taskConstructorSignature\n overallSupervisorySignature\n taskSupervisorySignature\n\n checklistItems {\n id\n name\n sequence\n mainType\n detailType\n inspctionCriteria\n constructionConfirmStatus\n supervisoryConfirmStatus\n checklistItemCommentCount\n checklistItemAttachmentCount\n }\n }\n\n manager {\n userId\n name\n }\n }\n }\n `,\n variables: {\n id: buildingInspectionId\n }\n })\n\n if (response.errors) return\n\n return response.data?.buildingInspection || {}\n }\n\n private async _onSelectBuilding(e) {\n const buildingId = e.target.value\n this.selectedBuilding = await this._getBuilding(buildingId)\n this.selectedLevel = { ...this.selectedBuilding?.buildingLevels?.[0] }\n\n this.refresh()\n }\n\n private _onSelectBuildingLevel(e) {\n // SELECT event는 target, 팝업 Close는 detail\n const buildingLevelId = e?.target?.value || e.detail.buildingLevelId\n this.selectedLevel = {\n ...(this.selectedBuilding?.buildingLevels?.find(v => v.id == buildingLevelId) || {})\n }\n\n this.refresh()\n }\n\n private async _onClickGrid(e) {\n const target = e.currentTarget as HTMLElement\n const cell = target.getAttribute('cell')\n\n // active 속성 모두 제거후 클릭한 셀만 active로 변경\n this.shadowRoot?.querySelectorAll('div[cell][active]').forEach(el => el.removeAttribute('active'))\n target.setAttribute('active', 'true')\n\n const [cellX, cellY] = (cell || '').split(',')\n const items = this.cellToInspections[cell || ''] || []\n\n // 검측이 없으면 기존처럼 등록 가능하도록 선택만 처리\n if (items.length === 0) {\n this._closeListLayer()\n this.selectedInspection = { cellX, cellY }\n this.cell = cell || ''\n return\n }\n\n // 검측이 있으면 레이어 오픈\n this.cell = cell || ''\n this._openListLayer(target, items, this.cell)\n }\n\n private _onClicPopupNotice() {\n openPopup(\n html`<notice-comment-popup\n .buildingLevelId=${this.selectedLevel.id}\n .title=${`${this.selectedBuilding?.name} ${this.selectedLevel?.floor}층 공지사항`}\n @change-comment=${(e: CustomEvent) => {\n if (e.detail.type === 'create') {\n this.selectedLevel.noticeCount++ // 코멘트 카운트 + 1\n } else if (e.detail.type === 'delete') {\n this.selectedLevel.noticeCount-- // 코멘트 카운트 - 1\n }\n\n this.requestUpdate()\n }}\n ></notice-comment-popup>`,\n { backdrop: true, size: 'medium', title: '층별 공지사항' }\n )\n }\n\n _onClickCreateInspection() {\n if (!this.cell) {\n notify({ message: '셀을 선택해주세요.' })\n return\n }\n\n openPopup(\n html`\n <grid-inspection-create-popup\n .projectId=${this.project.id}\n .selectedBuildingId=${this.selectedBuilding.id}\n .selectedBuildingLevelId=${this.selectedLevel.id}\n .cell=${this.cell}\n @requestRefresh=${async (e: CustomEvent) => {\n await this.refresh(e.detail.buildingInspectionId)\n }}\n ></grid-inspection-create-popup>\n `,\n { backdrop: true, size: 'large', title: '검측 요청서 등록' }\n )\n }\n\n _onClickUpdateInspection(initialTab: number = 0) {\n openPopup(\n html`\n <inspection-tab-popup\n .selectedInspection=${this.selectedInspection}\n .project=${this.project}\n .initialTab=${initialTab}\n @modify-checklist=${(e: CustomEvent) => this.validateChecklist(e.detail.checklist)}\n @requestRefresh=${async (e: CustomEvent) => {\n await this.refresh(e.detail.buildingInspectionId)\n }}\n ></inspection-tab-popup>\n `,\n { backdrop: true, size: 'large', title: '검측 요청서 수정' }\n )\n }\n\n async refresh(buildingInspectionId: string = '') {\n // 그리드, 서머리 정보 갱신\n await this.initProject(this.project.id, this.selectedBuilding.id, this.selectedLevel.id)\n // 선택된 검측 정보 갱신\n this.selectedInspection = buildingInspectionId ? await this._getBuildingInspection(buildingInspectionId) : {}\n }\n\n _getIconHtmlByStatus(status: string) {\n if (!status) return ''\n\n if (status == BuildingInspectionStatus.WAIT || status == BuildingInspectionStatus.OVERALL_WAIT) {\n return html`<md-icon request slot=\"icon\">frame_inspect</md-icon>`\n }\n\n if (status == BuildingInspectionStatus.REQUEST || status == BuildingInspectionStatus.OVERALL_REQUEST) {\n return html`<md-icon request slot=\"icon\">exclamation</md-icon>`\n }\n\n if (status == BuildingInspectionStatus.PASS) {\n return html`<md-icon pass slot=\"icon\">check</md-icon>`\n }\n\n return html`<md-icon fail slot=\"icon\">close</md-icon>`\n }\n\n private _groupInspectionsByCell() {\n const map: Record<string, any[]> = {}\n for (const item of this.buildingInspections || []) {\n const key = `${item.cellX},${item.cellY}`\n if (!map[key]) map[key] = []\n map[key].push(item)\n }\n this.cellToInspections = map\n }\n\n private _openListLayer(anchorEl: HTMLElement, items: any[], cell: string) {\n this.listLayer = { open: true, cell, items }\n }\n\n private _closeListLayer() {\n if (!this.listLayer.open) return\n this.listLayer = { open: false, cell: '', items: [] }\n }\n\n private async _onSelectListItem(e: CustomEvent) {\n const id = e.detail?.id\n if (!id) return\n const inspection = await this._getBuildingInspection(id)\n this.selectedInspection = inspection\n this._closeListLayer()\n }\n\n private _getCellElement(cell: string): HTMLElement | null {\n if (!cell) return null\n return this.shadowRoot?.querySelector(`div[cell='${cell}']`) as HTMLElement\n }\n\n private async validateChecklist(checklist: any) {\n try {\n const result = await verifyBiometric()\n if (result.verified) {\n console.log('Verification successful. Proceeding with sensitive action.')\n } else {\n notify({ message: 'Verification failed:' + result.message })\n return\n }\n } catch (error) {\n notify({ message: 'Error during biometric verification:' + error })\n return\n }\n\n const response = await client.mutate({\n mutation: gql`\n mutation UpdateBuildingInspectionChecklist($buildingInspection: UpdateBuildingInspectionSubmitType!) {\n updateBuildingInspectionChecklist(buildingInspection: $buildingInspection)\n }\n `,\n variables: {\n buildingInspection: {\n id: this.selectedInspection.id,\n checklist: {\n id: checklist.id,\n overallConstructorSignature: checklist.overallConstructorSignature,\n taskConstructorSignature: checklist.taskConstructorSignature,\n overallSupervisorySignature: checklist.overallSupervisorySignature,\n taskSupervisorySignature: checklist.taskSupervisorySignature\n },\n checklistItem: checklist.checklistItems.map(item => ({\n id: item.id,\n constructionConfirmStatus: item.constructionConfirmStatus,\n supervisoryConfirmStatus: item.supervisoryConfirmStatus\n }))\n }\n }\n })\n\n if (!response.errors) {\n notify({ message: '검측 요청서를 등록하였습니다.' })\n this.refresh(this.selectedInspection.id)\n history.back()\n } else {\n notify({ message: response.errors?.[0]?.message || '검측 요청서 등록에 실패하였습니다.', level: 'error' })\n }\n }\n\n async _onClickApplyToAll() {\n if (\n (await OxPrompt.open({\n title: '전층 동일 적용',\n text: '해당 검측을 전층에 동일하게 적용 하시겠습니까?',\n confirmButton: { text: '확인' },\n cancelButton: { text: '취소' }\n })) === false\n ) {\n return\n }\n\n const response = await client.mutate({\n mutation: gql`\n mutation ApplyToAllBuildingInspection($buildingInspectionId: String!) {\n applyToAllBuildingInspection(buildingInspectionId: $buildingInspectionId)\n }\n `,\n variables: {\n buildingInspectionId: this.selectedInspection.id\n }\n })\n\n if (!response.errors) {\n notify({ message: '전층 동일 적용 완료' })\n this.refresh(this.selectedInspection.id)\n } else {\n notify({ message: response.errors?.[0]?.message || '전층 동일 적용에 실패하였습니다.', level: 'error' })\n }\n }\n\n _openPlanPreviewPopup() {\n openPopup(html`<plan-preview-popup .buildingLevelId=${this.selectedLevel.id}></plan-preview-popup>`, {\n backdrop: true,\n size: 'large',\n title: '추가 도면 보기'\n })\n }\n\n private async _onClickDeleteInspection() {\n if (!this.selectedInspection?.id) {\n notify({ message: '삭제할 검측을 선택해주세요.', level: 'info' })\n return\n }\n\n const confirmed = await OxPrompt.open({\n title: '검측 삭제',\n text: '해당 검측을 삭제하시겠습니까? 삭제 후 되돌릴 수 없습니다.',\n confirmButton: { text: '삭제' },\n cancelButton: { text: '취소' }\n })\n\n if (confirmed === false) return\n\n const response = await client.mutate({\n mutation: gql`\n mutation ($ids: [String!]!) {\n deleteBuildingInspections(ids: $ids)\n }\n `,\n variables: {\n ids: [this.selectedInspection.id]\n }\n })\n\n if (!response.errors) {\n notify({ message: '삭제되었습니다.' })\n this.selectedInspection = {}\n await this.refresh()\n } else {\n notify({ message: response.errors?.[0]?.message || '삭제에 실패하였습니다.', level: 'error' })\n }\n }\n}\n"]}
|
package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js
CHANGED
|
@@ -134,7 +134,12 @@ let GridInspectionCreatePopup = class GridInspectionCreatePopup extends LitEleme
|
|
|
134
134
|
</div>
|
|
135
135
|
|
|
136
136
|
<div tab-container ?inactive=${this.activeTab !== 'preview'} preview>
|
|
137
|
-
<checklist-view
|
|
137
|
+
<checklist-view
|
|
138
|
+
.mode=${"VIEWER" /* ChecklistMode.VIEWER */}
|
|
139
|
+
.checklist=${this.checklist}
|
|
140
|
+
.manager=${this.selectedManager || {}}
|
|
141
|
+
.projectType=${"DSSP" /* ProjectType.DSSP */}
|
|
142
|
+
></checklist-view>
|
|
138
143
|
</div>
|
|
139
144
|
</div>
|
|
140
145
|
|
|
@@ -164,6 +169,7 @@ let GridInspectionCreatePopup = class GridInspectionCreatePopup extends LitEleme
|
|
|
164
169
|
project(id: $id) {
|
|
165
170
|
id
|
|
166
171
|
name
|
|
172
|
+
documentNaming
|
|
167
173
|
buildingComplex {
|
|
168
174
|
id
|
|
169
175
|
buildings {
|
|
@@ -241,7 +247,7 @@ let GridInspectionCreatePopup = class GridInspectionCreatePopup extends LitEleme
|
|
|
241
247
|
constructionType: (_p = this.selectedConstructionType) === null || _p === void 0 ? void 0 : _p.name,
|
|
242
248
|
constructionDetailType: (_q = this.selectedConstructionDetailType) === null || _q === void 0 ? void 0 : _q.name,
|
|
243
249
|
location: `${((_r = this.selectedBuilding) === null || _r === void 0 ? void 0 : _r.name) || ''} ${this.selectedLevel.floorDisplayName || ''}층`,
|
|
244
|
-
documentNo:
|
|
250
|
+
documentNo: `${project.documentNaming} 검측 제01-00000호`,
|
|
245
251
|
buildingInspection: {
|
|
246
252
|
status: BuildingInspectionStatus.WAIT
|
|
247
253
|
}
|
|
@@ -334,7 +340,7 @@ let GridInspectionCreatePopup = class GridInspectionCreatePopup extends LitEleme
|
|
|
334
340
|
id
|
|
335
341
|
sequence
|
|
336
342
|
name
|
|
337
|
-
inspctionCriteria
|
|
343
|
+
inspctionCriteria: inspctionCriteriaText
|
|
338
344
|
mainType
|
|
339
345
|
detailType
|
|
340
346
|
}
|
package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-inspection-create-popup.js","source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AAR,KAAK,EAAE;;2DAAmB;AAClB;IAAR,KAAK,EAAE;;kEAA0B;AAEzB;IAAR,KAAK,EAAE;;qEAA6B;AAC5B;IAAR,KAAK,EAAE;;4DAAoB;AAEnB;IAAR,KAAK,EAAE;;4DAAuC;AAED;IAA7C,KAAK,CAAC,qCAAqC,CAAC;;8EAA4B;AAC5B;IAA5C,KAAK,CAAC,oCAAoC,CAAC;;6EAA2B;AACpB;IAAlD,KAAK,CAAC,0CAA0C,CAAC;;mFAAiC;AAChE;IAAlB,KAAK,CAAC,UAAU,CAAC;8BAAS,SAAS;wDAAA;AAEb;IAAtB,KAAK,CAAC,cAAc,CAAC;8BAA0B,cAAc;yEAAA;AACrC;IAAxB,KAAK,CAAC,gBAAgB,CAAC;8BAAiB,WAAW;gEAAA;AArKhD,yBAAyB;IAD9B,aAAa,CAAC,8BAA8B,CAAC;GACxC,yBAAyB,CAsqB9B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/data-grist/ox-grist.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { DataGrist } from '@operato/data-grist/ox-grist.js'\nimport { client } from '@operato/graphql'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify } from '@operato/layout'\nimport { BuildingInspectionStatus, CHECKLIST_MAIN_TYPE_LIST } from '../../building-inspection/building-inspection-list'\nimport { ChecklistMode } from '../../checklist/checklist-view'\n\n@customElement('grid-inspection-create-popup')\nclass GridInspectionCreatePopup extends LitElement {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n padding: 15px 20px;\n\n background-color: var(--md-sys-color-surface);\n }\n\n md-filled-select {\n width: auto;\n min-width: 150px;\n --md-filled-select-text-field-container-color: transparent;\n --md-filled-select-text-field-active-indicator-color: #999;\n --md-filled-select-text-field-input-text-size: 14px;\n --md-filled-select-text-field-input-text-weight: bold;\n --md-filled-select-text-field-input-text-line-height: 6px;\n }\n md-filled-select[level] {\n min-width: 110px;\n margin-left: 20px;\n }\n\n checklist-view {\n pointer-events: none;\n transform-origin: top left;\n }\n\n div[body] {\n height: 100%;\n overflow-y: auto;\n\n div[tab-container][inactive] {\n display: none !important;\n }\n\n div[edit] {\n width: 100%;\n\n div[detail] {\n margin-bottom: 30px;\n }\n\n h3 {\n position: relative;\n color: #0595e5;\n font-size: 17px;\n font-weight: 700;\n background-color: var(--md-sys-color-surface);\n margin-top: 0;\n margin-bottom: 5px;\n }\n\n div[data-row] {\n display: grid;\n grid-template-columns: 100px 1fr 0.3fr 100px 1fr;\n gap: 15px;\n margin-bottom: 11px;\n\n & > label {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n font-size: 15px;\n }\n\n div[inspection-parts] {\n display: block;\n margin-top: 7px;\n\n & > span {\n display: inline-block;\n margin-right: 5px;\n margin-bottom: 5px;\n\n & > md-checkbox {\n margin-top: 2px;\n }\n }\n }\n }\n }\n\n div[preview] {\n display: flex;\n overflow-y: auto;\n overflow-x: hidden;\n }\n }\n\n div[tabs] {\n display: flex;\n\n button {\n background-color: #fff;\n padding: 6px 14px;\n color: #999;\n border: solid 1px #999;\n border-top: none;\n border-radius: 0px 0px 8px 8px;\n margin-right: -2px;\n cursor: pointer;\n\n &[active] {\n color: var(--button-color, var(--md-sys-color-on-secondary-container));\n font-weight: 600;\n }\n }\n }\n\n div[button-container] {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n\n md-elevated-button[blue] {\n --md-elevated-button-container-color: #0595e5;\n\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n }\n `\n ]\n\n @property({ type: Object }) gristConfig: any\n @property({ type: Object }) checklistDetailTypes: any\n @property({ type: String }) projectId: string = ''\n @property({ type: String }) checklistTemplateId: string = ''\n @property({ type: String }) selectedBuildingId: string = ''\n @property({ type: String }) selectedBuildingLevelId: string = ''\n @property({ type: String }) cell: string = ''\n\n @state() buildings: any = []\n @state() selectedBuilding: any = {}\n @state() selectedLevel: any = {}\n\n @state() constructionTypes: any = []\n @state() selectedConstructionType: any = {}\n @state() selectedConstructionDetailType: any = {}\n\n @state() managers: any = []\n @state() selectedManager: any = {}\n\n @state() checklistTemplates: any = []\n @state() checklist: any = {}\n\n @state() activeTab: 'edit' | 'preview' = 'edit'\n\n @query('md-filled-select[checklistTemplate]') htmlSelectChecklistTemplate\n @query('md-filled-select[constructionType]') htmlSelectConstructionType\n @query('md-filled-select[constructionDetailType]') htmlSelectConstructionDetailType\n @query('ox-grist') grist!: DataGrist\n\n @query('div[preview]') checklistViewContainer!: HTMLDivElement\n @query('checklist-view') checklistView!: HTMLElement\n\n render() {\n return html`\n <div body>\n <div tab-container ?inactive=${this.activeTab !== 'edit'} edit>\n <div detail>\n <h3>세부 정보</h3>\n\n <div data-row>\n <label>공종</label>\n <md-filled-select constructionType @change=${this._onSelectConstructionType}>\n ${this.constructionTypes?.map(constructionType => {\n const selected = constructionType.id === this.selectedConstructionType?.id\n return html`<md-select-option ?selected=${selected} .value=${constructionType.id}>\n <div slot=\"headline\">${constructionType.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <div partition></div>\n\n <label>세부 공종</label>\n <md-filled-select constructionDetailType @change=${this._onSelectConstructionDetailType}>\n ${this.selectedConstructionType?.constructionDetailTypes?.map(constructionDetailType => {\n const selected = constructionDetailType.id === this.selectedConstructionDetailType.id\n return html`<md-select-option ?selected=${selected} .value=${constructionDetailType.id}>\n <div slot=\"headline\">${constructionDetailType.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n\n <div data-row>\n <label>동</label>\n <md-filled-text-field building name=\"buildingName\" type=\"text\" .value=${this.selectedBuilding?.name || ''} disabled>\n </md-filled-text-field>\n\n <div partition></div>\n\n <label>층</label>\n <md-filled-text-field\n level\n name=\"buildingLevelName\"\n type=\"text\"\n .value=${this.selectedLevel?.floorDisplayName || ''}\n disabled\n >\n </md-filled-text-field>\n </div>\n </div>\n\n <div checklist>\n <h3>체크리스트</h3>\n\n <div data-row>\n <label>이름</label>\n <md-filled-text-field\n name=\"checklistName\"\n type=\"text\"\n .value=${this.checklist?.name || ''}\n @input=${this._onInputChange}\n >\n </md-filled-text-field>\n\n <div partition></div>\n\n <label>템플릿</label>\n <md-filled-select checklistTemplate @change=${this._onSelectChecklistTemplate}>\n <md-select-option></md-select-option>\n ${this.checklistTemplates?.map((checklistTemplate, idx) => {\n return html` <md-select-option .value=${checklistTemplate.id}>\n <div slot=\"headline\">${checklistTemplate.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n </div>\n\n <div manager>\n <h3>담당자</h3>\n\n <div data-row>\n <label>담당자</label>\n <md-filled-select manager @change=${this._onSelectManager}>\n <md-select-option></md-select-option>\n ${this.managers?.map((manager, idx) => {\n return html` <md-select-option .value=${manager.userId}>\n <div slot=\"headline\">${manager.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n </div>\n\n <ox-grist\n .mode=${'GRID'}\n .config=${this.gristConfig}\n .fetchHandler=${this.fetchHandler.bind(this)}\n @field-change=${this.onChangeGird}\n >\n </ox-grist>\n </div>\n\n <div tab-container ?inactive=${this.activeTab !== 'preview'} preview>\n <checklist-view .mode=${ChecklistMode.VIEWER} .checklist=${this.checklist}></checklist-view>\n </div>\n </div>\n\n <div tabs>\n <button ?active=${this.activeTab === 'edit'} @click=${() => (this.activeTab = 'edit')}>검측 요청 정보</button>\n <button ?active=${this.activeTab === 'preview'} @click=${() => (this.activeTab = 'preview')}>미리보기</button>\n </div>\n\n <div button-container>\n <md-elevated-button blue @click=${this._createInspection}>\n <md-icon slot=\"icon\">task</md-icon>검측 요청서 등록\n </md-elevated-button>\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">cancel</md-icon>취소</md-elevated-button>\n </div>\n `\n }\n\n updated() {\n const ratio = Math.round((this.checklistViewContainer?.offsetWidth / this.checklistView?.offsetWidth) * 100) / 100 || 1\n this.checklistView.style.transform = `scale(${ratio})`\n }\n\n async firstUpdated() {\n const response = await client.query({\n query: gql`\n query Project($id: String!) {\n project(id: $id) {\n id\n name\n buildingComplex {\n id\n buildings {\n id\n name\n }\n }\n }\n\n constructionTypes {\n items {\n name\n id\n }\n }\n\n checklistTemplates {\n items {\n id\n name\n }\n }\n\n checklistTypes {\n items {\n id\n mainType\n detailType\n }\n }\n\n managers {\n id\n phone\n position\n userId\n name\n }\n }\n `,\n variables: {\n id: this.projectId\n }\n })\n\n if (response.errors) return\n\n const project = response.data?.project\n const checklistTemplates = response.data?.checklistTemplates?.items || []\n const constructionTypes = response.data?.constructionTypes?.items || []\n\n this.managers = response.data?.managers\n this.checklistDetailTypes = response.data.checklistTypes?.items?.map(v => {\n return {\n display: v.detailType,\n value: v.id,\n mainType: v.mainType\n }\n })\n\n this.constructionTypes = [...constructionTypes]\n this.checklistTemplates = [...checklistTemplates]\n this.buildings = [...(project?.buildingComplex?.buildings || [])]\n\n // selectedBuildingId가 있으면 해당 빌딩 선택, 없으면 첫번째 빌딩 선택\n this.selectedBuilding = this.buildings.find(building => building.id == this.selectedBuildingId)\n this.selectedBuilding = await this._getBuilding(this.selectedBuilding.id)\n this.selectedConstructionType = constructionTypes?.[0]\n\n // selectedBuildingLevelId가 있으면 선택된 층, 없으면 첫번째 층 선택\n this.selectedLevel = this.selectedBuilding?.buildingLevels?.find(level => level.id == this.selectedBuildingLevelId)\n\n // 세부 공종 리스트 가져오기\n this.selectedConstructionType = await this._getConstructionType(this.selectedConstructionType.id)\n this.selectedConstructionDetailType = this.selectedConstructionType?.constructionDetailTypes?.[0]\n this.selectedConstructionType = await { ...this.selectedConstructionType }\n\n // 기본 값 셋팅 select\n await this.htmlSelectChecklistTemplate.selectIndex(0)\n await this.htmlSelectConstructionDetailType.selectIndex(0)\n\n this.checklist = {\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name,\n location: `${this.selectedBuilding?.name || ''} ${this.selectedLevel.floorDisplayName || ''}층`,\n documentNo: '0000-000-000000',\n buildingInspection: {\n status: BuildingInspectionStatus.WAIT\n }\n }\n\n // 그리드 셋팅\n this.setGristConfig()\n }\n\n requestRefresh(buildingInspectionId: string = '') {\n this.dispatchEvent(new CustomEvent('requestRefresh', { detail: { buildingInspectionId } }))\n }\n\n private _close() {\n history.back()\n }\n\n setGristConfig() {\n this.gristConfig = {\n columns: [\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_upward',\n handlers: {\n click: 'move-up'\n }\n },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_downward',\n handlers: {\n click: 'move-down'\n }\n },\n {\n type: 'select',\n name: 'mainType',\n header: '구분',\n record: {\n editable: true,\n options: [{ display: '', value: '' }].concat(\n Object.keys(CHECKLIST_MAIN_TYPE_LIST).map(key => ({ display: CHECKLIST_MAIN_TYPE_LIST[key], value: key }))\n )\n },\n width: 100\n },\n {\n type: 'select',\n name: 'detailType',\n header: '상세 구분',\n record: {\n editable: true,\n options: (columns, data, column) => [\n { display: '', value: '' },\n ...this.checklistDetailTypes.filter(v => v.mainType == column.mainType)\n ]\n },\n width: 200\n },\n {\n type: 'string',\n name: 'name',\n header: '검사 항목',\n record: {\n editable: true\n },\n width: 200\n },\n {\n type: 'string',\n name: 'inspctionCriteria',\n header: '검사 기준',\n record: {\n editable: true\n },\n width: 200\n }\n ],\n pagination: {\n infinite: true\n },\n sorters: [{ name: 'mainType' }, { name: 'sequence' }]\n }\n }\n\n async fetchHandler() {\n if (!this.checklistTemplateId) return []\n\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {\n checklistTemplateItems(filters: $filters, pagination: $pagination, sortings: $sortings) {\n items {\n id\n sequence\n name\n inspctionCriteria\n mainType\n detailType\n }\n }\n }\n `,\n variables: {\n filters: {\n name: 'checklistTemplateId',\n value: this.checklistTemplateId,\n operator: 'eq'\n },\n sortings: [{ name: 'mainType' }, { name: 'sequence' }]\n }\n })\n\n // 체크리스트 아이템 데이터 갱신\n this.onChangeGird()\n\n return {\n records: response.data.checklistTemplateItems.items || []\n }\n }\n\n async _getBuilding(buildingId: string = '') {\n const response = await client.query({\n query: gql`\n query Building($id: String!) {\n building(id: $id) {\n id\n name\n buildingLevels {\n id\n floor\n floorDisplayName\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n }\n }\n }\n `,\n variables: {\n id: buildingId\n }\n })\n\n if (response.errors) return\n\n return response.data?.building || {}\n }\n\n private _onSelectChecklistTemplate(e) {\n const checklistTemplateId = e.target.value\n\n // 체크 리스트 이름 셋팅\n this.checklist = { ...this.checklist, name: e.target.displayText }\n\n // 그리드 아이템 셋팅\n if (checklistTemplateId) {\n this.checklistTemplateId = checklistTemplateId\n this.grist.fetch()\n }\n }\n\n private _onSelectManager(e) {\n const managerId = e.target.value\n this.selectedManager = this.managers.find(manager => manager.userId == managerId)\n }\n\n async _createInspection() {\n let patch: any = {}\n\n patch.buildingLevelId = this.selectedLevel.id\n patch.managerId = this.selectedManager.userId\n patch.checklist = {\n name: this.checklist.name,\n constructionType: this.htmlSelectConstructionType.displayText,\n constructionDetailType: this.htmlSelectConstructionDetailType.displayText,\n location: `${this.selectedBuilding.name} ${this.selectedLevel.floorDisplayName}층`,\n inspectionParts: this.checklist.inspectionParts\n }\n patch.checklistItem = this.checklist.checklistItems?.map(item => {\n return {\n name: item.name,\n mainType: item.mainType,\n detailType: item.detailType,\n inspctionCriteria: item.inspctionCriteria\n }\n })\n\n const [cellX, cellY] = this.cell.split(',')\n patch.cellX = Number(cellX)\n patch.cellY = Number(cellY)\n\n const response = await client.mutate({\n mutation: gql`\n mutation CreateBuildingInspection($patch: NewBuildingInspection!) {\n createBuildingInspection(patch: $patch) {\n id\n }\n }\n `,\n variables: {\n patch\n }\n })\n\n if (!response.errors) {\n notify({ message: '검측 요청서를 등록하였습니다.' })\n this.requestRefresh(response.data.createBuildingInspection.id)\n this._close()\n } else {\n notify({ message: response.errors?.[0]?.message || '검측 요청서 등록에 실패하였습니다.', level: 'error' })\n }\n }\n\n // Input 요소의 값이 변경될 때 호출되는 콜백 함수\n private _onInputChange(event: InputEvent) {\n const target = event.target as HTMLInputElement\n this[target.name] = target.value\n this.checklist = { ...this.checklist, name: target.value }\n }\n\n // 체크리스트 아이템 데이터 갱신\n private onChangeGird() {\n const checklistDetailTypes = Object.fromEntries(this.checklistDetailTypes.map(item => [item.value, item.display]))\n const grist = this.grist\n\n // grist field-change가 오는 시점이 데이터 변경 전이라 setTimeout으로 변경\n setTimeout(() => {\n this.checklist.checklistItems = grist.dirtyData.records.map((row, idx) => {\n return {\n ...row,\n detailType: checklistDetailTypes[row.detailType],\n sequence: idx\n }\n })\n this.checklist = { ...this.checklist }\n }, 100)\n }\n\n private async _onSelectConstructionType(e) {\n const constructionTypeId = e.target.value\n this.selectedConstructionType = await this._getConstructionType(constructionTypeId)\n this.selectedConstructionDetailType = await { ...this.selectedConstructionType?.constructionDetailTypes?.[0] }\n this.checklist = {\n ...this.checklist,\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name\n }\n\n await this.htmlSelectConstructionDetailType.selectIndex(0)\n }\n\n private _onSelectConstructionDetailType(e) {\n const constructionDetailTypeId = e.target.value\n this.selectedConstructionDetailType = {\n ...(this.selectedConstructionType?.constructionDetailTypes?.find(v => v.id == constructionDetailTypeId) || {})\n }\n this.checklist = {\n ...this.checklist,\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name\n }\n }\n\n async _getConstructionType(id: string = '') {\n const response = await client.query({\n query: gql`\n query ConstructionType($id: String!) {\n constructionType(id: $id) {\n id\n name\n description\n constructionDetailTypes {\n id\n name\n }\n }\n }\n `,\n variables: { id }\n })\n\n if (response.errors) return\n\n return response.data?.constructionType || {}\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"grid-inspection-create-popup.js","sourceRoot":"","sources":["../../../../client/pages/building-inspection-grid/component/grid-inspection-create-popup.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,iCAAiC,CAAA;AAExC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAA;AAIvH,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,UAAU;IAAlD;;QAyI8B,cAAS,GAAW,EAAE,CAAA;QACtB,wBAAmB,GAAW,EAAE,CAAA;QAChC,uBAAkB,GAAW,EAAE,CAAA;QAC/B,4BAAuB,GAAW,EAAE,CAAA;QACpC,SAAI,GAAW,EAAE,CAAA;QAEpC,cAAS,GAAQ,EAAE,CAAA;QACnB,qBAAgB,GAAQ,EAAE,CAAA;QAC1B,kBAAa,GAAQ,EAAE,CAAA;QAEvB,sBAAiB,GAAQ,EAAE,CAAA;QAC3B,6BAAwB,GAAQ,EAAE,CAAA;QAClC,mCAA8B,GAAQ,EAAE,CAAA;QAExC,aAAQ,GAAQ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,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDAAkB;AAEpC;IAAR,KAAK,EAAE;;4DAAoB;AACnB;IAAR,KAAK,EAAE;;mEAA2B;AAC1B;IAAR,KAAK,EAAE;;gEAAwB;AAEvB;IAAR,KAAK,EAAE;;oEAA4B;AAC3B;IAAR,KAAK,EAAE;;2EAAmC;AAClC;IAAR,KAAK,EAAE;;iFAAyC;AAExC;IAAR,KAAK,EAAE;;2DAAmB;AAClB;IAAR,KAAK,EAAE;;kEAA0B;AAEzB;IAAR,KAAK,EAAE;;qEAA6B;AAC5B;IAAR,KAAK,EAAE;;4DAAoB;AAEnB;IAAR,KAAK,EAAE;;4DAAuC;AAED;IAA7C,KAAK,CAAC,qCAAqC,CAAC;;8EAA4B;AAC5B;IAA5C,KAAK,CAAC,oCAAoC,CAAC;;6EAA2B;AACpB;IAAlD,KAAK,CAAC,0CAA0C,CAAC;;mFAAiC;AAChE;IAAlB,KAAK,CAAC,UAAU,CAAC;8BAAS,SAAS;wDAAA;AAEb;IAAtB,KAAK,CAAC,cAAc,CAAC;8BAA0B,cAAc;yEAAA;AACrC;IAAxB,KAAK,CAAC,gBAAgB,CAAC;8BAAiB,WAAW;gEAAA;AArKhD,yBAAyB;IAD9B,aAAa,CAAC,8BAA8B,CAAC;GACxC,yBAAyB,CA4qB9B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/data-grist/ox-grist.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { DataGrist } from '@operato/data-grist/ox-grist.js'\nimport { client } from '@operato/graphql'\nimport { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'\nimport { notify } from '@operato/layout'\nimport { BuildingInspectionStatus, CHECKLIST_MAIN_TYPE_LIST } from '../../building-inspection/building-inspection-list'\nimport { ChecklistMode, ProjectType } from '../../checklist/checklist-view'\n\n@customElement('grid-inspection-create-popup')\nclass GridInspectionCreatePopup extends LitElement {\n static styles = [\n ButtonContainerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n padding: 15px 20px;\n\n background-color: var(--md-sys-color-surface);\n }\n\n md-filled-select {\n width: auto;\n min-width: 150px;\n --md-filled-select-text-field-container-color: transparent;\n --md-filled-select-text-field-active-indicator-color: #999;\n --md-filled-select-text-field-input-text-size: 14px;\n --md-filled-select-text-field-input-text-weight: bold;\n --md-filled-select-text-field-input-text-line-height: 6px;\n }\n md-filled-select[level] {\n min-width: 110px;\n margin-left: 20px;\n }\n\n checklist-view {\n pointer-events: none;\n transform-origin: top left;\n }\n\n div[body] {\n height: 100%;\n overflow-y: auto;\n\n div[tab-container][inactive] {\n display: none !important;\n }\n\n div[edit] {\n width: 100%;\n\n div[detail] {\n margin-bottom: 30px;\n }\n\n h3 {\n position: relative;\n color: #0595e5;\n font-size: 17px;\n font-weight: 700;\n background-color: var(--md-sys-color-surface);\n margin-top: 0;\n margin-bottom: 5px;\n }\n\n div[data-row] {\n display: grid;\n grid-template-columns: 100px 1fr 0.3fr 100px 1fr;\n gap: 15px;\n margin-bottom: 11px;\n\n & > label {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n font-size: 15px;\n }\n\n div[inspection-parts] {\n display: block;\n margin-top: 7px;\n\n & > span {\n display: inline-block;\n margin-right: 5px;\n margin-bottom: 5px;\n\n & > md-checkbox {\n margin-top: 2px;\n }\n }\n }\n }\n }\n\n div[preview] {\n display: flex;\n overflow-y: auto;\n overflow-x: hidden;\n }\n }\n\n div[tabs] {\n display: flex;\n\n button {\n background-color: #fff;\n padding: 6px 14px;\n color: #999;\n border: solid 1px #999;\n border-top: none;\n border-radius: 0px 0px 8px 8px;\n margin-right: -2px;\n cursor: pointer;\n\n &[active] {\n color: var(--button-color, var(--md-sys-color-on-secondary-container));\n font-weight: 600;\n }\n }\n }\n\n div[button-container] {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n\n md-elevated-button[blue] {\n --md-elevated-button-container-color: #0595e5;\n\n --md-elevated-button-label-text-color: #fff;\n --md-elevated-button-hover-label-text-color: #fff;\n --md-elevated-button-pressed-label-text-color: #fff;\n --md-elevated-button-focus-label-text-color: #fff;\n --md-elevated-button-icon-color: #fff;\n --md-elevated-button-hover-icon-color: #fff;\n --md-elevated-button-pressed-icon-color: #fff;\n --md-elevated-button-focus-icon-color: #fff;\n }\n }\n `\n ]\n\n @property({ type: Object }) gristConfig: any\n @property({ type: Object }) checklistDetailTypes: any\n @property({ type: String }) projectId: string = ''\n @property({ type: String }) checklistTemplateId: string = ''\n @property({ type: String }) selectedBuildingId: string = ''\n @property({ type: String }) selectedBuildingLevelId: string = ''\n @property({ type: String }) cell: string = ''\n\n @state() buildings: any = []\n @state() selectedBuilding: any = {}\n @state() selectedLevel: any = {}\n\n @state() constructionTypes: any = []\n @state() selectedConstructionType: any = {}\n @state() selectedConstructionDetailType: any = {}\n\n @state() managers: any = []\n @state() selectedManager: any = {}\n\n @state() checklistTemplates: any = []\n @state() checklist: any = {}\n\n @state() activeTab: 'edit' | 'preview' = 'edit'\n\n @query('md-filled-select[checklistTemplate]') htmlSelectChecklistTemplate\n @query('md-filled-select[constructionType]') htmlSelectConstructionType\n @query('md-filled-select[constructionDetailType]') htmlSelectConstructionDetailType\n @query('ox-grist') grist!: DataGrist\n\n @query('div[preview]') checklistViewContainer!: HTMLDivElement\n @query('checklist-view') checklistView!: HTMLElement\n\n render() {\n return html`\n <div body>\n <div tab-container ?inactive=${this.activeTab !== 'edit'} edit>\n <div detail>\n <h3>세부 정보</h3>\n\n <div data-row>\n <label>공종</label>\n <md-filled-select constructionType @change=${this._onSelectConstructionType}>\n ${this.constructionTypes?.map(constructionType => {\n const selected = constructionType.id === this.selectedConstructionType?.id\n return html`<md-select-option ?selected=${selected} .value=${constructionType.id}>\n <div slot=\"headline\">${constructionType.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n\n <div partition></div>\n\n <label>세부 공종</label>\n <md-filled-select constructionDetailType @change=${this._onSelectConstructionDetailType}>\n ${this.selectedConstructionType?.constructionDetailTypes?.map(constructionDetailType => {\n const selected = constructionDetailType.id === this.selectedConstructionDetailType.id\n return html`<md-select-option ?selected=${selected} .value=${constructionDetailType.id}>\n <div slot=\"headline\">${constructionDetailType.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n\n <div data-row>\n <label>동</label>\n <md-filled-text-field building name=\"buildingName\" type=\"text\" .value=${this.selectedBuilding?.name || ''} disabled>\n </md-filled-text-field>\n\n <div partition></div>\n\n <label>층</label>\n <md-filled-text-field\n level\n name=\"buildingLevelName\"\n type=\"text\"\n .value=${this.selectedLevel?.floorDisplayName || ''}\n disabled\n >\n </md-filled-text-field>\n </div>\n </div>\n\n <div checklist>\n <h3>체크리스트</h3>\n\n <div data-row>\n <label>이름</label>\n <md-filled-text-field\n name=\"checklistName\"\n type=\"text\"\n .value=${this.checklist?.name || ''}\n @input=${this._onInputChange}\n >\n </md-filled-text-field>\n\n <div partition></div>\n\n <label>템플릿</label>\n <md-filled-select checklistTemplate @change=${this._onSelectChecklistTemplate}>\n <md-select-option></md-select-option>\n ${this.checklistTemplates?.map((checklistTemplate, idx) => {\n return html` <md-select-option .value=${checklistTemplate.id}>\n <div slot=\"headline\">${checklistTemplate.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n </div>\n\n <div manager>\n <h3>담당자</h3>\n\n <div data-row>\n <label>담당자</label>\n <md-filled-select manager @change=${this._onSelectManager}>\n <md-select-option></md-select-option>\n ${this.managers?.map((manager, idx) => {\n return html` <md-select-option .value=${manager.userId}>\n <div slot=\"headline\">${manager.name}</div>\n </md-select-option>`\n })}\n </md-filled-select>\n </div>\n </div>\n\n <ox-grist\n .mode=${'GRID'}\n .config=${this.gristConfig}\n .fetchHandler=${this.fetchHandler.bind(this)}\n @field-change=${this.onChangeGird}\n >\n </ox-grist>\n </div>\n\n <div tab-container ?inactive=${this.activeTab !== 'preview'} preview>\n <checklist-view\n .mode=${ChecklistMode.VIEWER}\n .checklist=${this.checklist}\n .manager=${this.selectedManager || {}}\n .projectType=${ProjectType.DSSP}\n ></checklist-view>\n </div>\n </div>\n\n <div tabs>\n <button ?active=${this.activeTab === 'edit'} @click=${() => (this.activeTab = 'edit')}>검측 요청 정보</button>\n <button ?active=${this.activeTab === 'preview'} @click=${() => (this.activeTab = 'preview')}>미리보기</button>\n </div>\n\n <div button-container>\n <md-elevated-button blue @click=${this._createInspection}>\n <md-icon slot=\"icon\">task</md-icon>검측 요청서 등록\n </md-elevated-button>\n <md-elevated-button @click=${this._close}> <md-icon slot=\"icon\">cancel</md-icon>취소</md-elevated-button>\n </div>\n `\n }\n\n updated() {\n const ratio = Math.round((this.checklistViewContainer?.offsetWidth / this.checklistView?.offsetWidth) * 100) / 100 || 1\n this.checklistView.style.transform = `scale(${ratio})`\n }\n\n async firstUpdated() {\n const response = await client.query({\n query: gql`\n query Project($id: String!) {\n project(id: $id) {\n id\n name\n documentNaming\n buildingComplex {\n id\n buildings {\n id\n name\n }\n }\n }\n\n constructionTypes {\n items {\n name\n id\n }\n }\n\n checklistTemplates {\n items {\n id\n name\n }\n }\n\n checklistTypes {\n items {\n id\n mainType\n detailType\n }\n }\n\n managers {\n id\n phone\n position\n userId\n name\n }\n }\n `,\n variables: {\n id: this.projectId\n }\n })\n\n if (response.errors) return\n\n const project = response.data?.project\n const checklistTemplates = response.data?.checklistTemplates?.items || []\n const constructionTypes = response.data?.constructionTypes?.items || []\n\n this.managers = response.data?.managers\n this.checklistDetailTypes = response.data.checklistTypes?.items?.map(v => {\n return {\n display: v.detailType,\n value: v.id,\n mainType: v.mainType\n }\n })\n\n this.constructionTypes = [...constructionTypes]\n this.checklistTemplates = [...checklistTemplates]\n this.buildings = [...(project?.buildingComplex?.buildings || [])]\n\n // selectedBuildingId가 있으면 해당 빌딩 선택, 없으면 첫번째 빌딩 선택\n this.selectedBuilding = this.buildings.find(building => building.id == this.selectedBuildingId)\n this.selectedBuilding = await this._getBuilding(this.selectedBuilding.id)\n this.selectedConstructionType = constructionTypes?.[0]\n\n // selectedBuildingLevelId가 있으면 선택된 층, 없으면 첫번째 층 선택\n this.selectedLevel = this.selectedBuilding?.buildingLevels?.find(level => level.id == this.selectedBuildingLevelId)\n\n // 세부 공종 리스트 가져오기\n this.selectedConstructionType = await this._getConstructionType(this.selectedConstructionType.id)\n this.selectedConstructionDetailType = this.selectedConstructionType?.constructionDetailTypes?.[0]\n this.selectedConstructionType = await { ...this.selectedConstructionType }\n\n // 기본 값 셋팅 select\n await this.htmlSelectChecklistTemplate.selectIndex(0)\n await this.htmlSelectConstructionDetailType.selectIndex(0)\n\n this.checklist = {\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name,\n location: `${this.selectedBuilding?.name || ''} ${this.selectedLevel.floorDisplayName || ''}층`,\n documentNo: `${project.documentNaming} 검측 제01-00000호`,\n buildingInspection: {\n status: BuildingInspectionStatus.WAIT\n }\n }\n\n // 그리드 셋팅\n this.setGristConfig()\n }\n\n requestRefresh(buildingInspectionId: string = '') {\n this.dispatchEvent(new CustomEvent('requestRefresh', { detail: { buildingInspectionId } }))\n }\n\n private _close() {\n history.back()\n }\n\n setGristConfig() {\n this.gristConfig = {\n columns: [\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_upward',\n handlers: {\n click: 'move-up'\n }\n },\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'arrow_downward',\n handlers: {\n click: 'move-down'\n }\n },\n {\n type: 'select',\n name: 'mainType',\n header: '구분',\n record: {\n editable: true,\n options: [{ display: '', value: '' }].concat(\n Object.keys(CHECKLIST_MAIN_TYPE_LIST).map(key => ({ display: CHECKLIST_MAIN_TYPE_LIST[key], value: key }))\n )\n },\n width: 100\n },\n {\n type: 'select',\n name: 'detailType',\n header: '상세 구분',\n record: {\n editable: true,\n options: (columns, data, column) => [\n { display: '', value: '' },\n ...this.checklistDetailTypes.filter(v => v.mainType == column.mainType)\n ]\n },\n width: 200\n },\n {\n type: 'string',\n name: 'name',\n header: '검사 항목',\n record: {\n editable: true\n },\n width: 200\n },\n {\n type: 'string',\n name: 'inspctionCriteria',\n header: '검사 기준',\n record: {\n editable: true\n },\n width: 200\n }\n ],\n pagination: {\n infinite: true\n },\n sorters: [{ name: 'mainType' }, { name: 'sequence' }]\n }\n }\n\n async fetchHandler() {\n if (!this.checklistTemplateId) return []\n\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {\n checklistTemplateItems(filters: $filters, pagination: $pagination, sortings: $sortings) {\n items {\n id\n sequence\n name\n inspctionCriteria: inspctionCriteriaText\n mainType\n detailType\n }\n }\n }\n `,\n variables: {\n filters: {\n name: 'checklistTemplateId',\n value: this.checklistTemplateId,\n operator: 'eq'\n },\n sortings: [{ name: 'mainType' }, { name: 'sequence' }]\n }\n })\n\n // 체크리스트 아이템 데이터 갱신\n this.onChangeGird()\n\n return {\n records: response.data.checklistTemplateItems.items || []\n }\n }\n\n async _getBuilding(buildingId: string = '') {\n const response = await client.query({\n query: gql`\n query Building($id: String!) {\n building(id: $id) {\n id\n name\n buildingLevels {\n id\n floor\n floorDisplayName\n mainDrawing {\n id\n name\n fullpath\n }\n mainDrawingImage\n }\n }\n }\n `,\n variables: {\n id: buildingId\n }\n })\n\n if (response.errors) return\n\n return response.data?.building || {}\n }\n\n private _onSelectChecklistTemplate(e) {\n const checklistTemplateId = e.target.value\n\n // 체크 리스트 이름 셋팅\n this.checklist = { ...this.checklist, name: e.target.displayText }\n\n // 그리드 아이템 셋팅\n if (checklistTemplateId) {\n this.checklistTemplateId = checklistTemplateId\n this.grist.fetch()\n }\n }\n\n private _onSelectManager(e) {\n const managerId = e.target.value\n this.selectedManager = this.managers.find(manager => manager.userId == managerId)\n }\n\n async _createInspection() {\n let patch: any = {}\n\n patch.buildingLevelId = this.selectedLevel.id\n patch.managerId = this.selectedManager.userId\n patch.checklist = {\n name: this.checklist.name,\n constructionType: this.htmlSelectConstructionType.displayText,\n constructionDetailType: this.htmlSelectConstructionDetailType.displayText,\n location: `${this.selectedBuilding.name} ${this.selectedLevel.floorDisplayName}층`,\n inspectionParts: this.checklist.inspectionParts\n }\n patch.checklistItem = this.checklist.checklistItems?.map(item => {\n return {\n name: item.name,\n mainType: item.mainType,\n detailType: item.detailType,\n inspctionCriteria: item.inspctionCriteria\n }\n })\n\n const [cellX, cellY] = this.cell.split(',')\n patch.cellX = Number(cellX)\n patch.cellY = Number(cellY)\n\n const response = await client.mutate({\n mutation: gql`\n mutation CreateBuildingInspection($patch: NewBuildingInspection!) {\n createBuildingInspection(patch: $patch) {\n id\n }\n }\n `,\n variables: {\n patch\n }\n })\n\n if (!response.errors) {\n notify({ message: '검측 요청서를 등록하였습니다.' })\n this.requestRefresh(response.data.createBuildingInspection.id)\n this._close()\n } else {\n notify({ message: response.errors?.[0]?.message || '검측 요청서 등록에 실패하였습니다.', level: 'error' })\n }\n }\n\n // Input 요소의 값이 변경될 때 호출되는 콜백 함수\n private _onInputChange(event: InputEvent) {\n const target = event.target as HTMLInputElement\n this[target.name] = target.value\n this.checklist = { ...this.checklist, name: target.value }\n }\n\n // 체크리스트 아이템 데이터 갱신\n private onChangeGird() {\n const checklistDetailTypes = Object.fromEntries(this.checklistDetailTypes.map(item => [item.value, item.display]))\n const grist = this.grist\n\n // grist field-change가 오는 시점이 데이터 변경 전이라 setTimeout으로 변경\n setTimeout(() => {\n this.checklist.checklistItems = grist.dirtyData.records.map((row, idx) => {\n return {\n ...row,\n detailType: checklistDetailTypes[row.detailType],\n sequence: idx\n }\n })\n this.checklist = { ...this.checklist }\n }, 100)\n }\n\n private async _onSelectConstructionType(e) {\n const constructionTypeId = e.target.value\n this.selectedConstructionType = await this._getConstructionType(constructionTypeId)\n this.selectedConstructionDetailType = await { ...this.selectedConstructionType?.constructionDetailTypes?.[0] }\n this.checklist = {\n ...this.checklist,\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name\n }\n\n await this.htmlSelectConstructionDetailType.selectIndex(0)\n }\n\n private _onSelectConstructionDetailType(e) {\n const constructionDetailTypeId = e.target.value\n this.selectedConstructionDetailType = {\n ...(this.selectedConstructionType?.constructionDetailTypes?.find(v => v.id == constructionDetailTypeId) || {})\n }\n this.checklist = {\n ...this.checklist,\n constructionType: this.selectedConstructionType?.name,\n constructionDetailType: this.selectedConstructionDetailType?.name\n }\n }\n\n async _getConstructionType(id: string = '') {\n const response = await client.query({\n query: gql`\n query ConstructionType($id: String!) {\n constructionType(id: $id) {\n id\n name\n description\n constructionDetailTypes {\n id\n name\n }\n }\n }\n `,\n variables: { id }\n })\n\n if (response.errors) return\n\n return response.data?.constructionType || {}\n }\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class GridInspectionListLayer extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
items: any[];
|
|
5
|
+
direction: 'down' | 'up';
|
|
6
|
+
anchorEl?: HTMLElement;
|
|
7
|
+
containerEl?: HTMLElement;
|
|
8
|
+
left: number;
|
|
9
|
+
top: number;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
private _select;
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
private _onWindowChanged;
|
|
15
|
+
private _onGlobalMouseDown;
|
|
16
|
+
private _onKeyDown;
|
|
17
|
+
private _requestClose;
|
|
18
|
+
private _reposition;
|
|
19
|
+
}
|