Commit 264b2547 authored by 黄奎's avatar 黄奎

页面修改

parent 7765a43c
......@@ -20,6 +20,11 @@
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.PartyAName"
label="学生姓名" @clear="resetSearch" maxlength="30" />
</div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" option-label="EmployeeName"
v-model="msg.QCreateBy" :options="EmployeeList" emit-value map-options label="业务员" use-input
@filter="filterFn2" clearable />
</div>
</div>
</div>
<courserefund-form :loading="loading" :dataList="dataList"></courserefund-form>
......@@ -31,6 +36,9 @@
import {
GetBackClassProtocolPage
} from "../../api/sale/contract";
import {
queryEmployee
} from '../../api/users/user';
import courserefundForm from "../../components/course/courserefund-form"
export default {
meta: {
......@@ -49,7 +57,8 @@
AuditStatus: -1,
QOrderId: '',
ProtocolNum: '',
IsQueryAll: 1
IsQueryAll: 1,
QCreateBy:"",//业务员
},
pageCount: 0,
dataList: [],
......@@ -83,15 +92,42 @@
Name: "生效",
},
],
EmployeeList: [], //业务员
AllemployeeList: [],
};
},
created() {
this.getEmployee()
},
mounted() {
this.getList();
},
methods: {
//业务员
getEmployee() {
var qMsg = {
Dept_Id: 0
}
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.EmployeeList = res.Data;
this.AllemployeeList = JSON.parse(JSON.stringify(this.EmployeeList));
}
}).catch(() => {
})
},
//筛选业务员
filterFn2(val, update) {
update(() => {
if (val === '') {
this.EmployeeList = JSON.parse(JSON.stringify(this.AllemployeeList))
} else {
const needle = val.toLowerCase()
this.EmployeeList = this.AllemployeeList.filter(v => v.EmployeeName.toLowerCase().indexOf(needle) > -1)
}
})
},
//获取校区列表
getList() {
this.loading = true;
......
......@@ -252,11 +252,6 @@
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.EmployeeList = res.Data;
let obj = {
Id: "",
EmployeeName: "不限"
}
this.EmployeeList.unshift(obj)
this.AllemployeeList = JSON.parse(JSON.stringify(this.EmployeeList));
}
}).catch(() => {
......
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