gongchunyi
2026-09-16 7a40bd827a87152998a36694da6155b690008d66
src/views/qualityManagement/finalInspection/components/formDia.vue
@@ -344,6 +344,7 @@
      // 并行加载规格型号和指标选项
      const params = {
        productId: currentProductId.value,
        productModelId: form.value.productModelId || undefined,
        inspectType: 2
      };
@@ -412,6 +413,8 @@
const handleChangeModel = (value) => {
  form.value.model = modelOptions.value.find(item => item.id == value)?.model || '';
  form.value.unit = modelOptions.value.find(item => item.id == value)?.unit || '';
  // 规格型号变化后按 产品+规格型号 重新过滤可选指标
  getList(value);
}
const handleQualifiedQuantityChange = (value) => {
@@ -489,7 +492,7 @@
    }
  });
}
const getList = () => {
const getList = (modelId) => {
  if (!currentProductId.value) {
    testStandardOptions.value = [];
    tableData.value = [];
@@ -497,6 +500,7 @@
  }
  let params = {
    productId: currentProductId.value,
    productModelId: modelId ?? form.value.productModelId ?? undefined,
    inspectType: 2
  };
  qualityInspectDetailByProductId(params).then(res => {