This commit is contained in:
parent
64a395f064
commit
72a4551500
|
|
@ -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){//出库已完成
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue