Commit b6c3f997 authored by 王启林's avatar 王启林

排队叫号系统 搜索设备新增device_type参数

parent 58642dab
......@@ -20,6 +20,9 @@ export function getBumenList(params) {
export function getTaskList(params) {
return http.get(`${BASEURL}/admin/take/takelist`, params);
}
export function getTakeableList(params) {
return http.get(`${BASEURL}/admin/take/takeablelist`, params);
}
//排队办理记录报表接口
export function getQueueData(params) {
return http.post(`${BASEURL}/inter/reportform/quelist`, params);
......
......@@ -90,7 +90,7 @@ import YSelect from "@/components/YSelect.vue";
import YRangePicker from "@/components/YRangePicker.vue";
import storage from "@/utils/js/Storage";
import { mapMutations } from "vuex";
import { getDatingList, getBumenList, getTaskList } from "@/api/dataAdmin";
import { getDatingList, getBumenList, getTaskList ,getTakeableList} from "@/api/dataAdmin";
import { debounce } from "lodash";
const style = [
{
......@@ -123,6 +123,7 @@ export default {
searchForm: {
id: "", // 排队机id
style: "", // 状态
device_type:"",//设备类型
time: [
this.$moment().format("YYYY-MM-DD"),
this.$moment().format("YYYY-MM-DD"),
......@@ -136,7 +137,7 @@ export default {
created() {
this.getDatingListArr();
this.getBumenListArr();
this.getTaskList();
this.getTakeableList();
},
methods: {
...mapMutations("search", ["set_searForm", "set_isExport", "reset"]),
......@@ -163,23 +164,42 @@ export default {
if (res.code == 1) {
let { data } = res.data;
this.deptList = data;
}
},
//获取排号机设备列表
async getTaskList() {
let res = await getTaskList({
async getTakeableList() {
let res = await getTakeableList({
page: 1,
size: -1,
});
if (res.code == 1) {
let { data } = res.data;
let { data } = res;
this.deviceData = data;
// console.log(this.deviceData)
}
},
// async getTaskList() {
// let res = await getTaskList({
// page: 1,
// size: -1,
// });
// if (res.code == 1) {
// let { data } = res.data;
// this.deviceData = data;
// console.log(this.deviceData)
// }
// },
// 搜索
handleSearch() {
if(this.searchForm.id){
let device = this.deviceData.filter((i)=>{
return this.searchForm.id == i.id
})
this.searchForm.device_type = device[0].device_type
}
this.set_searForm(this.searchForm);
},
......
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