新增待办,开模件问题修复
This commit is contained in:
@@ -33,14 +33,26 @@ const visibleDialog = ({ isCreate, row }: any) => {
|
||||
hideKeys.value.push('materialNo');
|
||||
} else {
|
||||
if (row.isMoldMaking === 'Y') {
|
||||
hideKeys.value = hideKeys.value.filter((item) => {
|
||||
return item !== 'materialNo';
|
||||
});
|
||||
deleteHideKey('materialNo');
|
||||
} else {
|
||||
hideKeys.value.push('materialNo');
|
||||
}
|
||||
}
|
||||
if (isCreate) {
|
||||
hideKeys.value.push('urgencyDesc');
|
||||
} else {
|
||||
if (row.urgencyDesc) {
|
||||
deleteHideKey('urgencyDesc');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const deleteHideKey = (key: string) => {
|
||||
hideKeys.value = hideKeys.value.filter((item) => {
|
||||
return item !== key;
|
||||
});
|
||||
};
|
||||
|
||||
const loadTableForm = () => {};
|
||||
|
||||
const hideKeys = ref(['downAttachments']);
|
||||
@@ -75,13 +87,15 @@ const changeFun = async (val: any) => {
|
||||
demandRef.value.editFormInfo.simulationPurpose = '';
|
||||
}
|
||||
}
|
||||
if (val.val.key === 'isMoldMaking') {
|
||||
if (val.val.val.value === 'Y') {
|
||||
hideKeys.value = hideKeys.value.filter((item) => {
|
||||
return item !== 'materialNo';
|
||||
});
|
||||
} else {
|
||||
hideKeys.value.push('materialNo');
|
||||
if (demandRef.value.simulationType === '有限元仿真') {
|
||||
if (val.val.key === 'isMoldMaking') {
|
||||
if (val.val.val.value === 'Y') {
|
||||
hideKeys.value = hideKeys.value.filter((item) => {
|
||||
return item !== 'materialNo';
|
||||
});
|
||||
} else {
|
||||
hideKeys.value.push('materialNo');
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
@@ -16,10 +16,12 @@ export const getDemandHideKeys = (key: string) => {
|
||||
'materialAndCraftsmanship',
|
||||
'robotNum',
|
||||
'colorRequirements',
|
||||
'isMoldMaking',
|
||||
'materialNo',
|
||||
];
|
||||
let keys: string[] = [];
|
||||
if (key.indexOf('有限元') !== -1 || key.indexOf('DISCIPLINE_TYPE') !== -1) {
|
||||
const finiteElementKeys = ['simulationPurpose'];
|
||||
const finiteElementKeys = ['simulationPurpose', 'isMoldMaking', 'materialNo'];
|
||||
keys = allKeys.filter((item) => !finiteElementKeys.includes(item));
|
||||
} else if (key.indexOf('动画') !== -1) {
|
||||
const animationKeys = ['animationPurpose', 'robotBrand', 'axis', 'beatDemand'];
|
||||
|
||||
@@ -735,5 +735,6 @@ const loadTableForm = () => {
|
||||
defineExpose({
|
||||
tableFormRef,
|
||||
editFormInfo,
|
||||
simulationType,
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user