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"