This commit is contained in:
parent
938cdece67
commit
8e731712e5
|
|
@ -104,7 +104,7 @@
|
|||
class="primary-lease"
|
||||
@click="handleOpenDetailDialog(row)"
|
||||
>
|
||||
装备质检记录
|
||||
维保记录
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -125,13 +125,13 @@
|
|||
<el-dialog
|
||||
:title="dialogTitle"
|
||||
:visible.sync="addOrEditDialogVisible"
|
||||
:width="dialogTitle === '质检新增' ? '40%' : '60%'"
|
||||
:width="dialogTitle === '维保操作' ? '40%' : '60%'"
|
||||
align-center
|
||||
destroy-on-close
|
||||
@close="onClose"
|
||||
>
|
||||
<!-- 新增质检表单 -->
|
||||
<template v-if="dialogTitle === '质检新增'">
|
||||
<template v-if="dialogTitle === '维保操作'">
|
||||
<el-form
|
||||
v-if="addOrEditDialogVisible"
|
||||
ref="addOrEditFormRef"
|
||||
|
|
@ -209,7 +209,7 @@
|
|||
</template>
|
||||
|
||||
<!-- 质检记录详情 -->
|
||||
<template v-if="dialogTitle === '质检记录'">
|
||||
<template v-if="dialogTitle === '维保记录'">
|
||||
<el-row style="padding-bottom: 20px">
|
||||
<el-col :span="6">
|
||||
<span>装备编号:</span>
|
||||
|
|
@ -347,7 +347,7 @@
|
|||
</template>
|
||||
|
||||
<!-- 对话框底部按钮 -->
|
||||
<template #footer v-if="dialogTitle === '质检新增'">
|
||||
<template #footer v-if="dialogTitle === '维保操作'">
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" class="primary-lease" @click="onCancel">取消</el-button>
|
||||
<el-button type="primary" class="primary-lease" @click="onSubmit">提交</el-button>
|
||||
|
|
@ -553,7 +553,7 @@ export default {
|
|||
// 打开新增对话框
|
||||
handleOpenAddDialog(row) {
|
||||
this.isRepublish = true
|
||||
this.dialogTitle = '质检新增'
|
||||
this.dialogTitle = '维保操作'
|
||||
this.addOrEditDialogVisible = true
|
||||
// 重置表单和文件列表
|
||||
this.addOrEditForm = {
|
||||
|
|
@ -579,7 +579,7 @@ export default {
|
|||
this.searchParamsInDialog.qcEndTime = ''
|
||||
this.searchParamsInDialog.createStartTime = ''
|
||||
this.searchParamsInDialog.createEndTime = ''
|
||||
this.dialogTitle = '质检记录'
|
||||
this.dialogTitle = '维保记录'
|
||||
this.addOrEditDialogVisible = true
|
||||
this.getLeaseListDataInDialog()
|
||||
},
|
||||
|
|
@ -672,7 +672,7 @@ export default {
|
|||
|
||||
// 关闭对话框
|
||||
onClose() {
|
||||
if (this.dialogTitle !== '质检记录') {
|
||||
if (this.dialogTitle !== '维保记录') {
|
||||
this.$refs.addOrEditFormRef.resetFields()
|
||||
this.fileList = []
|
||||
this.addOrEditForm.fileInfoList = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue