update:新增代办选择确定人增加仿真类型限制

This commit is contained in:
2026-04-17 11:29:00 +08:00
parent c503bf960d
commit fcc2af724d
12 changed files with 47 additions and 8 deletions

View File

@@ -322,7 +322,7 @@ import { exportToPdf } from '@/utils/exportPdf';
import { CommonStore } from '@/stores/common';
import dayjs from 'dayjs';
import { getPageStorage, setPageStorage } from '@/utils/common';
import { getOptions } from './libs';
import { getOptions } from './lib';
const commonStore = CommonStore();

View File

@@ -52,12 +52,14 @@ interface Props {
data?: any;
type?: string;
hideTips?: boolean;
simulationType?: string;
}
const props = withDefaults(defineProps<Props>(), {
data: null,
type: 'edit',
hideTips: false,
simulationType: '',
});
const disabled = ref(props.type === 'preview');
@@ -135,6 +137,7 @@ const changeFun = async (cbData: any) => {
if (key === 'simType') {
setPMemberName({
formData: editFormInfo.value,
simulationType: props.simulationType,
});
}
if (key === 'endTime') {

View File

@@ -10,6 +10,7 @@
<Robot
v-if="currentName === 'robot'"
ref="CurrentRef"
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
@submit="submitFun"
@@ -17,6 +18,7 @@
<Animation
v-if="currentName === 'animation'"
ref="CurrentRef"
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
@submit="submitFun"
@@ -24,6 +26,7 @@
<FiniteElement
v-if="currentName === 'finiteElement'"
ref="CurrentRef"
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
@submit="submitFun"
@@ -31,6 +34,7 @@
<Industry
v-if="currentName === 'industry'"
ref="CurrentRef"
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
@submit="submitFun"
@@ -38,6 +42,7 @@
<Logistics
v-if="currentName === 'logistics'"
ref="CurrentRef"
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
@submit="submitFun"
@@ -45,6 +50,7 @@
<Tolerance
v-if="currentName === 'tolerance'"
ref="CurrentRef"
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
@submit="submitFun"

View File

@@ -77,12 +77,14 @@ interface Props {
data?: any;
type?: string;
hideTips?: boolean;
simulationType?: string;
}
const props = withDefaults(defineProps<Props>(), {
data: null,
type: 'edit',
hideTips: false,
simulationType: '',
});
const disabled = ref(props.type === 'preview');
@@ -170,6 +172,7 @@ const changeFun = async (cbData: any) => {
if (key === 'simType') {
setPMemberName({
formData: editFormInfo.value,
simulationType: props.simulationType,
});
}
if (key === 'endTime') {

View File

@@ -70,38 +70,44 @@
<Animation
v-if="currentName === 'animation'"
ref="CurrentRef"
@submit="submitFun"
:simulationType="diaTitle"
:deptOptions="deptOptions"
@submit="submitFun"
/>
<FiniteElement
v-if="currentName === 'finiteElement'"
ref="CurrentRef"
@submit="submitFun"
:simulationType="diaTitle"
:deptOptions="deptOptions"
@submit="submitFun"
/>
<Industry
v-if="currentName === 'industry'"
ref="CurrentRef"
@submit="submitFun"
:simulationType="diaTitle"
:deptOptions="deptOptions"
@submit="submitFun"
/>
<Logistics
v-if="currentName === 'logistics'"
ref="CurrentRef"
@submit="submitFun"
:simulationType="diaTitle"
:deptOptions="deptOptions"
@submit="submitFun"
/>
<Robot
v-if="currentName === 'robot'"
ref="CurrentRef"
@submit="submitFun"
:simulationType="diaTitle"
:deptOptions="deptOptions"
@submit="submitFun"
/>
<Tolerance
v-if="currentName === 'tolerance'"
ref="CurrentRef"
@submit="submitFun"
:simulationType="diaTitle"
:deptOptions="deptOptions"
@submit="submitFun"
/>
</div>
<template #footer>

View File

@@ -51,12 +51,14 @@ interface Props {
data?: any;
type?: string;
hideTips?: boolean;
simulationType?: string;
}
const props = withDefaults(defineProps<Props>(), {
data: null,
type: 'edit',
hideTips: false,
simulationType: '',
});
const disabled = ref(props.type === 'preview');
@@ -133,6 +135,7 @@ const changeFun = async (cbData: any) => {
if (key === 'simType') {
setPMemberName({
formData: editFormInfo.value,
simulationType: props.simulationType,
});
}
};

View File

@@ -255,11 +255,12 @@ export const toggleMaterialNo = (data: any) => {
// 设置确认人
export const setPMemberName = async (data: any) => {
const { formData = {} } = data;
const { formData = {}, simulationType } = data;
const { projectUndertaker, simType } = formData;
const params = {
deptName: projectUndertaker,
discipline: simType,
simulationType,
};
if (!(projectUndertaker && simType)) {
formData.pMemberName = '';

View File

@@ -55,12 +55,14 @@ interface Props {
data?: any;
type?: string;
hideTips?: boolean;
simulationType?: string;
}
const props = withDefaults(defineProps<Props>(), {
data: null,
type: 'edit',
hideTips: false,
simulationType: '',
});
const disabled = ref(props.type === 'preview');
@@ -140,6 +142,7 @@ const changeFun = async (cbData: any) => {
if (key === 'simType') {
setPMemberName({
formData: editFormInfo.value,
simulationType: props.simulationType,
});
}
if (key === 'endTime') {

View File

@@ -5,6 +5,7 @@
ref="CurrentRef"
type="preview"
hideTips
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
/>
@@ -13,6 +14,7 @@
ref="CurrentRef"
type="preview"
hideTips
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
/>
@@ -21,6 +23,7 @@
ref="CurrentRef"
type="preview"
hideTips
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
/>
@@ -29,6 +32,7 @@
ref="CurrentRef"
type="preview"
hideTips
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
/>
@@ -37,6 +41,7 @@
ref="CurrentRef"
type="preview"
hideTips
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
/>
@@ -45,6 +50,7 @@
ref="CurrentRef"
type="preview"
hideTips
:simulationType="diaTitle"
:data="detailData"
:deptOptions="deptOptions"
/>
@@ -70,6 +76,7 @@ const props = withDefaults(defineProps<Props>(), {
demandId: '',
});
const diaTitle = ref('');
const deptOptions = ref<any>([]);
onMounted(() => {
@@ -98,6 +105,7 @@ const getDetailFun = () => {
};
getDemandDetailApi(params).then((res: any) => {
if (res.code === 200) {
diaTitle.value = res.data.demandType;
detailData.value = res.data;
currentName.value = titleMap[res.data.demandType];
}

View File

@@ -52,12 +52,14 @@ interface Props {
data?: any;
type?: string;
hideTips?: boolean;
simulationType?: string;
}
const props = withDefaults(defineProps<Props>(), {
data: null,
type: 'edit',
hideTips: false,
simulationType: '',
});
const disabled = ref(props.type === 'preview');
@@ -142,6 +144,7 @@ const changeFun = async (cbData: any) => {
if (key === 'simType') {
setPMemberName({
formData: editFormInfo.value,
simulationType: props.simulationType,
});
}
if (key === 'endTime') {

View File

@@ -49,12 +49,14 @@ interface Props {
data?: any;
type?: string;
hideTips?: boolean;
simulationType?: string;
}
const props = withDefaults(defineProps<Props>(), {
data: null,
type: 'edit',
hideTips: false,
simulationType: '',
});
const disabled = ref(props.type === 'preview');
@@ -135,6 +137,7 @@ const changeFun = async (cbData: any) => {
if (key === 'simType') {
setPMemberName({
formData: editFormInfo.value,
simulationType: props.simulationType,
});
}
if (key === 'endTime') {