Commit feb47780 by 李伟康

commit 数字报价单筛选

1 parent 09ddf2eb
......@@ -82,8 +82,6 @@ Page({
},
// 页面存放表单对象的对象名
dataAttrName: 'owner',
// step: 'first',
step: 'second', // 非融合不要第一步
needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice', , 'insurancePrice', 'quotedPriceUpdate', 'minEquityPrice']
},
closeTips() {
......@@ -131,13 +129,6 @@ Page({
owner
})
},
handleFirstConfirm(e) {
// let { formData } = e.detail
this.setData({
// ['orderInfo.owner']: formData,
step: 'second'
})
},
createWithPay(id) {
return new Promise((resolve, reject) => {
let para = {
......@@ -806,20 +797,7 @@ Page({
return parseFloat(strVal)
},
back() {
console.log('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'
})
}
wx.$router.back()
},
navbarReady(e) {
let navBarHeight = e.detail.height
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<!-- showMenu="{{true}}" -->
<!-- bindtap="showStorePicker" -->
<view class="navigation-title">
<view class="navigation-title-text text-hide">
<!-- {{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}} -->
{{step=='first'?'车辆和车主信息':'车险信息'}}
</view>
<!-- <view class="arrow">
<image src="/images/back.png" />
</view> -->
</view>
<view class="navigation-title">
<view class="navigation-title-text text-hide">
车险信息
</view>
</view>
</navigation-bar>
<!-- height: calc(100vh - {{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 }}"
bindconfirm="handleFirstConfirm"
bindeditSave="handleEditSave"
/>
<second-step
id="SecondStep"
orderInfo="{{ orderInfo }}"
quotationGoodsList="{{ quotationGoodsList }}"
bindconfirm="handleSecondConfirm"
bindeditSave="handleEditSave"
/>
<view class="layout {{showTips?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view>
<view wx:if="{{showTips&&outTradeNo}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips" >
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view>支付订单号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
</view>
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" />
</view>
<!-- <view class="btns-con">
<view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view>支付订单号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
</view>
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" />
</view>
<!-- <view class="btns-con">
<view class="save text-center" bindtap="routerBack" data-save>放弃</view>
<view class="confirm text-center" bindtap="submit">提交工单</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
</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
......@@ -105,8 +105,6 @@ Component({
tabListTemplateSimple: ['全部', '待报价', '待支付', '已支付', '已完成', '战败'],
pageSize: 4,
currentPage: 1,
flag: true,
total: 0,
storeInfo: {},
triggered: false,
scrollTop: 0,
......@@ -274,13 +272,15 @@ Component({
merchantId,
...screenForm
}
wx.$util.showLoading()
quotationPage(params).then(res => {
wx.hideLoading()
if (res.code == '0') {
let {
list,
total
pages
} = res.data
let tempList = isReset ? this.dealListData(list || []) || [] : this.data.list.concat(this.dealListData(list || []) || [])
let tempList = list || []
tempList = tempList.map((item) => {
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y/M/D h:m:s')
if (item.payTime) {
......@@ -291,11 +291,11 @@ Component({
return item
})
this.setData({
list: tempList,
[`list[${currentPage - 1}]`]: tempList,
currentPage: currentPage + 1,
total,
nothing: total == tempList.length,
triggered: false
nothing: currentPage == pages,
triggered: false,
flag: true
})
if (isReset) {
this.setData({
......@@ -307,17 +307,19 @@ Component({
this.setData({
list: [],
nothing: false,
total: 0
flag: true
})
wx.$util.showToast(res.message || '接口异常')
}
}).catch(err => {
wx.hideLoading()
})
},
search() {
this.setData({
currentPage: 1,
nothing: false,
total: 0
flag: false
})
this.getList(true)
},
......@@ -341,8 +343,8 @@ Component({
tabList
} = this.data,
orderStatus = ''
const tabIndex = e?.detail || 0
if (tabIndex) orderStatus = constantData.orderStatusList.find(item => item.confName == tabList[tabIndex].text)?.confId || ''
const tabIndex = e.detail || 0
if (tabIndex) orderStatus = constantData.orderStatusList.find(item => (item.confName == tabList[tabIndex].text || item.confName == tabList[tabIndex]))?.confId || ''
this.setData({
tabIndex,
orderStatus
......@@ -466,11 +468,10 @@ Component({
} = this.data, {
screenForm
} = this,
merchantIds = []
if (userInfo.isSuper) merchantIds = screenForm?.foursMerchantIds || []
else merchantIds.push(storeInfo?.merchantId)
obj = wx.$util.deepClone(screenForm || {})
if (!userInfo.isSuper) obj.merchantIds = [storeInfo?.merchantId]
orderStatistics({
merchantIds
...obj
})
.then(result => {
let {
......
......@@ -651,6 +651,10 @@
text-align: center;
}
.list-nothing{
padding: var(--fontSize40) 0;
}
/* .addOrderBtn {
......@@ -704,7 +708,8 @@
.fixed-btns {
position: fixed;
right: var(--fontSize20);
bottom: var(--fontSize150);
bottom: calc(var(--fontSize150) + var(--constantSafeAreaInsetBottom));
bottom: calc(var(--fontSize150) + var(--envSafeAreaInsetBottom));
/* width: var(--fontSize104); */
/* height: var(--fontSize296); */
display: flex;
......@@ -742,7 +747,8 @@
.arrowIcon {
position: fixed;
right: 0;
bottom: var(--fontSize150);
bottom: calc(var(--fontSize150) + var(--constantSafeAreaInsetBottom));
bottom: calc(var(--fontSize150) + var(--envSafeAreaInsetBottom));
width: var(--fontSize36);
height: var(--fontSize136);
background: #FFFFFF;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!