This commit is contained in:
bb_pan 2025-09-04 14:00:50 +08:00
parent 64a395f064
commit 72a4551500
2 changed files with 41 additions and 26 deletions

View File

@ -91,6 +91,7 @@
</view>
</scroll-view>
</view>
<PopupConfirm ref="popupConfirm" :content="content" />
</template>
<script setup>
@ -98,9 +99,12 @@ import { ref, onUnmounted } from 'vue'
import { getOutboundDetailsAPI,getOutboundDetailsAPITwo,leaseOutBackApi,backOutDetailsApi } from '@/services/picking/outbound.js'
import { onLoad, onShow } from '@dcloudio/uni-app'
import { formatDiff } from '@/utils/bnsBase.js'
import PopupConfirm from '@/components/PopupConfirm'
const taskStatus = ref(3)//
const detailsList = ref([])
const keyWord = ref('')
const popupConfirm = ref()
const content = ref('')
const search = () => {
console.log('🚀 ~ search ~ keyWord:', keyWord.value)
getOutboundDetailsData()
@ -377,6 +381,11 @@ const options3 = ref([
checkViewDetail(item)//
}
if (e.content.text == '退回') {
content.value = `是否确定退回?`
popupConfirm.value.openPopup().then(async confirm => {
if (!confirm.data) return
try {
uni.showLoading({ title: '操作中...', mask: true })
let param ={
taskId:leaseApplyInfo.value.taskId,
typeId:item.typeId,
@ -402,6 +411,12 @@ const options3 = ref([
icon: 'none',
})
}
} catch (error) {
console.log('🚀 ~ onClick ~ error:', error)
} finally {
uni.hideLoading()
}
})
}
}
if(taskStatus.value==4){//

View File

@ -597,7 +597,7 @@ onUnmounted(() => {
position: absolute;
bottom: 10rpx;
.handle-box-btn{
width: 60px;
min-width: 60px;
height: 32px;line-height: 32px;
text-align: center;
border-radius: 5px;