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 b544c2a7
authored
Dec 20, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
需求开发
1 parent
8fbcd91d
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
251 additions
and
20 deletions
components/CarBrands/CarBrands.js
components/CarBrands/CarBrands.wxml
components/CarBrands/CarBrands.wxss
packageEquity/components/GLForm/GLForm.wxml
packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss
packageEquity/pages/carEquity/components/constant/secondStepData.js
packageEquity/pages/carEquity/serviceInfo/serviceInfo.js
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.json
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxml
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.js
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/createDeafeatOrder/createDeafeatOrder.js
packageEquity/pages/createDeafeatOrderAi/createDeafeatOrderAi.js
components/CarBrands/CarBrands.js
View file @
b544c2a
...
@@ -14,10 +14,11 @@ Component({
...
@@ -14,10 +14,11 @@ Component({
},
},
carSeriesId
:
{
carSeriesId
:
{
type
:
Number
,
type
:
Number
,
// observer: function (n) {
observer
:
function
(
n
)
{
// console.log('carSeriesId')
let
{
storageData
,
equityFlag
}
=
this
.
data
// if (n) this.init()
// 数字报价单获取详情接口, carSeriesId通过接口获取会出现慢的情况,重新整理车型数据将已选值置为选中状态
// }
if
(
equityFlag
&&
n
&&
storageData
?.
length
)
this
.
setCar
(
storageData
,
true
)
}
},
},
merchantId
:
{
merchantId
:
{
type
:
Number
,
type
:
Number
,
...
@@ -26,6 +27,9 @@ Component({
...
@@ -26,6 +27,9 @@ Component({
if
(
n
)
this
.
init
(
n
,
true
);
if
(
n
)
this
.
init
(
n
,
true
);
},
},
},
},
equityFlag
:
{
type
:
Boolean
}
},
},
/**
/**
...
@@ -356,8 +360,9 @@ Component({
...
@@ -356,8 +360,9 @@ Component({
});
});
},
},
confirm
()
{
confirm
()
{
let
{
chooseItem
}
=
this
.
data
;
let
{
chooseItem
,
equityFlag
}
=
this
.
data
;
let
thisPage
=
wx
.
$router
.
getPageInstance
();
let
thisPage
=
wx
.
$router
.
getPageInstance
();
if
(
!
equityFlag
)
{
let
{
let
{
orderObj
:
{
customer
},
orderObj
:
{
customer
},
}
=
thisPage
.
data
;
}
=
thisPage
.
data
;
...
@@ -368,6 +373,7 @@ Component({
...
@@ -368,6 +373,7 @@ Component({
thisPage
.
setData
({
thisPage
.
setData
({
[
"orderObj.customer"
]:
customer
,
[
"orderObj.customer"
]:
customer
,
});
});
}
this
.
setData
({
this
.
setData
({
show
:
false
,
show
:
false
,
});
});
...
...
components/CarBrands/CarBrands.wxml
View file @
b544c2a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
title="选择车型"
title="选择车型"
show="{{show}}"
show="{{show}}"
bindconfirm="confirm"
bindconfirm="confirm"
height="
90%
">
height="
{{ equityFlag ? '85%' : '90%' }}
">
<view class="car-brands-box">
<view class="car-brands-box">
<search-input bindsearch="searchCar" />
<search-input bindsearch="searchCar" />
<view class="car-brands">
<view class="car-brands">
...
...
components/CarBrands/CarBrands.wxss
View file @
b544c2a
...
@@ -33,13 +33,14 @@
...
@@ -33,13 +33,14 @@
padding-left: var(--fontSize32);
padding-left: var(--fontSize32);
font-size: var(--fontSize32);
font-size: var(--fontSize32);
font-weight: 700;
font-weight: 700;
color: #323436;
}
}
.child {
.child {
font-weight: normal;
font-weight: normal;
padding-left: var(--fontSize96);
padding-left: var(--fontSize96);
font-size: var(--fontSize28);
font-size: var(--fontSize28);
color: #
888888
;
color: #
323436
;
position: relative;
position: relative;
}
}
...
...
packageEquity/components/GLForm/GLForm.wxml
View file @
b544c2a
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
<picker
<picker
wx:if="{{item.type == 'pickerTime'}}"
wx:if="{{item.type == 'pickerTime'}}"
mode="date"
mode="date"
value="{{formData[name]}}"
value="{{formData[name]
|| formData[item.name]
}}"
start="{{item.start || ''}}"
start="{{item.start || ''}}"
end="{{item.end || ''}}"
end="{{item.end || ''}}"
bindchange="handleTimeChange"
bindchange="handleTimeChange"
...
...
packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
View file @
b544c2a
...
@@ -55,6 +55,7 @@ Component({
...
@@ -55,6 +55,7 @@ Component({
formRule
:
constantData
.
formRule
,
formRule
:
constantData
.
formRule
,
energyFormRule
:
constantData
.
energyFormRule
,
energyFormRule
:
constantData
.
energyFormRule
,
oilFormRule
:
constantData
.
oilFormRule
,
oilFormRule
:
constantData
.
oilFormRule
,
extendServiceFormRule
:
constantData
.
extendServiceFormRule
,
isShowObj
:
{
isShowObj
:
{
car
:
true
,
car
:
true
,
customer
:
true
,
customer
:
true
,
...
@@ -138,6 +139,16 @@ Component({
...
@@ -138,6 +139,16 @@ Component({
formData
formData
})
})
},
},
// 切换排量/功率
changeType
(
e
)
{
let
{
type
,
index
}
=
e
.
currentTarget
.
dataset
let
idName
=
'extendService'
let
childCom
=
this
.
selectComponent
(
'#'
+
idName
+
index
)
childCom
.
parentSetData
(
'displacementPowerFlag'
,
type
)
this
.
setData
({
[
`serviceInfo.goodInfoList[
${
index
}
].displacementPowerFlag`
]:
type
})
},
onClickShow
(
e
)
{
onClickShow
(
e
)
{
const
{
type
}
=
e
.
target
.
dataset
const
{
type
}
=
e
.
target
.
dataset
this
.
setData
({
imgShow
:
true
,
imgType
:
type
})
this
.
setData
({
imgShow
:
true
,
imgType
:
type
})
...
@@ -197,7 +208,7 @@ Component({
...
@@ -197,7 +208,7 @@ Component({
let
{
value
}
=
e
.
detail
let
{
value
}
=
e
.
detail
let
formData
=
this
.
getPageData
()
let
formData
=
this
.
getPageData
()
let
curitem
=
formData
.
goodInfoList
[
popObj
.
idx
]
let
curitem
=
formData
.
goodInfoList
[
popObj
.
idx
]
let
idName
=
curitem
.
itemsCode
==
'YB0003'
?
'oil'
:
'energy
'
let
idName
=
curitem
.
itemsCode
==
'YB0003'
?
'oil'
:
(
curitem
.
itemsCode
==
'YB0001'
||
curitem
.
itemsCode
==
'YB0002'
)
?
'energy'
:
'extendService
'
let
childCom
=
this
.
selectComponent
(
'#'
+
idName
+
popObj
.
idx
)
let
childCom
=
this
.
selectComponent
(
'#'
+
idName
+
popObj
.
idx
)
childCom
.
parentSetData
(
popObj
.
attr
,
value
)
childCom
.
parentSetData
(
popObj
.
attr
,
value
)
this
.
setData
({
this
.
setData
({
...
@@ -249,7 +260,7 @@ Component({
...
@@ -249,7 +260,7 @@ Component({
})
})
},
},
handleConfirm
(
e
)
{
handleConfirm
(
e
)
{
var
{
formRule
,
serviceInfo
,
imgObj
,
imgToInfo
,
energyFormRule
,
oilFormRule
,
retrofitInfo
}
=
this
.
data
var
{
formRule
,
serviceInfo
,
imgObj
,
imgToInfo
,
energyFormRule
,
oilFormRule
,
retrofitInfo
,
extendServiceFormRule
}
=
this
.
data
let
formData
=
this
.
getPageData
()
let
formData
=
this
.
getPageData
()
let
validObj
=
fn
.
checkRequired
(
formData
,
formRule
)
let
validObj
=
fn
.
checkRequired
(
formData
,
formRule
)
if
(
validObj
)
{
if
(
validObj
)
{
...
@@ -286,7 +297,7 @@ Component({
...
@@ -286,7 +297,7 @@ Component({
// 延保产品-验证
// 延保产品-验证
if
(
item
.
printType
==
2
)
{
if
(
item
.
printType
==
2
)
{
// itemsCode标识:YB0001-延保-6大件,YB0002-延保-3电,YB0003-延保-油车
// itemsCode标识:YB0001-延保-6大件,YB0002-延保-3电,YB0003-延保-油车
let
subValidObj
=
fn
.
checkRequired
(
item
,
item
.
itemsCode
==
'YB0003'
?
oilFormRule
:
energy
FormRule
)
let
subValidObj
=
fn
.
checkRequired
(
item
,
item
.
itemsCode
==
'YB0003'
?
oilFormRule
:
(
item
.
itemsCode
==
'YB0001'
||
item
.
itemsCode
==
'YB0002'
)
?
energyFormRule
:
extendService
FormRule
)
if
(
subValidObj
)
{
if
(
subValidObj
)
{
wx
.
$util
.
showToast
(
subValidObj
.
message
)
wx
.
$util
.
showToast
(
subValidObj
.
message
)
return
return
...
@@ -330,7 +341,7 @@ Component({
...
@@ -330,7 +341,7 @@ Component({
number
+=
`.
${
decimal
}
`
number
+=
`.
${
decimal
}
`
value
=
number
value
=
number
}
}
let
idName
=
curitem
.
itemsCode
==
'YB0003'
?
'oil'
:
'energy
'
let
idName
=
curitem
.
itemsCode
==
'YB0003'
?
'oil'
:
(
curitem
.
itemsCode
==
'YB0001'
||
curitem
.
itemsCode
==
'YB0002'
)
?
'energy'
:
'extendService
'
let
childCom
=
this
.
selectComponent
(
'#'
+
idName
+
idx
)
let
childCom
=
this
.
selectComponent
(
'#'
+
idName
+
idx
)
childCom
.
parentSetData
(
attr
,
value
)
childCom
.
parentSetData
(
attr
,
value
)
this
.
setData
({
this
.
setData
({
...
...
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml
View file @
b544c2a
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
</view>
</view>
</gl-form>
</gl-form>
<gl-form
<gl-form
wx:
else
wx:
if="{{ item.itemsCode == 'YB0001' || item.itemsCode == 'YB0002' }}"
id="{{ 'energy' + index }}"
id="{{ 'energy' + index }}"
background="#F4F5F7"
background="#F4F5F7"
formData="{{ item }}"
formData="{{ item }}"
...
@@ -190,6 +190,39 @@
...
@@ -190,6 +190,39 @@
<text class="input-suffix">万公里</text>
<text class="input-suffix">万公里</text>
</view>
</view>
</gl-form>
</gl-form>
<gl-form
wx:else
id="{{ 'extendService' + index }}"
background="#F4F5F7"
formData="{{ item }}"
dataAttrName="{{ 'serviceInfo.goodInfoList[' + index +']' }}"
formDataList="{{ secondObj.productFormList[0].extendServiceFormList }}">
<view slot="displacementPower" class="displacementPower">
<view class="tab-box">
<view class="tab-item {{item.displacementPowerFlag == 0 ? 'active' : ''}}" data-type="0" data-index="{{index}}" bindtap="changeType">排量</view>
<view class="tab-item {{item.displacementPowerFlag == 1 ? 'active' : ''}}" data-type="1" data-index="{{index}}" bindtap="changeType">功率</view>
</view>
<view class="value">
<van-field
class="textarea between"
custom-style="width: var(--fontSize100);font-size: var(--fontSize28); padding: var(--fontSize30) 0; background: #F4F5F7;"
border="{{ false }}"
value="{{ item.displacementPowerValue }}"
input-align="right"
autosize
hold-keyboard
type="number"
placeholder="请输入"
maxlength="140"
data-attr="displacementPowerValue"
data-idx="{{ index }}"
data-curitem="{{ item }}"
bindinput="handleWarrantyInput"
/>
<text class="input-suffix">{{item.displacementPowerFlag == 0 ? 'L' : 'KW'}}</text>
</view>
</view>
</gl-form>
</view>
</view>
<gl-form
<gl-form
wx:else
wx:else
...
...
packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss
View file @
b544c2a
...
@@ -378,3 +378,40 @@
...
@@ -378,3 +378,40 @@
.pay-type .cell {
.pay-type .cell {
padding-left: var(--fontSize20) !important;
padding-left: var(--fontSize20) !important;
}
}
.displacementPower {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.displacementPower .tab-box{
width: var(--fontSize192);
height: var(--fontSize52);
background: #F3F3F5;
border-radius: var(--fontSize8);
display: flex;
align-items: center;
border: var(--fontSize2) solid #3582EE;
}
.displacementPower .tab-box .tab-item{
width: var(--fontSize96);
height: var(--fontSize52);
text-align: center;
line-height: var(--fontSize52);
border-radius: var(--fontSize8);
transition: all .25s;
color: #3582EE;
}
.displacementPower .tab-box .tab-item.active {
background-color: #3582EE;
color: #fff;
}
.displacementPower .value {
display: flex;
justify-content: flex-end;
align-items: center;
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carEquity/components/constant/secondStepData.js
View file @
b544c2a
...
@@ -190,6 +190,44 @@ const oilFormRule = {
...
@@ -190,6 +190,44 @@ const oilFormRule = {
]
]
}
}
const
extendServiceFormRule
=
{
servicePeriod
:
[{
required
:
true
,
message
:
'服务年限不能为空'
}],
displacementPowerValue
:
[
{
required
:
true
,
message
:
'排量或功率不能为空'
},
{
validator
:
(
rule
,
value
)
=>
{
return
/^
\d
+
(\.\d{1,2})?
$/
.
test
(
value
)
?
null
:
{
message
:
'排量或功率请输入仅有两位小数的数字'
}
}
}
],
buyDate
:
[{
required
:
true
,
message
:
'购车发票日期不能为空'
}],
qualityBeginDate
:
[{
required
:
true
,
message
:
'原厂质保开始日期不能为空'
}],
warrantyPeriod
:
[
{
required
:
true
,
message
:
'原厂质保年限不能为空'
},
{
validator
:
(
rule
,
value
)
=>
{
return
/^
\d
+$/
.
test
(
value
)
?
null
:
{
message
:
'原厂质保年限请输入整数'
}
}
}
],
warrantyKm
:
[
{
required
:
true
,
message
:
'原厂质保公里不能为空'
},
{
validator
:
(
rule
,
value
)
=>
{
return
/^
\d
+
(\.\d{1,2})?
$/
.
test
(
value
)
?
null
:
{
message
:
'原厂质保公里请输入仅有两位小数的数字'
}
}
}
],
mileage
:
[
{
required
:
true
,
message
:
'合同购买时的公里数不能为空'
},
{
validator
:
(
rule
,
value
)
=>
{
return
/^
\d
+
(\.\d{1,2})?
$/
.
test
(
value
)
?
null
:
{
message
:
'合同购买时的公里数请输入仅有两位小数的数字'
}
}
}
]
}
const
secondObj
=
{
const
secondObj
=
{
carFormList
:
[
carFormList
:
[
{
{
...
@@ -466,6 +504,70 @@ const secondObj = {
...
@@ -466,6 +504,70 @@ const secondObj = {
noCellHeight
:
true
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90); border-bottom: 0;'
cellStyle
:
'height: var(--fontSize90); border-bottom: 0;'
}
}
],
// 延保配置服务项目
extendServiceFormList
:
[
{
label
:
'服务年限'
,
name
:
'servicePeriod'
,
type
:
'input'
,
disabled
:
true
,
suffix
:
'年'
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90);'
},
{
label
:
''
,
name
:
'displacementPower'
,
type
:
'slot'
,
noCellHeight
:
true
,
cellBoxStyle
:
'width: 100%;'
,
labelWidth
:
'0px'
,
labelStyle
:
'display: none;'
},
{
label
:
'购车发票日期'
,
name
:
'buyDate'
,
type
:
'pickerTime'
,
end
:
Util
.
tsFormatTime
(
new
Date
(),
'Y-M-D'
),
labelWidth
:
'var(--fontSize220)'
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90);'
,
haveArrow
:
true
},
{
label
:
'原厂质保开始日期'
,
name
:
'qualityBeginDate'
,
type
:
'pickerTime'
,
labelWidth
:
'var(--fontSize240)'
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90);'
,
haveArrow
:
true
},
{
label
:
'原厂质保年限'
,
name
:
'warrantyPeriod'
,
type
:
'input'
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90);'
,
labelWidth
:
'var(--fontSize220)'
,
},
{
label
:
'原厂质保公里(万公里)'
,
name
:
'warrantyKm'
,
type
:
'input'
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90);'
,
labelWidth
:
'var(--fontSize340)'
,
},
{
label
:
'合同购买时的公里数'
,
name
:
'mileage'
,
type
:
'input'
,
noCellHeight
:
true
,
cellStyle
:
'height: var(--fontSize90);'
,
labelWidth
:
'var(--fontSize280)'
,
}
]
]
},
},
// {
// {
...
@@ -503,6 +605,10 @@ const secondObj = {
...
@@ -503,6 +605,10 @@ const secondObj = {
label
:
''
,
label
:
''
,
name
:
'tireRule'
,
name
:
'tireRule'
,
type
:
'otherSlot'
,
type
:
'otherSlot'
,
isShowObj
:
{
attr
:
'tireFlag'
,
list
:
[
'1'
]
},
list
:
[
list
:
[
{
{
label
:
'轮胎规格'
,
label
:
'轮胎规格'
,
...
@@ -519,6 +625,10 @@ const secondObj = {
...
@@ -519,6 +625,10 @@ const secondObj = {
type
:
'slot'
,
type
:
'slot'
,
labelWidth
:
'0rpx'
,
labelWidth
:
'0rpx'
,
noCellHeight
:
true
,
noCellHeight
:
true
,
isShowObj
:
{
attr
:
'tireFlag'
,
list
:
[
'1'
]
},
tireObj
:
{
tireObj
:
{
tire
:
''
tire
:
''
},
},
...
@@ -665,5 +775,6 @@ export default {
...
@@ -665,5 +775,6 @@ export default {
formRule
,
formRule
,
energyFormRule
,
energyFormRule
,
oilFormRule
,
oilFormRule
,
secondObj
secondObj
,
extendServiceFormRule
}
}
packageEquity/pages/carEquity/serviceInfo/serviceInfo.js
View file @
b544c2a
...
@@ -186,6 +186,9 @@ Page({
...
@@ -186,6 +186,9 @@ Page({
this
.
getInterestCardSetting
(
data
.
goodId
)
this
.
getInterestCardSetting
(
data
.
goodId
)
}
}
// data.attachmentList = data.attachmentList
// data.attachmentList = data.attachmentList
data
?.
goodInfoList
?.
forEach
(
val
=>
{
if
(
val
.
printType
==
2
&&
!
[
'YB0001'
,
'YB0002'
,
'YB0003'
].
includes
(
val
.
itemsCode
))
val
.
displacementPowerFlag
=
val
.
displacementPowerFlag
||
0
// 默认是选中排量
})
this
.
setData
({
this
.
setData
({
serviceInfo
:
data
,
serviceInfo
:
data
,
[
'serviceInfo.attachmentList'
]:
data
?.
attachmentList
||
[],
[
'serviceInfo.attachmentList'
]:
data
?.
attachmentList
||
[],
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
View file @
b544c2a
...
@@ -148,6 +148,9 @@ Component({
...
@@ -148,6 +148,9 @@ Component({
// 获取推荐人列表
// 获取推荐人列表
getEmployee
()
{
getEmployee
()
{
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
this
.
setData
({
userInfo
})
let
params
=
{
let
params
=
{
merchantId
:
userInfo
.
default4SStoreInfo
.
merchantId
merchantId
:
userInfo
.
default4SStoreInfo
.
merchantId
}
}
...
@@ -241,7 +244,25 @@ Component({
...
@@ -241,7 +244,25 @@ Component({
},
},
// 品牌车型
// 品牌车型
handleJumpBrand
(
e
)
{
handleJumpBrand
(
e
)
{
wx
.
$router
.
go
(
'packageEquity.carBrands'
)
// wx.$router.go('packageEquity.carBrands')
this
.
setData
({
showCarBrands
:
true
,
// 选择时再加载车型组件
carBrandBox
:
true
})
},
chooseCar
(
e
)
{
let
{
dataAttrName
}
=
this
.
data
let
{
carBrand
,
carBrandId
,
carChildsBrandId
,
carChildsBrandName
,
carSeriesId
,
carSeriesName
}
=
e
.
detail
let
thisPage
=
wx
.
$router
.
getPageInstance
()
thisPage
.
setData
({
[
dataAttrName
+
'.'
+
'carBrand'
]:
carBrand
,
[
dataAttrName
+
'.'
+
'carBrandId'
]:
carBrandId
,
[
dataAttrName
+
'.'
+
'carChildsBrandId'
]:
carChildsBrandId
,
[
dataAttrName
+
'.'
+
'carChildsBrandName'
]:
carChildsBrandName
,
[
dataAttrName
+
'.'
+
'carSeriesId'
]:
carSeriesId
,
[
dataAttrName
+
'.'
+
'carSeriesName'
]:
carSeriesName
})
},
},
/**获取园区配置 */
/**获取园区配置 */
async
getYqStoreConfig
()
{
async
getYqStoreConfig
()
{
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.json
View file @
b544c2a
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
"gl-form"
:
"/packageEquity/components/GLForm/GLForm"
,
"gl-form"
:
"/packageEquity/components/GLForm/GLForm"
,
"Gl-Button-Group"
:
"../../../../components/GlButtonGroup/GlButtonGroup"
,
"Gl-Button-Group"
:
"../../../../components/GlButtonGroup/GlButtonGroup"
,
"store-referrer-picker"
:
"../storeReferrerPicker/storeReferrerPicker"
,
"store-referrer-picker"
:
"../storeReferrerPicker/storeReferrerPicker"
,
"customerInfo"
:
"/components/CustomerInfo/CustomerInfo"
"customerInfo"
:
"/components/CustomerInfo/CustomerInfo"
,
"car-brands"
:
"/components/CarBrands/CarBrands"
}
}
}
}
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxml
View file @
b544c2a
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<gl-form disable="{{disable}}" formData="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bind:inputEvent="inputEvent" formDataList="{{first.carFormList}}">
<gl-form disable="{{disable}}" formData="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bind:inputEvent="inputEvent" formDataList="{{first.carFormList}}">
<view slot="brands" class="brand" bindtap="handleJumpBrand">
<view slot="brands" class="brand" bindtap="handleJumpBrand">
<view wx:if="{{serviceInfo.carBrandId}}">
<view wx:if="{{serviceInfo.carBrandId}}">
{{serviceInfo.carBrand || ''}}
/{{serviceInfo.carChildsBrandName || ''}}/
{{serviceInfo.carSeriesName || ''}}
{{serviceInfo.carBrand || ''}}
-{{serviceInfo.carChildsBrandName || ''}}-
{{serviceInfo.carSeriesName || ''}}
</view>
</view>
<view wx:else class="placeholder-class">请选择</view>
<view wx:else class="placeholder-class">请选择</view>
</view>
</view>
...
@@ -60,3 +60,5 @@
...
@@ -60,3 +60,5 @@
<store-referrer-picker bindconfirm="handleSalesChange" show="{{referrerPicker}}" referrerId="{{orderInfo.referrerId}}" pickerListAll="{{employeeList}}" />
<store-referrer-picker bindconfirm="handleSalesChange" show="{{referrerPicker}}" referrerId="{{orderInfo.referrerId}}" pickerListAll="{{employeeList}}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" apiType="2" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" apiType="2" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ serviceInfo.carSeriesId || '' }}" equityFlag="true" merchantId="{{ userInfo.default4SStoreInfo.merchantId || undefined }}" />
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.js
View file @
b544c2a
...
@@ -293,7 +293,7 @@ Component({
...
@@ -293,7 +293,7 @@ Component({
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
.
packageName
name
=
c
.
packageGoods
.
package
Alias
||
c
.
packageGoods
.
package
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 @
b544c2a
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<view class="childbox">
<view class="childbox">
<view class="item">
<view class="item">
<view class="name text-hide ">
<view class="name text-hide ">
<view>{{i.packageGoods.packageName}}</view>
<view>{{i.packageGoods.package
Alias || i.packageGoods.package
Name}}</view>
</view>
</view>
<view class="last">
<view class="last">
<text class="price">¥{{i.packageGoods.sellPrice}}</text>
<text class="price">¥{{i.packageGoods.sellPrice}}</text>
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
View file @
b544c2a
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<view class="deleteicon" bindtap="delGoodsList" data-index="{{ index }}">
<view class="deleteicon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
<image src="./images/del.png" />
</view>
</view>
<view class="name text-hide">{{item.packageGoods.packageName}}</view>
<view class="name text-hide">{{item.packageGoods.package
Alias || item.packageGoods.packageNameAlias || item.packageGoods.package
Name}}</view>
<view class="package-price">¥{{item.price}}</view>
<view class="package-price">¥{{item.price}}</view>
<!-- <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> -->
<!-- <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> -->
</view>
</view>
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
b544c2a
...
@@ -440,6 +440,7 @@ Page({
...
@@ -440,6 +440,7 @@ Page({
let
obj
=
{
let
obj
=
{
packageId
:
item
.
packageCode
,
packageId
:
item
.
packageCode
,
packageName
:
item
.
packageName
,
packageName
:
item
.
packageName
,
packageNameAlias
:
item
.
packageAlias
||
item
.
packageNameAlias
,
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
,
...
...
packageEquity/pages/createDeafeatOrder/createDeafeatOrder.js
View file @
b544c2a
...
@@ -222,6 +222,7 @@ Page({
...
@@ -222,6 +222,7 @@ Page({
let
obj
=
{
let
obj
=
{
packageId
:
item
.
packageCode
,
packageId
:
item
.
packageCode
,
packageName
:
item
.
packageName
,
packageName
:
item
.
packageName
,
packageNameAlias
:
item
.
packageAlias
||
item
.
packageNameAlias
,
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
,
...
@@ -292,6 +293,7 @@ Page({
...
@@ -292,6 +293,7 @@ Page({
let
obj
=
{
let
obj
=
{
packageId
:
packageGoods
.
packageCode
,
packageId
:
packageGoods
.
packageCode
,
packageName
:
packageGoods
.
packageName
,
packageName
:
packageGoods
.
packageName
,
packageNameAlias
:
packageGoods
.
packageAlias
||
pachageGoods
.
packageNameAlias
,
goodsId
:
ele
.
goodsId
,
goodsId
:
ele
.
goodsId
,
goodsName
:
ele
.
goodsName
,
goodsName
:
ele
.
goodsName
,
goodsNameAlias
:
ele
.
goodsNameAlias
,
goodsNameAlias
:
ele
.
goodsNameAlias
,
...
...
packageEquity/pages/createDeafeatOrderAi/createDeafeatOrderAi.js
View file @
b544c2a
...
@@ -294,6 +294,7 @@ Page({
...
@@ -294,6 +294,7 @@ Page({
let
obj
=
{
let
obj
=
{
packageId
:
item
.
packageCode
,
packageId
:
item
.
packageCode
,
packageName
:
item
.
packageName
,
packageName
:
item
.
packageName
,
packageNameAlias
:
item
.
packageAlias
||
item
.
packageNameAlias
,
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
,
...
@@ -364,6 +365,7 @@ Page({
...
@@ -364,6 +365,7 @@ Page({
let
obj
=
{
let
obj
=
{
packageId
:
packageGoods
.
packageCode
,
packageId
:
packageGoods
.
packageCode
,
packageName
:
packageGoods
.
packageName
,
packageName
:
packageGoods
.
packageName
,
packageNameAlias
:
packageGoods
.
packageAlias
||
packageGoods
.
packageNameAlias
,
goodsId
:
ele
.
goodsId
,
goodsId
:
ele
.
goodsId
,
goodsName
:
ele
.
goodsName
,
goodsName
:
ele
.
goodsName
,
goodsNameAlias
:
ele
.
goodsNameAlias
,
goodsNameAlias
:
ele
.
goodsNameAlias
,
...
...
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