Commit 43c3269a authored by youjie's avatar youjie

修复bug

parent 3a1c913b
...@@ -1166,7 +1166,7 @@ ...@@ -1166,7 +1166,7 @@
@click="SelectSales(item)"> @click="SelectSales(item)">
<view>{{ item.EmName }}</view> <view>{{ item.EmName }}</view>
<view> <view>
<u-radio-group v-model="SaleId" @change="SelectSales" <u-radio-group v-model="SaleId"
style="position: relative;top:10rpx;"> style="position: relative;top:10rpx;">
<u-radio shape="circle" :name="item.CreateBy" :icon-size="36" <u-radio shape="circle" :name="item.CreateBy" :icon-size="36"
:active-color="mc"></u-radio> :active-color="mc"></u-radio>
...@@ -1462,6 +1462,7 @@ ...@@ -1462,6 +1462,7 @@
SelectSales(item){ SelectSales(item){
this.SaleName = item.EmName this.SaleName = item.EmName
this.SaleId = item.CreateBy this.SaleId = item.CreateBy
console.log("SaleId--------444444", this.SaleId);
}, },
getUserCouponList() { getUserCouponList() {
let couponParams = { let couponParams = {
...@@ -1990,14 +1991,14 @@ ...@@ -1990,14 +1991,14 @@
yeCount: this.yeCount, //婴儿 yeCount: this.yeCount, //婴儿
etbCount: this.etbCount, //儿童不占床 etbCount: this.etbCount, //儿童不占床
}; };
let createBy = this.createBy>0?this.createBy:this.SaleId
let tParams = "&tcid=" + let tParams = "&tcid=" +
this.delMsg.tcid + this.delMsg.tcid +
"&cityId=" + "&cityId=" +
this.delMsg.cityId + this.delMsg.cityId +
"&lineId=" + "&lineId=" +
this.dataList.lineId + this.dataList.lineId +
"&CreateBy=" +(this.createBy?this.createBy:this.SaleId); "&CreateBy=" +createBy;
console.log("tParams", tParams);
uni.navigateTo({ uni.navigateTo({
url: "/pages/jiuzhai/jz_Reserve?currentPriceInfo=" + url: "/pages/jiuzhai/jz_Reserve?currentPriceInfo=" +
encodeURIComponent(myCurr) + encodeURIComponent(myCurr) +
......
...@@ -837,6 +837,13 @@ ...@@ -837,6 +837,13 @@
// return; // return;
// } // }
// } // }
if(!this.CreateBy){
uni.showToast({
title: `销售为空,请联系销售人员!`,
icon: "none",
});
return
}
this.submit = true; this.submit = true;
this.userInfo = uni.getStorageSync("mall_UserInfo"); this.userInfo = uni.getStorageSync("mall_UserInfo");
this.basedataObj = uni.getStorageSync("basedata").mall; this.basedataObj = uni.getStorageSync("basedata").mall;
......
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
@click="SelectSales(item)"> @click="SelectSales(item)">
<view>{{ item.EmName }}</view> <view>{{ item.EmName }}</view>
<view> <view>
<u-radio-group v-model="SaleId" @change="SelectSales" <u-radio-group v-model="SaleId"
style="position: relative;top:10rpx;"> style="position: relative;top:10rpx;">
<u-radio shape="circle" :name="item.CreateBy" :icon-size="36" <u-radio shape="circle" :name="item.CreateBy" :icon-size="36"
:active-color="mc"></u-radio> :active-color="mc"></u-radio>
......
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