✨ feat(mes): 优化保养项目弹窗及按钮文本

更新保养项目明细的标题,调整按钮文本格式,提升用户体验。
pull/871/MERGE
YunaiV 2026-04-03 21:48:28 +08:00
parent 7b98e87849
commit efdb18c05b
3 changed files with 6 additions and 3 deletions

View File

@ -46,11 +46,14 @@
</el-row>
</el-form>
<template v-if="formData.id">
<el-divider content-position="center">保养项目明细</el-divider>
<el-divider content-position="center">保养项目</el-divider>
<MaintenRecordLineList :record-id="formData.id" :disabled="isDetail" />
</template>
<template #footer>
<el-button v-if="!isDetail" :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button>
<el-button v-if="!isDetail" :disabled="formLoading" type="primary" @click="submitForm">
确 定
</el-button>
<!-- TODO @AI:所有 isDetail ? '关 闭' : '取 消',这种,都改成 “取 消” -->
<el-button @click="dialogVisible = false">{{ isDetail ? '关 闭' : '取 消' }}</el-button>
</template>
</Dialog>

View File

@ -36,7 +36,6 @@
<!-- 表单弹窗:添加/修改 -->
<Dialog :title="formTitle" v-model="formVisible" width="500px">
<el-form ref="formRef" :model="formData" :rules="formRules" label-width="80px">
<!-- DONE @AI:这里的项目,是不是全称;另外,搞个 subject 的 select 组件,更好的复用呀; -->
<el-form-item label="项目" prop="subjectId">
<DvSubjectSelect v-model="formData.subjectId" />
</el-form-item>

View File

@ -88,6 +88,7 @@
>
编辑
</el-button>
<!-- TODO @AI:提交融合到【编辑】弹窗里; -->
<el-button
link
type="success"