|
|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
<view class="base-info-container">
|
|
|
<!-- 编辑按钮 -->
|
|
|
- <view v-if="canEdit" class="edit-bar">
|
|
|
- <button class="edit-btn" @click="handleEdit">
|
|
|
- <text>{{ isEdit ? '保存' : '编辑' }}</text>
|
|
|
- </button>
|
|
|
- <button v-if="isEdit" class="ocr-btn" @click="handleOcr">
|
|
|
- <text>拍照录入</text>
|
|
|
- </button>
|
|
|
+ <view v-if="canEdit" class="action-buttons">
|
|
|
+ <view class="operate-btn" @click="handleEdit">
|
|
|
+ <text class="operate-btn-text">{{ isEdit ? '保存' : '编辑' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="operate-btn ocr-btn" @click="handleOcr">
|
|
|
+ <text class="operate-btn-text">拍照录入</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 使用单位信息 -->
|
|
|
@@ -48,8 +48,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 统一社会信用代码 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 统一社会信用代码 + 邮政编码 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">统一社会信用代码</text>
|
|
|
</view>
|
|
|
@@ -58,14 +58,10 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.socialCreditCode"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入统一社会信用代码"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.socialCreditCode || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 邮政编码 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">邮政编码</text>
|
|
|
</view>
|
|
|
@@ -74,7 +70,7 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.zipCode"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入邮政编码"
|
|
|
+ placeholder="请输入"
|
|
|
maxlength="6"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.zipCode || '--' }}</text>
|
|
|
@@ -104,8 +100,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 设备所在行政区 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 设备所在行政区 + 设备所在街道 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">设备所在行政区</text>
|
|
|
<text v-if="isEdit" class="must">*</text>
|
|
|
@@ -117,10 +113,6 @@
|
|
|
</view>
|
|
|
<text v-else class="cell-text">{{ equipment.equipDistrictName || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 设备所在街道 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">设备所在街道</text>
|
|
|
<text v-if="isEdit" class="must">*</text>
|
|
|
@@ -134,8 +126,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 约检联系人 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 约检联系人 + 约检联系人电话 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">约检联系人</text>
|
|
|
</view>
|
|
|
@@ -144,14 +136,10 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.contact"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入约检联系人"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.contact || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 约检联系人电话 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">约检联系人电话</text>
|
|
|
</view>
|
|
|
@@ -160,15 +148,15 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.contactPhone"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入约检联系人电话"
|
|
|
+ placeholder="请输入"
|
|
|
maxlength="11"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.contactPhone || '--' }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 安全管理人 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 安全管理人 + 安全管理人电话 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">安全管理人</text>
|
|
|
</view>
|
|
|
@@ -177,14 +165,10 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.safeManager"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入安全管理人"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.safeManager || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 安全管理人电话 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">安全管理人电话</text>
|
|
|
</view>
|
|
|
@@ -193,7 +177,7 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.safeManagerPhone"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入安全管理人电话"
|
|
|
+ placeholder="请输入"
|
|
|
maxlength="11"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.safeManagerPhone || '--' }}</text>
|
|
|
@@ -230,8 +214,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 设备使用地址经度 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 设备使用地址经度 + 纬度 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">设备使用地址经度</text>
|
|
|
</view>
|
|
|
@@ -240,15 +224,11 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.equipLongitude"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入经度"
|
|
|
+ placeholder="请输入"
|
|
|
disabled
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.equipLongitude || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 设备使用地址纬度 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">设备使用地址纬度</text>
|
|
|
</view>
|
|
|
@@ -257,15 +237,15 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.equipLatitude"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入纬度"
|
|
|
+ placeholder="请输入"
|
|
|
disabled
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.equipLatitude || '--' }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 设备状态 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 设备状态 + 是否超年限 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">设备状态</text>
|
|
|
<text v-if="isEdit" class="must">*</text>
|
|
|
@@ -277,10 +257,6 @@
|
|
|
</view>
|
|
|
<text v-else class="cell-text">{{ EquipmentStatusMap[equipment.status] || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 是否超年限 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">是否超年限</text>
|
|
|
</view>
|
|
|
@@ -289,8 +265,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 超年限时间 -->
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 超年限时间 + 使用年限 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">超年限时间</text>
|
|
|
</view>
|
|
|
@@ -308,10 +284,6 @@
|
|
|
</picker>
|
|
|
<text v-else class="cell-text">{{ equipment.exceedDate || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 使用年限 -->
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">使用年限</text>
|
|
|
</view>
|
|
|
@@ -351,7 +323,8 @@
|
|
|
<text class="section-title">法定检验信息</text>
|
|
|
</view>
|
|
|
<view class="table">
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 上次定检报告编号 + 下次定检日期 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">上次定检报告编号</text>
|
|
|
</view>
|
|
|
@@ -360,13 +333,10 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.lastCheckReportNo"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入上次定检报告编号"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastCheckReportNo || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">下次定检日期</text>
|
|
|
</view>
|
|
|
@@ -386,7 +356,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 安全状况等级 + 允许使用压力 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">安全状况等级</text>
|
|
|
</view>
|
|
|
@@ -395,13 +366,10 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.lastCheckSafetyStatus"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入安全状况等级"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastCheckSafetyStatus || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">允许使用压力</text>
|
|
|
</view>
|
|
|
@@ -410,13 +378,14 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.lastCheckAllowWorkPressure"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入允许使用压力"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastCheckAllowWorkPressure || '--' }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="table-row">
|
|
|
+ <!-- 允许使用温度 + 允许使用介质 -->
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">允许使用温度</text>
|
|
|
</view>
|
|
|
@@ -425,13 +394,10 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.lastCheckAllowWorkTemperature"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入允许使用温度"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastCheckAllowWorkTemperature || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">允许使用介质</text>
|
|
|
</view>
|
|
|
@@ -440,7 +406,7 @@
|
|
|
v-if="isEdit"
|
|
|
v-model="equipment.lastCheckAllowWorkMedium"
|
|
|
class="edit-input-text"
|
|
|
- placeholder="请输入允许使用介质"
|
|
|
+ placeholder="请输入"
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastCheckAllowWorkMedium || '--' }}</text>
|
|
|
</view>
|
|
|
@@ -484,7 +450,7 @@
|
|
|
<text class="section-title">年度检查信息</text>
|
|
|
</view>
|
|
|
<view class="table">
|
|
|
- <view class="table-row">
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">上次年检报告编号</text>
|
|
|
</view>
|
|
|
@@ -497,9 +463,6 @@
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastYearCheckReportNo || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">下次年检日期</text>
|
|
|
</view>
|
|
|
@@ -519,7 +482,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="table-row">
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">安全状况等级</text>
|
|
|
</view>
|
|
|
@@ -532,9 +495,6 @@
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastYearCheckSafetyStatus || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">上次年检结论</text>
|
|
|
</view>
|
|
|
@@ -549,7 +509,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="table-row">
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">上次检查结论压力</text>
|
|
|
</view>
|
|
|
@@ -562,9 +522,6 @@
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastYearCheckConclusionPressure || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">上次检查结论温度</text>
|
|
|
</view>
|
|
|
@@ -655,7 +612,7 @@
|
|
|
<text class="section-title">超年限检验信息</text>
|
|
|
</view>
|
|
|
<view class="table">
|
|
|
- <view class="table-row">
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">上次超年限检验报告编号</text>
|
|
|
</view>
|
|
|
@@ -668,9 +625,6 @@
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.expiredCheckReportNo || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">下次超期限检查日期</text>
|
|
|
</view>
|
|
|
@@ -690,7 +644,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="table-row">
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">安全状况等级</text>
|
|
|
</view>
|
|
|
@@ -703,9 +657,6 @@
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastExpiredCheckSafetyStatus || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">允许使用压力</text>
|
|
|
</view>
|
|
|
@@ -720,7 +671,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="table-row">
|
|
|
+ <view class="table-row-split">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">允许使用温度</text>
|
|
|
</view>
|
|
|
@@ -733,9 +684,6 @@
|
|
|
/>
|
|
|
<text v-else class="cell-text">{{ equipment.lastExpiredCheckAllowWorkTemperature || '--' }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="table-row">
|
|
|
<view class="table-cell title">
|
|
|
<text class="cell-title">允许使用介质</text>
|
|
|
</view>
|
|
|
@@ -1087,30 +1035,35 @@ defineExpose({
|
|
|
padding: 10px;
|
|
|
}
|
|
|
|
|
|
-.edit-bar {
|
|
|
+.action-buttons {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
justify-content: flex-end;
|
|
|
- gap: 10px;
|
|
|
+ gap: 12px;
|
|
|
margin-bottom: 10px;
|
|
|
-
|
|
|
- .edit-btn,
|
|
|
- .ocr-btn {
|
|
|
- padding: 8px 20px;
|
|
|
- border-radius: 5px;
|
|
|
- font-size: 14px;
|
|
|
- border: none;
|
|
|
- }
|
|
|
-
|
|
|
- .edit-btn {
|
|
|
- background-color: rgb(47, 142, 255);
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
-
|
|
|
- .ocr-btn {
|
|
|
- background-color: #faad14;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
+ padding: 10px 15px;
|
|
|
+}
|
|
|
+
|
|
|
+.operate-btn {
|
|
|
+ min-width: 66px;
|
|
|
+ height: 36px;
|
|
|
+ padding: 0 18px;
|
|
|
+ margin-left: 12px;
|
|
|
+ border-radius: 5px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ background-color: rgb(47, 142, 255);
|
|
|
+}
|
|
|
+
|
|
|
+.operate-btn-text {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.ocr-btn {
|
|
|
+ background-color: #faad14;
|
|
|
}
|
|
|
|
|
|
.section {
|
|
|
@@ -1144,6 +1097,24 @@ defineExpose({
|
|
|
border-right: 1px solid rgb(235, 238, 245);
|
|
|
}
|
|
|
|
|
|
+.table-row-split {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ border-bottom: 1px solid rgb(235, 238, 245);
|
|
|
+ border-right: 1px solid rgb(235, 238, 245);
|
|
|
+
|
|
|
+ .table-cell {
|
|
|
+ &.title {
|
|
|
+ width: 110px;
|
|
|
+ min-width: 110px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.content {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.table-cell {
|
|
|
padding: 10px;
|
|
|
|