Commit feb47780 by 李伟康

commit 数字报价单筛选

1 parent 09ddf2eb
...@@ -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/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}}" -->
<!-- bindtap="showStorePicker" -->
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide"> <view class="navigation-title-text text-hide">
<!-- {{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}} --> 车险信息
{{step=='first'?'车辆和车主信息':'车险信息'}}
</view> </view>
<!-- <view class="arrow">
<image src="/images/back.png" />
</view> -->
</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>
...@@ -45,10 +24,5 @@ ...@@ -45,10 +24,5 @@
<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
...@@ -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: false flag: true
}) })
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 {
......
...@@ -71,8 +71,9 @@ ...@@ -71,8 +71,9 @@
</view> --> </view> -->
<view wx:if="{{flag}}" class="order-box"> <view wx:if="{{flag}}" class="order-box">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscroll="onScroll" bindscrolltolower="onBottomRefresh" class="list" scroll-top="{{scrollTop}}" lower-threshold="400" refresher-threshold="104" refresher-triggered="{{triggered}}"> <scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscroll="onScroll" bindscrolltolower="onBottomRefresh" class="list" scroll-top="{{scrollTop}}" lower-threshold="400" refresher-threshold="104" refresher-triggered="{{triggered}}">
<block wx:if="{{list.length > 0}}"> <block wx:if="{{list.length}}">
<view wx:for="{{list}}" wx:key="index" class="item {{item.isTouchMove ? 'touch-move-active' : ''}}"> <block wx:for="{{list}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view wx:for="{{i}}" wx:key="index" class="item {{item.isTouchMove ? 'touch-move-active' : ''}}">
<view class="item-inner" data-item="{{item}}" data-index='{{index}}' bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchE"> <view class="item-inner" data-item="{{item}}" data-index='{{index}}' bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchE">
<view class="item-content"> <view class="item-content">
<view class="item-header"> <view class="item-header">
...@@ -231,6 +232,7 @@ ...@@ -231,6 +232,7 @@
</view> </view>
<!-- </view> --> <!-- </view> -->
</view> </view>
</block>
<block wx:if="{{nothing}}"> <block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view> <view class="list-nothing">到底了~</view>
</block> </block>
......
...@@ -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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!