问题修复

This commit is contained in:
hongchao 2025-10-10 12:21:24 +08:00
parent 379912c8ca
commit d56d4ea3cc
7 changed files with 48 additions and 8 deletions

View File

@ -68,7 +68,7 @@ const todayDatas = reactive({
oneMonthNum: '', //
})
const isUsingList = ref([
{ path: 'toolsLease', name: '班组领申请', src: 'lease', isShow: true },
{ path: 'toolsLease', name: '班组申请', src: 'lease', isShow: true },
{ path: 'toolsOut', name: '材料站出库', src: 'outStore', isShow: true },
{ path: 'toolsBack', name: '退料', src: 'back', isShow: true },
{ path: 'equipmentRecord', name: '站内库存台账', src: 'ledger', isShow: true },

View File

@ -228,6 +228,7 @@ import {
detailsLeaseTask,
getAgreementInfoByIdApi,
getPickDepartListApi,
getProListByDepartApi
} from '@/services/materialsStation'
import { useMemberStore } from '@/stores'
const memberStore = useMemberStore()
@ -311,7 +312,7 @@ const getDetailsById = async () => {
item.maCodeList = item.maCodeVoList || item.maCodeList || []
})
Object.assign(formData, res.data.leaseApplyInfo)
formData.proId = res.data.leaseApplyInfo.proId
formData.proId = String(res.data.leaseApplyInfo.proId)
formData.projectId = prodRange.value.find(
(item) => item.proId == res.data.leaseApplyInfo.proId,
)?.projectId
@ -407,7 +408,7 @@ const getTeamList = async () => {
//
const getProjectListApi = async () => {
try {
const res = await getProjectList({ unitId: null, isApp: true, teamName: formData.teamName })
const res = await getProListByDepartApi({ teamName: formData.teamName })
if (!res.data || !res.data.length) return
console.log('🚀 ~ getProjectListApi ~ res:', res)
prodRange.value = res.data.map((item) => {

View File

@ -67,6 +67,18 @@
><div class="cont">{{ item.typeName }}</div></uni-col
>
</uni-row>
<uni-row :gutter="24">
<uni-col :span="6">计量单位</uni-col>
<uni-col :span="18"
><div class="cont">{{ item.unitName }}</div></uni-col
>
</uni-row>
<uni-row :gutter="24">
<uni-col :span="6">物资厂家</uni-col>
<uni-col :span="18"
><div class="cont">{{ item.supplierName }}</div></uni-col
>
</uni-row>
<uni-row :gutter="24">
<uni-col :span="6">到货数量</uni-col>
<uni-col :span="18"

View File

@ -3,6 +3,9 @@
<view class="page-container">
<div class="card" style="margin-bottom: 10px">
<uni-forms :model="formData" label-width="100" :border="true">
<uni-forms-item label="物资类型:" name="maTypeModel">
<span class="form-view">{{ queryParams.maTypeModel }}</span>
</uni-forms-item>
<uni-forms-item label="物资名称:" name="maTypeName">
<span class="form-view">{{ queryParams.maTypeName }}</span>
</uni-forms-item>

View File

@ -161,7 +161,7 @@ const getOutboundDetailsData = async () => {
//
const onClick = (e, item) => {
const { maTypeName, typeName, purchaseNum, bindNum, checkNum, typeId } = item
const { maTypeName, typeName, purchaseNum, bindNum, checkNum, typeId,maTypeModel } = item
const { index } = e
// leaseApplyInfo
@ -172,7 +172,8 @@ const onClick = (e, item) => {
purchaseNum,
bindNum,
checkNum,
typeId
typeId,
maTypeModel
}
// 1.

View File

@ -358,10 +358,20 @@ const handleReview = (action) => {
if (res.confirm) {
const comment = res.content;
//
const currentAuditing = auditingList.value.filter(e => e.configValues.includes(userId.value)) //
const currentIndex = auditingList.value.findIndex(e => e.configValues.includes(userId.value)) //
const userAuthorizedNodes = auditingList.value.filter(e => e.configValues.includes(userId.value))
if(userAuthorizedNodes.length === 0){
uni.showToast({
title: '未查询到您的审核权限!',
icon: 'none',
})
}
let currentAuditing = userAuthorizedNodes.find(node => node.isAccept === 0) //
// 使
if (!currentAuditing) {
currentAuditing = userAuthorizedNodes[0]
}
auditingParams.value.remark = comment
const { recordId, id, typeId, } = currentAuditing[0]
const { recordId, id, typeId } = currentAuditing
Object.assign(auditingParams.value, {
typeId,
recordId,
@ -375,6 +385,9 @@ const handleReview = (action) => {
auditingParams.value.unitName = formData.value.leaseUnit
auditingParams.value.projectName = formData.value.leaseProject
const currentIndex = auditingList.value.findIndex(e => e.id === id) //
if (currentIndex !== auditingList.value.length - 1) {
auditingParams.value.nextNodeId =auditingList.value[currentIndex + 1].id
}

View File

@ -215,6 +215,16 @@ const onReview = (item) => {
type: 1,
})}`,
})
}else{
uni.navigateTo({
url: `/pages/picking/review/details?params=${JSON.stringify({
id: item.id,
taskId: item.taskId,
flowId: item.flowId,
nodeId: item.nodeId,
type: 2,
})}`,
})
}
// const params = {