feat(mes): 禁止修改物料和模板字段,优化表单状态管理

pull/871/MERGE
YunaiV 2026-03-23 23:37:02 +08:00
parent 8ea418890d
commit 74879e0933
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@
v-model="formData.itemId"
placeholder="请选择产品物料"
class="!w-1/1"
:disabled="isFromPendingTask"
:disabled="isFromPendingTask || isUpdate"
/>
</el-form-item>
</el-col>
@ -240,6 +240,7 @@ const dialogTitle = computed(() => {
return titles[formType.value] || t('action.' + formType.value)
}) // formType
const isDetail = computed(() => formType.value === 'detail') //
const isUpdate = computed(() => formType.value === 'update') //
const isFromPendingTask = computed(
() => formType.value === 'create' && formData.value.sourceDocId != null
) //