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 feb47780
authored
Apr 03, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 数字报价单筛选
1 parent
09ddf2eb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
86 deletions
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
packageEquity/pages/carQuotation/index/index.wxss
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
feb4778
...
@@ -82,8 +82,6 @@ Page({
...
@@ -82,8 +82,6 @@ Page({
},
},
// 页面存放表单对象的对象名
// 页面存放表单对象的对象名
dataAttrName
:
'owner'
,
dataAttrName
:
'owner'
,
// step: 'first',
step
:
'second'
,
// 非融合不要第一步
needChangeList
:
[
'price'
,
'base'
,
'threePremium'
,
'carInsidePremium'
,
'passengerPremium'
,
'payPrice'
,
,
'insurancePrice'
,
'quotedPriceUpdate'
,
'minEquityPrice'
]
needChangeList
:
[
'price'
,
'base'
,
'threePremium'
,
'carInsidePremium'
,
'passengerPremium'
,
'payPrice'
,
,
'insurancePrice'
,
'quotedPriceUpdate'
,
'minEquityPrice'
]
},
},
closeTips
()
{
closeTips
()
{
...
@@ -131,13 +129,6 @@ Page({
...
@@ -131,13 +129,6 @@ Page({
owner
owner
})
})
},
},
handleFirstConfirm
(
e
)
{
// let { formData } = e.detail
this
.
setData
({
// ['orderInfo.owner']: formData,
step
:
'second'
})
},
createWithPay
(
id
)
{
createWithPay
(
id
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
para
=
{
let
para
=
{
...
@@ -806,20 +797,7 @@ Page({
...
@@ -806,20 +797,7 @@ Page({
return
parseFloat
(
strVal
)
return
parseFloat
(
strVal
)
},
},
back
()
{
back
()
{
console
.
log
(
'back'
)
wx
.
$router
.
back
()
let
{
step
,
isClue
}
=
this
.
data
console
.
log
(
'step'
,
step
)
if
(
isClue
)
return
wx
.
$router
.
back
()
if
(
step
==
'first'
)
{
wx
.
$router
.
reLaunch
(
'packageEquity.equityPage'
)
}
else
{
this
.
setData
({
step
:
'first'
})
}
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
let
navBarHeight
=
e
.
detail
.
height
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
View file @
feb4778
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<!-- showMenu="{{true}}" -->
<view class="navigation-title">
<!-- bindtap="showStorePicker" -->
<view class="navigation-title-text text-hide">
<view class="navigation-title">
车险信息
<view class="navigation-title-text text-hide">
</view>
<!-- {{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}} -->
</view>
{{step=='first'?'车辆和车主信息':'车险信息'}}
</view>
<!-- <view class="arrow">
<image src="/images/back.png" />
</view> -->
</view>
</navigation-bar>
</navigation-bar>
<!-- height: calc(100vh - {{navBarHeight}}px); -->
<view class="layout {{showTips?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<view class="layout {{showTips?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;" >
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" />
<first-step
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
id="FirstStep"
serviceInfo="{{ owner }}"
dataAttrName="{{ dataAttrName }}"
orderInfo="{{ orderInfo }}"
subBtnShow="{{ false }}"
bindconfirm="handleFirstConfirm"
bindeditSave="handleEditSave"
/>
<second-step
id="SecondStep"
orderInfo="{{ orderInfo }}"
quotationGoodsList="{{ quotationGoodsList }}"
bindconfirm="handleSecondConfirm"
bindeditSave="handleEditSave"
/>
</view>
</view>
<view wx:if="{{showTips&&outTradeNo}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view wx:if="{{showTips&&outTradeNo}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips"
>
<view class="tips"
>
<image class=" tipsIcon" src="../../../images/tips.png" />
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view class="contentText">
<view>支付订单号:{{outTradeNo}}</view>
<view>支付订单号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
<view>支付时间:{{accountDate}}</view>
</view>
</view>
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" />
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" />
</view>
</view>
<!-- <view class="btns-con">
<!-- <view class="btns-con">
<view class="save text-center" bindtap="routerBack" data-save>放弃</view>
<view class="save text-center" bindtap="routerBack" data-save>放弃</view>
<view class="confirm text-center" bindtap="submit">提交工单</view>
<view class="confirm text-center" bindtap="submit">提交工单</view>
</view> -->
</view> -->
</view>
<order-popup
orderType="{{orderInfo.payType }}"
resetTransNo="{{orderInfo.transactionNo || orderInfo.outTradeNo}}"
resetOrder="{{orderInfo.resetOrder}}"
wx:if="{{showPopup}}"
show="{{showPopup}}" />
\ No newline at end of file
\ No newline at end of file
</view>
<order-popup orderType="{{orderInfo.payType }}" resetTransNo="{{orderInfo.transactionNo || orderInfo.outTradeNo}}" resetOrder="{{orderInfo.resetOrder}}" wx:if="{{showPopup}}" show="{{showPopup}}" />
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carQuotation/index/index.js
View file @
feb4778
...
@@ -105,8 +105,6 @@ Component({
...
@@ -105,8 +105,6 @@ Component({
tabListTemplateSimple
:
[
'全部'
,
'待报价'
,
'待支付'
,
'已支付'
,
'已完成'
,
'战败'
],
tabListTemplateSimple
:
[
'全部'
,
'待报价'
,
'待支付'
,
'已支付'
,
'已完成'
,
'战败'
],
pageSize
:
4
,
pageSize
:
4
,
currentPage
:
1
,
currentPage
:
1
,
flag
:
true
,
total
:
0
,
storeInfo
:
{},
storeInfo
:
{},
triggered
:
false
,
triggered
:
false
,
scrollTop
:
0
,
scrollTop
:
0
,
...
@@ -274,13 +272,15 @@ Component({
...
@@ -274,13 +272,15 @@ Component({
merchantId
,
merchantId
,
...
screenForm
...
screenForm
}
}
wx
.
$util
.
showLoading
()
quotationPage
(
params
).
then
(
res
=>
{
quotationPage
(
params
).
then
(
res
=>
{
wx
.
hideLoading
()
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
let
{
let
{
list
,
list
,
total
pages
}
=
res
.
data
}
=
res
.
data
let
tempList
=
isReset
?
this
.
dealListData
(
list
||
[])
||
[]
:
this
.
data
.
list
.
concat
(
this
.
dealListData
(
list
||
[])
||
[])
let
tempList
=
list
||
[]
tempList
=
tempList
.
map
((
item
)
=>
{
tempList
=
tempList
.
map
((
item
)
=>
{
item
.
createdTime
=
wx
.
$util
.
tsFormatTime
(
item
.
createdTime
,
'Y/M/D h:m:s'
)
item
.
createdTime
=
wx
.
$util
.
tsFormatTime
(
item
.
createdTime
,
'Y/M/D h:m:s'
)
if
(
item
.
payTime
)
{
if
(
item
.
payTime
)
{
...
@@ -291,11 +291,11 @@ Component({
...
@@ -291,11 +291,11 @@ Component({
return
item
return
item
})
})
this
.
setData
({
this
.
setData
({
list
:
tempList
,
[
`list[
${
currentPage
-
1
}
]`
]
:
tempList
,
currentPage
:
currentPage
+
1
,
currentPage
:
currentPage
+
1
,
total
,
nothing
:
currentPage
==
pages
,
nothing
:
total
==
tempList
.
length
,
triggered
:
false
,
triggered
:
fals
e
flag
:
tru
e
})
})
if
(
isReset
)
{
if
(
isReset
)
{
this
.
setData
({
this
.
setData
({
...
@@ -307,17 +307,19 @@ Component({
...
@@ -307,17 +307,19 @@ Component({
this
.
setData
({
this
.
setData
({
list
:
[],
list
:
[],
nothing
:
false
,
nothing
:
false
,
total
:
0
flag
:
true
})
})
wx
.
$util
.
showToast
(
res
.
message
||
'接口异常'
)
wx
.
$util
.
showToast
(
res
.
message
||
'接口异常'
)
}
}
}).
catch
(
err
=>
{
wx
.
hideLoading
()
})
})
},
},
search
()
{
search
()
{
this
.
setData
({
this
.
setData
({
currentPage
:
1
,
currentPage
:
1
,
nothing
:
false
,
nothing
:
false
,
total
:
0
flag
:
false
})
})
this
.
getList
(
true
)
this
.
getList
(
true
)
},
},
...
@@ -341,8 +343,8 @@ Component({
...
@@ -341,8 +343,8 @@ Component({
tabList
tabList
}
=
this
.
data
,
}
=
this
.
data
,
orderStatus
=
''
orderStatus
=
''
const
tabIndex
=
e
?
.
detail
||
0
const
tabIndex
=
e
.
detail
||
0
if
(
tabIndex
)
orderStatus
=
constantData
.
orderStatusList
.
find
(
item
=>
item
.
confName
==
tabList
[
tabIndex
].
text
)?.
confId
||
''
if
(
tabIndex
)
orderStatus
=
constantData
.
orderStatusList
.
find
(
item
=>
(
item
.
confName
==
tabList
[
tabIndex
].
text
||
item
.
confName
==
tabList
[
tabIndex
])
)?.
confId
||
''
this
.
setData
({
this
.
setData
({
tabIndex
,
tabIndex
,
orderStatus
orderStatus
...
@@ -466,11 +468,10 @@ Component({
...
@@ -466,11 +468,10 @@ Component({
}
=
this
.
data
,
{
}
=
this
.
data
,
{
screenForm
screenForm
}
=
this
,
}
=
this
,
merchantIds
=
[]
obj
=
wx
.
$util
.
deepClone
(
screenForm
||
{})
if
(
userInfo
.
isSuper
)
merchantIds
=
screenForm
?.
foursMerchantIds
||
[]
if
(
!
userInfo
.
isSuper
)
obj
.
merchantIds
=
[
storeInfo
?.
merchantId
]
else
merchantIds
.
push
(
storeInfo
?.
merchantId
)
orderStatistics
({
orderStatistics
({
merchantIds
...
obj
})
})
.
then
(
result
=>
{
.
then
(
result
=>
{
let
{
let
{
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
feb4778
This diff is collapsed.
Click to expand it.
packageEquity/pages/carQuotation/index/index.wxss
View file @
feb4778
...
@@ -651,6 +651,10 @@
...
@@ -651,6 +651,10 @@
text-align: center;
text-align: center;
}
}
.list-nothing{
padding: var(--fontSize40) 0;
}
/* .addOrderBtn {
/* .addOrderBtn {
...
@@ -704,7 +708,8 @@
...
@@ -704,7 +708,8 @@
.fixed-btns {
.fixed-btns {
position: fixed;
position: fixed;
right: var(--fontSize20);
right: var(--fontSize20);
bottom: var(--fontSize150);
bottom: calc(var(--fontSize150) + var(--constantSafeAreaInsetBottom));
bottom: calc(var(--fontSize150) + var(--envSafeAreaInsetBottom));
/* width: var(--fontSize104); */
/* width: var(--fontSize104); */
/* height: var(--fontSize296); */
/* height: var(--fontSize296); */
display: flex;
display: flex;
...
@@ -742,7 +747,8 @@
...
@@ -742,7 +747,8 @@
.arrowIcon {
.arrowIcon {
position: fixed;
position: fixed;
right: 0;
right: 0;
bottom: var(--fontSize150);
bottom: calc(var(--fontSize150) + var(--constantSafeAreaInsetBottom));
bottom: calc(var(--fontSize150) + var(--envSafeAreaInsetBottom));
width: var(--fontSize36);
width: var(--fontSize36);
height: var(--fontSize136);
height: var(--fontSize136);
background: #FFFFFF;
background: #FFFFFF;
...
...
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