This commit is contained in:
bb_pan 2025-09-01 22:52:43 +08:00
parent 8c40879895
commit dd7a2a6be3
3 changed files with 34 additions and 22 deletions

View File

@ -426,24 +426,36 @@ const onHandleOutbound = async () => {
}) })
} }
}) })
let param = { uni.showModal({
taskId: queryParams.value.taskId, title: '提示',
typeId: queryParams.value.typeId, content: '是否确定入库?',
purchaseId: queryParams.value.id, success: async (req) => {
inPutList: paramsList, if (req.confirm) {
} try {
const res = await setInboundCodeAPI(param) let param = {
console.log(res, '入库') taskId: queryParams.value.taskId,
if (res.code === 200) { typeId: queryParams.value.typeId,
uni.showToast({ purchaseId: queryParams.value.id,
title: '入库成功!', inPutList: paramsList,
icon: 'none', }
}) const res = await setInboundCodeAPI(param)
getCodeDeviceListData() console.log(res, '入库')
setTimeout(() => { if (res.code === 200) {
queryParams.value.inputNum = Number(queryParams.value.inputNum) + paramsList.length uni.showToast({
}, 800) title: '入库成功!',
} icon: 'none',
})
getCodeDeviceListData()
setTimeout(() => {
queryParams.value.inputNum = Number(queryParams.value.inputNum) + paramsList.length
}, 800)
}
} catch (error) {
console.log('🚀 ~ onHandleOutbound ~ error:', error)
}
}
}
})
} }
</script> </script>

View File

@ -50,7 +50,7 @@
<div class="title"> <div class="title">
<div class="title-left"> <div class="title-left">
<span class="code">{{ item.repairCode }}</span> <span class="code">{{ item.repairCode }}</span>
<span class="sub-code">{{ `${item.backCode}-${item.level}` }}</span> <span class="sub-code" v-if="item.backCode">{{ `${item.backCode}-${item.level}` }}</span>
</div> </div>
<div class="title-right"> <div class="title-right">
<uni-tag v-if="item.dataStatus == 3" text="修饰后入库驳回" type="error" style="margin-right: 5px" custom-style="errorStyle"/> <uni-tag v-if="item.dataStatus == 3" text="修饰后入库驳回" type="error" style="margin-right: 5px" custom-style="errorStyle"/>

View File

@ -124,7 +124,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js' import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js'
import { onLoad } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import { debounce } from 'lodash-es' import { debounce } from 'lodash-es'
const total = ref(0) // const total = ref(0) //
@ -233,11 +233,11 @@ const getTableList = async (isTap = false) => {
} }
// // // //
// onLoad(() => { // onShow(() => {
// getTableList() // getTableList()
// }) // })
onLoad(() => { onShow(() => {
tableList.value = [] tableList.value = []
total.value = 0 total.value = 0
getTableList() getTableList()