工单审核完毕刷新

This commit is contained in:
hongchao 2025-07-21 17:24:14 +08:00
parent 1609e6d9e2
commit 92bef38f7f
1 changed files with 13 additions and 2 deletions

View File

@ -158,7 +158,7 @@ import { ref, computed, onUnmounted } from 'vue'
import { onLoad, onShow, } from '@dcloudio/uni-app'
import { getCodeDeviceListAPI, setOutboundNumAPI, } from '@/services/picking/outbound.js'
import { getAuditInfoAPI,receiveDetailAPI,submitAuditingApi } from '@/services/picking/review.js'
import { appLoginAPI, getUserInfoAPI, iwsLoginAPI } from '@/services/index.js'
import { appLoginAPI, getUserInfoAPI, iwsLoginAPI,getConfigApi } from '@/services/index.js'
import { debounce } from 'lodash-es'
import { useMemberStore } from '@/stores'
const memberStore = useMemberStore()
@ -212,6 +212,7 @@ const userId = ref(uni.getStorageSync('id') || '')
const origin = window.location.href
onLoad(async(options) => {
getConfig()
if (origin.indexOf('params') != -1) {
queryParams.value = JSON.parse(options.params)
auditingParams.value.taskId = queryParams.value.taskId
@ -256,6 +257,15 @@ const initPageData = () => {
fetchAuditInfo()
}
const getConfig = async () => {
try {
const res = await getConfigApi()
uni.setStorageSync('systemConfig', res.data)
} catch (error) {
console.log('🚀 ~ getConfig ~ error:', error)
}
}
// onShow
onShow(() => {
//
@ -355,7 +365,8 @@ const handleReview = (action) => {
title: '审核成功',
icon: 'none',
})
uni.navigateBack(); //
initPageData();
// uni.navigateBack(); //
}
} else if (res.cancel) {
console.log('用户取消操作');