parent
7b98e87849
commit
efdb18c05b
|
|
@ -46,11 +46,14 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template v-if="formData.id">
|
<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" />
|
<MaintenRecordLineList :record-id="formData.id" :disabled="isDetail" />
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<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>
|
<el-button @click="dialogVisible = false">{{ isDetail ? '关 闭' : '取 消' }}</el-button>
|
||||||
</template>
|
</template>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
<!-- 表单弹窗:添加/修改 -->
|
<!-- 表单弹窗:添加/修改 -->
|
||||||
<Dialog :title="formTitle" v-model="formVisible" width="500px">
|
<Dialog :title="formTitle" v-model="formVisible" width="500px">
|
||||||
<el-form ref="formRef" :model="formData" :rules="formRules" label-width="80px">
|
<el-form ref="formRef" :model="formData" :rules="formRules" label-width="80px">
|
||||||
<!-- DONE @AI:这里的项目,是不是全称;另外,搞个 subject 的 select 组件,更好的复用呀; -->
|
|
||||||
<el-form-item label="项目" prop="subjectId">
|
<el-form-item label="项目" prop="subjectId">
|
||||||
<DvSubjectSelect v-model="formData.subjectId" />
|
<DvSubjectSelect v-model="formData.subjectId" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- TODO @AI:提交融合到【编辑】弹窗里; -->
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="success"
|
type="success"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue