Commit 0a2adec6 authored by 华国豪's avatar 华国豪 🙄
parents 448bbe77 bb7ee61c
...@@ -11,32 +11,36 @@ ...@@ -11,32 +11,36 @@
<ul class="user_time_picker"> <ul class="user_time_picker">
<li> <li>
<span> <span>
<em>姓名</em> <em>旅客名称</em>
<el-input v-model="msg.AccountName" @keyup.enter.native="getList"></el-input> <el-input v-model="msg.AccountName" @keyup.enter.native="getList"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>护照号</em> <em>同行</em>
<el-input v-model="msg.PassportNo" @keyup.enter.native="getList"></el-input> <el-select class="w150" v-model="msg.CustomerId" filterable :placeholder="$t('pub.pleaseSel')">
</span> <el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</li> </el-option>
<li> <el-option v-for="item in CustomerList" :label="item.CustomerName" :value="item.CustomerId"
<span> :key="item.CustomerId"></el-option>
<em>账户</em> </el-select>
<el-input v-model="msg.LoginAccount" @keyup.enter.native="getList"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>手机号码</em> <em>销售</em>
<el-input v-model="msg.MobilePhone" @keyup.enter.native="getList"></el-input> <el-select class="w150" v-model="msg.SaleId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</el-option>
<el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
:key="item.EmployeeId"></el-option>
</el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>{{$t('admin.admin_status')}}</em> <em>订单状态</em>
<el-select filterable v-model="msg.AccountStatus"> <el-select filterable v-model="msg.COrderState">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option label="正常" :value="0"></el-option> <el-option label="正常" :value="0"></el-option>
<el-option label="禁用" :value="1"></el-option> <el-option label="禁用" :value="1"></el-option>
...@@ -121,6 +125,10 @@ ...@@ -121,6 +125,10 @@
return { return {
//查询参数 //查询参数
msg: { msg: {
AccountName:"",//旅客名称
CustomerId: 0, //同行编号
SaleId: 0, //销售编号
COrderState:-1,//订单状态
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
...@@ -131,10 +139,18 @@ ...@@ -131,10 +139,18 @@
editMsg: { editMsg: {
Id: 0, Id: 0,
AccountStatus: 0, AccountStatus: 0,
} },
//下拉框默认值
SelectDefaultValue: 0,
//员工列表
EmployeeList: [],
//客户列表
CustomerList: [],
}; };
}, },
mounted() { mounted() {
this.getEmployeeList();
this.getCustomerList();
this.getList(); this.getList();
}, },
filters: {}, filters: {},
...@@ -143,6 +159,41 @@ ...@@ -143,6 +159,41 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
let userInfo = this.getLocalStorage()
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: '-1',
DepartmentId: '-1',
PostId: '-1',
IsLeave: '0'
}
this.apipost(
'admin_get_EmployeeGetList', {},
res => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
},
err => {}
)
},
//所有客户信息
getCustomerList() {
let msg = {
CustomerName: "",
}
this.apipost(
'app_customer_GetAllListByGroupId', {},
res => {
if (res.data.resultCode == 1) {
this.CustomerList = res.data.data;
}
},
err => {}
)
},
//获取数据 //获取数据
getList() { getList() {
this.loading = true; this.loading = true;
...@@ -150,7 +201,6 @@ ...@@ -150,7 +201,6 @@
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
console.log("this.dataList", this.dataList);
this.msg.total = res.data.data.count; this.msg.total = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
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