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

页面修改

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