|
|
@ -46,10 +46,13 @@ |
|
|
|
<view class="rc-item" v-for="(e,i) in orderInfo.sessions" :key="i"> |
|
|
|
<view class="ri-tit">验证码{{i+1}}:</view> |
|
|
|
<view class="ri-section"> |
|
|
|
<view :class="['rs-view',e.status==1?'rs-active':'']">{{e.verify_code || '-'}} ({{zh_verify_status(e.status)}})</view> |
|
|
|
<view :class="['rs-view',e.status==1?'rs-active':'']"> |
|
|
|
<view>{{e.verify_code || '-'}} ({{zh_verify_status(e.status)}})</view> |
|
|
|
<view class="s-btn" v-if="e.status == 2" @click="recoverBtn(e)">恢复</view> |
|
|
|
</view> |
|
|
|
<block v-if="e.status==2"> |
|
|
|
<view class="rs-view">核销方式:{{zh_verify_type(e.verify_type)}}</view> |
|
|
|
<view class="rs-view">核销时间:{{e.verify_time || '-'}}</view> |
|
|
|
<view class="rs-view"><view>核销方式:{{zh_verify_type(e.verify_type)}}</view></view> |
|
|
|
<view class="rs-view"><view>核销时间:{{e.verify_time || '-'}}</view></view> |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -277,6 +280,44 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
recoverBtn(ele){ |
|
|
|
console.warn('orderInfo',this.orderInfo); |
|
|
|
console.warn('ele', ele); |
|
|
|
let { orderInfo } = this; |
|
|
|
util.showModal({ |
|
|
|
title: '提示', |
|
|
|
content: '是否确认恢复该验证码为待使用状态', |
|
|
|
success: res=> { |
|
|
|
|
|
|
|
if(res.confirm){ |
|
|
|
util.showLoad(); |
|
|
|
deviceServer.get({ |
|
|
|
url: deviceApi.recoveryToSuccess, |
|
|
|
data: { |
|
|
|
brand_id: orderInfo.brand_id || '', |
|
|
|
order_no: orderInfo.order_no || '', |
|
|
|
session_id: ele.id || '', |
|
|
|
}, |
|
|
|
isDefaultGet: false |
|
|
|
}) |
|
|
|
.then(e=>{ |
|
|
|
util.hideLoad(); |
|
|
|
if(e.data.code == 0){ |
|
|
|
util.showNone(e.data.message || '操作成功!'); |
|
|
|
setTimeout(_=>{ |
|
|
|
this.$emit('recoverBtn'); |
|
|
|
},1200) |
|
|
|
}else{ |
|
|
|
util.showNone(e.data.message || '操作失败!'); |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
.catch(util.hideLoad) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
moveHandle(){}, |
|
|
|
modalBtn(type){ |
|
|
|
// type: 1绑定ic卡弹框确认按钮 2仓库选择ic卡弹框确认按钮 |
|
|
@ -566,18 +607,39 @@ export default { |
|
|
|
justify-content: flex-start; |
|
|
|
margin-top: 24rpx; |
|
|
|
.ri-tit{ |
|
|
|
flex-shrink: 0; |
|
|
|
color: #9A9A9D; |
|
|
|
font-size: 28rpx; |
|
|
|
line-height: 46rpx; |
|
|
|
} |
|
|
|
.ri-section{ |
|
|
|
flex-grow: 1; |
|
|
|
.rs-view{ |
|
|
|
color: #333333; |
|
|
|
font-size: 28rpx; |
|
|
|
line-height: 46rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
>view:first-child{ |
|
|
|
min-width: 0; |
|
|
|
color: #333333; |
|
|
|
font-size: 28rpx; |
|
|
|
line-height: 46rpx; |
|
|
|
@include textHide(1); |
|
|
|
} |
|
|
|
.s-btn{ |
|
|
|
flex-shrink: 0; |
|
|
|
margin-left: 10upx; |
|
|
|
padding: 0 22upx; |
|
|
|
height: 44upx; |
|
|
|
line-height: 44upx; |
|
|
|
font-size: 28upx; |
|
|
|
border-radius: 10upx; |
|
|
|
background-color: $themeColor; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
.rs-active{ |
|
|
|
color: #009874; |
|
|
|
>view:first-child{ |
|
|
|
color: #009874; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|