Commit a502f31c by 李伟康

fix:修复订customerCouponId丢失问题

1 parent 49bd1130
...@@ -134,11 +134,8 @@ Component({ ...@@ -134,11 +134,8 @@ Component({
let { code, data, message } = res; let { code, data, message } = res;
if (code == 0) { if (code == 0) {
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
console.log("thisPage.data", thisPage.data);
let { orderObj } = thisPage.data; let { orderObj } = thisPage.data;
// console.log(orderObj)
console.log(data, "getCustomerCouponList");
let filterList = data.filter((item) => { let filterList = data.filter((item) => {
return ( return (
item.status != 1 || item.status != 1 ||
...@@ -282,7 +279,7 @@ Component({ ...@@ -282,7 +279,7 @@ Component({
return; return;
} }
} else { } else {
// console.log(returnFun) console.log(returnFun,'=========')
if (!returnFun) { if (!returnFun) {
if (orderObj.customerCouponId) { if (orderObj.customerCouponId) {
orderObj.merchantCouponId = orderObj.customerCouponId; orderObj.merchantCouponId = orderObj.customerCouponId;
......
...@@ -292,10 +292,10 @@ Component({ ...@@ -292,10 +292,10 @@ Component({
// }); // });
// } // }
// 增加销售顾问默认勾选逻辑是第一次 // 增加销售顾问默认勾选逻辑是第一次
console.log( // console.log(
thisPage.data.orderCreateType, // thisPage.data.orderCreateType,
"thisPage.data.orderCreateType" // "thisPage.data.orderCreateType"
); // );
// debugger // debugger
if (type == 1 && isFirst) { if (type == 1 && isFirst) {
if (orderSellerInfo || orderObj.userId) { if (orderSellerInfo || orderObj.userId) {
...@@ -368,12 +368,12 @@ Component({ ...@@ -368,12 +368,12 @@ Component({
// 订单补录页面新增一个逻辑 只有一个导流方并且没有勾选过的话自动帮他选中第一个 // 订单补录页面新增一个逻辑 只有一个导流方并且没有勾选过的话自动帮他选中第一个
// 没有一个员工就自动帮他追加一个默认的 // 没有一个员工就自动帮他追加一个默认的
// 还要订单不是回显的 // 还要订单不是回显的
console.log( // console.log(
type == 1 && // type == 1 &&
merchantList.length == 1 && // merchantList.length == 1 &&
!orderObj.merchantId && // !orderObj.merchantId &&
!orderObj.merchantName // !orderObj.merchantName
); // );
if ( if (
type == 1 && type == 1 &&
merchantList.length == 1 && merchantList.length == 1 &&
...@@ -520,7 +520,6 @@ Component({ ...@@ -520,7 +520,6 @@ Component({
delete orderObj.customerCouponCode; delete orderObj.customerCouponCode;
goodsList = []; goodsList = [];
} }
thisPage.setData({ thisPage.setData({
orderObj, orderObj,
goodsList, goodsList,
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<view> <view>
<text class="record-label" wx:if="{{itemInfo.carModel}}">{{itemInfo.carModel}}</text> <text class="record-label" wx:if="{{itemInfo.carModel}}">{{itemInfo.carModel}}</text>
<text class="record-label" wx:if="{{itemInfo.tag}}">{{itemInfo.tag}}</text> <text class="record-label" wx:if="{{itemInfo.tag}}">{{itemInfo.tag}}</text>
<text class="record-label-error" wx:if="{{itemInfo.qualityCheckScore <= 20 && itemInfo.qualityCheckScore !== null && itemInfo.qualityCheckScore !== undefined}}">疑似虚假接待</text> <text class="record-label-error" wx:if="{{itemInfo.qualityCheckScore <= 20 && itemInfo.qualityCheckScore !== null && itemInfo.qualityCheckScore !== undefined && !hideScore}}">疑似虚假接待</text>
</view> </view>
<view wx:if="{{!hideScore}}"> <view wx:if="{{!hideScore}}">
<text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}"> <text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}">
......
...@@ -6,7 +6,7 @@ page { ...@@ -6,7 +6,7 @@ page {
.navigation-title { .navigation-title {
font-weight: 500; font-weight: 500;
font-size: var(--fontSize36); font-size: var(--fontSize30);
color: #282829; color: #282829;
line-height: var(--fontSize44); line-height: var(--fontSize44);
width: var(--fontSize360); width: var(--fontSize360);
......
...@@ -435,7 +435,7 @@ ...@@ -435,7 +435,7 @@
<sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" /> <sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" /> <car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" />
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{ orderObj.remark }}" /> <remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{ orderObj.remark }}" />
<coupon id="coupon" show="{{ couponBox }}" class="coupon" orderCreateType="{{ orderCreateType }}" bindconfirm="chooseCoupon" merchantId="{{ orderObj.merchantId }}" customerPhone="{{ orderObj.customer.customerPhone }}" yqMerchantId="{{ orderObj.sellerMerchantId }}" selectPayType="{{ orderObj.selectPayType }}" returnFun="{{ returnFun }}" /> <coupon id="coupon" show="{{ couponBox }}" class="coupon" orderCreateType="{{ orderCreateType }}" bindconfirm="chooseCoupon" merchantId="{{ orderObj.merchantId }}" customerPhone="{{ orderObj.customer.customerPhone }}" yqMerchantId="{{ orderObj.sellerMerchantId }}" selectPayType="{{ orderObj.selectPayType }}" returnFun="{{ scene }}" />
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" isSolarFilm="{{ true }}" baseConfigData="{{ baseConfigData }}" /> <goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" isSolarFilm="{{ true }}" baseConfigData="{{ baseConfigData }}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" /> <customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ showSource }}" position="bottom" bind:close="onCloseSource"> <van-popup show="{{ showSource }}" position="bottom" bind:close="onCloseSource">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!