gaoluyang
2026-05-23 b285a5f5a84067121e8f17803021a3b67d2c9235
src/views/salesManagement/salesQuotation/index.vue
@@ -212,6 +212,13 @@
                </el-form-item>
              </template>
            </el-table-column>
            <el-table-column prop="singleQuantity" label="每件数量" width="120">
              <template #default="scope">
                <el-form-item :prop="`products.${scope.$index}.singleQuantity`" class="product-table-form-item">
                  <el-input-number v-model="scope.row.singleQuantity" :min="1" :precision="0" style="width: 100%" />
                </el-form-item>
              </template>
            </el-table-column>
            <el-table-column prop="unitPrice" label="单价">
              <template #default="scope">
                <el-form-item :prop="`products.${scope.$index}.unitPrice`" class="product-table-form-item">
@@ -277,6 +284,7 @@
          <el-table-column prop="product" label="产品名称" />
          <el-table-column prop="specification" label="规格型号" />
          <el-table-column prop="unit" label="单位" />
          <el-table-column prop="singleQuantity" label="每件数量" />
          <el-table-column prop="unitPrice" label="单价">
            <template #default="scope">
              ¥{{ scope.row.unitPrice.toFixed(2) }}
@@ -526,6 +534,7 @@
      productModelId: product.productModelId || '',
      specification: product.specification || '',
      quantity: product.quantity || 0,
      singleQuantity: product.singleQuantity || 1,
      unit: product.unit || '',
      unitPrice: product.unitPrice || 0,
      amount: product.amount || 0
@@ -588,6 +597,7 @@
      productModelId: resolvedProductModelId,
      specification: product.specification || '',
      quantity: product.quantity || 0,
      singleQuantity: product.singleQuantity || 1,
      unit: product.unit || '',
      unitPrice: product.unitPrice || 0,
      amount: product.amount || 0,
@@ -651,6 +661,7 @@
    productName: '',
    productModelId: '',
    quantity: 1,
    singleQuantity: 1,
    unit: '',
    unitPrice: 0,
    amount: 0,
@@ -757,6 +768,7 @@
          productModelId: product.productModelId || '',
          specification: product.specification || '',
          quantity: product.quantity || 0,
          singleQuantity: product.singleQuantity || 1,
          unit: product.unit || '',
          unitPrice: product.unitPrice || 0,
          amount: product.amount || 0