|
@ -46,6 +46,7 @@ const addAgainOption = ref([]) |
|
|
const showOptions = ref([]) |
|
|
const showOptions = ref([]) |
|
|
const fromType = ref('requestType') |
|
|
const fromType = ref('requestType') |
|
|
const loadingType = ref('nomore') |
|
|
const loadingType = ref('nomore') |
|
|
|
|
|
const title = ref('') |
|
|
const requestInfoPopupRef = ref() |
|
|
const requestInfoPopupRef = ref() |
|
|
const filter = ref() |
|
|
const filter = ref() |
|
|
const comMessageRef = ref() |
|
|
const comMessageRef = ref() |
|
@ -57,6 +58,9 @@ onReady(() => { |
|
|
detailAndHandleOption.value = getDetailAndHandleOption() |
|
|
detailAndHandleOption.value = getDetailAndHandleOption() |
|
|
detailAndAddAndCloseOption.value = getDetailAndAddAndCloseOption() |
|
|
detailAndAddAndCloseOption.value = getDetailAndAddAndCloseOption() |
|
|
}) |
|
|
}) |
|
|
|
|
|
onLoad((option) => { |
|
|
|
|
|
title.value = option.title |
|
|
|
|
|
}) |
|
|
onReachBottom(() => { |
|
|
onReachBottom(() => { |
|
|
// 避免多次触发 |
|
|
// 避免多次触发 |
|
|
if (loadingType.value == 'loading' || loadingType.value == 'nomore') { |
|
|
if (loadingType.value == 'loading' || loadingType.value == 'nomore') { |
|
@ -82,7 +86,7 @@ onNavigationBarButtonTap((e) => { |
|
|
}) |
|
|
}) |
|
|
const openRequestDetail = (item) => { |
|
|
const openRequestDetail = (item) => { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: `./putawayRequestDetail?id=${item.masterId}` |
|
|
url: `./putawayRequestDetail?id=${item.masterId}&title=${title.value}` |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
const openRequestInfoPopup = (item) => { |
|
|
const openRequestInfoPopup = (item) => { |
|
@ -115,7 +119,8 @@ const getList = (type) => { |
|
|
|
|
|
|
|
|
const { list } = res.data |
|
|
const { list } = res.data |
|
|
totalCount.value = res.data.total |
|
|
totalCount.value = res.data.total |
|
|
updateTitle(`制品上架申请(${totalCount.value})`) |
|
|
updateTitle(`${title.value}(${totalCount.value})`) |
|
|
|
|
|
|
|
|
loadingType.value = 'loadmore' |
|
|
loadingType.value = 'loadmore' |
|
|
if (list == null || list.length == 0) { |
|
|
if (list == null || list.length == 0) { |
|
|
loadingType.value = 'nomore' |
|
|
loadingType.value = 'nomore' |
|
@ -135,7 +140,8 @@ const getList = (type) => { |
|
|
if (type === 'refresh') { |
|
|
if (type === 'refresh') { |
|
|
uni.stopPullDownRefresh() |
|
|
uni.stopPullDownRefresh() |
|
|
} |
|
|
} |
|
|
updateTitle('制品上架申请') |
|
|
|
|
|
|
|
|
updateTitle(title.value) |
|
|
loadingType.value = '' |
|
|
loadingType.value = '' |
|
|
proxy.$modal.closeLoading() |
|
|
proxy.$modal.closeLoading() |
|
|
showMessage(error) |
|
|
showMessage(error) |
|
|