From 841c8675a4fbf9fdcabf5cdc10390cb2c8e65e8f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 19 十二月 2025 14:18:47 +0800
Subject: [PATCH] 1.海川开心-材料入库出库单价价格字段复原

---
 src/views/inventoryManagement/receiptManagement/components/formDiaProduct.vue |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/views/inventoryManagement/receiptManagement/components/formDiaProduct.vue b/src/views/inventoryManagement/receiptManagement/components/formDiaProduct.vue
index 3efb818..6048e18 100644
--- a/src/views/inventoryManagement/receiptManagement/components/formDiaProduct.vue
+++ b/src/views/inventoryManagement/receiptManagement/components/formDiaProduct.vue
@@ -79,8 +79,7 @@
 import { ref, reactive, toRefs, getCurrentInstance } from 'vue'
 import useUserStore from '@/store/modules/user'
 import {
-  addStockInCustom,
-  updateStockInCustom,
+	addStockInCustom, updateProduct
 } from "@/api/inventoryManagement/stockIn.js";
 
 const userStore = useUserStore()
@@ -199,10 +198,6 @@
         proxy.$modal.msgError(`绗�${i + 1}琛屼骇鍝佹暟鎹湭濉啓瀹屾暣锛堜骇鍝佸ぇ绫汇�佽鏍煎瀷鍙枫�佸崟浣嶄负蹇呭~锛塦)
         return
       }
-      if (!product.itemType) {
-        proxy.$modal.msgError(`绗�${i + 1}琛岃閫夋嫨鐗╁搧绫诲瀷`)
-        return
-      }
       if (!product.inboundDate) {
         proxy.$modal.msgError(`绗�${i + 1}琛岃閫夋嫨鍏ュ簱鏃ユ湡`)
         return
@@ -226,12 +221,11 @@
       taxRate: Number(product.taxRate || 0),
       taxExclusiveTotalPrice: Number(product.taxExclusiveTotalPrice || 0),
 			unitPrice: Number(product.unitPrice || 0),
-			totalPrice: Number(product.totalPrice || 0),
     }));
     loading.value = true
     if (operationType.value === 'edit') {
       const editPayload = payloadList[0]
-      await updateStockInCustom(editPayload)
+      await updateProduct(editPayload)
     } else {
       await addStockInCustom(payloadList)
     }
@@ -294,7 +288,6 @@
       inboundDate: row?.inboundDate ?? row?.createTime ?? '',
       taxRate: Number(row?.taxRate ?? 0),
       unitPrice: Number(row?.unitPrice ?? 0),
-      totalPrice: Number(row?.totalPrice ?? 0),
       taxExclusiveTotalPrice: Number(row?.taxExclusiveTotalPrice ?? 0),
     }]
   }

--
Gitblit v1.9.3