gaoluyang
2026-09-21 e5b17e96f050cc12c7ba890d196dd5f7f54926d7
src/views/salesManagement/salesQuotation/index.vue
@@ -169,7 +169,7 @@
          </template>
          <div class="form-content">
            <el-table :data="form.products" border style="width: 100%" class="product-table" v-if="form.products.length > 0">
            <el-table-column prop="product" label="产品名称" width="200">
            <el-table-column prop="product" label="物料编码" width="200">
              <template #default="scope">
                <el-form-item :prop="`products.${scope.$index}.productId`" class="product-table-form-item">
                  <el-tree-select
@@ -185,7 +185,7 @@
                </el-form-item>
              </template>
            </el-table-column>
            <el-table-column prop="specification" label="规格型号" width="200">
            <el-table-column prop="specification" label="物料描述" width="200">
              <template #default="scope">
                <el-form-item :prop="`products.${scope.$index}.productModelId`" class="product-table-form-item">
                  <el-select
@@ -274,8 +274,8 @@
      <div style="margin: 20px 0;">
        <h4>产品明细</h4>
        <el-table :data="currentQuotation.products" border style="width: 100%">
          <el-table-column prop="product" label="产品名称" />
          <el-table-column prop="specification" label="规格型号" />
          <el-table-column prop="product" label="物料编码" />
          <el-table-column prop="specification" label="物料描述" />
          <el-table-column prop="unit" label="单位" />
          <el-table-column prop="unitPrice" label="单价">
            <template #default="scope">
@@ -355,8 +355,8 @@
}
const productRowRules = {
  productId: [{ required: true, message: '请选择产品名称', trigger: 'change' }],
  productModelId: [{ required: true, message: '请选择规格型号', trigger: 'change' }],
  productId: [{ required: true, message: '请选择物料编码', trigger: 'change' }],
  productModelId: [{ required: true, message: '请选择物料描述', trigger: 'change' }],
  unit: [{ required: true, message: '请填写单位', trigger: 'blur' }],
  unitPrice: [{ required: true, message: '请填写单价', trigger: 'change' }]
}
@@ -580,7 +580,7 @@
          }
        }
      } catch (error) {
        console.error('加载规格型号失败:', error);
        console.error('加载物料描述失败:', error);
      }
    }