cz vor 1 Jahr
Ursprung
Commit
127d478814
1 geänderte Dateien mit 13 neuen und 5 gelöschten Zeilen
  1. 13 5
      src/views/EHSD/saleContract/priceSheetEHSD/index.vue

+ 13 - 5
src/views/EHSD/saleContract/priceSheetEHSD/index.vue

@@ -64,7 +64,8 @@
               <el-button type="danger" text v-debounce @click="handleRepeal(item,'/saleQuotation/delete')">删除</el-button>
             </span>
             <span>
-              <el-button type="primary" text v-debounce v-if="item.quotationStatus==2" @click="handleBack(item)">退回</el-button>
+              <el-button type="primary" text v-debounce v-if="item.quotationStatus==2 && !item.extQuotationId"
+                         @click="handleBack(item)">退回</el-button>
               <el-button type="primary" text v-debounce v-if="item.status == 30 && item.quotationStatus==2"
                          @click="getDtl(item, false,true)">变更</el-button>
               <el-button type="primary" text v-debounce v-if="item.quotationStatus==2 && !item.extQuotationId"
@@ -874,6 +875,7 @@ const formConfig = computed(() => {
       itemWidth: 50,
       fn: (val) => {
         companyId.value = val;
+        formData.data.quotationProductList = [];
       },
     },
     {
@@ -1421,7 +1423,11 @@ const totalAmount = () => {
         ).toFixed(2);
         // 单个产品的一个物料的钱
         productPrice += Number(
-          parseFloat(Number(jele.quantity) * Number(jele.priceCopy)).toFixed(2)
+          parseFloat(
+            Number(jele.quantity) *
+              Number(jele.priceCopy) *
+              Number(jele.coefficient)
+          ).toFixed(2)
         );
       }
       iele.price = parseFloat(productPrice).toFixed(2);
@@ -1460,9 +1466,11 @@ const publicTotalAmount = (val) => {
           ).toFixed(2);
           // 单个产品的一个物料的钱
           productPrice += Number(
-            parseFloat(Number(jele.quantity) * Number(jele.priceCopy)).toFixed(
-              2
-            )
+            parseFloat(
+              Number(jele.quantity) *
+                Number(jele.priceCopy) *
+                Number(jele.coefficient)
+            ).toFixed(2)
           );
         }
         iele.price = parseFloat(productPrice).toFixed(2);