Commit 082012ce authored by 黄奎's avatar 黄奎

页面修改

parent 9032865e
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
text-align: left; text-align: left;
padding: 0 10px; padding: 0 10px;
} }
._TravelPricePopover .ScenicDiv { ._TravelPricePopover .ScenicDiv {
width: 100%; width: 100%;
max-height: 300px; max-height: 300px;
...@@ -242,10 +242,10 @@ ...@@ -242,10 +242,10 @@
@click="outerVisible=true,EditItem(item)"></el-button> @click="outerVisible=true,EditItem(item)"></el-button>
</el-tooltip> </el-tooltip>
<!-- <el-tooltip class="item" effect="dark" content="发放优惠券" placement="top"> <el-tooltip class="item" effect="dark" content="发放优惠券" placement="top">
<el-button v-if="EditBtn" type="danger" icon="iconfont icon-caidan-fill" circle style="padding:4px;" <el-button v-if="EditBtn" type="danger" icon="iconfont icon-caidan-fill" circle style="padding:4px;"
@click="autoCouponDialog=true,AutoGrantCounItem(item)"></el-button> @click="autoCouponDialog=true,AutoGrantCounItem(item)"></el-button>
</el-tooltip> --> </el-tooltip>
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -468,13 +468,13 @@ ...@@ -468,13 +468,13 @@
</el-dialog> </el-dialog>
<el-dialog custom-class='w500' title="发放优惠券" :visible.sync="autoCouponDialog" center > <el-dialog custom-class='w500' title="发放优惠券" :visible.sync="autoCouponDialog" center>
<el-form :model="grantCouponMsg" :rules="rules" ref="grantCouponMsg" label-width="100px" class="addBox"> <el-form :model="grantCouponMsg" :rules="rules" ref="grantCouponMsg" label-width="100px" class="addBox">
<el-form-item label="优惠券名称"> <el-form-item label="优惠券名称">
<p>{{grantCouponMsg.couponsName}}</p> <p>{{grantCouponMsg.couponsName}}</p>
</el-form-item> </el-form-item>
<el-form-item label="优惠券类型"> <el-form-item label="优惠券类型">
<p>{{grantCouponMsg.couponsType==1?"抵用券":(grantCouponMsg.couponsType==2?"折扣卷":"")}}</p> <p>{{grantCouponMsg.couponsType==1?"抵用券":(grantCouponMsg.couponsType==2?"折扣卷":"")}}</p>
</el-form-item> </el-form-item>
<el-form-item label="使用条件"> <el-form-item label="使用条件">
<p>{{grantCouponMsg.useCondition}}</p> <p>{{grantCouponMsg.useCondition}}</p>
...@@ -486,43 +486,48 @@ ...@@ -486,43 +486,48 @@
<el-input class="w180" v-model="grantCouponMsg.customerInfo" @keyup.enter.native="getCustomerBrandByKeyWord"> <el-input class="w180" v-model="grantCouponMsg.customerInfo" @keyup.enter.native="getCustomerBrandByKeyWord">
</el-input> </el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item label="选择人员" prop="customerIds"> <el-form-item label="选择人员" prop="customerIds">
<template v-if="customerList&&customerList.length>0">
<div> <template v-for="(item,index) in customerList">
<template v-if="item.ischecked">
<el-popover trigger="click" placement="bottom-start"> <el-tag :key="index+10000" closable @close="deleteTag(item)">{{item.customerName}}({{item.contact}})
            <div class="_TravelPricePopover" style="height: 300px;overflow: auto;width: 350px;" v-="xuanzeCustomer"> </el-tag>
              <div class="ScenicDiv" > </template>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr> </template>
<td class="_color_666">选择</td> </template>
<td class="_color_666">客户名称</td> <!--v-if="xuanzeCustomer"-->
<td class="_color_666">联系电话</td> <el-popover trigger="click" placement="bottom-start">
</tr> <div class="_TravelPricePopover" style="height: 300px;overflow: auto;width: 350px;">
<tr v-for="fitem in customerList"> <div class="ScenicDiv">
<td> <el-input class="w180" v-model="grantCouponMsg.customerInfo"
<el-checkbox @change="getSelect(fitem)"></el-checkbox> @keypress.native.enter="getCustomerBrandByKeyWord" placeholder="请输入关键字,'回车'查询">
</td> </el-input>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0" v-loading="xuanzeCustomerLoading">
{{fitem.customerName}} <tr>
</td> <td class="_color_666">选择</td>
<td> <td class="_color_666">客户名称</td>
{{fitem.contact}} <td class="_color_666">联系电话</td>
</td> </tr>
</tr> <tr v-for="(fitem,fIndex) in customerList" :key="fIndex">
</table> <td>
              </div> <el-checkbox @change="getSelect(fitem)" v-model="fitem.ischecked"></el-checkbox>
            </div> </td>
            <div slot="reference" style="padding: 0 4px;"> <td>
<el-input class="w180" v-model="grantCouponMsg.customerInfo" > {{fitem.customerName}}
</el-input> </td>
<el-button size="small" type="danger" @click="getCustomerBrandByKeyWord()">查询</el-button> <td>
            </div> {{fitem.contact}}
          </el-popover> </td>
</div> </tr>
</el-form-item> </table>
</div>
</div>
<div slot="reference" style="padding: 0 4px;">
<el-button size="small" type="danger">查询</el-button>
</div>
</el-popover>
</el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="autoCouponDialog = false">取 消</el-button> <el-button size="small" @click="autoCouponDialog = false">取 消</el-button>
...@@ -575,8 +580,8 @@ ...@@ -575,8 +580,8 @@
outerVisible: false, outerVisible: false,
innerVisible: false, innerVisible: false,
updateKucundialog: false, updateKucundialog: false,
autoCouponDialog:false, autoCouponDialog: false,
xuanzeCustomer:false, xuanzeCustomerLoading: false,
isRight: true, isRight: true,
dialogTitle: "", dialogTitle: "",
insideDialogTxt: "", insideDialogTxt: "",
...@@ -696,7 +701,7 @@ ...@@ -696,7 +701,7 @@
CouponPlatformEnumList: [], CouponPlatformEnumList: [],
companyList: [], companyList: [],
customerList: [], customerList: [],
layerCustomerList:[], layerCustomerList: [],
layerDepartMentList: [], layerDepartMentList: [],
departMentList: [], departMentList: [],
PostList: [], PostList: [],
...@@ -718,12 +723,12 @@ ...@@ -718,12 +723,12 @@
couponsUseScope: 1, couponsUseScope: 1,
couponStatus: 1, couponStatus: 1,
redemptionPrice: '', redemptionPrice: '',
denomination:0, denomination: 0,
isExpansion: 0, isExpansion: 0,
customerIds:'', customerIds: '',
customerIdList:[], customerIdList: [],
customerType:0, customerType: 0,
customerInfo:"" customerInfo: ""
}, },
EditBtn: false, EditBtn: false,
}; };
...@@ -743,6 +748,13 @@ ...@@ -743,6 +748,13 @@
}, },
methods: { methods: {
//删除客户标签
deleteTag(item) {
item.ischecked=false;
},
getSelect(item) {
},
getcouponPriceList() { getcouponPriceList() {
this.addMsg.couponPriceList = [] this.addMsg.couponPriceList = []
this.addMsg.couponPriceLists.forEach(item => { this.addMsg.couponPriceLists.forEach(item => {
...@@ -802,9 +814,8 @@ ...@@ -802,9 +814,8 @@
}, },
//发放优惠券 //发放优惠券
AutoGrantCounItem(item) { AutoGrantCounItem(item) {
this.grantCouponMsg = Object.assign({}, item); this.grantCouponMsg = Object.assign({}, item);
console.log("grantCouponMsg", this.grantCouponMsg); console.log("grantCouponMsg", this.grantCouponMsg);
}, },
//点击确定修改库存 //点击确定修改库存
sureUpdatekucun() { sureUpdatekucun() {
...@@ -831,17 +842,23 @@ console.log("grantCouponMsg", this.grantCouponMsg); ...@@ -831,17 +842,23 @@ console.log("grantCouponMsg", this.grantCouponMsg);
} }
); );
}, },
//查询客户
getCustomerBrandByKeyWord() { getCustomerBrandByKeyWord() {
this.xuanzeCustomerLoading = true;
this.customerList = [];
this.apipost( this.apipost(
"app_post_GetCustomerBrandByKeyWord", "app_post_GetCustomerBrandByKeyWord",
this.grantCouponMsg, this.grantCouponMsg,
res => { res => {
this.xuanzeCustomerLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.layerCustomerList = res.data.data; var tempData = res.data.data;
this.customerList = res.data.data; if (tempData && tempData.length > 0) {
this.xuanzeCustomer=true; tempData.forEach(item => {
console.log("customerList",this.xuanzeCustomer); item.ischecked = false;
})
}
this.customerList = tempData;
} }
} }
); );
......
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