فهرست منبع

采购合同pdfbug更改

cz 1 سال پیش
والد
کامیت
f1ff67df34
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      src/components/PDF/purchasePDFOneNew.vue

+ 6 - 1
src/components/PDF/purchasePDFOneNew.vue

@@ -241,7 +241,7 @@
           </td>
         </tr>
         <template
-          v-for="item in pdfData.ehsdPurchaseProductList"
+          v-for="item in pdfData.ehsdPurchaseProductListOne"
           :key="item.id"
         >
           <tr>
@@ -290,6 +290,7 @@ const handlePrintPdf = (row) => {
   loading.value = true;
   proxy.post("/ehsdPurchase/detail", { id: row.id }).then((res) => {
     pdfData.value = res;
+    console.log(res, "adad");
     // 拿去多公司配置的logo图
     if (pdfData.value.buyCorporationId) {
       proxy
@@ -306,6 +307,10 @@ const handlePrintPdf = (row) => {
         });
     }
     loading.value = false;
+    //复制产品信息
+    pdfData.value.ehsdPurchaseProductListOne = proxy.deepClone(
+      pdfData.value.ehsdPurchaseProductList
+    );
     // 拿取产品图
     let arr = [];
     for (let i = 0; i < pdfData.value.ehsdPurchaseProductList.length; i++) {