审批流修复

This commit is contained in:
hongchao 2025-08-14 13:55:12 +08:00
parent b9cf0abe54
commit 9db1d27321
2 changed files with 27 additions and 17 deletions

View File

@ -69,7 +69,7 @@
</view> </view>
<!-- 按钮区域 --> <!-- 按钮区域 -->
<view class="table-list-item" v-if="type==1"> <view class="table-list-item" v-if="type==1 && auditStatus==0">
<uni-row :gutter="24" style="display: flex; align-items: center" justify="center"> <uni-row :gutter="24" style="display: flex; align-items: center" justify="center">
<uni-col :span="8"> <uni-col :span="8">
<view <view
@ -157,7 +157,7 @@
import { ref, computed, onUnmounted } from 'vue' import { ref, computed, onUnmounted } from 'vue'
import { onLoad, onShow, } from '@dcloudio/uni-app' import { onLoad, onShow, } from '@dcloudio/uni-app'
import { getCodeDeviceListAPI, setOutboundNumAPI, } from '@/services/picking/outbound.js' import { getCodeDeviceListAPI, setOutboundNumAPI, } from '@/services/picking/outbound.js'
import { getAuditInfoAPI,receiveDetailAPI,submitAuditingApi } from '@/services/picking/review.js' import { getAuditInfoAPI,receiveDetailAPI,submitAuditingApi,getNodeAuditStatusAPI } from '@/services/picking/review.js'
import { appLoginAPI, getUserInfoAPI, iwsLoginAPI,getConfigApi } from '@/services/index.js' import { appLoginAPI, getUserInfoAPI, iwsLoginAPI,getConfigApi } from '@/services/index.js'
import { debounce } from 'lodash-es' import { debounce } from 'lodash-es'
import { useMemberStore } from '@/stores' import { useMemberStore } from '@/stores'
@ -173,7 +173,7 @@ const formData = ref({})
const codeDeviceList = ref([]) const codeDeviceList = ref([])
const total = ref(0) const total = ref(0)
const auditStatus = ref('')
// //
const queryCodeParams = ref({ const queryCodeParams = ref({
pageNum: 1, pageNum: 1,
@ -256,7 +256,7 @@ const initPageData = () => {
getReviewInfo(queryParams.value.id) getReviewInfo(queryParams.value.id)
fetchAuditInfo() fetchAuditInfo()
// //
// getNodeAuditStatus() getNodeAuditStatus()
} }
const getConfig = async () => { const getConfig = async () => {
@ -307,19 +307,21 @@ const fetchAuditInfo = async () => {
} }
} }
// const getNodeAuditStatus = async () => { const getNodeAuditStatus = async () => {
// try { try {
// // API // API
// const res = await getNodeAuditStatusAPI({taskId:queryParams.value.taskId}) const res = await getNodeAuditStatusAPI({taskId:queryParams.value.taskId})
// console.log('🚀 ~ getNodeAuditStatus ~ res:', res) console.log('🚀 ~ getNodeAuditStatus ~ res:', res)
if(res.data){
auditStatus.value = res.data.auditStatus
// console.log('🚀 ~ getNodeAuditStatus ~ auditingList:', auditingList.value) }else{
// } catch (error) { auditStatus.value = ''
// // }
// console.log('🚀 ~ getNodeAuditStatus ~ error:', error) } catch (error) {
// } //
// } console.log('🚀 ~ getNodeAuditStatus ~ error:', error)
}
}
// //

View File

@ -44,3 +44,11 @@ export const submitAuditingApi = (data) => {
data, data,
}) })
} }
export const getNodeAuditStatusAPI = (data) => {
return http({
method: 'GET',
url: '/material/sysWorkflowRecordHistory/getAuditStatus',
data,
})
}