|
|
@ -26,7 +26,7 @@ |
|
|
|
</view> |
|
|
|
<view class="row-reason"> |
|
|
|
<text class="reason-label">{{ getGoodsName(item.shopId) }}</text> |
|
|
|
<view class="reason-select" @tap="selectReasonForQualified(item)"> |
|
|
|
<view class="reason-select" @click="selectReasonForQualified(item)"> |
|
|
|
<text class="reason-placeholder" :class="{ 'selected': hasSelectedReason(item) }"> |
|
|
|
{{ hasSelectedReason(item) ? '已选择' : '请选择理由(选填)' }} |
|
|
|
</text> |
|
|
@ -52,7 +52,7 @@ |
|
|
|
<view v-for="(item, index) in (inspectData.list.find(i => i.id === 'quality_issue')?.commonOrderList || [])" |
|
|
|
:key="item.id || item.testingStatus" class="row-reason"> |
|
|
|
<text class="reason-label">质量问题{{ index + 1 }}</text> |
|
|
|
<view class="reason-select" @tap="selectReason(item)"> |
|
|
|
<view class="reason-select" @click="selectReason(item)"> |
|
|
|
<text class="reason-placeholder" :class="{ 'selected': hasSelectedReason(item) }"> |
|
|
|
{{ hasSelectedReason(item) ? '已选择' : '请选择理由' }} |
|
|
|
</text> |
|
|
@ -79,7 +79,7 @@ |
|
|
|
<view v-for="(commonItem,index) in (inspectData.list.find(i => i.id === 'unrecyclable')?.commonOrderList || [])" |
|
|
|
:key="commonItem.id || commonItem.testingStatus" class="row-reason"> |
|
|
|
<text class="reason-label">不可回收{{ index +1 }}</text> |
|
|
|
<view class="reason-select" @tap="selectReason(commonItem)"> |
|
|
|
<view class="reason-select" @click="selectReason(commonItem)"> |
|
|
|
<text class="reason-placeholder" :class="{ 'selected': hasSelectedReason(commonItem) }"> |
|
|
|
{{ hasSelectedReason(commonItem) ? '已选择' : '请选择理由' }} |
|
|
|
</text> |
|
|
@ -97,7 +97,9 @@ |
|
|
|
</view> |
|
|
|
<view class="info-row"> |
|
|
|
<text class="info-label">订单编号</text> |
|
|
|
<text class="info-value copy-btn">{{ order?.ordeNo || 'RE82738127861525' }} 复制</text> |
|
|
|
<text class="info-value copy-btn" |
|
|
|
@click="$utils.copyText(order?.ordeNo)" |
|
|
|
>{{ order?.ordeNo }} 复制</text> |
|
|
|
</view> |
|
|
|
<view class="info-row"> |
|
|
|
<text class="info-label">取件时间</text> |
|
|
@ -164,7 +166,8 @@ export default { |
|
|
|
reasonOptions: [], |
|
|
|
reasonChecked: [], |
|
|
|
currentReasonItem: null, |
|
|
|
isPopupOpen: false // 控制弹窗状态 |
|
|
|
isPopupOpen: false, // 控制弹窗状态 |
|
|
|
scrollTop: 0 // 记录滚动位置 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -514,12 +517,25 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
lockScroll() { |
|
|
|
// 获取当前页面滚动位置 |
|
|
|
uni.createSelectorQuery().selectViewport().scrollOffset((res) => { |
|
|
|
this.scrollTop = res.scrollTop |
|
|
|
}).exec() |
|
|
|
// 禁用页面滚动 |
|
|
|
this.isPopupOpen = true |
|
|
|
}, |
|
|
|
unlockScroll() { |
|
|
|
// 恢复页面滚动 |
|
|
|
this.isPopupOpen = false |
|
|
|
// 恢复滚动位置 |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.scrollTop > 0) { |
|
|
|
uni.pageScrollTo({ |
|
|
|
scrollTop: this.scrollTop, |
|
|
|
duration: 0 |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
async onRefresh() { |
|
|
|
await this.refreshData && this.refreshData() |
|
|
@ -557,8 +573,6 @@ export default { |
|
|
|
|
|
|
|
&.popup-open { |
|
|
|
overflow: hidden; |
|
|
|
position: fixed; |
|
|
|
width: 100%; |
|
|
|
height: 100vh; |
|
|
|
} |
|
|
|
} |
|
|
|