|
|
|
@ -51,8 +51,23 @@
|
|
|
|
style="width: 200px;margin-left: 8px;" />
|
|
|
|
style="width: 200px;margin-left: 8px;" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-input v-model="searchInfo.apply_department" placeholder="申请科室"
|
|
|
|
<el-select
|
|
|
|
style="width: 200px;margin-left: 8px;" />
|
|
|
|
v-model="searchInfo.apply_department"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
remote
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
reserve-keyword
|
|
|
|
|
|
|
|
placeholder="申请科室"
|
|
|
|
|
|
|
|
style="width: 200px;margin-left: 8px;"
|
|
|
|
|
|
|
|
:remote-method="debouncedSearchDept"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in deptOptions"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:label="item.department_name + ' (' + item.department_number + ')'"
|
|
|
|
|
|
|
|
:value="item.department_name"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="loginUserinfo">
|
|
|
|
<el-form-item v-if="loginUserinfo">
|
|
|
|
<el-input v-model="searchInfo.doctor" :disabled="loginUserinfo.group==7" placeholder="医生"
|
|
|
|
<el-input v-model="searchInfo.doctor" :disabled="loginUserinfo.group==7" placeholder="医生"
|
|
|
|
@ -278,7 +293,8 @@
|
|
|
|
DepartmentResourceGetEnableList,
|
|
|
|
DepartmentResourceGetEnableList,
|
|
|
|
GetServiceDateTime,
|
|
|
|
GetServiceDateTime,
|
|
|
|
GetLoglist,
|
|
|
|
GetLoglist,
|
|
|
|
CheckEntrstItemGroup,getMainDetail,SignIn,CancelSign
|
|
|
|
CheckEntrstItemGroup,getMainDetail,SignIn,CancelSign,
|
|
|
|
|
|
|
|
SearchDepartment
|
|
|
|
} from '@/api/api.js'
|
|
|
|
} from '@/api/api.js'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
usePinia
|
|
|
|
usePinia
|
|
|
|
@ -306,7 +322,8 @@
|
|
|
|
resources: [],
|
|
|
|
resources: [],
|
|
|
|
services_group: null,
|
|
|
|
services_group: null,
|
|
|
|
reg_num: null,
|
|
|
|
reg_num: null,
|
|
|
|
user_name: null
|
|
|
|
user_name: null,
|
|
|
|
|
|
|
|
apply_department: null
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let loginType=ref('');
|
|
|
|
let loginType=ref('');
|
|
|
|
//获取检查项目列表
|
|
|
|
//获取检查项目列表
|
|
|
|
@ -315,6 +332,32 @@
|
|
|
|
let currentPage = ref(1) //当前页码
|
|
|
|
let currentPage = ref(1) //当前页码
|
|
|
|
let pageSize = ref(15) //每页数量
|
|
|
|
let pageSize = ref(15) //每页数量
|
|
|
|
let total = 0 //总数量
|
|
|
|
let total = 0 //总数量
|
|
|
|
|
|
|
|
let deptOptions = ref([])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//简单防抖函数
|
|
|
|
|
|
|
|
const debounce = (fn, delay) => {
|
|
|
|
|
|
|
|
let timer = null
|
|
|
|
|
|
|
|
return function(...args) {
|
|
|
|
|
|
|
|
clearTimeout(timer)
|
|
|
|
|
|
|
|
timer = setTimeout(() => fn.apply(this, args), delay)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//远程搜索科室
|
|
|
|
|
|
|
|
const searchDept = (keyword) => {
|
|
|
|
|
|
|
|
if (!keyword) {
|
|
|
|
|
|
|
|
deptOptions.value = []
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
SearchDepartment({ keyword }).then(res => {
|
|
|
|
|
|
|
|
if (res.status) {
|
|
|
|
|
|
|
|
deptOptions.value = res.data.list
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
deptOptions.value = []
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const debouncedSearchDept = debounce(searchDept, 300)
|
|
|
|
const GetList = () => {
|
|
|
|
const GetList = () => {
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|
GetMainList({
|
|
|
|
GetMainList({
|
|
|
|
|