Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f50a0516
authored
Mar 04, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单审核添加审核日志联调
1 parent
0a7345f7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
166 additions
and
19 deletions
config.js
packageWorkspace/pages/orderApprovalManage/components/goodsOrderItem/goodsOrderItem.wxml
packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.js
packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.sass
packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.wxml
config.js
View file @
f50a051
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
2
;
let
index
=
1
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
packageWorkspace/pages/orderApprovalManage/components/goodsOrderItem/goodsOrderItem.wxml
View file @
f50a051
...
@@ -11,15 +11,7 @@
...
@@ -11,15 +11,7 @@
<text class="name">{{ item.upgradeGoodsName }}</text>
<text class="name">{{ item.upgradeGoodsName }}</text>
</view>
</view>
<view class="gray pl-24">
<view class="gray pl-24">
<text>原价¥{{ item.totalPrice }}</text>
<view style="margin-bottom: 4rpx;">原价¥{{ item.totalPrice }}</view>
<text wx:if="{{ item.discountType && item.discountType != 3 && item.discountType != 5 }}" class="split">|</text>
<block wx:if="{{ item.discountType == 1 || item.discountType == 2 }}">
<text wx:if="{{ item.discountType == 1 }}">{{ item.discountValue }}折</text>
<text wx:else>折扣¥{{ item.discountValue }}</text>
</block>
<block wx:if="{{ item.discountType == 4 }}">
<text class="tag">赠品</text>
</block>
</view>
</view>
</view>
</view>
<view class="item-right">
<view class="item-right">
...
@@ -29,6 +21,17 @@
...
@@ -29,6 +21,17 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view class="gray pl-24">
<text>销售单价¥{{ item.singleProductSalesPrice }}</text>
<text wx:if="{{ item.discountType && item.discountType != 3 && item.discountType != 5 }}" class="split">|</text>
<block wx:if="{{ item.discountType == 1 || item.discountType == 2 }}">
<text wx:if="{{ item.discountType == 1 }}">{{ item.discountValue }}折</text>
<text wx:else>折扣¥{{ item.discountValue }}</text>
</block>
<block wx:if="{{ item.discountType == 4 }}">
<text class="tag">赠品</text>
</block>
</view>
</view>
</view>
<!-- 套餐商品 -->
<!-- 套餐商品 -->
...
@@ -48,14 +51,26 @@
...
@@ -48,14 +51,26 @@
wx:for-item="subItem"
wx:for-item="subItem"
wx:for-index="subIndex"
wx:for-index="subIndex"
wx:key="subIndex"
wx:key="subIndex"
class="list-item
flex just-space flex-start
"
class="list-item"
>
>
<view class="flex just-space flex-start">
<view class="item-left">
<view class="item-left">
<view class="flex flex-start pl-24">
<view class="flex flex-start pl-24">
<text class="name">{{ subItem.upgradeGoodsName }}</text>
<text class="name">{{ subItem.upgradeGoodsName }}</text>
</view>
</view>
<view class="gray pl-24">
<view class="gray pl-24">
<text>原价¥{{ subItem.totalPrice }}</text>
<view style="margin-bottom: 4rpx;">原价¥{{ subItem.totalPrice }}</view>
</view>
</view>
<view class="item-right">
<view class="price">¥{{ subItem.finalPrice }}</view>
<view class="gray">
共<text class="split">{{ subItem.number }}</text>件
</view>
</view>
</view>
<view class="gray pl-24">
<text>销售单价¥{{ subItem.singleProductSalesPrice }}</text>
<text wx:if="{{ subItem.discountType && subItem.discountType != 3 && subItem.discountType != 5 }}" class="split">|</text>
<text wx:if="{{ subItem.discountType && subItem.discountType != 3 && subItem.discountType != 5 }}" class="split">|</text>
<block wx:if="{{ subItem.discountType == 1 || subItem.discountType == 2 }}">
<block wx:if="{{ subItem.discountType == 1 || subItem.discountType == 2 }}">
<text wx:if="{{ subItem.discountType == 1 }}">{{ subItem.discountValue }}折</text>
<text wx:if="{{ subItem.discountType == 1 }}">{{ subItem.discountValue }}折</text>
...
@@ -66,13 +81,6 @@
...
@@ -66,13 +81,6 @@
</block>
</block>
</view>
</view>
</view>
</view>
<view class="item-right">
<view class="price">¥{{ subItem.finalPrice }}</view>
<view class="gray">
共<text class="split">{{ subItem.number }}</text>件
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.js
View file @
f50a051
...
@@ -56,6 +56,12 @@ Page({
...
@@ -56,6 +56,12 @@ Page({
image
:
true
,
image
:
true
,
flexStart
:
true
flexStart
:
true
}],
}],
statusForShow
:
{
1
:
{
text
:
'区域运营审核'
},
2
:
{
text
:
'线上运营审核'
,
status
:
'通过'
},
3
:
{
status
:
'通过'
},
4
:
{
status
:
'驳回'
}
}
},
},
/**
/**
...
@@ -126,6 +132,10 @@ Page({
...
@@ -126,6 +132,10 @@ Page({
if
(
code
==
0
)
{
if
(
code
==
0
)
{
// 处理商品信息
// 处理商品信息
const
processedData
=
this
.
processOrderData
(
res
.
data
||
{})
const
processedData
=
this
.
processOrderData
(
res
.
data
||
{})
// 处理审核日志时间字段
res
.
data
?.
applyLogList
?.
forEach
(
val
=>
{
val
.
createdDateStr
=
val
.
createdDate
?
dayjs
(
val
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
})
this
.
setData
({
this
.
setData
({
orderInfo
:
processedData
,
orderInfo
:
processedData
,
'orderInfo.applyDate'
:
res
.
data
.
applyDate
?
dayjs
(
res
.
data
.
applyDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
'orderInfo.applyDate'
:
res
.
data
.
applyDate
?
dayjs
(
res
.
data
.
applyDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
...
...
packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.sass
View file @
f50a051
...
@@ -87,6 +87,98 @@ page {
...
@@ -87,6 +87,98 @@ page {
overflow
:
hidden
;
overflow
:
hidden
;
}
}
}
}
.timeline
{
.timeline-item
{
display
:
flex
;
position
:
relative
;
overflow
:
visible
;
.timeline-left
{
width
:
40rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
margin-right
:
10rpx
;
position
:
relative
;
flex-shrink
:
0
;
align-self
:
stretch
;
.dot-wrapper
{
width
:
100%
;
height
:
44rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.dot
{
width
:
16rpx
;
height
:
16rpx
;
border-radius
:
50%
;
background
:
#E5E5E5
;
z-index
:
2
;
box-sizing
:
border-box
;
}
.step-active
{
background
:
#FFFFFF
;
border
:
4rpx
solid
#D6E4FF
;
width
:
28rpx
;
height
:
28rpx
;
position
:
relative
;
}
.
step-active
:
:
after
{
content
:
''
;
position
:
absolute
;
width
:
10rpx
;
height
:
10rpx
;
background
:
#FFFFFF
;
border-radius
:
50%
;
border
:
4rpx
solid
#347BFF
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
)
;
}
.step-done
{
background
:
#8EB2FB
;
}
.statusLine
{
position
:
absolute
;
top
:
38rpx
;
bottom
:
-10rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
)
;
width
:
2rpx
;
background
:
#D8E5FE
;
z-index
:
1
;
}
}
.timeline-content
{
font-size
:
28rpx
;
color
:
#333333
;
.status-text
{
margin-bottom
:
16rpx
;
font-weight
:
600
;
.mar-r16
{
margin-right
:
16rpx
;
}
.success
{
color
:
#35C376
;
}
.error
{
color
:
#F24724
;
}
}
.flex
{
display
:
flex
;
align-items
:
flex-start
;
margin-bottom
:
16rpx
;
.label
{
width
:
168rpx
;
flex-shrink
:
0
;
color
:
#999999
;
margin-right
:
16rpx
;
}
}
}
}
}
}
}
}
}
.empty-box
{
.empty-box
{
...
...
packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.wxml
View file @
f50a051
...
@@ -46,6 +46,43 @@
...
@@ -46,6 +46,43 @@
title="{{orderInfo.oldOrderCode ? '新订单商品信息' : '商品信息'}}"
title="{{orderInfo.oldOrderCode ? '新订单商品信息' : '商品信息'}}"
goodsData="{{orderInfo.goodsOrderDTO}}"
goodsData="{{orderInfo.goodsOrderDTO}}"
/>
/>
<view class="section" wx:if="{{orderInfo.status != 1}}">
<view class="section-title">审核日志</view>
<view class="log-box" wx:for="{{orderInfo.applyLogList}}" wx:key="index">
<view class="timeline">
<view class="timeline-item">
<view class="timeline-left">
<view class="dot-wrapper">
<view class="dot {{ index == 0 ? 'step-active' : 'step-done' }}"></view>
</view>
<view wx:if="{{orderInfo.applyLogList.length > 1 && index != (orderInfo.applyLogList.length - 1)}}" class="statusLine step-done"></view>
</view>
<view class="timeline-content">
<view class="status-text">
<text class='mar-r16'>{{statusForShow[item.beforeStatus].text}}</text>
<text class="status mar-r16 {{ item.afterStatus == 2 || item.afterStatus == 3 ? 'success' : 'error' }}">{{statusForShow[item.afterStatus].status}}</text>
<block wx:if="{{item.afterStatus == 4}}">
<text class="mar-r16">至</text>
<text>驻店销售</text>
</block>
</view>
<view class="flex" wx:if="{{item.remark}}">
<view class="label">{{item.afterStatus == 2 || item.afterStatus == 3 ? '备注' : '驳回原因'}}</view>
<view class="value">{{item.remark}}</view>
</view>
<view class="flex">
<view class="label">审核人</view>
<view class="value">{{item.operatorName}}</view>
</view>
<view class="flex">
<view class="label">审核时间</view>
<view class="value">{{item.createdDateStr}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="empty-box"></view>
<view class="empty-box"></view>
</view>
</view>
<view wx:if="{{orderInfo.status == 1}}" class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view wx:if="{{orderInfo.status == 1}}" class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
...
...
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