diff --git a/src/views/crm/project/component/ProjectInspectConfigForm.vue b/src/views/crm/project/component/ProjectInspectConfigForm.vue index 97bb0976b..5cd5ed2f0 100644 --- a/src/views/crm/project/component/ProjectInspectConfigForm.vue +++ b/src/views/crm/project/component/ProjectInspectConfigForm.vue @@ -105,7 +105,6 @@ import { ElMessage } from 'element-plus' import { Crontab } from '@/components/Crontab' import * as UserApi from '@/api/system/user' import * as ProjectInspectionConfigApi from '@/api/crm/project/inspection' -import * as ProjectInspectionCheckpointApi from '@/api/crm/project/inspection/checkpoint' defineProps<{ disabled?: boolean @@ -186,9 +185,6 @@ const open = async (projectId?: number) => { try { // 先加载检查点列表,生成标签页 await loadCheckpointList() - - }) - } } catch (error) { console.error('加载配置数据失败:', error) ElMessage.error('加载配置数据失败') diff --git a/src/views/crm/project/inspection/data/ProjectInspectionDataForm.vue b/src/views/crm/project/inspection/data/ProjectInspectionDataForm.vue index a247c4566..e83bde1ce 100644 --- a/src/views/crm/project/inspection/data/ProjectInspectionDataForm.vue +++ b/src/views/crm/project/inspection/data/ProjectInspectionDataForm.vue @@ -26,7 +26,12 @@ - + @@ -168,7 +173,10 @@ const formData = ref>( }) const formRules = reactive({ configType: [{ required: true, message: '巡检配置类型不能为空', trigger: 'change' }], - name: [{ required: true, message: '管理规则不能为空', trigger: 'blur' }], + name: [ + { required: true, message: '管理规则不能为空', trigger: 'blur' }, + { max: 12, message: '管理规则不能超过12个字符', trigger: 'blur' } + ], isRequired: [{ required: true, message: '是否必填不能为空', trigger: 'blur' }], type: [{ required: true, message: '类型不能为空', trigger: 'change' }], options: [ diff --git a/src/views/crm/project/inspection/record/ProjectInspectionRecordUploadForm.vue b/src/views/crm/project/inspection/record/ProjectInspectionRecordUploadForm.vue index b53cf5547..c0ef51b95 100644 --- a/src/views/crm/project/inspection/record/ProjectInspectionRecordUploadForm.vue +++ b/src/views/crm/project/inspection/record/ProjectInspectionRecordUploadForm.vue @@ -29,10 +29,21 @@ @@ -471,5 +486,63 @@ const submitForm = async () => { font-size: 14px; } } + +.inspection-form-item { + margin-bottom: 22px; + + :deep(.el-form-item__label) { + line-height: 1.6; + word-break: break-word; + white-space: normal; + padding-right: 12px; + width: 200px !important; + min-width: 200px; + vertical-align: top; + padding-top: 8px; + } + + :deep(.el-form-item__content) { + line-height: 1.6; + } + + .form-label-wrapper { + display: flex; + flex-direction: column; + gap: 6px; + width: 100%; + + .form-label-text { + display: inline-block; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + vertical-align: middle; + font-weight: 500; + } + } + + .form-content-remark { + font-size: 12px; + color: #606266; + line-height: 1.6; + word-break: break-word; + white-space: normal; + margin-top: 8px; + padding: 8px 12px; + background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); + border-radius: 6px; + border-left: 3px solid #409EFF; + box-shadow: 0 1px 3px rgba(64, 158, 255, 0.1); + width: 100%; + box-sizing: border-box; + + &::before { + content: '💡'; + margin-right: 6px; + font-size: 14px; + } + } +} diff --git a/src/views/crm/project/inspection/record/index.vue b/src/views/crm/project/inspection/record/index.vue index 4f5f466fd..4bc64e40d 100644 --- a/src/views/crm/project/inspection/record/index.vue +++ b/src/views/crm/project/inspection/record/index.vue @@ -156,42 +156,64 @@
- 巡检内容: +
+ 巡检内容: +
- +
{{ item.summary }}
@@ -249,6 +271,28 @@ {{ getUserName(scope.row.inspector) }} + + + + + + + + + - +