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 e653ca5b
authored
May 10, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能开发
1 parent
7409ef0e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
40 deletions
config.js
packageEquity/api.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/index/index.js
project.private.config.json
utils/request/environment.js
config.js
View file @
e653ca5
...
...
@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let
index
=
1
let
index
=
0
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
packageEquity/api.js
View file @
e653ca5
...
...
@@ -74,5 +74,9 @@ module.exports = {
/**改变支付订单状态 */
createPayOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.payOrder.create'
,
data
)
},
/** 门店模式查询 */
merchantMode
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.vehicle.damage.upgrade.merchant.mode'
,
data
)
}
}
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
e653ca5
...
...
@@ -119,17 +119,9 @@ Page({
async
handleSecondConfirm
()
{
// 先校验
this
.
selectComponent
(
`#FirstStep`
).
handleConfirm
()
return
// owner, orderInfo,
// 修改权益报价逻辑
let
{
modifyEquityQuotation
,
confirmStatus
}
=
this
.
data
if
(
confirmStatus
)
return
false
if
(
modifyEquityQuotation
)
{
return
this
.
updateEquityPrice
()
}
// orderInfo.check = false
// orderInfo.owner = owner
// this.setData({ orderInfo })
wx
.
showLoading
(
'报价中...'
)
this
.
setData
({
confirmStatus
:
true
...
...
@@ -166,21 +158,21 @@ Page({
let
{
default4SStoreInfo
}
=
wx
.
$util
.
getUserInfo
()
orderInfo
.
merchantId4s
=
default4SStoreInfo
?.
merchantId
orderInfo
.
merchantName4s
=
default4SStoreInfo
?.
merchantName
orderInfo
.
insurancePrice
=
this
.
multipliedByHundredObj
(
orderInfo
.
insurancePrice
)
// const insurance = ['business', 'mutualStrength', 'vehiclesAndVessels', 'valueAddedVehicleLoss', 'otherInsuranceList']
// orderInfo.insureList = []
// const business = this.multipliedByHundredObj(orderInfo.business)
// const mutualStrength = this.multipliedByHundredObj(orderInfo.mutualStrength)
// const vehiclesAndVessels = this.multipliedByHundredObj(orderInfo.vehiclesAndVessels)
// const valueAddedVehicleLoss = this.multipliedByHundredObj(orderInfo.valueAddedVehicleLoss)
const
insurance
=
[
'business'
,
'mutualStrength'
,
'vehiclesAndVessels'
,
'valueAddedVehicleLoss'
,
'otherInsuranceList'
]
orderInfo
.
insureList
=
[]
const
business
=
this
.
multipliedByHundredObj
(
orderInfo
.
business
)
const
mutualStrength
=
this
.
multipliedByHundredObj
(
orderInfo
.
mutualStrength
)
const
vehiclesAndVessels
=
this
.
multipliedByHundredObj
(
orderInfo
.
vehiclesAndVessels
)
const
valueAddedVehicleLoss
=
this
.
multipliedByHundredObj
(
orderInfo
.
valueAddedVehicleLoss
)
orderInfo
.
insureList
=
[
business
,
mutualStrength
,
vehiclesAndVessels
,
valueAddedVehicleLoss
]
orderInfo
.
otherInsuranceList
.
forEach
(
item
=>
{
orderInfo
.
insureList
.
push
(
this
.
multipliedByHundredObj
(
item
))
})
insurance
.
forEach
(
item
=>
{
delete
orderInfo
[
item
]
})
// orderInfo.insureList = [business, mutualStrength, vehiclesAndVessels, valueAddedVehicleLoss]
// orderInfo.otherInsuranceList.forEach(item => {
// orderInfo.insureList.push(this.multipliedByHundredObj(item))
// })
// insurance.forEach(item => {
// delete orderInfo[item]
// })
// delete orderInfo.quotedPriceUpdate
return
orderInfo
},
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
e653ca5
// packageEquity/pages/carQuotation/index/index.js
import
{
quotationPage
,
getQuotationStatistics
,
updateOrderStatus
}
from
'../../../api'
import
{
quotationPage
,
getQuotationStatistics
,
updateOrderStatus
,
merchantMode
}
from
'../../../api'
import
data
from
'../constant/data'
import
constantData
from
'../constant/data'
Component
({
...
...
@@ -73,8 +73,9 @@ Component({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
console
.
log
(
this
.
data
.
userInfo
)
//
console.log(this.data.userInfo)
this
.
onLoad
(
true
)
this
.
getMerchant4SMode
()
}
},
...
...
@@ -92,6 +93,18 @@ Component({
this
.
getTotal
()
if
(
!
noGetList
)
this
.
getList
(
true
)
},
getMerchant4SMode
()
{
let
{
storeInfo
}
=
this
.
data
// 场景
merchantMode
({
merchantId4s
:
storeInfo
?.
merchantId
,
Source
:
2
})
.
then
(
result
=>
{
console
.
log
(
result
,
'mode'
)
this
.
setData
({
mode
:
result
.
data
})
})
.
catch
(
err
=>
{})
},
handleClickOrderBtn
(
e
)
{
// console.log(e)
// let { target } = e.target.dataset
...
...
@@ -105,13 +118,15 @@ Component({
getQuotationStatistics
({
merchantId
:
storeInfo
?.
merchantId
}).
then
(
res
=>
{
// console.log(res, '统计---')
let
{
code
,
message
}
=
res
let
data
=
res
.
data
?
{
...
res
.
data
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
todayTurDecimal
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
totalTurnover
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
}
:
{}
let
data
=
res
.
data
?
{
...
res
.
data
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
todayTurDecimal
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
totalTurnover
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
}
:
{}
if
(
code
==
'0'
)
{
this
.
setData
({
statisticsObj
:
data
...
...
@@ -234,7 +249,7 @@ Component({
}
else
{
// 战败
this
.
setData
({
showRemark
:
true
,
showRemark
:
true
// sufferReason: ''
})
console
.
log
(
'战败'
)
...
...
@@ -245,7 +260,8 @@ Component({
// orderId: target.orderId,
// apiName: 'handler'
// })
if
(
type
==
'handle'
)
{
// 去处理
if
(
type
==
'handle'
)
{
// 去处理
wx
.
$router
.
go
(
'serviceInfo'
,
{
orderId
:
target
.
orderId
,
apiName
:
'handler'
...
...
@@ -259,7 +275,7 @@ Component({
id
:
target
.
id
})
break
case
'5'
:
case
'5'
:
wx
.
$router
.
go
(
'serviceInfo'
,
{
orderId
:
target
.
orderId
,
apiName
:
'handler'
...
...
@@ -293,6 +309,6 @@ Component({
}
})
}
}
,
}
}
})
project.private.config.json
View file @
e653ca5
...
...
@@ -298,6 +298,13 @@
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"权益报价列表"
,
"pathName"
:
"packageEquity/pages/TabBar/equityPage"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
...
...
utils/request/environment.js
View file @
e653ca5
...
...
@@ -48,12 +48,13 @@ const scrmSecretKey_items = {
}
const
domain_items
=
{
ip
:
{
dj
:
'http://192.168.1.165:8292'
,
// dj: 'http://192.168.1.170:8292',
//
dj: 'http://192.168.1.165:8292',
dj
:
'http://192.168.1.170:8292'
,
//叶立庆
// dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.129:8292',//周杭
// dj:'http://192.168.2.59:8292/',//周立明
scrm
:
'http://192.168.1.165:8292'
// scrm: 'http://192.168.1.165:8292'
scrm
:
'http://192.168.1.170:8292'
},
dev
:
{
dj
:
'https://dj.dev.glsx.com.cn'
,
...
...
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