cz 1 yıl önce
ebeveyn
işleme
876fc44bea

+ 11 - 3
src/components/process/EHSD/Purchase.vue

@@ -280,8 +280,8 @@
                                         <img src="@/assets/images/money2.png" alt="" class="img" />
                                         <span style="font-size:14px;font-weight:700;color:#000"> 供货推荐:</span>
                                         <div style="padding:5px 0px 0px 20px">
-                                          <div v-for="(item,index) in row.purchaseProductPriceList   " :key="index">
-                                            <span>供应商名称 </span>
+                                          <div v-for="(item,index) in row.topPriceList   " :key="index">
+                                            <span>{{item.supplierName}} </span>
                                             <span style="margin-left:40px"> CNY {{moneyFormat(item.price,2)}} </span>
                                           </div>
                                         </div>
@@ -302,7 +302,7 @@
                                     </div>
                                   </template>
                                   <template #reference>
-                                    <div style="margin-left:10px;cursor:pointer;position:relative;top:4px">
+                                    <div style="margin-left:10px;cursor:pointer;position:relative;top:4px" v-if="$index==0">
                                       <el-icon :size="20" color="#85c1a6">
                                         <WarningFilled />
                                       </el-icon>
@@ -945,6 +945,14 @@ const changeProductPrice = () => {
                   createTime: x.createTime,
                   price: x.price,
                 }));
+              iele.purchaseProductMountingsList[0].topPriceList = resOne[
+                key
+              ].topPriceList
+                .map((x) => ({
+                  supplierName: x.supplierName,
+                  price: x.price,
+                }))
+                .filter((y, index) => index < 3);
 
               iele.purchaseProductMountingsList[0].supplyPurchaseProductPriceList =
                 resOne[key].supplyPurchaseProductList

+ 12 - 3
src/components/process/EHSD/PurchaseChange.vue

@@ -265,8 +265,8 @@
                                         <img src="@/assets/images/money2.png" alt="" class="img" />
                                         <span style="font-size:14px;font-weight:700;color:#000"> 供货推荐:</span>
                                         <div style="padding:5px 0px 0px 20px">
-                                          <div v-for="(item,index) in row.purchaseProductPriceList   " :key="index">
-                                            <span>供应商名称 </span>
+                                          <div v-for="(item,index) in row.topPriceList   " :key="index">
+                                            <span>{{item.supplierName}} </span>
                                             <span style="margin-left:40px"> CNY {{moneyFormat(item.price,2)}} </span>
                                           </div>
                                         </div>
@@ -287,7 +287,7 @@
                                     </div>
                                   </template>
                                   <template #reference>
-                                    <div style="margin-left:10px;cursor:pointer;position:relative;top:4px">
+                                    <div style="margin-left:10px;cursor:pointer;position:relative;top:4px" v-if="$index==0">
                                       <el-icon :size="20" color="#85c1a6">
                                         <WarningFilled />
                                       </el-icon>
@@ -920,6 +920,15 @@ const changeProductPrice = () => {
                   price: x.price,
                 }));
 
+              iele.purchaseProductMountingsList[0].topPriceList = resOne[
+                key
+              ].topPriceList
+                .map((x) => ({
+                  supplierName: x.supplierName,
+                  price: x.price,
+                }))
+                .filter((y, index) => index < 3);
+
               iele.purchaseProductMountingsList[0].supplyPurchaseProductPriceList =
                 resOne[key].supplyPurchaseProductList
                   .map((x) => ({