|
|
@ -52,6 +52,7 @@ const status = ref('1,2') // 待处理 、进行中 |
|
|
|
const detailOptions = ref([]) |
|
|
|
const scanMessage = ref('') |
|
|
|
const detailGiveupOptions = ref([]) |
|
|
|
const title = ref('') |
|
|
|
const filter = ref() |
|
|
|
const comMessageRef = ref() |
|
|
|
const jobInfoPopupRef = ref() |
|
|
@ -62,6 +63,9 @@ onShow(() => { |
|
|
|
getList('refresh') |
|
|
|
}) |
|
|
|
}) |
|
|
|
onLoad((option) => { |
|
|
|
title.value = option.title |
|
|
|
}) |
|
|
|
onReady(() => { |
|
|
|
detailOptions.value = getDetailOption() |
|
|
|
detailGiveupOptions.value = getDetailGiveupOption() |
|
|
@ -144,7 +148,7 @@ const getList = (type, fromLocationCode = '') => { |
|
|
|
|
|
|
|
const { list } = res.data |
|
|
|
totalCount.value = res.data.total |
|
|
|
updateTitle(`补料(${totalCount.value})`) |
|
|
|
updateTitle(`${title.value}(${totalCount.value})`) |
|
|
|
loadingType.value = 'loadmore' |
|
|
|
if (list == null || list.length == 0) { |
|
|
|
loadingType.value = 'nomore' |
|
|
@ -158,7 +162,7 @@ const getList = (type, fromLocationCode = '') => { |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
} |
|
|
|
loadingType.value = '' |
|
|
|
updateTitle('补料') |
|
|
|
updateTitle(title.value) |
|
|
|
uni.hideLoading() |
|
|
|
showErrorMessage(error) |
|
|
|
}) |
|
|
@ -168,7 +172,7 @@ const fromLocationCode = (fromLocationCode) => { |
|
|
|
getList('refresh', fromLocationCode, '') |
|
|
|
} |
|
|
|
const openJobDetail = (item, scanMessageParams = '') => { |
|
|
|
proxy.$tab.navigateTo(`./repleinshDetail?id=${item.masterId}&status=${item.status}&scanMessage=${scanMessageParams}`) |
|
|
|
proxy.$tab.navigateTo(`./repleinshDetail?id=${item.masterId}&status=${item.status}&scanMessage=${scanMessage.value}&title=${title.value}`) |
|
|
|
} |
|
|
|
const selectedItem = (item) => { |
|
|
|
openJobDetail(item) |
|
|
|