You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.3 KiB
33 lines
1.3 KiB
<!--pages/agent/detail/item-history-part/item-history-info.wxmvan-->
|
|
<wxs module="agent" src="../../../agent/index.wxs"></wxs>
|
|
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{orderInfo}}">
|
|
<van-collapse-item content-class="collapse-item" name="1">
|
|
<view slot="title" class="flex flex-justify" style="width: 100%">
|
|
<view class="flex">
|
|
<text class="text-sg text-black text-bold">{{item.logisticcsInfo.plateNumber}}</text>
|
|
<text class="text-sg text-black text-bold" style="margin-left:8rpx">「{{item.paperCategoryName || orderInfo.paperCategoryName}}」</text>
|
|
</view>
|
|
<view class="text-df text-gray" style="padding-right:16rpx;">进度详情</view>
|
|
</view>
|
|
<view style="padding-top:24rpx">
|
|
<van-steps direction="column" active-index="{{statusStep(item.orderItemTimeList)}}" status="process" step-min-height="128">
|
|
<van-step wx:for-item="timeItem" wx:for-index="oindex" wx:for="{{item.orderItemTimeList}}" wx:key="oindex"
|
|
title="{{timeItem.description}}" describe="{{timeItem.time}}">
|
|
</van-step>
|
|
</van-steps>
|
|
</view>
|
|
</van-collapse-item>
|
|
</van-collapse>
|
|
|
|
<wxs module="statusStep">
|
|
function statusStep(timeList) {
|
|
var step = 0
|
|
for (var index = 0; index < timeList.length; index++) {
|
|
if(timeList[index].status === 1){
|
|
step ++
|
|
}
|
|
}
|
|
return step - 1
|
|
}
|
|
module.exports = statusStep
|
|
</wxs>
|