Commit 9837995b authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

parents e8558ae3 ad9db9d1
...@@ -129,10 +129,13 @@ ...@@ -129,10 +129,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<div class="title-paragraph" style="white-space: nowrap;"> <div style="display: flex;align-items: center;margin-bottom: 10px;">
<span class="title-text">预约信息</span> <div style="height: 16px;border-left: 3px solid #5bb647;" />
<div style="padding-left: 10px;">预约信息</div>
<div style="margin-left: auto;padding-right: 50px;">
<el-button class="fourWordsBtn" @click="bookNow">立即预约</el-button>
</div>
</div> </div>
<el-button class="fourWordsBtn" @click="bookNow">立即预约</el-button>
<!-- 预约信息 --> <!-- 预约信息 -->
<el-row v-show="checkDetail.checkSchedule >= 2"> <el-row v-show="checkDetail.checkSchedule >= 2">
<el-col :span="8"> <el-col :span="8">
...@@ -157,10 +160,13 @@ ...@@ -157,10 +160,13 @@
</el-col> </el-col>
</el-row> </el-row>
<div v-show="checkDetail.checkSchedule >= 2"> <div v-show="checkDetail.checkSchedule >= 2">
<div class="title-paragraph"> <div style="display: flex;align-items: center;margin-bottom: 10px;">
<span class="title-text">检查信息</span> <div style="height: 16px;border-left: 3px solid #5bb647;" />
<div style="padding-left: 10px;">检查信息</div>
<div style="margin-left: auto;padding-right: 50px;">
<el-button v-show="checkDetail.checkSchedule >=2 && checkDetail.reportTime === null" class="fourWordsBtn">上传报告</el-button>
</div>
</div> </div>
<el-button v-show="checkDetail.checkSchedule >=2 && checkDetail.reportTime === null" class="fourWordsBtn">上传报告</el-button>
<!-- 检查信息 --> <!-- 检查信息 -->
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="checkName"> <el-form-item>
<el-select v-model="queryParams.checkName" :disabled="queryParams.checkType === null || queryParams.checkType === ''" clearable placeholder="检查项目"> <el-select v-model="queryParams.checkItemsId" :disabled="queryParams.checkType === null || queryParams.checkType === ''" clearable placeholder="检查项目">
<el-option <el-option
v-for="item in checkItemOptions" v-for="item in checkItemOptions"
:key="item.id" :key="item.id"
...@@ -38,11 +38,13 @@ ...@@ -38,11 +38,13 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="payAmount"> <el-form-item>
<el-date-picker <el-date-picker
v-model="queryParams.payAmount" v-model="queryParams.checkStartTime"
type="date" type="date"
placeholder="请选择检查时间" placeholder="请选择检查时间"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -150,6 +152,7 @@ ...@@ -150,6 +152,7 @@
size="mini" size="mini"
icon="el-icon-check" icon="el-icon-check"
@click="handleSubscribe(scope.row)" @click="handleSubscribe(scope.row)"
:disabled="scope.row.deviceId !== null"
>立即预约</el-button> >立即预约</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -235,6 +238,8 @@ ...@@ -235,6 +238,8 @@
import { getManage, delManage, addManage, updateManage, listCheckManage } from '@/api/business/manage' import { getManage, delManage, addManage, updateManage, listCheckManage } from '@/api/business/manage'
import { deviceUseInSubscribeList, listReservationDevice } from '@/api/business/device' import { deviceUseInSubscribeList, listReservationDevice } from '@/api/business/device'
import { listItemByType } from '@/api/business/item' import { listItemByType } from '@/api/business/item'
import { parseTime } from '@/utils/ruoyi'
import { updateCheck } from '@/api/business/mdeicalRecord'
export default { export default {
name: 'MedicalRecordManagement', name: 'MedicalRecordManagement',
...@@ -268,7 +273,9 @@ export default { ...@@ -268,7 +273,9 @@ export default {
isAsc: null, isAsc: null,
petNickname: null, petNickname: null,
checkType: null, checkType: null,
checkSchedule: null checkSchedule: null,
checkItemsId: null,
checkStartTime: null
}, },
// 排序方式集合 // 排序方式集合
sortList: [ sortList: [
...@@ -336,7 +343,9 @@ export default { ...@@ -336,7 +343,9 @@ export default {
// 检查项目下拉框 // 检查项目下拉框
checkItemOptions: [], checkItemOptions: [],
// 设备下拉框 // 设备下拉框
selectableDevice: [] selectableDevice: [],
// 当前的检查ID
currentCheckId: null
} }
}, },
created() { created() {
...@@ -442,6 +451,7 @@ export default { ...@@ -442,6 +451,7 @@ export default {
this.deviceQueryParams.checkTypeList.push(row.checkItemsId) this.deviceQueryParams.checkTypeList.push(row.checkItemsId)
this.deviceQueryParams.checkTypeList = [...new Set(this.deviceQueryParams.checkTypeList)] this.deviceQueryParams.checkTypeList = [...new Set(this.deviceQueryParams.checkTypeList)]
this.deviceQueryParams.reservationTime = this.getCurrentTime() this.deviceQueryParams.reservationTime = this.getCurrentTime()
this.currentCheckId = row.id
console.log('点击立即预约后的状态', this.deviceQueryParams) console.log('点击立即预约后的状态', this.deviceQueryParams)
// 设置检查项目id // 设置检查项目id
this.getDevice() this.getDevice()
...@@ -455,7 +465,34 @@ export default { ...@@ -455,7 +465,34 @@ export default {
return year + '-' + month + '-' + day return year + '-' + month + '-' + day
}, },
/** 对话框立即预约设备 */ /** 对话框立即预约设备 */
handleSubscribeDevice() { handleSubscribeDevice(row) {
console.log('点击里面的立即预约', row)
this.$confirm('立即预约此设备,是否确定?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'box-logout',
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn',
type: 'warning'
}).then(() => {
console.log('确定后...')
const checkMessage = {}
const checkTimeList = row.checkTime.split('-')
checkMessage.id = this.currentCheckId
checkMessage.deviceId = row.deviceId
checkMessage.deviceName = row.deviceName
checkMessage.appointTime = parseTime(new Date())
checkMessage.checkStartTime = row.checkDate + ' ' + checkTimeList[0]
checkMessage.checkEndTime = row.checkDate + ' ' + checkTimeList[1]
console.log('需要修改的对象', checkMessage)
const list = []
list.push(checkMessage)
updateCheck(list).then(res => {
if (res.code === 200) {
this.$modal.msgError('预定设备成功')
}
})
})
}, },
/** 获取设备列表 */ /** 获取设备列表 */
getDevice() { getDevice() {
...@@ -470,8 +507,11 @@ export default { ...@@ -470,8 +507,11 @@ export default {
this.resetForm('queryForm') this.resetForm('queryForm')
this.sortColumn = '' this.sortColumn = ''
this.queryParams.orderByColumn = '' this.queryParams.orderByColumn = ''
this.queryParams.isAsc = '' this.queryParams.isAsc = null
this.queryParams.checkSchedule = '' this.queryParams.checkSchedule = null
this.queryParams.checkType = null
this.queryParams.checkItemsId = null
this.queryParams.checkStartTime = null
this.handleQuery() this.handleQuery()
}, },
// 多选框选中数据 // 多选框选中数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment