Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -59,8 +59,10 @@ public class CheckMethodAppServiceImpl implements ICheckMethodAppService {
|
||||
return R.fail("检查方法的检查类型不能为空!");
|
||||
}
|
||||
//2.保存
|
||||
boolean save = checkMethodService.save(checkMethod);
|
||||
return R.ok(save);
|
||||
checkMethodService.save(checkMethod);
|
||||
java.util.Map<String, Object> result = new java.util.HashMap<>();
|
||||
result.put("id", checkMethod.getId());
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -486,6 +486,14 @@
|
||||
{{ getCheckTypeLabel(item.checkType) || '无' }}
|
||||
</template>
|
||||
</td>
|
||||
<td>
|
||||
<template v-if="item.editing">
|
||||
<input type="number" min="0" placeholder="请输入曝光次数" v-model="item.exposureNum">
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ item.exposureNum || '0' }}
|
||||
</template>
|
||||
</td>
|
||||
<td>
|
||||
<template v-if="item.editing">
|
||||
<el-select
|
||||
@@ -1221,14 +1229,30 @@ async function handleConfirm(index) {
|
||||
ElMessage.error('名称不能为空');
|
||||
return;
|
||||
}
|
||||
// 根据不同菜单验证检查类型字段
|
||||
if (activeMenu.value === '检查方法') {
|
||||
if (!item.checkType || item.checkType.trim() === '') {
|
||||
ElMessage.error('检查类型不能为空');
|
||||
return;
|
||||
}
|
||||
} else if (activeMenu.value === '检查类型') {
|
||||
if (!item.type || item.type.trim() === '') {
|
||||
ElMessage.error('检查类型不能为空');
|
||||
return;
|
||||
}
|
||||
} else if (activeMenu.value === '检查部位') {
|
||||
if (!item.checkType || item.checkType.trim() === '') {
|
||||
ElMessage.error('检查类型不能为空');
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 检查类型才需要验证执行科室
|
||||
if (activeMenu.value === '检查类型') {
|
||||
if (!item.department || item.department.trim() === '') {
|
||||
ElMessage.error('执行科室不能为空');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
// 根据当前激活的菜单调用不同的API
|
||||
|
||||
Reference in New Issue
Block a user