材料管理 变更清单

This commit is contained in:
Teo
2025-08-08 20:03:00 +08:00
parent f37ca487f6
commit 93a3ea764e
28 changed files with 1973 additions and 432 deletions

View File

@ -26,6 +26,9 @@
<el-card shadow="never">
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="info" plain icon="Sort" @click="handleToggleExpandAll">展开/折叠</el-button>
</el-col>
@ -86,7 +89,7 @@
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
<el-form ref="progressCategoryFormRef" :model="form" :rules="rules" label-width="80px">
<el-form-item label="类别名称" prop="name">
<el-input v-model="form.name" placeholder="请输入类别名称" disabled />
<el-input v-model="form.name" placeholder="请输入类别名称" :disabled="form.id != null" />
</el-form-item>
<el-form-item label="计量单位" prop="unit">
<el-input v-model="form.unit" placeholder="请输入计量单位" />
@ -312,7 +315,7 @@ const toggleExpandAll = (data: ProgressCategoryVO[], status: boolean) => {
const isDisabled = ref<boolean>(false);
const handleUpdate = async (row: ProgressCategoryVO) => {
reset();
if (row.unitType == '2') {
if (!row.unitType) {
isDisabled.value = true;
}
await getTreeselect();