| | |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | @submit.native.prevent |
| | | > |
| | | <el-form-item label="体检号" prop="reportDoctorCode"> |
| | | <el-input |
| | |
| | | style="width: 170px" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="姓名" prop="name"> |
| | | <!-- <el-form-item label="姓名" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | placeholder="请输入姓名" |
| | |
| | | align="center" |
| | | prop="examinationDate" |
| | | width="150px" |
| | | :formatter="formatDate" |
| | | /> |
| | | |
| | | <el-table-column label="门诊号" align="center" prop="mzh" width="140px" /> |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | |
| | | handleDateChange(val){ |
| | | handleDateChange(val) { |
| | | if (val && val.length === 2) { |
| | | this.queryParams.start = val[0]; // 设置开始时间 |
| | | this.queryParams.end = val[1]; // 设置结束时间 |
| | | this.queryParams.end = val[1]; // 设置结束时间 |
| | | } else { |
| | | this.queryParams.start = null; |
| | | this.queryParams.end = null; |
| | | } |
| | | console.log('Query Params:', this.queryParams); |
| | | |
| | | console.log("Query Params:", this.queryParams); |
| | | }, |
| | | isSelectable(row) { |
| | | return !!row.mzh; |
| | |
| | | this.$modal.closeLoading(); |
| | | }, 300000); |
| | | }, |
| | | formatDate(row) { |
| | | if (!row.examinationDate) return ""; |
| | | |
| | | // 使用 moment 解析指定格式的日期字符串 |
| | | const date = moment(row.examinationDate, "MM DD YYYY hh:mmA"); |
| | | |
| | | if (!date.isValid()) return "无效日期"; |
| | | |
| | | // 格式化为所需格式 |
| | | return date.format("YYYY-MM-DD HH:mm"); |
| | | }, |
| | | |
| | | tongbu(row) { |
| | | this.$modal.loading("正在同步,请稍候..."); |
| | | this.setTime(); |
| | |
| | | this.clearTimeSet = null; |
| | | this.$modal.closeLoading(); |
| | | // this.$modal.error("操作失败,请稍后重试"); |
| | | }) |
| | | }); |
| | | }, |
| | | }, |
| | | }; |