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 39d8207e
authored
Apr 27, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
commit
2 parents
a502f31c
68575121
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
390 additions
and
164 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 @
39d8207
...
@@ -14,7 +14,9 @@ Component({
...
@@ -14,7 +14,9 @@ Component({
}
}
},
},
title
:
String
,
title
:
String
,
orderInfo
:
Object
orderInfo
:
Object
,
outTradeNo
:
Array
,
switchVlauerec
:
Number
},
},
/**
/**
...
...
components/orderSwitchPopup/orderSwitchPopup.js
View file @
39d8207
...
@@ -47,7 +47,9 @@ Component({
...
@@ -47,7 +47,9 @@ Component({
flag
:
{
flag
:
{
type
:
Boolean
,
type
:
Boolean
,
value
:
true
value
:
true
}
},
outTradeNo
:
Array
,
switchVlauerec
:
Number
// merchantId: {
// merchantId: {
// //是否根据4s店查询
// //是否根据4s店查询
// type: String,
// type: String,
...
...
packageEquity/components/OrderNoPopup/OrderNoPopup.js
View file @
39d8207
...
@@ -10,20 +10,24 @@ Component({
...
@@ -10,20 +10,24 @@ Component({
observer
:
function
(
n
)
{
observer
:
function
(
n
)
{
console
.
log
(
n
,
'show'
)
console
.
log
(
n
,
'show'
)
if
(
n
)
{
if
(
n
)
{
let
{
switchVlauerec
}
=
this
.
data
this
.
setData
({
switchVlaue
:
switchVlauerec
||
1
})
this
.
getWaitinputorder
()
this
.
getWaitinputorder
()
}
}
}
}
},
},
title
:
String
,
title
:
String
,
orderInfo
:
Object
orderInfo
:
Object
,
outTradeNo
:
Array
,
switchVlauerec
:
Number
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
outTradeNo
:
[],
itemFormObj
:
[
itemFormObj
:
[
{
{
label
:
'交易参考号'
,
label
:
'交易参考号'
,
...
@@ -163,19 +167,8 @@ Component({
...
@@ -163,19 +167,8 @@ Component({
icon
:
'none'
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'
);
console
.
log
(
arr
,
'arr'
);
this
.
triggerEvent
(
'success'
,
{
arr
,
switchVlaue
})
this
.
triggerEvent
(
'success'
,
{
arr
,
switchVlaue
})
// }
// let thisPage = wx.$router.getPageInstance()
// orderInfo.outTradeNo = arr[0]?.outTradeNo || ''
// thisPage.setData({
// orderInfo,
// orderNoPopup: false
// })
},
},
cancel
()
{
cancel
()
{
let
thisPage
=
wx
.
$router
.
getPageInstance
()
let
thisPage
=
wx
.
$router
.
getPageInstance
()
...
...
packageEquity/components/OrderNoPopup/OrderNoPopup.wxml
View file @
39d8207
...
@@ -9,24 +9,29 @@
...
@@ -9,24 +9,29 @@
</view>
</view>
</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}}">
<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">
<block wx:if="{{orderNoList.length}}">
<view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}">
<block wx:for="{{orderNoList}}" wx:key="index">
<view class="message">
<view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}">
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx">
<view class="message">
<view class="item" wx:if="{{item[subItem.prop]}}">
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx">
<view class="label">{{subItem.label}}</view>
<view class="item" wx:if="{{item[subItem.prop]}}">
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="label">{{subItem.label}}</view>
<view class="value" wx:else>
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
{{item[subItem.prop]}}
<view class="value" wx:else>
<image wx:if="{{subItem.copy}}" catch:tap="toCopyNumber" data-ordernum="{{item[subItem.prop]}}" class="copy_icon" src="../../images/copy_name.png" />
{{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>
</view>
</block>
</block>
</view>
<view class="checked" wx:if="{{item.active}}">
<image src="../../../components/images/choose.png" />
</view>
</view>
</view>
<view class="checked" wx:if="{{item.active}}"
>
</block
>
<image src="../../../components/images/choose.png" /
>
</block
>
</view
>
<block wx:else
>
<
/view
>
<
empty-data style="width: 100%;" /
>
</block>
</block>
</scroll-view>
</scroll-view>
</popup>
</popup>
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
39d8207
...
@@ -13,8 +13,10 @@ import {
...
@@ -13,8 +13,10 @@ import {
orderSettingList
,
orderSettingList
,
checkRecord
,
checkRecord
,
checkZyPayFlag
,
checkZyPayFlag
,
updateCustomerInfo
updateCustomerInfo
,
waitinputorder
}
from
'../../../api'
}
from
'../../../api'
let
time
=
null
;
import
{
quotedImgUrl
}
from
'~/config'
import
{
quotedImgUrl
}
from
'~/config'
import
dataForm
from
'../components/constant/stepData'
import
dataForm
from
'../components/constant/stepData'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
...
@@ -23,7 +25,14 @@ Page({
...
@@ -23,7 +25,14 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
showTips
:
true
,
tipsProps
:
{
tipsText
:
"该门店产生异常订单,请点击补录!"
,
showTips
:
true
,
type
:
2
,
typeText
:
"补录订单"
,
},
showOrderpop
:
false
,
showTips
:
false
,
showPopup
:
false
,
showPopup
:
false
,
owner
:
{
owner
:
{
owner
:
''
,
owner
:
''
,
...
@@ -106,6 +115,50 @@ Page({
...
@@ -106,6 +115,50 @@ Page({
tempVin
:
''
,
tempVin
:
''
,
showZyPopup
:
false
// 上传合同协议弹窗
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
()
{
closeTips
()
{
this
.
setData
({
this
.
setData
({
showTips
:
false
showTips
:
false
...
@@ -1141,14 +1194,19 @@ Page({
...
@@ -1141,14 +1194,19 @@ Page({
if
(
outTradeArr
)
{
if
(
outTradeArr
)
{
console
.
log
(
switchVlaue
,
outTradeArr
)
console
.
log
(
switchVlaue
,
outTradeArr
)
// 老逻辑的流水补录 一单并且是正常的
// 老逻辑的流水补录 一单并且是正常的
let
filteroutTradeArr
=
outTradeArr
.
map
(
item
=>
item
.
outTradeNo
)
if
(
switchVlaue
==
1
&&
outTradeArr
.
length
==
1
)
{
if
(
switchVlaue
==
1
&&
outTradeArr
.
length
==
1
)
{
let
{
outTradeNo
,
accountDate
,
tradeNo
}
=
outTradeArr
[
0
]
let
{
outTradeNo
,
accountDate
,
tradeNo
}
=
outTradeArr
[
0
]
this
.
setData
({
this
.
setData
({
outTradeArr
:
filteroutTradeArr
,
switchVlaue
,
outTradeNo
,
outTradeNo
,
tradeNo
,
tradeNo
,
[
'orderInfo.outTradeNo'
]:
outTradeNo
,
[
'orderInfo.outTradeNo'
]:
outTradeNo
,
[
'orderInfo.tradeNo'
]:
tradeNo
,
[
'orderInfo.tradeNo'
]:
tradeNo
,
accountDate
accountDate
,
totalFee
:
totalFee
,
showTips
:
true
})
})
}
else
{
}
else
{
// 判断是一个流水补录还是多个,
// 判断是一个流水补录还是多个,
...
@@ -1161,10 +1219,21 @@ Page({
...
@@ -1161,10 +1219,21 @@ Page({
str
+=
index
?
`,
${
item
.
tradeNo
}
`
:
item
.
tradeNo
str
+=
index
?
`,
${
item
.
tradeNo
}
`
:
item
.
tradeNo
return
str
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
)
console
.
log
(
outTradeNo
)
this
.
setData
({
this
.
setData
({
outTradeArr
,
switchVlaue
,
outTradeArr
:
filteroutTradeArr
,
totalFee
,
outTradeNo
,
showTips
:
true
,
// outTradeArr,
[
'orderInfo.payType'
]:
5
,
[
'orderInfo.payType'
]:
5
,
[
'orderInfo.outTradeNo'
]:
outTradeNo
,
[
'orderInfo.outTradeNo'
]:
outTradeNo
,
[
'orderInfo.tradeNo'
]:
tradeNo
,
[
'orderInfo.tradeNo'
]:
tradeNo
,
...
@@ -1328,6 +1397,35 @@ Page({
...
@@ -1328,6 +1397,35 @@ Page({
})
})
.
catch
(
err
=>
{
})
.
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({
...
@@ -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 @
39d8207
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
"second-step"
:
"../components/SecondStepSimple/SecondStep"
,
"second-step"
:
"../components/SecondStepSimple/SecondStep"
,
"order-popup"
:
"../components/OrderPopup/OrderPopup"
,
"order-popup"
:
"../components/OrderPopup/OrderPopup"
,
"vin-sec-dialog"
:
"../components/VinSecDialog/VinSecDialog"
,
"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"
"navigationStyle"
:
"custom"
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.
wx
ss
→
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.
sa
ss
View file @
39d8207
/* packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxss */
/* packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxss */
page{
page
{
background
:
#f3f5f7
;
background
:
#f3f5f7
;
}
}
...
@@ -75,19 +75,23 @@ page{
...
@@ -75,19 +75,23 @@ page{
background-color
:
#EFF5FE
;
background-color
:
#EFF5FE
;
}
}
.tips {
.btns
{
box-sizing: border-box;
.tips
{
display: flex;
position
:
relative
;
justify-content: space-between;
box-sizing
:
border-box
;
align-items: center;
display
:
flex
;
padding: var(--fontSize20);
justify-content
:
space-between
;
background: #EFF5FE;
align-items
:
center
;
height: var(--fontSize110);
padding
:
var
(
--
fontSize20
)
;
width: 100%;
background
:
#EFF5FE
;
color: #347BFF;
height
:
var
(
--
fontSize140
)
;
font-size: var(--fontSize24);
width
:
100%
;
color
:
#333333
;
font-size
:
var
(
--
fontSize24
)
;
}
}
}
.tips
.contentText
{
.tips
.contentText
{
margin-left
:
var
(
--
fontSize20
)
;
margin-left
:
var
(
--
fontSize20
)
;
margin-right
:
auto
;
margin-right
:
auto
;
...
@@ -95,6 +99,36 @@ page{
...
@@ -95,6 +99,36 @@ page{
font-weight
:
500
;
font-weight
:
500
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
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
{
.btns-con
{
...
@@ -109,12 +143,51 @@ page{
...
@@ -109,12 +143,51 @@ page{
.tipsIcon
,
.tipsIcon
,
.closeIcon
{
.closeIcon
{
// margin-top: -40rpx;
width
:
var
(
--
fontSize32
)
;
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
}
}
.isFullSucreen-btn
{
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
padding-bottom
:
34px
!
important
;
}
}
.fullSucreen-tips
{
.fullSucreen-tips
{
padding-bottom
:
var
(
--
fontSize210
)
!
important
;
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
\ No newline at end of file
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
View file @
39d8207
...
@@ -7,20 +7,32 @@
...
@@ -7,20 +7,32 @@
</view>
</view>
</view>
</view>
</navigation-bar>
</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}}" />
<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" />
<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}}" 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>交易参考号:{{tradeNo}}</view>
<view class="tradeNoCon">
<view>支付时间:{{accountDate}}</view>
<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>
</view>
<
image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /
>
<
!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> --
>
</view>
</view>
</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}}" />
<order-popup orderType="{{orderInfo.payType }}" resetTransNo="{{orderInfo.transactionNo || orderInfo.outTradeNo}}" resetOrder="{{orderInfo.resetOrder}}" orderInfo="{{orderInfo}}" wx:if="{{showPopup}}" show="{{showPopup}}" />
<!-- vin二次复核 -->
<!-- vin二次复核 -->
<vin-sec-dialog wx:if="{{showVinDialog}}" showVinDialog="{{showVinDialog}}" secFormData="{{secFormData}}" bindonClose="handleSecClose" bindonConfirm="handleSecConfirm"></vin-sec-dialog>
<vin-sec-dialog wx:if="{{showVinDialog}}" showVinDialog="{{showVinDialog}}" secFormData="{{secFormData}}" bindonClose="handleSecClose" bindonConfirm="handleSecConfirm"></vin-sec-dialog>
...
...
tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
View file @
39d8207
// tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
// tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
import
api
from
'~/api/api'
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
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -10,7 +11,7 @@ Component({
...
@@ -10,7 +11,7 @@ Component({
type
:
Boolean
,
type
:
Boolean
,
observer
:
function
(
n
)
{
observer
:
function
(
n
)
{
if
(
n
)
{
if
(
n
)
{
console
.
log
(
this
.
data
)
;
console
.
log
(
this
.
data
)
let
{
switchVlauerec
}
=
this
.
data
let
{
switchVlauerec
}
=
this
.
data
this
.
setData
({
this
.
setData
({
switchVlaue
:
switchVlauerec
||
1
switchVlaue
:
switchVlauerec
||
1
...
@@ -19,8 +20,8 @@ Component({
...
@@ -19,8 +20,8 @@ Component({
}
}
}
}
},
},
outTradeNo
:
Array
,
title
:
String
,
title
:
String
,
outTradeNo
:
Array
,
switchVlauerec
:
Number
switchVlauerec
:
Number
},
},
...
@@ -34,19 +35,20 @@ Component({
...
@@ -34,19 +35,20 @@ Component({
label
:
'交易参考号'
,
label
:
'交易参考号'
,
prop
:
'tradeNo'
,
prop
:
'tradeNo'
,
type
:
'copy'
type
:
'copy'
},
{
},
{
label
:
'支付时间'
,
label
:
'支付时间'
,
prop
:
'accountDate'
prop
:
'accountDate'
},
{
},
{
label
:
'支付金额'
,
label
:
'支付金额'
,
prop
:
'totalFee'
,
prop
:
'totalFee'
,
type
:
'price'
type
:
'price'
},
},
// {
{
// label: '选择产品',
label
:
'商户名称'
,
// prop: 'filmOrder',
prop
:
'yqMerchantName'
// type: 'select'
}
// }
],
],
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
...
@@ -86,9 +88,9 @@ Component({
...
@@ -86,9 +88,9 @@ Component({
if
(
item
.
active
)
{
if
(
item
.
active
)
{
num
+=
1
num
+=
1
}
}
return
num
;
return
num
},
1
)
},
1
)
console
.
log
(
num
)
;
console
.
log
(
num
)
if
(
num
>
9
)
{
if
(
num
>
9
)
{
return
wx
.
$util
.
showToast
(
'勾选已超过限制'
)
return
wx
.
$util
.
showToast
(
'勾选已超过限制'
)
}
}
...
@@ -100,7 +102,7 @@ Component({
...
@@ -100,7 +102,7 @@ Component({
}
}
return
i
return
i
})
})
this
.
setData
({
orderNoList
,
})
this
.
setData
({
orderNoList
})
},
},
// 产品类型切换
// 产品类型切换
selectTap
(
e
)
{
selectTap
(
e
)
{
...
@@ -108,7 +110,7 @@ Component({
...
@@ -108,7 +110,7 @@ Component({
this
.
setData
({
this
.
setData
({
showSelect
:
!
this
.
data
.
showSelect
,
showSelect
:
!
this
.
data
.
showSelect
,
filmOrderIndex
:
index
filmOrderIndex
:
index
})
;
})
},
},
closeSelect
()
{
closeSelect
()
{
this
.
setData
({
this
.
setData
({
...
@@ -144,7 +146,8 @@ Component({
...
@@ -144,7 +146,8 @@ Component({
this.getWaitinputorder()
this.getWaitinputorder()
},
},
getWaitinputorder() {
getWaitinputorder() {
let { currentPage, pageSize, orderNoList, outTradeNo, switchVlaue } = this.data
let { currentPage, pageSize, orderNoList, outTradeNo, switchVlaue } =
this.data
api
api
.waitinputorder({ currentPage, pageSize, inputOrderType: switchVlaue })
.waitinputorder({ currentPage, pageSize, inputOrderType: switchVlaue })
.then(result => {
.then(result => {
...
@@ -152,14 +155,17 @@ Component({
...
@@ -152,14 +155,17 @@ Component({
if (code == 0) {
if (code == 0) {
data.list.forEach(element => {
data.list.forEach(element => {
element.filmOrder = 0
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)) {
if (outTradeNo.includes(element.outTradeNo)) {
element.active = true
element.active = true
} else {
} else {
element.active = false
element.active = false
}
}
})
})
orderNoList = currentPage == 1 ? data.list : [...orderNoList, ...data.list]
orderNoList =
currentPage == 1 ? data.list : [...orderNoList, ...data.list]
// orderNoList = orderNoList.for
// orderNoList = orderNoList.for
// for (let index = 0; index < 3; index++) {
// for (let index = 0; index < 3; index++) {
...
@@ -173,7 +179,7 @@ Component({
...
@@ -173,7 +179,7 @@ Component({
})
})
}
}
})
})
.catch(err => {
})
.catch(err => {})
},
},
confirm() {
confirm() {
let { orderNoList, switchVlaue } = this.data
let { orderNoList, switchVlaue } = this.data
...
@@ -191,7 +197,6 @@ Component({
...
@@ -191,7 +197,6 @@ Component({
if (arr.length) {
if (arr.length) {
this.triggerEvent('success', { arr, switchVlaue })
this.triggerEvent('success', { arr, switchVlaue })
}
}
},
},
cancel() {
cancel() {
let thisPage = wx.$router.getPageInstance()
let thisPage = wx.$router.getPageInstance()
...
@@ -201,4 +206,3 @@ Component({
...
@@ -201,4 +206,3 @@ Component({
}
}
}
}
})
})
tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml
View file @
39d8207
<!--tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml-->
<!--tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml-->
<wxs src="index.wxs" module="filter" />
<wxs src="index.wxs" module="filter" />
<popup show="{{ show }}" bindconfirm="confirm" bindcancel="cancel" height="80%" slotStyle="{{ popupSlotStyle }}">
<popup show="{{ show }}" bindconfirm="confirm" bindcancel="cancel" height="80%" slotStyle="{{ popupSlotStyle }}">
<view class="sub-title">
<view class="sub-title">
<view>{{title}}</view>
<view>{{title}}</view>
</view>
</view>
<view class="switch-box">
<view class="switch-box">
<view class="block text-center {{ switchVlaue== 1?'':'labelRight' }}" />
<view class="block text-center {{ switchVlaue== 1?'':'labelRight' }}" />
<view class="left text-center {{ switchVlaue == 1?'active':'' }}" bindtap="changeSwitch" data-value="1">正常分账期</view>
<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">超分账期
<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>
<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 }}">
</view>
<block wx:for="{{ orderNoList }}" wx:key="index" wx:for-index="index">
<scroll-view
<view class="order_no_item {{ item.active?'active':'' }}" bindtap="changeOrderNo" data-target="{{ item }}">
class="order_no_box"
<view class="message">
scroll-y
<block wx:for="{{ itemFormObj }}" wx:for-item="subItem" wx:key="idx" wx:for-index="idx">
enable-back-to-top
<view class="item">
refresher-enabled="{{ true }}"
<view class="label">{{subItem.label}}</view>
bindrefresherrefresh="restPageNum"
<view class="value price_value" wx:if="{{ subItem.type == 'price' }}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
bindscrolltolower="scrollonReachBottom"
<view class="select_value" wx:if="{{ subItem.type == 'select' }}" catch:tap="selectTap" data-index="{{ index }}">
refresher-threshold="104"
<text class="text-hide">{{filmOrderData[item.filmOrder]}}</text>
refresher-triggered="{{ triggered }}"
<image src="/components/images/arrow-x.png" mode="" />
>
</view>
<block wx:if="{{ orderNoList.length }}">
<view class="value" wx:if="{{ subItem.type !== 'price' && subItem.type !== 'select' }}">
<block wx:for="{{ orderNoList }}" wx:key="index" wx:for-index="index">
{{item[subItem.prop]}}
<view class="order_no_item {{ item.active?'active':'' }}" bindtap="changeOrderNo" data-target="{{ item }}">
<image class="copy_icon" catch:tap="copyOutTradeNo" data-item="{{ item }}" wx:if="{{ subItem.type == 'copy' }}" src="{{ IMG_URL }}copy_icon_gapy.png" mode="" />
<view class="message">
</view>
<block wx:for="{{ itemFormObj }}" wx:for-item="subItem" wx:key="idx" wx:for-index="idx">
</view>
<view class="item">
</block>
<view class="label">{{subItem.label}}</view>
</view>
<view class="value price_value" wx:if="{{ subItem.type == 'price' }}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="checked" wx:if="{{ item.active }}">
<view class="select_value" wx:if="{{ subItem.type == 'select' }}" catch:tap="selectTap" data-index="{{ index }}">
<image src="/components/images/choose.png" />
<text class="text-hide">{{filmOrderData[item.filmOrder]}}</text>
</view>
<image src="/components/images/arrow-x.png" mode="" />
<block wx:if="{{ showSelect && filmOrderIndex == index }}">
</view>
<view class="option_box">
<view class="value" wx:if="{{ subItem.type !== 'price' && subItem.type !== 'select' }}">
<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>
{{item[subItem.prop]}}
</view>
<image
<view class="mask_class" bindtap="closeSelect" />
class="copy_icon"
</block>
catch:tap="copyOutTradeNo"
</view>
data-item="{{ item }}"
</block>
wx:if="{{ subItem.type == 'copy' }}"
</scroll-view>
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>
</popup>
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<view class="ul">
<view class="ul">
<view class="title">
<view class="title">字段定义</view>
字段定义
<view class="li">○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
</view>
<view class="li last">○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="li">
<view class="title">操作指导</view>
○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
<view class="li">① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单</view>
</view>
<view class="li last">情况一:单笔支付直接补录创建工单
<view class="li last">
情况二:客户多笔支付,补录工单时勾选多笔交易流水</view>
○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
<view class="li">② 特殊情况:需通知运营在后台关联工单</view>
</view>
<view class="li last">情况一:客户支付定金时间与尾款时间间隔20天以上
<view class="title">
操作指导
</view>
<view class="li">
① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单
</view>
<view class="li last">
情况一:单笔支付直接补录创建工单
情况二:客户多笔支付,补录工单时勾选多笔交易流水
</view>
<view class="li">
② 特殊情况:需通知运营在后台关联工单
</view>
<view class="li last">
情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作(多付了)需部分退款
情况三:支付费用时误操作(多付了)需部分退款</view>
</view>
<view class="li last">操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。</view>
<view class="li last">
<!-- <view class="title">
操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。
</view>
<!-- <view class="title">
特殊情况
特殊情况
</view>
</view>
<view class="li">
<view class="li">
...
@@ -86,7 +99,6 @@
...
@@ -86,7 +99,6 @@
情况二:客户购买车辆2台及以上的费用,一笔支付
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作 (多付了) 需部分退款
情况三:支付费用时误操作 (多付了) 需部分退款
</view> -->
</view> -->
</view>
</view>
<!-- <view>说明内容</view> -->
<!-- <view>说明内容</view> -->
</tipsPopup>
</tipsPopup>
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/createOrder/createOrder.js
View file @
39d8207
...
@@ -1444,12 +1444,7 @@ Page({
...
@@ -1444,12 +1444,7 @@ Page({
let
filteroutTradeArr
=
outTradeArr
.
map
(
item
=>
item
.
outTradeNo
)
let
filteroutTradeArr
=
outTradeArr
.
map
(
item
=>
item
.
outTradeNo
)
// 判断是多订单还是一个
// 判断是多订单还是一个
if
(
switchVlaue
==
1
&&
outTradeArr
.
length
==
1
)
{
if
(
switchVlaue
==
1
&&
outTradeArr
.
length
==
1
)
{
let
{
let
{
outTradeNo
,
totalFee
}
=
outTradeArr
[
0
]
outTradeNo
,
totalFee
,
accountDate
,
tradeNo
}
=
outTradeArr
[
0
]
this
.
setData
({
this
.
setData
({
switchVlaue
,
switchVlaue
,
outTradeArr
:
filteroutTradeArr
,
outTradeArr
:
filteroutTradeArr
,
...
@@ -1466,10 +1461,17 @@ Page({
...
@@ -1466,10 +1461,17 @@ Page({
str
+=
index
?
`,
${
item
.
outTradeNo
}
`
:
item
.
outTradeNo
str
+=
index
?
`,
${
item
.
outTradeNo
}
`
:
item
.
outTradeNo
return
str
;
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
({
this
.
setData
({
switchVlaue
,
switchVlaue
,
outTradeArr
:
filteroutTradeArr
,
outTradeArr
:
filteroutTradeArr
,
outTradeNo
,
outTradeNo
,
totalFee
,
[
"orderObj.outTradeNo"
]:
outTradeNo
,
[
"orderObj.outTradeNo"
]:
outTradeNo
,
showTips
:
true
showTips
:
true
});
});
...
...
tabWorkOrder/pages/createOrder/createOrder.sass
View file @
39d8207
...
@@ -497,7 +497,7 @@ page {
...
@@ -497,7 +497,7 @@ page {
background
:
#EFF5FE
;
background
:
#EFF5FE
;
height
:
var
(
--
fontSize140
)
;
height
:
var
(
--
fontSize140
)
;
width
:
100%
;
width
:
100%
;
color
:
#3
47BFF
;
color
:
#3
33333
;
font-size
:
var
(
--
fontSize24
)
;
font-size
:
var
(
--
fontSize24
)
;
}
}
...
@@ -507,9 +507,19 @@ page {
...
@@ -507,9 +507,19 @@ page {
display
:
flex
;
display
:
flex
;
font-weight
:
500
;
font-weight
:
500
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
.tradeNo
{
max-width
:
400rpx
;
margin-right
:
10rpx
;
}
.tradeNoCon
{
display
:
flex
;
justify-content
:
space-between
;
}
.tipsbox
{
.tipsbox
{
margin-top
:
20rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
tabWorkOrder/pages/createOrder/createOrder.wxml
View file @
39d8207
...
@@ -409,10 +409,14 @@
...
@@ -409,10 +409,14 @@
<view class="tipsadd" wx:if="{{ showTips }}">
<view class="tipsadd" wx:if="{{ showTips }}">
<image class="tipsIcon" src="../../../images/tips.png" />
<image class="tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
<view class="contentText">
<view>交易参考号:{{tradeNo}}</view>
<view class="tradeNoCon">
<view>支付时间:{{accountDate}}</view>
<view>交易参考号:</view>
<view class="tradeNo text-hide">{{outTradeNo}}</view>
<view>(共{{outTradeArr.length}}条)</view>
</view>
<!-- <view>支付时间:{{accountDate}}</view> -->
<view class="tipsbox">
<view class="tipsbox">
<view>支付金额:{{totalFee/100}}</view>
<view>支付金额:
¥
{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view>
</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