yuan
2 天以前 8f48b6ad96e6f7c88cd1e6ea80fcec66bcdc8155
src/views/qualityManagement/rawMaterialInspection/components/formDia.vue
@@ -315,7 +315,8 @@
  if (operationType.value === 'edit' || operationType.value === 'view') {
    // 先保存 testStandardId,避免被清空
    const savedTestStandardId = row.testStandardId;
    form.value = {...row}
    const { passRate, ...rowWithoutPassRate } = row;
    form.value = { ...rowWithoutPassRate, testStandardId: "" };
    currentProductId.value = row.productId || 0
    // 关键:编辑时加载规格型号下拉选项,才能反显 productModelId
    if (currentProductId.value) {