Commit 7765a43c authored by 黄奎's avatar 黄奎

页面修改

parent 7736eebe
......@@ -24,6 +24,11 @@
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.StudentName"
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>
<div class="page-content">
......@@ -79,8 +84,7 @@
</template>
</q-table>
</div>
<eduinfo-form v-if="isShowEduForm" :seting-obj="eduObj" @close="closeEdudia" @success="refreshPage">
</eduinfo-form>
</div>
</template>
<script>
......@@ -95,14 +99,14 @@
import {
downloadLocalFile
} from "../../api/common/common";
import eduinfoForm from "../../components/sale/eduinfo-form";
import {
queryEmployee
} from '../../api/users/user';
export default {
meta: {
title: "合同查询",
},
components: {
eduinfoForm,
},
data() {
return {
......@@ -124,7 +128,6 @@
field: "StudentName",
align: "left",
},
{
name: "CourseName",
label: "课程名称",
......@@ -155,7 +158,6 @@
align: "left",
field: "AdminStatusStr",
},
{
name: "IsCompanySeal",
label: "是否盖章",
......@@ -178,6 +180,8 @@
Status: -1, //0草稿 1提交审核 2审核通过 3驳回 4取消
ContractNo: "", //合同编号
StudentName: "", //学生姓名
IsQueryAll: 1,
QCreateBy: "",
},
pageCount: 0,
dataList: [],
......@@ -225,11 +229,13 @@
Name: "取消",
},
],
eduObj: null,
isShowEduForm: false,
EmployeeList: [], //业务员
AllemployeeList: [],
};
},
created() {},
created() {
this.getEmployee()
},
mounted() {
if (this.$route.query && this.$route.query.Name) {
//从订单完成统计跳转过来的带的参数
......@@ -238,6 +244,36 @@
this.getList();
},
methods: {
//业务员
getEmployee() {
var qMsg = {
Dept_Id: 0
}
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(() => {
})
},
//筛选业务员
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;
......@@ -269,19 +305,11 @@
});
window.open(routeUrl.href, "_blank");
},
//关闭弹窗
closeEdudia() {
this.isShowEduForm = false;
},
//刷新页面a
refreshPage() {
this.isShowEduForm = false;
this.getList();
},
},
};
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
</style>
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