diff --git a/src/components/Buying/CommondityOrderList.vue b/src/components/Buying/CommondityOrderList.vue index df5182c48955a0ba7418c9678f6f4e63d575b791..09e4ca0393b1893d50cb4c59de9c20a2231bc729 100644 --- a/src/components/Buying/CommondityOrderList.vue +++ b/src/components/Buying/CommondityOrderList.vue @@ -11,32 +11,36 @@ <ul class="user_time_picker"> <li> <span> - <em>å§“å</em> + <em>旅客åç§°</em> <el-input v-model="msg.AccountName" @keyup.enter.native="getList"></el-input> </span> </li> <li> <span> - <em>护照å·</em> - <el-input v-model="msg.PassportNo" @keyup.enter.native="getList"></el-input> - </span> - </li> - <li> - <span> - <em>账户</em> - <el-input v-model="msg.LoginAccount" @keyup.enter.native="getList"></el-input> + <em>åŒè¡Œ</em> + <el-select class="w150" v-model="msg.CustomerId" filterable :placeholder="$t('pub.pleaseSel')"> + <el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue"> + </el-option> + <el-option v-for="item in CustomerList" :label="item.CustomerName" :value="item.CustomerId" + :key="item.CustomerId"></el-option> + </el-select> </span> </li> <li> <span> - <em>手机å·ç </em> - <el-input v-model="msg.MobilePhone" @keyup.enter.native="getList"></el-input> + <em>销售</em> + <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> </li> <li> <span> - <em>{{$t('admin.admin_status')}}</em> - <el-select filterable v-model="msg.AccountStatus"> + <em>订å•状æ€</em> + <el-select filterable v-model="msg.COrderState"> <el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option> <el-option label="æ£å¸¸" :value="0"></el-option> <el-option label="ç¦ç”¨" :value="1"></el-option> @@ -121,6 +125,10 @@ return { //æŸ¥è¯¢å‚æ•° msg: { + AccountName:"",//旅客åç§° + CustomerId: 0, //åŒè¡Œç¼–å· + SaleId: 0, //é”€å”®ç¼–å· + COrderState:-1,//订å•çŠ¶æ€ pageIndex: 1, pageSize: 10, total: 0, @@ -131,10 +139,18 @@ editMsg: { Id: 0, AccountStatus: 0, - } + }, + //下拉框默认值 + SelectDefaultValue: 0, + //员工列表 + EmployeeList: [], + //客户列表 + CustomerList: [], }; }, mounted() { + this.getEmployeeList(); + this.getCustomerList(); this.getList(); }, filters: {}, @@ -143,6 +159,41 @@ this.msg.pageIndex = val; 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() { this.loading = true; @@ -150,7 +201,6 @@ this.loading = false; if (res.data.resultCode === 1) { this.dataList = res.data.data.pageData; - console.log("this.dataList", this.dataList); this.msg.total = res.data.data.count; } else { this.Error(res.data.message);