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 8b0b239b
authored
Aug 28, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能开发和bug修复
1 parent
c9daff53
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
111 additions
and
112 deletions
packageEquity/pages/carQuotation/components/SecondStep/SecondStep.sass
packageEquity/pages/carQuotation/components/SecondStep/SecondStep.wxml
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.sass
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
packageEquity/pages/carQuotation/index/index.wxss
utils/request/environment.js
packageEquity/pages/carQuotation/components/SecondStep/SecondStep.sass
View file @
8b0b239
...
@@ -90,7 +90,10 @@
...
@@ -90,7 +90,10 @@
}
}
}
}
.remark
{
font-weight
:
600
;
font-size
:
32rpx
;
}
.title
{
.title
{
color
:
#222222
;
color
:
#222222
;
font-size
:
28rpx
;
font-size
:
28rpx
;
...
...
packageEquity/pages/carQuotation/components/SecondStep/SecondStep.wxml
View file @
8b0b239
...
@@ -321,6 +321,21 @@
...
@@ -321,6 +321,21 @@
</view>
</view>
</van-collapse-item>
</van-collapse-item>
</view>
</view>
<!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle remark">
<view class="sprite-icon mr10" />
<view class="label">其他信息</view>
</view>
</view>
<view class="box">
<view class="title">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput">
</van-field>
</view>
</van-collapse-item>
</view> -->
</van-collapse>
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<!-- customInput="{{customInput}}" -->
<!-- customInput="{{customInput}}" -->
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.sass
View file @
8b0b239
...
@@ -90,7 +90,10 @@
...
@@ -90,7 +90,10 @@
}
}
}
}
.remark
{
font-weight
:
600
;
font-size
:
32rpx
;
}
.title
{
.title
{
color
:
#222222
;
color
:
#222222
;
font-size
:
28rpx
;
font-size
:
28rpx
;
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
View file @
8b0b239
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<view class="testFormCon">
<view class="testFormCon">
<van-collapse value="{{ activeNames }}">
<van-collapse value="{{ activeNames }}">
<!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view class="collapse">
<view slot="title">
<van-collapse-item name="3" is-link="{{ false }}">
<view class="collapseBoxTitle">
<view slot="title">
<view class="sprite-icon mr10" />
<view class="collapseBoxTitle">
<view class="label">商业险信息</view>
<view class="label">
</view>
增值车损险
</view>
<text class="required">*</text>
<view class="box">
</view>
<view class="title">商业险总价</view>
</view>
<van-field
</view>
class="inputBox"
<view>
border="{{ false }}"
<gl-cell border valueAlign="right" label="购买商品" labelWidth="140rpx" haveArrow requiredAfter required placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" />
disabled="{{ disable }}"
</view>
data-hold-keyboard
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
value="{{ orderInfo.insurancePrice }}"
<view class="goods-box">
data-attrName="insurancePrice"
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
data-type="number"
<view class="goods">
type="digit"
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
placeholder="请输入商业险总价(非必填)"
<image src="./images/del.png" />
data-attrType=""
</view>
bindinput="handleInput"
<view class="name text-hide">
>
{{item.goodsName}}
<view slot="left-icon">
<!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} -->
<view>¥</view>
</view>
</view>
<view class="price-box">
</van-field>
¥
</view>
<view class="price">
</van-collapse-item>
<input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.price < item.shopMinPrice && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view> -->
</view>
<view class="collapse">
</view>
<van-collapse-item name="3" is-link="{{ false }}">
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
<view slot="title">
</view>
<view class="collapseBoxTitle">
</block>
<view class="label">
<view class="goods total-box">
增值车损险
<view>总价</view>
<text class="required">*</text>
<view class="total">¥{{orderInfo.total || 0}}</view>
</view>
</view>
</view>
</view>
</view>
</block>
<view>
</van-collapse-item>
<gl-cell
</view>
border
<view class="collapse">
valueAlign="right"
<van-collapse-item name="1" is-link="{{ false }}">
label="购买商品"
<view slot="title">
labelWidth="140rpx"
<view class="collapseBoxTitle remark">
haveArrow
<view class="sprite-icon mr10" />
requiredAfter
<view class="label">其他信息</view>
required
</view>
placeholder="点击选择"
</view>
bindclick="showPopup"
<view class="box">
data-show-name="goodsBox"
<view class="title">备注</view>
/>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput">
</view>
</van-field>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
</view>
<view class="goods-box">
</van-collapse-item>
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
</view>
<view class="goods">
</van-collapse>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<image src="./images/del.png" />
</view>
<view class="name text-hide">
{{item.goodsName}}
<!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} -->
</view>
<view class="price-box">
¥
<view class="price">
<input
type="digit"
value="{{ item.price }}"
bindinput="changePrice"
disabled="{{ orderObj.selectPayType ==0 }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ item.price < item.shopMinPrice && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
</view>
</block>
<view class="goods total-box">
<view>总价</view>
<view class="total">¥{{orderInfo.total || 0}}</view>
</view>
</view>
</block>
</van-collapse-item>
</view>
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
</view>
<goods
show="{{ goodsBox }}"
bindconfirm="chooseGoods"
goodsData="{{ quotationGoodsList }}"
chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"
/>
\ No newline at end of file
\ No newline at end of file
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
8b0b239
...
@@ -43,7 +43,8 @@ Page({
...
@@ -43,7 +43,8 @@ Page({
// },
// },
orderInfo
:
{
orderInfo
:
{
mode
:
1
,
mode
:
1
,
insurancePrice
:
''
insurancePrice
:
''
,
vdQuotationGoodsList
:[]
// 0-商业,1-交强,2-车船,3-增值车损,4-other 对应下面字段名字
// 0-商业,1-交强,2-车船,3-增值车损,4-other 对应下面字段名字
// owner
// owner
// business: {
// business: {
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
8b0b239
...
@@ -151,8 +151,11 @@ Component({
...
@@ -151,8 +151,11 @@ Component({
...
res
.
data
,
...
res
.
data
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
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'
,
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'
,
// totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
totalTurnover
:
res
.
data
.
totalTurnover
?
Math
.
round
(
res
.
data
.
totalTurnover
/
100
):
'0'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
monthTurnover
:
res
.
data
.
monthTurnover
?
((
res
.
data
.
monthTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
monthTurDecimal
:
res
.
data
.
monthTurnover
?
((
res
.
data
.
monthTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
}
:
}
:
{}
{}
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
8b0b239
...
@@ -14,12 +14,25 @@
...
@@ -14,12 +14,25 @@
</view>
</view>
</view>
</view>
<view class="line" />
<view class="line" />
<view class="right left box">
<view class="label">本月营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.monthTurnover || 0}}</view>
<view class="decimal">.{{statisticsObj.monthTurDecimal}}</view>
</view>
<view class="count num">
本月成交量
<view class="countNum">{{statisticsObj.monthOrderNumber || 0}}</view>
</view>
</view>
<view class="line" />
<view class="right box">
<view class="right box">
<view class="label">累计营业额</view>
<view class="label">累计营业额</view>
<view class="num item">
<view class="num item">
<view class="labelStr">¥</view>
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.totalTurnover || 0}}</view>
<view class="company">{{statisticsObj.totalTurnover || 0}}</view>
<
view class="decimal">.{{statisticsObj.totalTurDecimal}}</view
>
<
!-- <view class="decimal">.{{statisticsObj.totalTurDecimal}}</view> --
>
</view>
</view>
<view class="count num">
<view class="count num">
累计成交量
累计成交量
...
...
packageEquity/pages/carQuotation/index/index.wxss
View file @
8b0b239
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
padding: 32rpx 40rpx;
padding: 32rpx 40rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png');
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png');
background-size: 100% 100%;
background-size: 100% 100%;
font-size: 2
4
rpx;
font-size: 2
2
rpx;
color: #FFFFFF;
color: #FFFFFF;
}
}
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
.headerBar .totalCount .num {
.headerBar .totalCount .num {
display: flex;
display: flex;
align-items: baseline;
align-items: baseline;
line-height: 2
2
rpx;
line-height: 2
0
rpx;
}
}
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
}
}
.headerBar .totalCount .company {
.headerBar .totalCount .company {
font-size:
48
rpx;
font-size:
36
rpx;
font-weight: 600;
font-weight: 600;
}
}
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
}
}
.headerBar .totalCount .countNum {
.headerBar .totalCount .countNum {
font-size:
34
rpx;
font-size:
28
rpx;
font-weight: 500;
font-weight: 500;
margin-left: 15rpx;
margin-left: 15rpx;
}
}
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
}
}
.headerBar .totalCount .right {
.headerBar .totalCount .right {
width: 260rpx;
margin-left: 40rpx;
margin-left: 40rpx;
}
}
...
...
utils/request/environment.js
View file @
8b0b239
...
@@ -57,7 +57,7 @@ const scrmSecretKey_items = {
...
@@ -57,7 +57,7 @@ const scrmSecretKey_items = {
const
domain_items
=
{
const
domain_items
=
{
ip
:
{
ip
:
{
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.165:8292',
dj
:
'http://192.168.1.1
70
:8292'
,
//叶立庆
dj
:
'http://192.168.1.1
04
:8292'
,
//叶立庆
// dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.203:8292',//周杭
// dj: 'http://192.168.1.203:8292',//周杭
...
...
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