|
|
|
@ -1,6 +1,8 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="app-container"> |
|
|
|
|
<el-form :model="queryParams" @submit.native.prevent @submit.native.prevent ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="120px"> |
|
|
|
|
<el-form :model="queryParams" @submit.native.prevent @submit.native.prevent ref="queryForm" size="small" |
|
|
|
|
:inline="true" v-show="showSearch" label-width="120px" |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<el-form-item label="景区名称" prop="scenicName"> |
|
|
|
|
<el-input |
|
|
|
@ -46,10 +48,11 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约日期" prop="appointmentDate"> |
|
|
|
|
<el-date-picker clearable |
|
|
|
|
v-model="queryParams.appointmentDate" |
|
|
|
|
type="date" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
placeholder="请选择预约日期"> |
|
|
|
|
v-model="queryParams.appointmentDate" |
|
|
|
|
type="date" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
placeholder="请选择预约日期" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约时段" prop="appointmentSlot"> |
|
|
|
@ -72,9 +75,12 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="数据来源" prop="dataSources"> |
|
|
|
|
<el-select v-model="queryParams.dataSources" placeholder="数据来源" clearable style="width: 240px" @change="$forceUpdate()"> |
|
|
|
|
<el-select v-model="queryParams.dataSources" placeholder="数据来源" clearable style="width: 240px" |
|
|
|
|
@change="$forceUpdate()" |
|
|
|
|
> |
|
|
|
|
<el-option v-for="dict in dict.type.data_sources" :key="dict.value" :label="dict.label" |
|
|
|
|
:value="dict.value" /> |
|
|
|
|
:value="dict.value" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
@ -92,7 +98,8 @@ |
|
|
|
|
size="mini" |
|
|
|
|
@click="handleAdd" |
|
|
|
|
v-hasPermi="['reservationdata:appointmentrecord:add']" |
|
|
|
|
>新增</el-button> |
|
|
|
|
>新增 |
|
|
|
|
</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
<el-button |
|
|
|
@ -103,7 +110,8 @@ |
|
|
|
|
:disabled="single" |
|
|
|
|
@click="handleUpdate" |
|
|
|
|
v-hasPermi="['reservationdata:appointmentrecord:edit']" |
|
|
|
|
>修改</el-button> |
|
|
|
|
>修改 |
|
|
|
|
</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
<el-button |
|
|
|
@ -114,40 +122,50 @@ |
|
|
|
|
:disabled="multiple" |
|
|
|
|
@click="handleDelete" |
|
|
|
|
v-hasPermi="['reservationdata:appointmentrecord:remove']" |
|
|
|
|
>删除</el-button> |
|
|
|
|
>删除 |
|
|
|
|
</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<!-- <el-col :span="1.5">--> |
|
|
|
|
<!-- <el-button--> |
|
|
|
|
<!-- type="warning"--> |
|
|
|
|
<!-- plain--> |
|
|
|
|
<!-- icon="el-icon-download"--> |
|
|
|
|
<!-- size="mini"--> |
|
|
|
|
<!-- @click="handleExport"--> |
|
|
|
|
<!-- v-hasPermi="['reservationdata:appointmentrecord:export']"--> |
|
|
|
|
<!-- >导出</el-button>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
plain |
|
|
|
|
icon="el-icon-upload2" |
|
|
|
|
size="mini" |
|
|
|
|
@click="importFile"> |
|
|
|
|
导入档案 |
|
|
|
|
</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<!-- <el-col :span="1.5">--> |
|
|
|
|
<!-- <el-button--> |
|
|
|
|
<!-- type="warning"--> |
|
|
|
|
<!-- plain--> |
|
|
|
|
<!-- icon="el-icon-download"--> |
|
|
|
|
<!-- size="mini"--> |
|
|
|
|
<!-- @click="handleExport"--> |
|
|
|
|
<!-- v-hasPermi="['reservationdata:appointmentrecord:export']"--> |
|
|
|
|
<!-- >导出</el-button>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="appointmentrecordList" @selection-change="handleSelectionChange"> |
|
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
|
<el-table-column label="预约单号" align="center" prop="appointmentNumber" /> |
|
|
|
|
<el-table-column label="景区名称" align="center" prop="scenicName" /> |
|
|
|
|
<el-table-column type="selection" width="55" align="center"/> |
|
|
|
|
<el-table-column label="预约单号" align="center" prop="appointmentNumber"/> |
|
|
|
|
<el-table-column label="景区名称" align="center" prop="scenicName"/> |
|
|
|
|
<el-table-column label="预约日期" align="center" prop="appointmentDate" width="180"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ parseTime(scope.row.appointmentDate, '{y}-{m}-{d}') }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="预约时段" align="center" prop="appointmentSlot" /> |
|
|
|
|
<el-table-column label="预约人姓名" align="center" prop="appointmentPeopleName" /> |
|
|
|
|
<el-table-column label="预约人手机号" align="center" prop="appointmentPeoplePhone" /> |
|
|
|
|
<el-table-column label="预约时段" align="center" prop="appointmentSlot"/> |
|
|
|
|
<el-table-column label="预约人姓名" align="center" prop="appointmentPeopleName"/> |
|
|
|
|
<el-table-column label="预约人手机号" align="center" prop="appointmentPeoplePhone"/> |
|
|
|
|
<el-table-column label="证件类型" align="center" prop="certificateType"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<dict-tag :options="dict.type.certificate_type" :value="scope.row.certificateType"/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="证件号码" align="center" prop="documentsNumber" /> |
|
|
|
|
<el-table-column label="预约码" align="center" prop="verificationCode" /> |
|
|
|
|
<el-table-column label="证件号码" align="center" prop="documentsNumber"/> |
|
|
|
|
<el-table-column label="预约码" align="center" prop="verificationCode"/> |
|
|
|
|
<el-table-column label="状态" align="center" prop="state"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<dict-tag :options="dict.type.write_off_status" :value="scope.row.state"/> |
|
|
|
@ -158,7 +176,7 @@ |
|
|
|
|
<span>{{ parseTime(scope.row.writeOffTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="数据来源" align="center" prop="dataSources" > |
|
|
|
|
<el-table-column label="数据来源" align="center" prop="dataSources"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<dict-tag :options="dict.type.data_sources" :value="scope.row.dataSources"/> |
|
|
|
|
</template> |
|
|
|
@ -171,7 +189,8 @@ |
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
@click="handleUpdate(scope.row)" |
|
|
|
|
v-hasPermi="['reservationdata:appointmentrecord:edit']" |
|
|
|
|
>修改</el-button> |
|
|
|
|
>修改 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
size="mini" |
|
|
|
|
type="text" |
|
|
|
@ -192,30 +211,31 @@ |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<!-- 添加或修改预约记录对话框 --> |
|
|
|
|
<el-dialog :title="title" :visible.sync="open" append-to-body> |
|
|
|
|
<el-dialog :title="title" :visible.sync="open" append-to-body> |
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
|
|
|
|
<el-form-item label="预约单号" prop="appointmentNumber"> |
|
|
|
|
<el-input v-model="form.appointmentNumber" placeholder="请输入预约单号" /> |
|
|
|
|
<el-input v-model="form.appointmentNumber" placeholder="请输入预约单号"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="景区名称" prop="scenicName"> |
|
|
|
|
<el-input v-model="form.scenicName" placeholder="请输入景区名称" /> |
|
|
|
|
<el-input v-model="form.scenicName" placeholder="请输入景区名称"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约日期" prop="appointmentDate"> |
|
|
|
|
<el-date-picker clearable |
|
|
|
|
v-model="form.appointmentDate" |
|
|
|
|
type="date" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
placeholder="请选择预约日期"> |
|
|
|
|
v-model="form.appointmentDate" |
|
|
|
|
type="date" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
placeholder="请选择预约日期" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约时段" prop="appointmentSlot"> |
|
|
|
|
<el-input v-model="form.appointmentSlot" placeholder="请输入预约时段" /> |
|
|
|
|
<el-input v-model="form.appointmentSlot" placeholder="请输入预约时段"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约人姓名" prop="appointmentPeopleName"> |
|
|
|
|
<el-input v-model="form.appointmentPeopleName" placeholder="请输入预约人姓名" /> |
|
|
|
|
<el-input v-model="form.appointmentPeopleName" placeholder="请输入预约人姓名"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约人手机号" prop="appointmentPeoplePhone"> |
|
|
|
|
<el-input v-model="form.appointmentPeoplePhone" placeholder="请输入预约人手机号" /> |
|
|
|
|
<el-input v-model="form.appointmentPeoplePhone" placeholder="请输入预约人手机号"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="证件类型" prop="certificateType"> |
|
|
|
|
<el-select v-model="form.certificateType" placeholder="请选择证件类型"> |
|
|
|
@ -228,10 +248,10 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="证件号码" prop="documentsNumber"> |
|
|
|
|
<el-input v-model="form.documentsNumber" placeholder="请输入证件号码" /> |
|
|
|
|
<el-input v-model="form.documentsNumber" placeholder="请输入证件号码"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="预约码" prop="verificationCode"> |
|
|
|
|
<el-input v-model="form.verificationCode" placeholder="请输入核销码" /> |
|
|
|
|
<el-input v-model="form.verificationCode" placeholder="请输入核销码"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="状态" prop="state"> |
|
|
|
|
<el-select v-model="form.state" placeholder="状态" clearable> |
|
|
|
@ -245,10 +265,11 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="核销日期" prop="writeOffTime"> |
|
|
|
|
<el-date-picker clearable |
|
|
|
|
v-model="form.writeOffTime" |
|
|
|
|
type="datetime" |
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
placeholder="请选择核销日期"> |
|
|
|
|
v-model="form.writeOffTime" |
|
|
|
|
type="datetime" |
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
|
placeholder="请选择核销日期" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -257,17 +278,47 @@ |
|
|
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px"> |
|
|
|
|
<el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" |
|
|
|
|
:action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading" |
|
|
|
|
:on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag |
|
|
|
|
> |
|
|
|
|
<i class="el-icon-upload"></i> |
|
|
|
|
<div class="el-upload__text"> |
|
|
|
|
将文件拖到此处,或 |
|
|
|
|
<em>点击上传</em> |
|
|
|
|
</div> |
|
|
|
|
<div class="el-upload__tip" slot="tip"> |
|
|
|
|
<!-- <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据--> |
|
|
|
|
<el-link type="info" style="font-size:12px" @click="downloadTemplate">下载模板</el-link> |
|
|
|
|
</div> |
|
|
|
|
<div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div> |
|
|
|
|
</el-upload> |
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button type="primary" @click="xlsSubmitFileForm">确 定</el-button> |
|
|
|
|
<el-button @click="upload.open = false">取 消</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { listAppointmentrecord, getAppointmentrecord, delAppointmentrecord, addAppointmentrecord, updateAppointmentrecord } from "@/api/reservationdata/appointmentrecord"; |
|
|
|
|
import { |
|
|
|
|
listAppointmentrecord, |
|
|
|
|
getAppointmentrecord, |
|
|
|
|
delAppointmentrecord, |
|
|
|
|
addAppointmentrecord, |
|
|
|
|
updateAppointmentrecord |
|
|
|
|
} from '@/api/reservationdata/appointmentrecord' |
|
|
|
|
import { getToken } from '@/utils/auth' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "Appointmentrecord", |
|
|
|
|
dicts: ['certificate_type','write_off_status','data_sources'], |
|
|
|
|
name: 'Appointmentrecord', |
|
|
|
|
dicts: ['certificate_type', 'write_off_status', 'data_sources'], |
|
|
|
|
data() { |
|
|
|
|
return {change:false, |
|
|
|
|
return { |
|
|
|
|
change: false, |
|
|
|
|
// 遮罩层 |
|
|
|
|
loading: true, |
|
|
|
|
// 选中数组 |
|
|
|
@ -283,9 +334,23 @@ export default { |
|
|
|
|
// 预约记录表格数据 |
|
|
|
|
appointmentrecordList: [], |
|
|
|
|
// 弹出层标题 |
|
|
|
|
title: "", |
|
|
|
|
title: '', |
|
|
|
|
// 是否显示弹出层 |
|
|
|
|
open: false, |
|
|
|
|
upload: { |
|
|
|
|
// 是否显示弹出层(用户导入) |
|
|
|
|
open: false, |
|
|
|
|
// 弹出层标题(用户导入) |
|
|
|
|
title: '', |
|
|
|
|
// 是否禁用上传 |
|
|
|
|
isUploading: false, |
|
|
|
|
// 是否更新已经存在的用户数据 |
|
|
|
|
updateSupport: 0, |
|
|
|
|
// 设置上传的请求头部 |
|
|
|
|
headers: { Authorization: 'Bearer ' + getToken() }, |
|
|
|
|
// 上传的地址 |
|
|
|
|
url: process.env.VUE_APP_BASE_API + '/reservationdata/appointmentrecord/importData' |
|
|
|
|
}, |
|
|
|
|
// 查询参数 |
|
|
|
|
queryParams: { |
|
|
|
|
pageNum: 1, |
|
|
|
@ -307,40 +372,66 @@ export default { |
|
|
|
|
// 表单参数 |
|
|
|
|
form: {}, |
|
|
|
|
// 表单校验 |
|
|
|
|
rules: { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
rules: {} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
watch:{ |
|
|
|
|
'open':{ |
|
|
|
|
deep:true, |
|
|
|
|
immediate:true, |
|
|
|
|
handler(val){ |
|
|
|
|
if (val == false){ |
|
|
|
|
watch: { |
|
|
|
|
'open': { |
|
|
|
|
deep: true, |
|
|
|
|
immediate: true, |
|
|
|
|
handler(val) { |
|
|
|
|
if (val == false) { |
|
|
|
|
this.change = false |
|
|
|
|
}else { |
|
|
|
|
} else { |
|
|
|
|
this.change = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.getList(); |
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
handleFileUploadProgress(event, file, fileList) { |
|
|
|
|
this.upload.isUploading = true; |
|
|
|
|
}, |
|
|
|
|
// 提交上传文件 |
|
|
|
|
xlsSubmitFileForm() { |
|
|
|
|
this.$refs.upload.submit(); |
|
|
|
|
}, |
|
|
|
|
handleFileSuccess(response, file, fileList) { |
|
|
|
|
this.upload.open = false; |
|
|
|
|
this.upload.isUploading = false; |
|
|
|
|
this.$refs.upload.clearFiles(); |
|
|
|
|
this.$alert(response.msg, "导入结果", {dangerouslyUseHTMLString: true}); |
|
|
|
|
this.getList(); |
|
|
|
|
}, |
|
|
|
|
downloadTemplate() { |
|
|
|
|
var url = process.env.VUE_APP_BASE_API + '/appointmentInformationStencil.xlsx' |
|
|
|
|
var suffix = url.substring(url.lastIndexOf('.'), url.length) |
|
|
|
|
const a = document.createElement('a') |
|
|
|
|
a.setAttribute('download', '预约信息导入模板' + suffix) |
|
|
|
|
a.setAttribute('target', '_blank') |
|
|
|
|
a.setAttribute('href', url) |
|
|
|
|
a.click() |
|
|
|
|
}, |
|
|
|
|
importFile() { |
|
|
|
|
this.upload.title = '数据上传' |
|
|
|
|
this.upload.open = true |
|
|
|
|
}, |
|
|
|
|
/** 查询预约记录列表 */ |
|
|
|
|
getList() { |
|
|
|
|
this.loading = true; |
|
|
|
|
this.loading = true |
|
|
|
|
listAppointmentrecord(this.queryParams).then(response => { |
|
|
|
|
this.appointmentrecordList = response.rows; |
|
|
|
|
this.total = response.total; |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
this.appointmentrecordList = response.rows |
|
|
|
|
this.total = response.total |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 取消按钮 |
|
|
|
|
cancel() { |
|
|
|
|
this.open = false; |
|
|
|
|
this.reset(); |
|
|
|
|
this.open = false |
|
|
|
|
this.reset() |
|
|
|
|
}, |
|
|
|
|
// 表单重置 |
|
|
|
|
reset() { |
|
|
|
@ -364,70 +455,71 @@ export default { |
|
|
|
|
updateBy: null, |
|
|
|
|
updateTime: null, |
|
|
|
|
organCode: null |
|
|
|
|
}; |
|
|
|
|
this.resetForm("form"); |
|
|
|
|
} |
|
|
|
|
this.resetForm('form') |
|
|
|
|
}, |
|
|
|
|
/** 搜索按钮操作 */ |
|
|
|
|
handleQuery() { |
|
|
|
|
this.queryParams.pageNum = 1; |
|
|
|
|
this.getList(); |
|
|
|
|
this.queryParams.pageNum = 1 |
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
/** 重置按钮操作 */ |
|
|
|
|
resetQuery() { |
|
|
|
|
this.resetForm("queryForm"); |
|
|
|
|
this.handleQuery(); |
|
|
|
|
this.resetForm('queryForm') |
|
|
|
|
this.handleQuery() |
|
|
|
|
}, |
|
|
|
|
// 多选框选中数据 |
|
|
|
|
handleSelectionChange(selection) { |
|
|
|
|
this.ids = selection.map(item => item.id) |
|
|
|
|
this.single = selection.length!==1 |
|
|
|
|
this.single = selection.length !== 1 |
|
|
|
|
this.multiple = !selection.length |
|
|
|
|
}, |
|
|
|
|
/** 新增按钮操作 */ |
|
|
|
|
handleAdd() { |
|
|
|
|
this.reset(); |
|
|
|
|
this.open = true; |
|
|
|
|
this.title = "添加预约记录"; |
|
|
|
|
this.reset() |
|
|
|
|
this.open = true |
|
|
|
|
this.title = '添加预约记录' |
|
|
|
|
}, |
|
|
|
|
/** 修改按钮操作 */ |
|
|
|
|
handleUpdate(row) { |
|
|
|
|
this.reset(); |
|
|
|
|
this.reset() |
|
|
|
|
const id = row.id || this.ids |
|
|
|
|
getAppointmentrecord(id).then(response => { |
|
|
|
|
this.form = response.data; |
|
|
|
|
this.open = true; |
|
|
|
|
this.title = "修改预约记录"; |
|
|
|
|
}); |
|
|
|
|
this.form = response.data |
|
|
|
|
this.open = true |
|
|
|
|
this.title = '修改预约记录' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
/** 提交按钮 */ |
|
|
|
|
submitForm() { |
|
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
|
this.$refs['form'].validate(valid => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (this.form.id != null) { |
|
|
|
|
updateAppointmentrecord(this.form).then(response => { |
|
|
|
|
this.$modal.msgSuccess("修改成功"); |
|
|
|
|
this.open = false; |
|
|
|
|
this.getList(); |
|
|
|
|
}); |
|
|
|
|
this.$modal.msgSuccess('修改成功') |
|
|
|
|
this.open = false |
|
|
|
|
this.getList() |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
addAppointmentrecord(this.form).then(response => { |
|
|
|
|
this.$modal.msgSuccess("新增成功"); |
|
|
|
|
this.open = false; |
|
|
|
|
this.getList(); |
|
|
|
|
}); |
|
|
|
|
this.$modal.msgSuccess('新增成功') |
|
|
|
|
this.open = false |
|
|
|
|
this.getList() |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
|
handleDelete(row) { |
|
|
|
|
const ids = row.id || this.ids; |
|
|
|
|
const ids = row.id || this.ids |
|
|
|
|
this.$modal.confirm('是否确认删除预约记录编号为"' + ids + '"的数据项?').then(function() { |
|
|
|
|
return delAppointmentrecord(ids); |
|
|
|
|
return delAppointmentrecord(ids) |
|
|
|
|
}).then(() => { |
|
|
|
|
this.getList(); |
|
|
|
|
this.$modal.msgSuccess("删除成功"); |
|
|
|
|
}).catch(() => {}); |
|
|
|
|
this.getList() |
|
|
|
|
this.$modal.msgSuccess('删除成功') |
|
|
|
|
}).catch(() => { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
|
handleExport() { |
|
|
|
@ -436,5 +528,5 @@ export default { |
|
|
|
|
}, `appointmentrecord_${new Date().getTime()}.xlsx`) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|