refactor(qms): 移除检测项编辑时的类型转换移除了编辑检测项时对 method、detectType 和 controlType 字段的 Number 类型转换。

- 这些字段的值将直接从 API 响应中获取,不再进行额外的类型转换操作。
master
zangch@mesnac.com 2 weeks ago
parent 7a9599b96d
commit 5bbf44aaf6

@ -465,9 +465,6 @@ const handleUpdate = async (row?: QcInspectionItemVO) => {
const _itemId = row?.itemId || ids.value[0]
const res = await getQcInspectionItem(_itemId);
Object.assign(form.value, res.data);
form.value.method = Number(form.value.method);
form.value.detectType = Number(form.value.detectType);
form.value.controlType = Number(form.value.controlType);
dialog.visible = true;
dialog.title = "修改检测项定义";
}

Loading…
Cancel
Save