Commit 1eaf78be authored by 高滢's avatar 高滢

使用

parent 177f055d
...@@ -25,6 +25,13 @@ export function listUseManagementAll(query) { ...@@ -25,6 +25,13 @@ export function listUseManagementAll(query) {
}) })
} }
// 导出 // 检查项目
export function selectCheckItem(query) {
return request({
url: '/business/item/checkListByDept',
method: 'get',
params: query
})
}
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<el-form-item prop="status"> <el-form-item prop="status">
<el-select v-model="queryParams.checkItemsIdList" placeholder="检查项目" multiple collapse-tags clearable> <el-select v-model="queryParams.checkItemsIdList" placeholder="检查项目" multiple collapse-tags clearable>
<el-option <el-option
v-for="dict in dict.type.exam_type" v-for="(item,index) in checkList"
:key="dict.value" :key="index"
:label="dict.label" :label="item.dictName"
:value="dict.value" :value="item.id"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -153,13 +153,15 @@ ...@@ -153,13 +153,15 @@
</template> </template>
<script> <script>
import { listUseManagement, listUseManagementAll } from '@/api/business/use' import { listUseManagement, listUseManagementAll, selectCheckItem } from '@/api/business/use'
export default { export default {
name: 'UseManagement', name: 'UseManagement',
dicts: ['exam_type', 'device_status', 'pet_insure'], dicts: ['exam_type', 'device_status', 'pet_insure'],
data() { data() {
return { return {
// 检查项目下拉框
checkList: [],
// 宠物保险下拉框 // 宠物保险下拉框
insureList: [ insureList: [
{ {
...@@ -241,8 +243,15 @@ export default { ...@@ -241,8 +243,15 @@ export default {
}, },
created() { created() {
this.getUseList() this.getUseList()
this.getCheckList()
}, },
methods: { methods: {
// 检查项目下拉框
getCheckList() {
selectCheckItem().then(res => {
this.checkList = res
})
},
// 搜索 // 搜索
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
......
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