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 8b0856fb
authored
Feb 26, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.49.2' into 'develop'
上线合并 See merge request
!363
2 parents
f8851b1a
448495a8
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
89 additions
and
69 deletions
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
packageEquity/pages/carQuotation/components/Goods/Goods.js
packageEquity/pages/carQuotation/components/Goods/Goods.wxml
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.js
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
packageEquity/pages/carQuotation/components/GoodsPackage/index.wxs
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
packageEquity/pages/carQuotation/components/SecondStepSimple/index.wxs
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/index.wxs
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
View file @
8b0856f
...
...
@@ -263,6 +263,10 @@ Component({
[
dataAttrName
+
'.'
+
'carSeriesId'
]:
carSeriesId
,
[
dataAttrName
+
'.'
+
'carSeriesName'
]:
carSeriesName
})
// 是车价就重新筛选商品列表
if
(
carSeriesId
)
{
thisPage
.
resetGoods
&&
thisPage
.
resetGoods
()
}
},
/**获取园区配置 */
async
getYqStoreConfig
()
{
...
...
packageEquity/pages/carQuotation/components/Goods/Goods.js
View file @
8b0856f
...
...
@@ -200,6 +200,7 @@ Component({
let
arr
=
[]
_DATA_
.
map
(
c
=>
{
let
name
=
c
.
upgradeGoodsAlias
||
c
.
upgradeGoodsName
||
c
.
goodsInfo
.
goodsName
console
.
log
(
name
,
'name'
);
if
(
name
.
indexOf
(
value
)
!=
-
1
)
{
arr
.
push
(
c
)
}
...
...
packageEquity/pages/carQuotation/components/Goods/Goods.wxml
View file @
8b0856f
<wxs src="index.wxs" module="filter" />
<popup show="{{show}}" title="选择商品" bindconfirm="confirm" bindcancel="cancel">
<view class="coupon-box">
<search-input value="{{keyWord}}" bindsearch="searchGoods" />
<scroll-view class="coupon" scroll-y>
<block wx:if="{{goodsList.length > 0}}">
<!-- <block wx:for="{{goodsList}}" wx:key="index"> -->
<!-- <view class="title">
<view class="coupon-box">
<search-input value="{{keyWord}}" bindsearch="searchGoods" />
<scroll-view class="coupon" scroll-y>
<block wx:if="{{goodsList.length > 0}}">
<!-- <block wx:for="{{goodsList}}" wx:key="index"> -->
<!-- <view class="title">
{{item.goodsTypeName}}
<text class="tips">|建议价</text>
</view> -->
<view class="box">
<block
wx:for="{{goodsList}}"
wx:key="ind"
wx:for-index="ind"
wx:for-item="i">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<!-- {{i.shopMinPrice}} -->
<view
class="value "
catchtap="choose"
data-index="{{index}}"
data-ind="{{ind}}"
data-item="{{i}}">
<view class="name text-hide ">
<!-- filter.replaceItemText(i.upgradeGoodsAlias) || -->
<view>{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.serveName}}">(包含{{i.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
</view>
<view class="last" >
<text class="price">¥{{i.upgradePrice}}</text>
</view>
</view>
<!-- <block wx:if="{{i.active}}">
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<!-- {{i.shopMinPrice}} -->
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide ">
<!-- filter.replaceItemText(i.upgradeGoodsAlias) || -->
<view>{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName + item.goods.specificationData) || filter.replaceItemText(i.goodsInfo.goodsName+ item.goods.specificationData)}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.serveName}}">(包含{{i.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
</view>
<view class="last">
<text class="price">¥{{i.upgradePrice}}</text>
</view>
</view>
<!-- <block wx:if="{{i.active}}">
<view class="control">
<view
class="minus"
...
...
@@ -64,28 +55,22 @@
</view>
</view>
</block> -->
<view
class="icon"
catchtap="choose"
data-index="{{index}}"
data-ind="{{ind}}"
data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
</view>
</block>
</view>
<!-- </block> -->
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
</view>
</popup>
<view class="icon" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
</view>
</block>
</view>
<!-- </block> -->
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
</view>
</popup>
\ No newline at end of file
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.js
View file @
8b0856f
...
...
@@ -288,13 +288,15 @@ Component({
_DATA_
.
map
(
c
=>
{
// let nameList = []
let
name
// debugger
if
(
c
.
goods
)
{
// nameList.push(c.goods.goodsAlias,c.goods.upgradeGoodsName,c.goods.goodsName)
name
=
c
.
goods
.
goodsAlias
||
c
.
goods
.
upgradeGoodsName
||
c
.
goods
.
goodsName
name
=
c
.
goods
.
goodsAlias
||
c
.
goods
.
upgradeGoodsName
||
c
.
goods
.
goodsName
||
''
}
if
(
c
.
packageGoods
)
{
name
=
c
.
packageGoods
.
packageAlias
||
c
.
packageGoods
.
packageName
}
console
.
log
(
name
,
c
,
'name'
);
if
(
name
.
indexOf
(
value
)
!=
-
1
)
{
arr
.
push
(
c
)
}
...
...
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
View file @
8b0856f
...
...
@@ -15,7 +15,7 @@
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goods}}">
<view class="name text-hide ">
<view class="text-hide">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName
) || filter.replaceItemText(i.goods.goodsInfo.goodsName
)}}</view>
<view class="text-hide">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName
+ i.goods.specificationData ) || filter.replaceItemText(i.goods.goodsInfo.goodsNamei.goods.specificationData
)}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
...
...
@@ -37,7 +37,7 @@
<view class="goodsChild">
<view class="goodsItem" wx:for="{{i.packageGoods.goodsList}}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="goodsListName">{{filter.replaceItemText(child.goodsAlias) ||filter.replaceItemText(child.upgradeGoodsName
) || filter.replaceItemText(child.goodsInfo.goodsName
)}}</view>
<view class="goodsListName">{{filter.replaceItemText(child.goodsAlias) ||filter.replaceItemText(child.upgradeGoodsName
+ child.specificationData) || filter.replaceItemText(child.goodsInfo.goodsName+ child.specificationData
)}}</view>
<view class="goodsListPrice">¥{{child.sellPrice}}</view>
</view>
</view>
...
...
packageEquity/pages/carQuotation/components/GoodsPackage/index.wxs
View file @
8b0856f
var replaceItemText = function (item) {
var reg = getRegExp(';~;', 'g')
return item
?item.replace(reg, ' '):
''
return item
? item.replace(reg, '/') :
''
}
/*
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
View file @
8b0856f
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<wxs src="index.wxs" module="filter" />
<view class="testFormCon">
<van-collapse value="{{ activeNames }}">
<view class="collapse">
...
...
@@ -22,7 +23,7 @@
<image src="./images/del.png" />
</view>
<view class="name text-hide">
{{item.goods.goodsAlias || item.goods.goodsNameAlias ||
item.goods.upgradeGoodsName || item.goods.goodsName
}}
{{item.goods.goodsAlias || item.goods.goodsNameAlias ||
filter.replaceItemText(item.goods.upgradeGoodsName + item.goods.specificationData) || filter.replaceItemText(item.goods.goodsName+ item.goods.specificationData)
}}
<!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view>
<view class="price-box">
...
...
@@ -45,7 +46,7 @@
</view>
<view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="name text-hide">{{child.goodsAlias || child.goodsNameAlias ||
child.upgradeGoodsName ||child.goodsName
}}</view>
<view class="name text-hide">{{child.goodsAlias || child.goodsNameAlias ||
filter.replaceItemText(child.upgradeGoodsName + item.specificationData) ||filter.replaceItemText(child.goodsName+ item.specificationData)
}}</view>
<view class="price-box">
<text>¥</text>
<view class="price">
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/index.wxs
0 → 100644
View file @
8b0856f
var replaceItemText = function (item) {
var reg = getRegExp(';~;', 'g')
return item ? item.replace(reg, ' ') : ''
}
/*
* 导出
*/
module.exports = {
replaceItemText: replaceItemText
}
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
8b0856f
...
...
@@ -431,6 +431,7 @@ Page({
orderInfo
.
minEquityPrice
=
this
.
multipliedByHundred
(
orderInfo
.
minEquityPrice
);
// var reg = getRegExp(';~;', 'g')
orderInfo
.
vdQuotationGoodsList
=
orderInfo
.
vdQuotationGoodsList
.
reduce
(
(
pre
,
item
)
=>
{
if
(
item
.
goods
)
{
...
...
@@ -439,7 +440,8 @@ Page({
goodsId
:
item
.
merchantGoodsId
,
goodsName
:
item
.
goodsName
,
goodsNameAlias
:
item
.
goodsAlias
||
item
.
goodsNameAlias
,
// shopMinPrice: item.shopMinPrice,
specificationsName
:
item
.
specificationNameSequence
,
specificationsValue
:
item
.
specificationData
?
item
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
:
''
,
goodsPrice
:
this
.
multipliedByHundred
(
item
.
price
),
};
pre
.
push
(
obj
);
...
...
@@ -456,7 +458,9 @@ Page({
goodsId
:
ele
.
merchantGoodsId
||
ele
.
upgradeGoodsId
,
goodsName
:
ele
.
upgradeGoodsName
||
ele
.
goodsName
,
goodsNameAlias
:
ele
.
goodsAlias
||
ele
.
goodsNameAlias
,
// shopMinPrice: item.shopMinPrice,
specificationsName
:
ele
.
specificationNameSequence
,
specificationsValue
:
ele
.
specificationData
?
ele
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
:
''
,
// specificationsValue: item.specificationData ? item.specificationData.replace(reg, ' ') : '',
goodsPrice
:
this
.
multipliedByHundred
(
ele
.
price
),
};
pre
.
push
(
obj
);
...
...
@@ -499,14 +503,14 @@ Page({
if
(
check
&&
orderInfo
.
payType
==
2
&&
carBrandList
?.
includes
(
orderInfo
?.
owner
?.
carChildsBrandId
)
&&
detail
!=
'cancel'
&&
!
orderInfo
?.
zyPayUrl
&&
!
orderInfo
.
resetOrder
)
{
// 添加流水号校验
wx
.
hideLoading
()
let
result
=
await
checkRecord
({
transactionNo
:
orderInfo
.
transactionNo
})
let
result
=
await
checkRecord
({
transactionNo
:
orderInfo
.
transactionNo
})
let
{
code
,
message
}
=
result
if
(
code
==
0
)
{
this
.
setData
({
showPopup
:
false
})
reject
()
return
this
.
setData
({
showZyPopup
:
true
})
return
this
.
setData
({
showZyPopup
:
true
})
}
else
{
reject
()
this
.
setData
({
...
...
@@ -790,7 +794,7 @@ Page({
getQuotationInfo
(
getOrderInfo
,
timeNum
=
0
)
{
let
{
default4SStoreInfo
}
=
wx
.
$util
.
getUserInfo
();
let
{
owner
:
{
price
},
owner
:
{
price
,
carSeriesId
},
orderInfo
,
id
,
}
=
this
.
data
;
...
...
@@ -802,6 +806,7 @@ Page({
quotationGoodsList
({
merchantId
:
default4SStoreInfo
.
merchantId
,
suitCarPrice
:
price
?
parseFloat
((
price
/
10000
).
toFixed
(
4
))
:
""
,
seriesId
:
carSeriesId
})
.
then
((
result
)
=>
{
...
...
@@ -836,7 +841,6 @@ Page({
// 如果输入字段在字段映射中有匹配项,则进行替换,否则保持不变
fieldMap
[
item
.
position
]
&&
(
serveName
=
fieldMap
[
item
.
position
]);
}
// console.log(serveName, 'serveName');
ele
.
goods
=
{
...
item
,
goodsId
:
item
.
merchantGoodsId
,
...
...
@@ -844,6 +848,7 @@ Page({
goodsNameAlias
:
item
.
upgradeGoodsAlias
,
appreciation
:
item
?.
appreciation
,
goodsName
:
item
?.
upgradeGoodsName
,
specificationData
:
item
.
specificationData
?
item
.
specificationData
.
replace
(
/;~;/g
,
'/'
)
:
''
,
quotationGoodsServiceItemsRelationDTOList
:
item
?.
upgradeGoodsServiceItemsList
,
titlePictureUrl
:
item
.
goodsInfo
?.
thumbUrl
,
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/index.wxs
0 → 100644
View file @
8b0856f
var replaceItemText = function (item) {
var reg = getRegExp(';~;', 'g')
return item ? item.replace(reg, ' ') : ''
}
/*
* 导出
*/
module.exports = {
replaceItemText: replaceItemText
}
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