diff --git a/src/pages/purchaseReturn/job/returnDetailBatch.vue b/src/pages/purchaseReturn/job/returnDetailBatch.vue new file mode 100644 index 00000000..bfdb0428 --- /dev/null +++ b/src/pages/purchaseReturn/job/returnDetailBatch.vue @@ -0,0 +1,423 @@ + + + + + \ No newline at end of file diff --git a/src/pages/purchaseReturn/job/returnJob.vue b/src/pages/purchaseReturn/job/returnJob.vue index 5a7bac0b..f1f54d5b 100644 --- a/src/pages/purchaseReturn/job/returnJob.vue +++ b/src/pages/purchaseReturn/job/returnJob.vue @@ -18,7 +18,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue' import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' import { getPurchaseReturnJobList, cancleTakePurchasereturnJob } from '@/api/request2.js' - +import { getManagementPrecisions } from '@/common/balance.js'; import { goHome, updateTitle } from '@/common/basic.js' import { getDetailOption, getDetailGiveupOption } from '@/common/array.js' @@ -49,7 +49,9 @@ const title = ref('') const filter = ref() const comMessageRef = ref() const jobInfoPopup = ref() - +const managementType = ref('') +const managementList = ref([]) +const jobListPopup = ref(null) onShow(() => { nextTick(() => { getList('refresh') @@ -151,7 +153,19 @@ const getList = (type) => { }) } const openJobDetail = (item) => { - proxy.$tab.navigateTo(`./returnDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`) + getManagementPrecisions([item.itemCode], item.fromLocationCode, ret => { + if (ret.success) { + managementList.value = ret.list; + managementType.value = managementList.value.some(cur => cur.ManagementPrecision == 'BY_BATCH') ? + 'BY_BATCH' : '' + if (managementType.value == 'BY_BATCH') { + proxy.$tab.navigateTo(`./returnDetailBatch?id=${item.masterId}&status=${item.status}&title=${title.value}`) + } else { + proxy.$tab.navigateTo(`./returnDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`) + } + } + }) + } const showItemList = (itemList) => { jobListPopup.value.openPopup(itemList) @@ -213,7 +227,7 @@ const getScanAsnNumber = (code) => { const getScanNumber = (code) => { getDataListByType(code, 'number') } -const getDataListByType = (code) => { +const getDataListByType = (code,type) => { proxy.$modal.loading('加载中­....') const filters = [] filters.push({