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