From bc92c5b9f6c432667dcaf43fdca588f889d65f53 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期六, 16 五月 2026 10:16:36 +0800
Subject: [PATCH] feat(salesQuotation): 将productModel 设置为specification 为后端接口参数对应

---
 src/views/salesManagement/salesQuotation/index.vue |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/views/salesManagement/salesQuotation/index.vue b/src/views/salesManagement/salesQuotation/index.vue
index 441f633..fce764f 100644
--- a/src/views/salesManagement/salesQuotation/index.vue
+++ b/src/views/salesManagement/salesQuotation/index.vue
@@ -185,7 +185,7 @@
                 </el-form-item>
               </template>
             </el-table-column>
-            <el-table-column prop="ProductModel" 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
@@ -275,7 +275,7 @@
         <h4>浜у搧鏄庣粏</h4>
         <el-table :data="currentQuotation.products" border style="width: 100%">
           <el-table-column prop="product" label="浜у搧鍚嶇О" />
-          <el-table-column prop="ProductModel" label="瑙勬牸鍨嬪彿" />
+          <el-table-column prop="specification" label="瑙勬牸鍨嬪彿" />
           <el-table-column prop="unit" label="鍗曚綅" />
           <el-table-column prop="unitPrice" label="鍗曚环">
             <template #default="scope">
@@ -458,7 +458,7 @@
 		row.product = '';
 		row.modelOptions = [];
 		row.productModelId = '';
-		row.ProductModel = '';
+		row.specification = '';
 		row.unit = '';
 		return;
 	}
@@ -479,7 +479,7 @@
 	// 濡傛灉娓呯┖閫夋嫨锛屽垯娓呯┖鐩稿叧瀛楁
 	if (!value) {
 		row.productModelId = '';
-		row.ProductModel = '';
+		row.specification = '';
 		row.unit = '';
 		return;
 	}
@@ -488,10 +488,10 @@
 	const modelOptions = row.modelOptions || [];
 	const index = modelOptions.findIndex((item) => item.id === value);
 	if (index !== -1) {
-		row.ProductModel = modelOptions[index].model;
+		row.specification = modelOptions[index].model;
 		row.unit = modelOptions[index].unit;
 	} else {
-		row.ProductModel = '';
+		row.specification = '';
 		row.unit = '';
 	}
 };
@@ -524,7 +524,7 @@
       productId: product.productId || '',
       product: product.product || product.productName || '',
       productModelId: product.productModelId || '',
-      ProductModel: product.ProductModel || '',
+      specification: product.specification || '',
       quantity: product.quantity || 0,
       unit: product.unit || '',
       unitPrice: product.unitPrice || 0,
@@ -570,9 +570,9 @@
         const res = await modelList({ id: resolvedProductId });
         modelOptions = res || [];
 
-        // 濡傛灉杩斿洖鐨勬暟鎹病鏈� productModelId锛屼絾鏈� ProductModel 鍚嶇О锛屾牴鎹悕绉版煡鎵� ID
-        if (!resolvedProductModelId && product.ProductModel) {
-          const foundModel = modelOptions.find(item => item.model === product.ProductModel);
+        // 濡傛灉杩斿洖鐨勬暟鎹病鏈� productModelId锛屼絾鏈� specification 鍚嶇О锛屾牴鎹悕绉版煡鎵� ID
+        if (!resolvedProductModelId && product.specification) {
+          const foundModel = modelOptions.find(item => item.model === product.specification);
           if (foundModel) {
             resolvedProductModelId = foundModel.id;
           }
@@ -586,7 +586,7 @@
       productId: resolvedProductId,
       product: productName,
       productModelId: resolvedProductModelId,
-      ProductModel: product.ProductModel || '',
+      specification: product.specification || '',
       quantity: product.quantity || 0,
       unit: product.unit || '',
       unitPrice: product.unitPrice || 0,
@@ -755,7 +755,7 @@
           productId: product.productId || '',
           product: product.product || product.productName || '',
           productModelId: product.productModelId || '',
-          ProductModel: product.ProductModel || '',
+          specification: product.specification || '',
           quantity: product.quantity || 0,
           unit: product.unit || '',
           unitPrice: product.unitPrice || 0,

--
Gitblit v1.9.3