From b80934d8bb58f356abcb00a145d0305be519de8c Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期三, 24 十二月 2025 08:47:45 +0800
Subject: [PATCH] 天津双奇点-修改仓储物流相关

---
 src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue |   68 +++++++++++++++++++++------------
 1 files changed, 43 insertions(+), 25 deletions(-)

diff --git a/src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue b/src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue
index 6d2c07b..e956cbc 100644
--- a/src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue
+++ b/src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue
@@ -34,27 +34,32 @@
             </el-upload>
           </template>
         </el-table-column>
-        <el-table-column label="浜у搧澶х被" prop="productCategory" width="200">
+        <el-table-column label="浜у搧鍚嶇О" prop="productCategory" width="200">
           <template #default="scope">
-            <el-input v-model="scope.row.productCategory" placeholder="璇疯緭鍏ヤ骇鍝佸ぇ绫�" />
+            <el-input v-model="scope.row.productCategory" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" />
           </template>
         </el-table-column>
-        <el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" width="200">
+        <el-table-column label="浜у搧楂樺害" prop="specificationModel" width="200">
           <template #default="scope">
-            <el-input v-model="scope.row.specificationModel" placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" />
+            <el-input v-model="scope.row.specificationModel" placeholder="璇疯緭鍏ヤ骇鍝侀珮搴�" />
           </template>
         </el-table-column>
-        <el-table-column label="鍗曚綅" prop="unit" width="100">
+        <el-table-column label="楂樺害鍗曚綅" prop="unit" width="100">
           <template #default="scope">
-            <el-input v-model="scope.row.unit" placeholder="璇疯緭鍏ュ崟浣�" />
+            <el-input v-model="scope.row.unit" placeholder="璇疯緭鍏ラ珮搴﹀崟浣�" />
           </template>
         </el-table-column>
-        <el-table-column label="渚涘簲鍟�" prop="supplierName" width="200">
+        <el-table-column label="绾哥瑙勬牸" prop="cartonSpecifications" width="200">
+          <template #default="scope">
+            <el-input v-model="scope.row.cartonSpecifications" placeholder="璇疯緭鍏ヤ骇鍝侀珮搴�" />
+          </template>
+        </el-table-column>
+        <!-- <el-table-column label="渚涘簲鍟�" prop="supplierName" width="200">
           <template #default="scope">
             <el-input v-model="scope.row.supplierName" placeholder="璇疯緭鍏ヤ緵搴斿晢" />
           </template>
-        </el-table-column>
-        <el-table-column label="鐗╁搧绫诲瀷" prop="itemType" width="150">
+        </el-table-column> -->
+        <!-- <el-table-column label="鐗╁搧绫诲瀷" prop="itemType" width="150">
           <template #default="scope">
             <el-select v-model="scope.row.itemType" filterable allow-create placeholder="璇烽�夋嫨鐗╁搧绫诲瀷" style="width: 100%">
               <el-option
@@ -65,12 +70,22 @@
               />
             </el-select>
           </template>
-        </el-table-column>
-        <el-table-column label="鍏ュ簱鏁伴噺" prop="inboundNum" width="150">
+        </el-table-column> -->
+        <el-table-column label="鍏ュ簱鏁伴噺-浠�" prop="inboundNum" width="150">
           <template #default="scope">
-            <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.inboundNum" @change="() => calculateTotalPrice(scope.row)" />
+            <el-input-number :step="1" :min="0" style="width: 100%" v-model="scope.row.inboundNum" @change="() => calculateTotalPrice(scope.row)" />
           </template>
         </el-table-column>
+        <el-table-column label="姣忎欢鏁伴噺/鏀�" prop="boxNum" width="150">
+          <template #default="scope">
+            <el-input-number :step="1" :min="0" style="width: 100%" v-model="scope.row.boxNum" @change="() => calculateTotalPrice(scope.row)" />
+          </template>
+        </el-table-column>
+        <el-table-column label="鍗曚环(鍏�)/鏀�" prop="taxInclusiveUnitPrice" width="150">
+         <template #default="scope">
+           <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.taxInclusiveUnitPrice" @change="() => calculateTotalPrice(scope.row)" />
+         </template>
+       </el-table-column>
         <el-table-column label="鍏ュ簱鏃ユ湡" prop="inboundDate" width="180">
           <template #default="scope">
             <el-date-picker
@@ -88,11 +103,7 @@
 <!--            <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.quantityStock" @change="() => calculateTotalPrice(scope.row)" />-->
 <!--          </template>-->
 <!--        </el-table-column>-->
-<!--        <el-table-column label="鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" width="150">-->
-<!--          <template #default="scope">-->
-<!--            <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.taxInclusiveUnitPrice" @change="() => calculateTotalPrice(scope.row)" />-->
-<!--          </template>-->
-<!--        </el-table-column>-->
+       
 <!--        <el-table-column -->
 <!--           label="鎬讳环(鍏�)" -->
 <!--           prop="taxInclusiveTotalPrice" -->
@@ -127,10 +138,7 @@
   Authorization: "Bearer " + getToken(),
 });
 
-const imeUrl = ref(import.meta.env.VITE_APP_ENV)
-console.log(import.meta)
 const javaApiUrl = __BASE_API__;
-console.log('Java API 鍦板潃:', javaApiUrl)
 
 const userStore = useUserStore()
 const { proxy } = getCurrentInstance()
@@ -200,6 +208,7 @@
     id: null,
     productCategory: '',
     specificationModel: '',
+    cartonSpecifications:'',
     unit: '',
     supplierName: form.value.supplierName || '',
     itemType: '',
@@ -210,6 +219,7 @@
     taxInclusiveTotalPrice: 0,
     taxRate: null,
     taxExclusiveTotalPrice: 0,
+    boxNum: 0
   });
 };
 
@@ -250,10 +260,10 @@
         proxy.$modal.msgError(`绗�${i + 1}琛屼骇鍝佹暟鎹湭濉啓瀹屾暣锛堜骇鍝佸ぇ绫汇�佽鏍煎瀷鍙枫�佸崟浣嶄负蹇呭~锛塦)
         return
       }
-      if (!product.itemType) {
-        proxy.$modal.msgError(`绗�${i + 1}琛岃閫夋嫨鐗╁搧绫诲瀷`)
-        return
-      }
+      // if (!product.itemType) {
+      //   proxy.$modal.msgError(`绗�${i + 1}琛岃閫夋嫨鐗╁搧绫诲瀷`)
+      //   return
+      // }
       if (!product.inboundDate) {
         proxy.$modal.msgError(`绗�${i + 1}琛岃閫夋嫨鍏ュ簱鏃ユ湡`)
         return
@@ -263,6 +273,12 @@
         proxy.$modal.msgError(`绗�${i + 1}琛屾湰娆″叆搴撴暟閲忛渶澶т簬0`)
         return
       }
+      const boxNum = Number(product?.boxNum ?? 0);
+      if (!Number.isFinite(boxNum) || boxNum <= 0) {
+        proxy.$modal.msgError(`绗�${i + 1}姣忕洅鏁伴噺闇�澶т簬0`)
+        return
+      }
+      
     }
 
     const payloadList = productList.value.map(product => ({
@@ -278,7 +294,9 @@
       taxExclusiveTotalPrice: Number(product.taxExclusiveTotalPrice || 0),
 			taxInclusiveUnitPrice: Number(product.taxInclusiveUnitPrice || 0),
 			taxInclusiveTotalPrice: Number(product.taxInclusiveTotalPrice || 0),
-      url: product.url,
+      boxNum:Number(product.boxNum),
+      cartonSpecifications: product.cartonSpecifications,
+      url: product.url||'/src/assets/logo/logo.png',
     }));
     loading.value = true
     if (operationType.value === 'edit') {

--
Gitblit v1.9.3