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 @@
}
}
.remark
{
font-weight
:
600
;
font-size
:
32rpx
;
}
.title
{
color
:
#222222
;
font-size
:
28rpx
;
...
...
packageEquity/pages/carQuotation/components/SecondStep/SecondStep.wxml
View file @
8b0b239
...
...
@@ -321,6 +321,21 @@
</view>
</van-collapse-item>
</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>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<!-- customInput="{{customInput}}" -->
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.sass
View file @
8b0b239
...
...
@@ -90,7 +90,10 @@
}
}
.remark
{
font-weight
:
600
;
font-size
:
32rpx
;
}
.title
{
color
:
#222222
;
font-size
:
28rpx
;
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.wxml
View file @
8b0b239
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<view class="testFormCon">
<van-collapse value="{{ activeNames }}">
<!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle">
<view class="sprite-icon mr10" />
<view class="label">商业险信息</view>
</view>
</view>
<view class="box">
<view class="title">商业险总价</view>
<van-field
class="inputBox"
border="{{ false }}"
disabled="{{ disable }}"
data-hold-keyboard
value="{{ orderInfo.insurancePrice }}"
data-attrName="insurancePrice"
data-type="number"
type="digit"
placeholder="请输入商业险总价(非必填)"
data-attrType=""
bindinput="handleInput"
>
<view slot="left-icon">
<view>¥</view>
</view>
</van-field>
</view>
</van-collapse-item>
</view> -->
<view class="collapse">
<van-collapse-item name="3" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle">
<view class="label">
增值车损险
<text class="required">*</text>
</view>
</view>
</view>
<view>
<gl-cell
border
valueAlign="right"
label="购买商品"
labelWidth="140rpx"
haveArrow
requiredAfter
required
placeholder="点击选择"
bindclick="showPopup"
data-show-name="goodsBox"
/>
</view>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
<view class="goods">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<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 }}" />
<van-collapse value="{{ activeNames }}">
<view class="collapse">
<van-collapse-item name="3" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle">
<view class="label">
增值车损险
<text class="required">*</text>
</view>
</view>
</view>
<view>
<gl-cell border valueAlign="right" label="购买商品" labelWidth="140rpx" haveArrow requiredAfter required placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" />
</view>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
<view class="goods">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<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>
<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>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
<goods
show="{{ goodsBox }}"
bindconfirm="chooseGoods"
goodsData="{{ quotationGoodsList }}"
chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"
/>
\ No newline at end of file
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
\ No newline at end of file
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
8b0b239
...
...
@@ -43,7 +43,8 @@ Page({
// },
orderInfo
:
{
mode
:
1
,
insurancePrice
:
''
insurancePrice
:
''
,
vdQuotationGoodsList
:[]
// 0-商业,1-交强,2-车船,3-增值车损,4-other 对应下面字段名字
// owner
// business: {
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
8b0b239
...
...
@@ -151,8 +151,11 @@ Component({
...
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'
// totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
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'
)
{
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
8b0b239
...
...
@@ -14,12 +14,25 @@
</view>
</view>
<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="label">累计营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.totalTurnover || 0}}</view>
<
view class="decimal">.{{statisticsObj.totalTurDecimal}}</view
>
<
!-- <view class="decimal">.{{statisticsObj.totalTurDecimal}}</view> --
>
</view>
<view class="count num">
累计成交量
...
...
packageEquity/pages/carQuotation/index/index.wxss
View file @
8b0b239
...
...
@@ -29,7 +29,7 @@
padding: 32rpx 40rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png');
background-size: 100% 100%;
font-size: 2
4
rpx;
font-size: 2
2
rpx;
color: #FFFFFF;
}
...
...
@@ -45,7 +45,7 @@
.headerBar .totalCount .num {
display: flex;
align-items: baseline;
line-height: 2
2
rpx;
line-height: 2
0
rpx;
}
...
...
@@ -54,7 +54,7 @@
}
.headerBar .totalCount .company {
font-size:
48
rpx;
font-size:
36
rpx;
font-weight: 600;
}
...
...
@@ -69,7 +69,7 @@
}
.headerBar .totalCount .countNum {
font-size:
34
rpx;
font-size:
28
rpx;
font-weight: 500;
margin-left: 15rpx;
}
...
...
@@ -79,6 +79,7 @@
}
.headerBar .totalCount .right {
width: 260rpx;
margin-left: 40rpx;
}
...
...
utils/request/environment.js
View file @
8b0b239
...
...
@@ -57,7 +57,7 @@ const scrmSecretKey_items = {
const
domain_items
=
{
ip
:
{
// 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.174: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