|
|
@@ -322,10 +322,12 @@
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
<el-form-item label="会员信息" >
|
|
|
<el-row >
|
|
|
- <el-col >
|
|
|
-<!-- <el-input placeholder="请输入会员手机号" style="width:240px;cursor:pointer" v-model="phone">-->
|
|
|
-<!-- </el-input>-->
|
|
|
- <el-input placeholder="请输入会员手机号/会员ID/昵称" style="width:270px;cursor:pointer" v-model="keywords">
|
|
|
+ <el-col>
|
|
|
+ <el-input placeholder="请输入会员手机号" style="width:200px;cursor:pointer;margin-left:5px;" v-model="phone">
|
|
|
+ </el-input>
|
|
|
+ <el-input placeholder="请输入准确的会员ID" style="width:200px;cursor:pointer;margin-left:5px;" v-model="userId">
|
|
|
+ </el-input>
|
|
|
+ <el-input placeholder="请输入会员昵称" style="width:200px;cursor:pointer;margin-left:5px;" v-model="nickName">
|
|
|
</el-input>
|
|
|
<el-button plain style="margin-left:10px;" @click="searchUser()">查询</el-button>
|
|
|
<el-button plain style="margin-left:10px;" icon="el-icon-plus" type="primary" @click="handleAddUser()">添加会员</el-button>
|
|
|
@@ -518,7 +520,8 @@ export default {
|
|
|
tablekey:false,
|
|
|
totalMoney:0.00,
|
|
|
phone:null,
|
|
|
- keywords: null,
|
|
|
+ userId: null,
|
|
|
+ nickName: null,
|
|
|
products:[],
|
|
|
product:{
|
|
|
open:false,
|
|
|
@@ -746,14 +749,10 @@ export default {
|
|
|
this.product.open=true;
|
|
|
},
|
|
|
searchUser(){
|
|
|
- // if(this.phone==null||this.phone==""){
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // var data={phone:this.phone}
|
|
|
- if(this.keywords==null||this.keywords==""){
|
|
|
+ if((this.phone==null||this.phone==="") && (this.userId==null||this.userId==="") && (this.nickName==null||this.nickName==="")){
|
|
|
return;
|
|
|
}
|
|
|
- var data={keywords:this.keywords}
|
|
|
+ var data={phone:this.phone, userId:this.userId, nickName: this.nickName}
|
|
|
this.userloading = true;
|
|
|
this.users=[];
|
|
|
this.address=[];
|