From a4c0c42c2913ce3b17af82056a6da2ff38c4a63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Sat, 20 Sep 2025 16:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E6=A8=A1=E5=9D=97=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../addRoutingInspection/index.css | 145 ++++++++++++++++ .../addRoutingInspection/index.vue | 164 ++++++++++++++++++ packages/workOrderDashboard/guide/index.vue | 21 +++ .../routingInspection/index.css | 54 ++++++ .../routingInspection/index.vue | 74 ++++++++ 5 files changed, 458 insertions(+) create mode 100644 packages/workOrderDashboard/addRoutingInspection/index.css create mode 100644 packages/workOrderDashboard/addRoutingInspection/index.vue create mode 100644 packages/workOrderDashboard/routingInspection/index.css create mode 100644 packages/workOrderDashboard/routingInspection/index.vue diff --git a/packages/workOrderDashboard/addRoutingInspection/index.css b/packages/workOrderDashboard/addRoutingInspection/index.css new file mode 100644 index 00000000..8cde35ad --- /dev/null +++ b/packages/workOrderDashboard/addRoutingInspection/index.css @@ -0,0 +1,145 @@ +.container { + padding: 30rpx; + box-sizing: border-box; + display: flex; + flex-direction: column; +} + +.select-container { + margin-bottom: 40rpx; + position: relative; +} + +.select-label { + font-size: 28rpx; + color: #333; + margin-bottom: 20rpx; + display: block; +} + +.search-input { + width: 100%; + height: 80rpx; + border: 1rpx solid #ddd; + border-radius: 10rpx; + padding: 0 20rpx; + font-size: 28rpx; + box-sizing: border-box; +} + +.options-container { + margin-top: 10rpx; + max-height: 400rpx; + width: 100%; + overflow-y: auto; + border: 1rpx solid #ddd; + border-radius: 10rpx; + background-color: #fff; + position: absolute; + z-index: 10; +} + +.option-item { + height: 80rpx; + line-height: 80rpx; + padding: 0 20rpx; + font-size: 28rpx; + border-bottom: 1rpx solid #f0f0f0; +} + +.option-item:last-child { + border-bottom: none; +} + +.option-item:hover { + background-color: #f5f5f5; +} + +.option-item.selected { + background-color: #e6f7ff; + color: #1890ff; +} + +.camera-section { + flex: 1; +} + +.camera-container { + text-align: center; + padding: 40rpx; +} + +.camera-icon-container{ + width: 130rpx; + height: 130rpx; + border: 5rpx solid #333; + border-radius: 50%; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: center; +} + +.camera-icon { + width: 90rpx; + height: 90rpx; + margin: 0 auto; +} + +.camera-text { + margin-top: 20rpx; + font-size: 28rpx; + color: #666; +} + +.photos-container { + display: flex; + flex-wrap: wrap; + margin-top: 20rpx; +} + +.photo-item { + width: 150rpx; + height: 150rpx; + margin: 20rpx 20rpx 0 0; + position: relative; + border: 1rpx solid #ddd; +} + +.photo-preview { + width: 100%; + height: 100%; +} + +.delete-icon { + position: absolute; + top: -10rpx; + right: -10rpx; + width: 40rpx; + height: 40rpx; + background-color: rgba(255, 0, 0, 0.8); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 24rpx; +} + +.footer { + padding: 30rpx; + background-color: #fff; + border-top: 1rpx solid #eee; + margin-top: 20rpx; +} + +.submit-button { + width: 100%; + height: 90rpx; + background-color: #1890ff; + color: white; + border: none; + border-radius: 45rpx; + font-size: 32rpx; + margin-top: 50rpx; +} \ No newline at end of file diff --git a/packages/workOrderDashboard/addRoutingInspection/index.vue b/packages/workOrderDashboard/addRoutingInspection/index.vue new file mode 100644 index 00000000..55f88c49 --- /dev/null +++ b/packages/workOrderDashboard/addRoutingInspection/index.vue @@ -0,0 +1,164 @@ + + + + + \ No newline at end of file diff --git a/packages/workOrderDashboard/guide/index.vue b/packages/workOrderDashboard/guide/index.vue index 35bf2caf..2a95d668 100644 --- a/packages/workOrderDashboard/guide/index.vue +++ b/packages/workOrderDashboard/guide/index.vue @@ -19,6 +19,11 @@ 工单台 + + + 巡更巡检 + @@ -96,6 +101,22 @@ export default { uni.navigateTo({ url: '/packages/workOrderDashboard/index/index?communityId=' + changeCommData.id }); + }, + + // 跳转到巡更巡检 + navigateToRoutingInspection() { + const changeCommData = uni.getStorageSync('changeWorkOrderData'); + if (!changeCommData) { + uni.showToast({ + title: '请先选择小区', + icon: 'none' + }); + return; + } + + uni.navigateTo({ + url: '/packages/workOrderDashboard/routingInspection/index?communityId=' + changeCommData.id + }); } } } diff --git a/packages/workOrderDashboard/routingInspection/index.css b/packages/workOrderDashboard/routingInspection/index.css new file mode 100644 index 00000000..253b02ec --- /dev/null +++ b/packages/workOrderDashboard/routingInspection/index.css @@ -0,0 +1,54 @@ +page { + background-color: #f9f9f9; +} + +.item { + width: 98%; + margin: 7rpx 0; + border-radius: 15rpx; + background-color: #ffffff; +} + +.item-top { + display: flex; + justify-content: space-between; + align-items: center; + color: #333; + padding: 10rpx; + border-bottom: 1rpx solid #eeeeee; +} + +.item-content { + display: flex; + justify-content: space-between; + align-items: center; + color: #333; + padding: 10rpx; +} + +.Btn { + width: 180rpx; + height: 90rpx; + color: #ffffff; + background-color: #169bd5; + text-align: center; + line-height: 90rpx; +} + +.empty { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + font-weight: normal; + font-size: 28rpx; + color: #999999; + margin-top: 200rpx; + width: 100%; +} + +.empty image { + width: 366rpx; + height: 226rpx; + margin-bottom: 27rpx; +} \ No newline at end of file diff --git a/packages/workOrderDashboard/routingInspection/index.vue b/packages/workOrderDashboard/routingInspection/index.vue new file mode 100644 index 00000000..b2b8e087 --- /dev/null +++ b/packages/workOrderDashboard/routingInspection/index.vue @@ -0,0 +1,74 @@ + + + + \ No newline at end of file