Commit b548ea8a authored by 吴春's avatar 吴春

订单根据客户查询

parent 5ed1dade
...@@ -131,6 +131,22 @@ ...@@ -131,6 +131,22 @@
type="date"></el-date-picker> type="date"></el-date-picker>
</span> </span>
</li> </li>
<li>
<span><em>{{ $t("fnc.khxinxi") }}</em>
<el-select v-model="msg.CustomerId" class="w150" filterable remote reserve-keyword :placeholder="$t('pub.PleaseKeyWords')"
:remote-method="GetCustomerListByKeyWord">
<el-option :label="$t('pub.unlimitedSel')" value="0"></el-option>
<el-option v-for="item in customerList" :label="item.customerName" :value="item.customerId" :key="item.customerId">
<div>
<span>{{`${item.customerName}`}}</span>
<span style="margin-left: 15px;">
<el-tag size="mini" >({{item.contact}}{{item.contactNumber}})</el-tag>
</span>
</div>
</el-option>
</el-select>
</span>
</li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click=" <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="
...@@ -789,6 +805,7 @@ ...@@ -789,6 +805,7 @@
IsCollectMoney: 0, IsCollectMoney: 0,
IsUseCoupon: "0", IsUseCoupon: "0",
IsUseRedEnvelopeMoney: "0", IsUseRedEnvelopeMoney: "0",
CustomerId:"0",
}, },
employeeMsg: { employeeMsg: {
RB_Group_id: "0", RB_Group_id: "0",
...@@ -847,9 +864,26 @@ ...@@ -847,9 +864,26 @@
userId: 0, userId: 0,
//修改订单业务员1-有权限 //修改订单业务员1-有权限
isEditOrderCreate: 0, isEditOrderCreate: 0,
customerList:[]
}; };
}, },
methods: { methods: {
GetCustomerListByKeyWord(query) {
if (query !== '') {
// this.employeeMsg.KeyWord = query;
this.apipost(
"app_get_GetCustomerListByKeyWord",
{KeyWord:query},
res => {
if (res.data.resultCode == 1) {
this.customerList = res.data.data;
}
},
err => {}
);
}
},
//获取系列列表 //获取系列列表
getLineTeamList(lineId) { getLineTeamList(lineId) {
this.LineTeamList = []; this.LineTeamList = [];
......
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