Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a502f31c
authored
Apr 27, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:修复订customerCouponId丢失问题
1 parent
49bd1130
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
18 deletions
components/Coupon/Coupon.js
components/Merchant-Seles/Merchant-Seles.js
packageEquity/pages/index/components/record-item/recordItem.wxml
packageEquity/pages/receptionDetail/receptionDetail.sass
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/createOrder/createOrder.wxml
components/Coupon/Coupon.js
View file @
a502f31
...
...
@@ -134,11 +134,8 @@ Component({
let
{
code
,
data
,
message
}
=
res
;
if
(
code
==
0
)
{
let
thisPage
=
wx
.
$router
.
getPageInstance
();
console
.
log
(
"thisPage.data"
,
thisPage
.
data
);
let
{
orderObj
}
=
thisPage
.
data
;
// console.log(orderObj)
console
.
log
(
data
,
"getCustomerCouponList"
);
let
filterList
=
data
.
filter
((
item
)
=>
{
return
(
item
.
status
!=
1
||
...
...
@@ -282,7 +279,7 @@ Component({
return
;
}
}
else
{
// console.log(returnFun
)
console
.
log
(
returnFun
,
'========='
)
if
(
!
returnFun
)
{
if
(
orderObj
.
customerCouponId
)
{
orderObj
.
merchantCouponId
=
orderObj
.
customerCouponId
;
...
...
components/Merchant-Seles/Merchant-Seles.js
View file @
a502f31
...
...
@@ -292,10 +292,10 @@ Component({
// });
// }
// 增加销售顾问默认勾选逻辑是第一次
console
.
log
(
thisPage
.
data
.
orderCreateType
,
"thisPage.data.orderCreateType"
);
//
console.log(
//
thisPage.data.orderCreateType,
//
"thisPage.data.orderCreateType"
//
);
// debugger
if
(
type
==
1
&&
isFirst
)
{
if
(
orderSellerInfo
||
orderObj
.
userId
)
{
...
...
@@ -368,12 +368,12 @@ Component({
// 订单补录页面新增一个逻辑 只有一个导流方并且没有勾选过的话自动帮他选中第一个
// 没有一个员工就自动帮他追加一个默认的
// 还要订单不是回显的
console
.
log
(
type
==
1
&&
merchantList
.
length
==
1
&&
!
orderObj
.
merchantId
&&
!
orderObj
.
merchantName
);
//
console.log(
//
type == 1 &&
//
merchantList.length == 1 &&
//
!orderObj.merchantId &&
//
!orderObj.merchantName
//
);
if
(
type
==
1
&&
merchantList
.
length
==
1
&&
...
...
@@ -520,7 +520,6 @@ Component({
delete
orderObj
.
customerCouponCode
;
goodsList
=
[];
}
thisPage
.
setData
({
orderObj
,
goodsList
,
...
...
packageEquity/pages/index/components/record-item/recordItem.wxml
View file @
a502f31
...
...
@@ -26,7 +26,7 @@
<view>
<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-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 wx:if="{{!hideScore}}">
<text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}">
...
...
packageEquity/pages/receptionDetail/receptionDetail.sass
View file @
a502f31
...
...
@@ -6,7 +6,7 @@ page {
.navigation-title
{
font-weight
:
500
;
font-size
:
var
(
--
fontSize3
6
)
;
font-size
:
var
(
--
fontSize3
0
)
;
color
:
#282829
;
line-height
:
var
(
--
fontSize44
)
;
width
:
var
(
--
fontSize360
)
;
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
a502f31
This diff is collapsed.
Click to expand it.
tabWorkOrder/pages/createOrder/createOrder.wxml
View file @
a502f31
...
...
@@ -435,7 +435,7 @@
<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 }}" />
<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 }}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ showSource }}" position="bottom" bind:close="onCloseSource">
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment