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 a6087b7f
authored
Apr 27, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
7bb26d5b
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
390 additions
and
159 deletions
components/OrderNoPopup/OrderNoPopup.js
components/orderSwitchPopup/orderSwitchPopup.js
packageEquity/components/OrderNoPopup/OrderNoPopup.js
packageEquity/components/OrderNoPopup/OrderNoPopup.wxml
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.json
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxss → packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.sass
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/createOrder/createOrder.sass
tabWorkOrder/pages/createOrder/createOrder.wxml
components/OrderNoPopup/OrderNoPopup.js
View file @
a6087b7
...
...
@@ -14,7 +14,9 @@ Component({
}
},
title
:
String
,
orderInfo
:
Object
orderInfo
:
Object
,
outTradeNo
:
Array
,
switchVlauerec
:
Number
},
/**
...
...
components/orderSwitchPopup/orderSwitchPopup.js
View file @
a6087b7
...
...
@@ -47,7 +47,9 @@ Component({
flag
:
{
type
:
Boolean
,
value
:
true
}
},
outTradeNo
:
Array
,
switchVlauerec
:
Number
// merchantId: {
// //是否根据4s店查询
// type: String,
...
...
packageEquity/components/OrderNoPopup/OrderNoPopup.js
View file @
a6087b7
...
...
@@ -10,20 +10,24 @@ Component({
observer
:
function
(
n
)
{
console
.
log
(
n
,
'show'
)
if
(
n
)
{
let
{
switchVlauerec
}
=
this
.
data
this
.
setData
({
switchVlaue
:
switchVlauerec
||
1
})
this
.
getWaitinputorder
()
}
}
},
title
:
String
,
orderInfo
:
Object
orderInfo
:
Object
,
outTradeNo
:
Array
,
switchVlauerec
:
Number
},
/**
* 组件的初始数据
*/
data
:
{
outTradeNo
:
[],
itemFormObj
:
[
{
label
:
'交易参考号'
,
...
...
@@ -163,19 +167,8 @@ Component({
icon
:
'none'
})
}
// let { accountDate, outTradeNo, totalFee } = arr
// this.triggerEvent('success', { accountDate, outTradeNo, totalFee })
// if (arr.length) {
// let { accountDate, outTradeNo, totalFee, filmOrder, tradeNo } = arr[0]
console
.
log
(
arr
,
'arr'
);
this
.
triggerEvent
(
'success'
,
{
arr
,
switchVlaue
})
// }
// let thisPage = wx.$router.getPageInstance()
// orderInfo.outTradeNo = arr[0]?.outTradeNo || ''
// thisPage.setData({
// orderInfo,
// orderNoPopup: false
// })
},
cancel
()
{
let
thisPage
=
wx
.
$router
.
getPageInstance
()
...
...
packageEquity/components/OrderNoPopup/OrderNoPopup.wxml
View file @
a6087b7
...
...
@@ -9,24 +9,29 @@
</view>
</view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{triggered}}">
<block wx:for="{{orderNoList}}" wx:key="index">
<view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}">
<view class="message">
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx">
<view class="item" wx:if="{{item[subItem.prop]}}">
<view class="label">{{subItem.label}}</view>
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="value" wx:else>
{{item[subItem.prop]}}
<image wx:if="{{subItem.copy}}" catch:tap="toCopyNumber" data-ordernum="{{item[subItem.prop]}}" class="copy_icon" src="../../images/copy_name.png" />
<block wx:if="{{orderNoList.length}}">
<block wx:for="{{orderNoList}}" wx:key="index">
<view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}">
<view class="message">
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx">
<view class="item" wx:if="{{item[subItem.prop]}}">
<view class="label">{{subItem.label}}</view>
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="value" wx:else>
{{item[subItem.prop]}}
<image wx:if="{{subItem.copy}}" catch:tap="toCopyNumber" data-ordernum="{{item[subItem.prop]}}" class="copy_icon" src="../../images/copy_name.png" />
</view>
</view>
</view>
</block>
</block>
</view>
<view class="checked" wx:if="{{item.active}}">
<image src="../../../components/images/choose.png" />
</view>
</view>
<view class="checked" wx:if="{{item.active}}"
>
<image src="../../../components/images/choose.png" /
>
</view
>
<
/view
>
</block
>
</block
>
<block wx:else
>
<
empty-data style="width: 100%;" /
>
</block>
</scroll-view>
</popup>
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
a6087b7
...
...
@@ -13,8 +13,10 @@ import {
orderSettingList
,
checkRecord
,
checkZyPayFlag
,
updateCustomerInfo
updateCustomerInfo
,
waitinputorder
}
from
'../../../api'
let
time
=
null
;
import
{
quotedImgUrl
}
from
'~/config'
import
dataForm
from
'../components/constant/stepData'
import
NP
from
'number-precision'
...
...
@@ -23,7 +25,14 @@ Page({
* 页面的初始数据
*/
data
:
{
showTips
:
true
,
tipsProps
:
{
tipsText
:
"该门店产生异常订单,请点击补录!"
,
showTips
:
true
,
type
:
2
,
typeText
:
"补录订单"
,
},
showOrderpop
:
false
,
showTips
:
false
,
showPopup
:
false
,
owner
:
{
owner
:
''
,
...
...
@@ -106,6 +115,50 @@ Page({
tempVin
:
''
,
showZyPopup
:
false
// 上传合同协议弹窗
},
tipsEvent
()
{
this
.
setData
({
showOrderpop
:
true
,
});
},
closeSwitchPopup
()
{
this
.
setData
({
showOrderpop
:
false
,
});
},
async
navigator
(
e
)
{
console
.
log
(
e
);
let
{
arr
,
switchVlaue
}
=
e
.
detail
;
this
.
closeSwitchPopup
();
// wx.$storage.set("outTradeNo", outTradeNo);
arr
&&
this
.
onRoute
({
// ...e.detail,
switchVlaue
,
outTradeArr
:
arr
,
orderCreateType
:
"additionRecordOrder"
,
});
// let { orderObj } = this.data
// // 如果是补录 需清订单的空礼券和商品 清空销售顾问
// let deleteName = [
// 'employeeName',
// "userId",
// "orderSource",
// "couponName",
// "customerCouponCode",
// "customerCouponId",
// ];
// deleteName.map((item) => {
// if (orderObj[item]) delete orderObj[item];
// });
// let goodsList = [];
// this.setData({
// orderObj,
// goodsList,
// });
// this.setGoodsTotal(goodsList);
},
closeTips
()
{
this
.
setData
({
showTips
:
false
...
...
@@ -1141,14 +1194,19 @@ Page({
if
(
outTradeArr
)
{
console
.
log
(
switchVlaue
,
outTradeArr
)
// 老逻辑的流水补录 一单并且是正常的
let
filteroutTradeArr
=
outTradeArr
.
map
(
item
=>
item
.
outTradeNo
)
if
(
switchVlaue
==
1
&&
outTradeArr
.
length
==
1
)
{
let
{
outTradeNo
,
accountDate
,
tradeNo
}
=
outTradeArr
[
0
]
this
.
setData
({
outTradeArr
:
filteroutTradeArr
,
switchVlaue
,
outTradeNo
,
tradeNo
,
[
'orderInfo.outTradeNo'
]:
outTradeNo
,
[
'orderInfo.tradeNo'
]:
tradeNo
,
accountDate
accountDate
,
totalFee
:
totalFee
,
showTips
:
true
})
}
else
{
// 判断是一个流水补录还是多个,
...
...
@@ -1161,10 +1219,21 @@ Page({
str
+=
index
?
`,
${
item
.
tradeNo
}
`
:
item
.
tradeNo
return
str
},
''
)
const
totalFee
=
outTradeArr
.
reduce
((
num
,
item
,
index
)
=>
{
// str += index ? `,${item.outTradeNo}` : item.outTradeNo
// return str;
num
+=
item
.
totalFee
return
num
;
},
0
)
console
.
log
(
outTradeNo
)
this
.
setData
({
outTradeArr
,
switchVlaue
,
outTradeArr
:
filteroutTradeArr
,
totalFee
,
outTradeNo
,
showTips
:
true
,
// outTradeArr,
[
'orderInfo.payType'
]:
5
,
[
'orderInfo.outTradeNo'
]:
outTradeNo
,
[
'orderInfo.tradeNo'
]:
tradeNo
,
...
...
@@ -1328,6 +1397,35 @@ Page({
})
.
catch
(
err
=>
{
})
},
setTime
()
{
let
_this
=
this
;
time
=
setTimeout
(()
=>
{
// console.log(_this.getWaitOrder)
_this
.
getWaitOrder
();
},
10
*
1000
);
},
// 10s轮询一次待补录
getWaitOrder
()
{
// let { isStaff } = this.data;
// console.log('isStaff', isStaff)
// let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.route, ' thisPage.route')
// thisPage.route == 'tabIndex/pages/index/index' &&
time
&&
clearTimeout
(
time
);
//解决切换门店时 需要清除计时器
// if (isStaff) {
waitinputorder
().
then
((
result
)
=>
{
console
.
log
(
result
,
'getWaitOrder'
)
let
{
code
,
data
}
=
result
;
this
.
setTime
();
if
(
code
==
0
)
{
this
.
setData
({
waitInputCount
:
data
.
waitInputCount
,
});
}
})
.
catch
((
err
)
=>
{
});
// }
},
/**
* 生命周期函数--监听页面加载
*/
...
...
@@ -1351,15 +1449,23 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
onShow
()
{
// 如果是员工 开启订单补录轮询
this
.
getWaitOrder
();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
onHide
()
{
time
&&
clearTimeout
(
time
);
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
onUnload
()
{
time
&&
clearTimeout
(
time
);
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.json
View file @
a6087b7
...
...
@@ -5,7 +5,8 @@
"second-step"
:
"../components/SecondStepSimple/SecondStep"
,
"order-popup"
:
"../components/OrderPopup/OrderPopup"
,
"vin-sec-dialog"
:
"../components/VinSecDialog/VinSecDialog"
,
"zy-pay-popup"
:
"../components/zyPayPopup/zyPayPopup"
"zy-pay-popup"
:
"../components/zyPayPopup/zyPayPopup"
,
"order-no-popup"
:
"../../../components/OrderNoPopup/OrderNoPopup"
},
"navigationStyle"
:
"custom"
}
}
\ No newline at end of file
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.
wx
ss
→
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.
sa
ss
View file @
a6087b7
/* packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxss */
page{
page
{
background
:
#f3f5f7
;
}
...
...
@@ -75,19 +75,23 @@ page{
background-color
:
#EFF5FE
;
}
.tips {
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--fontSize20);
background: #EFF5FE;
height: var(--fontSize110);
width: 100%;
color: #347BFF;
font-size: var(--fontSize24);
.btns
{
.tips
{
position
:
relative
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
var
(
--
fontSize20
)
;
background
:
#EFF5FE
;
height
:
var
(
--
fontSize140
)
;
width
:
100%
;
color
:
#333333
;
font-size
:
var
(
--
fontSize24
)
;
}
}
.tips
.contentText
{
margin-left
:
var
(
--
fontSize20
)
;
margin-right
:
auto
;
...
...
@@ -95,6 +99,36 @@ page{
font-weight
:
500
;
flex-direction
:
column
;
justify-content
:
space-between
;
.tradeNo
{
max-width
:
400rpx
;
margin-right
:
10rpx
;
}
.tradeNoCon
{
display
:
flex
;
justify-content
:
space-between
;
}
.tipsbox
{
margin-top
:
20rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.tipsbtn
{
position
:
absolute
;
right
:
120rpx
;
bottom
:
20rpx
;
color
:
#347BFF
;
padding
:
var
(
--
fontSize6
)
var
(
--
fontSize20
)
;
margin-left
:
auto
;
border
:
1px
solid
#347BFF
;
border-radius
:
var
(
--
fontSize28
)
;
margin-top
:
-26rpx
;
margin-right
:
-90rpx
;
}
}
.btns-con
{
...
...
@@ -109,12 +143,51 @@ page{
.tipsIcon
,
.closeIcon
{
// margin-top: -40rpx;
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
}
.fullSucreen-tips
{
padding-bottom
:
var
(
--
fontSize210
)
!
important
;
}
.waitOrderCon
{
box-sizing
:
border-box
;
position
:
fixed
;
bottom
:
0rpx
;
width
:
100%
;
display
:
flex
;
// align-items: center;
font-size
:
var
(
--
fontSize24
)
;
font-weight
:
600
;
color
:
#347BFF
;
/* padding: 0 var(--fontSize20); */
height
:
var
(
--
fontSize124
)
;
// background: #EFF5FE;
background-color
:
#fff
;
z-index
:
9
;
&
.showTips
{
bottom
:
0rpx
;
}
}
.waitOrderCon
.tipsIcon
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
margin-right
:
var
(
--
fontSize20
)
;
z-index
:
1
;
}
.waitOrderCon
.btn
{
color
:
#F24724
;
padding
:
var
(
--
fontSize6
)
var
(
--
fontSize20
)
;
margin-left
:
auto
;
border
:
1px
solid
#F24724
;
border-radius
:
var
(
--
fontSize28
)
;
}
\ No newline at end of file
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
View file @
a6087b7
...
...
@@ -7,20 +7,32 @@
</view>
</view>
</navigation-bar>
<view class="layout {{
showTips
?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<view class="layout {{
(showTips||waitInputCount)
?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view>
<view wx:if="{{showTips
&&outTradeNo
}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view wx:if="{{showTips}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view>交易参考号:{{tradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
<view class="tradeNoCon">
<view>交易参考号:</view>
<view class="tradeNo text-hide">{{outTradeNo}}</view>
<view>(共{{outTradeArr.length}}条)</view>
</view>
<!-- <view>支付时间:{{accountDate}}</view> -->
<view class="tipsbox">
<view>支付金额:¥{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</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="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
<order-no-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeArr }}" switchVlauerec="{{switchVlaue}}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<order-popup orderType="{{orderInfo.payType }}" resetTransNo="{{orderInfo.transactionNo || orderInfo.outTradeNo}}" resetOrder="{{orderInfo.resetOrder}}" orderInfo="{{orderInfo}}" wx:if="{{showPopup}}" show="{{showPopup}}" />
<!-- vin二次复核 -->
<vin-sec-dialog wx:if="{{showVinDialog}}" showVinDialog="{{showVinDialog}}" secFormData="{{secFormData}}" bindonClose="handleSecClose" bindonConfirm="handleSecConfirm"></vin-sec-dialog>
...
...
tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
View file @
a6087b7
// tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
import
api
from
'~/api/api'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component
({
/**
* 组件的属性列表
...
...
@@ -10,7 +11,7 @@ Component({
type
:
Boolean
,
observer
:
function
(
n
)
{
if
(
n
)
{
console
.
log
(
this
.
data
)
;
console
.
log
(
this
.
data
)
let
{
switchVlauerec
}
=
this
.
data
this
.
setData
({
switchVlaue
:
switchVlauerec
||
1
...
...
@@ -19,8 +20,8 @@ Component({
}
}
},
outTradeNo
:
Array
,
title
:
String
,
outTradeNo
:
Array
,
switchVlauerec
:
Number
},
...
...
@@ -34,19 +35,20 @@ Component({
label
:
'交易参考号'
,
prop
:
'tradeNo'
,
type
:
'copy'
},
{
},
{
label
:
'支付时间'
,
prop
:
'accountDate'
},
{
},
{
label
:
'支付金额'
,
prop
:
'totalFee'
,
type
:
'price'
},
// {
// label: '选择产品',
// prop: 'filmOrder',
// type: 'select'
// }
{
label
:
'商户名称'
,
prop
:
'yqMerchantName'
}
],
currentPage
:
1
,
pageSize
:
10
,
...
...
@@ -86,9 +88,9 @@ Component({
if
(
item
.
active
)
{
num
+=
1
}
return
num
;
return
num
},
1
)
console
.
log
(
num
)
;
console
.
log
(
num
)
if
(
num
>
9
)
{
return
wx
.
$util
.
showToast
(
'勾选已超过限制'
)
}
...
...
@@ -100,7 +102,7 @@ Component({
}
return
i
})
this
.
setData
({
orderNoList
,
})
this
.
setData
({
orderNoList
})
},
// 产品类型切换
selectTap
(
e
)
{
...
...
@@ -108,7 +110,7 @@ Component({
this
.
setData
({
showSelect
:
!
this
.
data
.
showSelect
,
filmOrderIndex
:
index
})
;
})
},
closeSelect
()
{
this
.
setData
({
...
...
@@ -144,7 +146,8 @@ Component({
this.getWaitinputorder()
},
getWaitinputorder() {
let { currentPage, pageSize, orderNoList, outTradeNo, switchVlaue } = this.data
let { currentPage, pageSize, orderNoList, outTradeNo, switchVlaue } =
this.data
api
.waitinputorder({ currentPage, pageSize, inputOrderType: switchVlaue })
.then(result => {
...
...
@@ -152,14 +155,17 @@ Component({
if (code == 0) {
data.list.forEach(element => {
element.filmOrder = 0
element.accountDate = new Date(element.accountDate).format('yyyy-MM-dd hh:mm:ss')
element.accountDate = new Date(element.accountDate).format(
'yyyy-MM-dd hh:mm:ss'
)
if (outTradeNo.includes(element.outTradeNo)) {
element.active = true
} else {
element.active = false
}
})
orderNoList = currentPage == 1 ? data.list : [...orderNoList, ...data.list]
orderNoList =
currentPage == 1 ? data.list : [...orderNoList, ...data.list]
// orderNoList = orderNoList.for
// for (let index = 0; index < 3; index++) {
...
...
@@ -173,7 +179,7 @@ Component({
})
}
})
.catch(err => {
})
.catch(err => {})
},
confirm() {
let { orderNoList, switchVlaue } = this.data
...
...
@@ -191,7 +197,6 @@ Component({
if (arr.length) {
this.triggerEvent('success', { arr, switchVlaue })
}
},
cancel() {
let thisPage = wx.$router.getPageInstance()
...
...
@@ -201,4 +206,3 @@ Component({
}
}
})
tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml
View file @
a6087b7
<!--tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml-->
<wxs src="index.wxs" module="filter" />
<popup show="{{ show }}" bindconfirm="confirm" bindcancel="cancel" height="80%" slotStyle="{{ popupSlotStyle }}">
<view class="sub-title">
<view>{{title}}</view>
</view>
<view class="switch-box">
<view class="block text-center {{ switchVlaue== 1?'':'labelRight' }}" />
<view class="left text-center {{ switchVlaue == 1?'active':'' }}" bindtap="changeSwitch" data-value="1">正常分账期</view>
<view class="right text-center {{ switchVlaue == 2?'active':'' }}" bindtap="changeSwitch" data-value="2">超分账期
<image class="question" src="/components/images/question.png" bind:tap="showTips"></image>
</view>
</view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{ triggered }}">
<block wx:for="{{ orderNoList }}" wx:key="index" wx:for-index="index">
<view class="order_no_item {{ item.active?'active':'' }}" bindtap="changeOrderNo" data-target="{{ item }}">
<view class="message">
<block wx:for="{{ itemFormObj }}" wx:for-item="subItem" wx:key="idx" wx:for-index="idx">
<view class="item">
<view class="label">{{subItem.label}}</view>
<view class="value price_value" wx:if="{{ subItem.type == 'price' }}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="select_value" wx:if="{{ subItem.type == 'select' }}" catch:tap="selectTap" data-index="{{ index }}">
<text class="text-hide">{{filmOrderData[item.filmOrder]}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view class="value" wx:if="{{ subItem.type !== 'price' && subItem.type !== 'select' }}">
{{item[subItem.prop]}}
<image class="copy_icon" catch:tap="copyOutTradeNo" data-item="{{ item }}" wx:if="{{ subItem.type == 'copy' }}" src="{{ IMG_URL }}copy_icon_gapy.png" mode="" />
</view>
</view>
</block>
</view>
<view class="checked" wx:if="{{ item.active }}">
<image src="/components/images/choose.png" />
</view>
<block wx:if="{{ showSelect && filmOrderIndex == index }}">
<view class="option_box">
<view class="option {{ item.filmOrder == subI ? 'active' : '' }}" wx:for="{{ filmOrderData }}" wx:for-item="subE" wx:for-index="subI" wx:key="subI" data-index="{{ subI }}" data-order-index="{{ index }}" catchtap="optionTap">{{subE}} </view>
</view>
<view class="mask_class" bindtap="closeSelect" />
</block>
</view>
</block>
</scroll-view>
<view class="sub-title">
<view>{{title}}</view>
</view>
<view class="switch-box">
<view class="block text-center {{ switchVlaue== 1?'':'labelRight' }}" />
<view class="left text-center {{ switchVlaue == 1?'active':'' }}" bindtap="changeSwitch" data-value="1">正常分账期</view>
<view class="right text-center {{ switchVlaue == 2?'active':'' }}" bindtap="changeSwitch" data-value="2">
超分账期
<image class="question" src="/components/images/question.png" bind:tap="showTips"></image>
</view>
</view>
<scroll-view
class="order_no_box"
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<block wx:if="{{ orderNoList.length }}">
<block wx:for="{{ orderNoList }}" wx:key="index" wx:for-index="index">
<view class="order_no_item {{ item.active?'active':'' }}" bindtap="changeOrderNo" data-target="{{ item }}">
<view class="message">
<block wx:for="{{ itemFormObj }}" wx:for-item="subItem" wx:key="idx" wx:for-index="idx">
<view class="item">
<view class="label">{{subItem.label}}</view>
<view class="value price_value" wx:if="{{ subItem.type == 'price' }}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="select_value" wx:if="{{ subItem.type == 'select' }}" catch:tap="selectTap" data-index="{{ index }}">
<text class="text-hide">{{filmOrderData[item.filmOrder]}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view class="value" wx:if="{{ subItem.type !== 'price' && subItem.type !== 'select' }}">
{{item[subItem.prop]}}
<image
class="copy_icon"
catch:tap="copyOutTradeNo"
data-item="{{ item }}"
wx:if="{{ subItem.type == 'copy' }}"
src="{{ IMG_URL }}copy_icon_gapy.png"
mode=""
/>
</view>
</view>
</block>
</view>
<view class="checked" wx:if="{{ item.active }}">
<image src="/components/images/choose.png" />
</view>
<block wx:if="{{ showSelect && filmOrderIndex == index }}">
<view class="option_box">
<view
class="option {{ item.filmOrder == subI ? 'active' : '' }}"
wx:for="{{ filmOrderData }}"
wx:for-item="subE"
wx:for-index="subI"
wx:key="subI"
data-index="{{ subI }}"
data-order-index="{{ index }}"
catchtap="optionTap"
>{{subE}}</view>
</view>
<view class="mask_class" bindtap="closeSelect" />
</block>
</view>
</block>
</block>
<block wx:else>
<empty-data style="width: 100%;" />
</block>
</scroll-view>
</popup>
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<view class="ul">
<view class="title">
字段定义
</view>
<view class="li">
○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view>
<view class="li last">
○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view>
<view class="title">
操作指导
</view>
<view class="li">
① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单
</view>
<view class="li last">
情况一:单笔支付直接补录创建工单
情况二:客户多笔支付,补录工单时勾选多笔交易流水
</view>
<view class="li">
② 特殊情况:需通知运营在后台关联工单
</view>
<view class="li last">
情况一:客户支付定金时间与尾款时间间隔20天以上
<view class="ul">
<view class="title">字段定义</view>
<view class="li">○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="li last">○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="title">操作指导</view>
<view class="li">① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单</view>
<view class="li last">情况一:单笔支付直接补录创建工单
情况二:客户多笔支付,补录工单时勾选多笔交易流水</view>
<view class="li">② 特殊情况:需通知运营在后台关联工单</view>
<view class="li last">情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作(多付了)需部分退款
</view>
<view class="li last">
操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。
</view>
<!-- <view class="title">
情况三:支付费用时误操作(多付了)需部分退款</view>
<view class="li last">操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。</view>
<!-- <view class="title">
特殊情况
</view>
<view class="li">
...
...
@@ -86,7 +99,6 @@
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作 (多付了) 需部分退款
</view> -->
</view>
<!-- <view>说明内容</view> -->
</view>
<!-- <view>说明内容</view> -->
</tipsPopup>
\ No newline at end of file
tabWorkOrder/pages/createOrder/createOrder.js
View file @
a6087b7
...
...
@@ -1319,7 +1319,7 @@ Page({
let
filteroutTradeArr
=
outTradeArr
.
map
(
item
=>
item
.
outTradeNo
)
// 判断是多订单还是一个
if
(
switchVlaue
==
1
&&
outTradeArr
.
length
==
1
)
{
let
{
outTradeNo
,
totalFee
,
accountDate
,
tradeNo
}
=
outTradeArr
[
0
]
let
{
outTradeNo
,
totalFee
}
=
outTradeArr
[
0
]
this
.
setData
({
switchVlaue
,
outTradeArr
:
filteroutTradeArr
,
...
...
@@ -1336,10 +1336,17 @@ Page({
str
+=
index
?
`,
${
item
.
outTradeNo
}
`
:
item
.
outTradeNo
return
str
;
},
''
)
const
totalFee
=
outTradeArr
.
reduce
((
num
,
item
,
index
)
=>
{
// str += index ? `,${item.outTradeNo}` : item.outTradeNo
// return str;
num
+=
item
.
totalFee
return
num
;
},
0
)
this
.
setData
({
switchVlaue
,
outTradeArr
:
filteroutTradeArr
,
outTradeNo
,
totalFee
,
[
"orderObj.outTradeNo"
]:
outTradeNo
,
showTips
:
true
});
...
...
tabWorkOrder/pages/createOrder/createOrder.sass
View file @
a6087b7
...
...
@@ -497,7 +497,7 @@ page {
background
:
#EFF5FE
;
height
:
var
(
--
fontSize140
)
;
width
:
100%
;
color
:
#3
47BFF
;
color
:
#3
33333
;
font-size
:
var
(
--
fontSize24
)
;
}
...
...
@@ -507,9 +507,19 @@ page {
display
:
flex
;
font-weight
:
500
;
flex-direction
:
column
;
justify-content
:
space-between
;
.tradeNo
{
max-width
:
400rpx
;
margin-right
:
10rpx
;
}
.tradeNoCon
{
display
:
flex
;
justify-content
:
space-between
;
}
.tipsbox
{
margin-top
:
20rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
...
...
tabWorkOrder/pages/createOrder/createOrder.wxml
View file @
a6087b7
...
...
@@ -409,10 +409,14 @@
<view class="tipsadd" wx:if="{{ showTips }}">
<image class="tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view>交易参考号:{{tradeNo}}</view>
<view>支付时间:{{accountDate}}</view>
<view class="tradeNoCon">
<view>交易参考号:</view>
<view class="tradeNo text-hide">{{outTradeNo}}</view>
<view>(共{{outTradeArr.length}}条)</view>
</view>
<!-- <view>支付时间:{{accountDate}}</view> -->
<view class="tipsbox">
<view>支付金额:{{totalFee/100}}</view>
<view>支付金额:
¥
{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view>
</view>
...
...
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