From 7de7862e8feaaefdf5e9492867db12013a88e9fc Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 29 五月 2026 15:07:04 +0800
Subject: [PATCH] 销售台账审核反审核功能

---
 src/views/salesManagement/salesLedger/index.vue |  231 ++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 177 insertions(+), 54 deletions(-)

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index 3914dd9..f7c5c6e 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -105,6 +105,10 @@
                                        @confirm="handleProcessFlowSelectConfirm" />
         <el-space wrap>
           <el-button type="primary"
+                     @click="handleAudit">瀹℃牳</el-button>
+          <el-button type="primary"
+                     @click="handleReverseAudit">鍙嶅</el-button>
+          <el-button type="primary"
                      @click="handleSalesStock">鍏ュ簱</el-button>
           <el-button type="primary"
                      @click="openForm('add')">鏂板鍙拌处</el-button>
@@ -255,7 +259,7 @@
                                align="center">
                 <template #default="scope">
                   <el-tag v-if="scope.row.productStockStatus == 1"
-                  type="warning">閮ㄥ垎鍏ュ簱</el-tag>
+                          type="warning">閮ㄥ垎鍏ュ簱</el-tag>
                   <el-tag v-else-if="scope.row.productStockStatus == 2"
                           type="success">宸插叆搴�</el-tag>
                   <el-tag v-else-if="scope.row.productStockStatus == 0"
@@ -381,6 +385,18 @@
                     type="info">-</el-tag>
           </template>
         </el-table-column>
+        <el-table-column label="瀹℃牳鐘舵��"
+                         width="120"
+                         align="center">
+          <template #default="scope">
+            <el-tag v-if="Number(scope.row.reviewStatus) === 0"
+                    type="warning">寰呭鏍�</el-tag>
+            <el-tag v-else-if="Number(scope.row.reviewStatus) === 1"
+                    type="success">宸插鏍�</el-tag>
+            <el-tag v-else
+                    type="info">寰呭鏍�</el-tag>
+          </template>
+        </el-table-column>
         <el-table-column label="鍏ュ簱鐘舵��"
                          width="120"
                          align="center">
@@ -433,7 +449,7 @@
             <el-button link
                        type="primary"
                        @click="openProcessFlowSelect(scope.row)"
-                       :disabled="!scope.row.isEdit">宸ヨ壓璺嚎</el-button>
+                       :disabled="!scope.row.isEdit || Number(scope.row.reviewStatus) === 1">宸ヨ壓璺嚎</el-button>
             <el-button link
                        type="primary"
                        @click="downLoadFile(scope.row)">闄勪欢</el-button>
@@ -491,7 +507,7 @@
               <el-select v-model="form.salesman"
                          placeholder="璇烽�夋嫨"
                          clearable
-                         :disabled="operationType === 'view'">
+                         :disabled="operationType === 'view' || Number(form.reviewStatus) === 1">
                 <el-option v-for="item in userList"
                            :key="item.nickName"
                            :label="item.nickName"
@@ -508,7 +524,7 @@
                          filterable
                          placeholder="璇烽�夋嫨"
                          clearable
-                         :disabled="operationType === 'view'">
+                         :disabled="operationType === 'view' || Number(form.reviewStatus) === 1">
                 <el-option v-for="item in customerOption"
                            :key="item.id"
                            :label="item.customerName"
@@ -524,7 +540,7 @@
               <el-input v-model="form.projectName"
                         placeholder="璇疯緭鍏�"
                         clearable
-                        :disabled="operationType === 'view'" />
+                        :disabled="operationType === 'view' || Number(form.reviewStatus) === 1" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -539,7 +555,7 @@
                               type="date"
                               placeholder="璇烽�夋嫨"
                               clearable
-                              :disabled="operationType === 'view'" />
+                              :disabled="operationType === 'view' || Number(form.reviewStatus) === 1" />
             </el-form-item>
           </el-col>
           <el-col :span="12">
@@ -551,7 +567,8 @@
                               format="YYYY-MM-DD"
                               type="date"
                               placeholder="璇烽�夋嫨"
-                              clearable />
+                              clearable
+                              :disabled="operationType === 'view' || Number(form.reviewStatus) === 1" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -565,7 +582,8 @@
                          :reserve-keyword="false"
                          placeholder="璇烽�夋嫨"
                          clearable
-                         @change="changs">
+                         @change="changs"
+                         :disabled="operationType === 'view' || Number(form.reviewStatus) === 1">
                 <el-option v-for="item in userList"
                            :key="item.userId"
                            :label="item.nickName"
@@ -582,7 +600,8 @@
                               format="YYYY-MM-DD"
                               type="date"
                               placeholder="璇烽�夋嫨"
-                              clearable />
+                              clearable
+                              :disabled="operationType === 'view' || Number(form.reviewStatus) === 1" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -591,13 +610,14 @@
                         prop="entryDate">
             <el-button v-if="operationType !== 'view'"
                        type="primary"
-                       :disabled="hasEditingProductRow()"
+                       :disabled="hasEditingProductRow() || Number(form.reviewStatus) === 1"
                        @click="addProductInline">
               娣诲姞
             </el-button>
             <el-button v-if="operationType !== 'view'"
                        plain
                        type="danger"
+                       :disabled="Number(form.reviewStatus) === 1"
                        @click="deleteProduct">鍒犻櫎</el-button>
           </el-form-item>
         </el-row>
@@ -629,7 +649,8 @@
                               :render-after-expand="false"
                               style="width: 100%"
                               :filter-node-method="filterProductCategoryNode"
-                              @change="(val) => handleInlineProductCategoryChange(scope.row, val)" />
+                              @change="(val) => handleInlineProductCategoryChange(scope.row, val)"
+                              :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.productCategory ?? "" }}</span>
             </template>
           </el-table-column>
@@ -643,7 +664,8 @@
                          clearable
                          filterable
                          style="width: 100%"
-                         @change="(val) => handleInlineProductModelChange(scope.row, val)">
+                         @change="(val) => handleInlineProductModelChange(scope.row, val)"
+                         :disabled="Number(form.reviewStatus) === 1">
                 <el-option v-for="item in modelOptions"
                            :key="item.id"
                            :label="item.model"
@@ -664,7 +686,8 @@
                                :precision="2"
                                style="width: 100%"
                                placeholder="璇疯緭鍏�"
-                               clearable />
+                               clearable
+                               :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.thickness ?? "" }}</span>
             </template>
           </el-table-column>
@@ -677,7 +700,8 @@
                         v-model="scope.row.floorCode"
                         placeholder="璇疯緭鍏�"
                         clearable
-                        style="width: 100%" />
+                        style="width: 100%"
+                        :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.floorCode ?? "" }}</span>
             </template>
           </el-table-column>
@@ -712,7 +736,8 @@
                                placeholder="璇疯緭鍏�"
                                clearable
                                @change="() => handleInlineSizeChange(scope.row)"
-                               @input="() => handleInlineSizeChange(scope.row)" />
+                               @input="() => handleInlineSizeChange(scope.row)"
+                               :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.width ?? "" }}</span>
             </template>
           </el-table-column>
@@ -730,7 +755,8 @@
                                placeholder="璇疯緭鍏�"
                                clearable
                                @change="() => handleInlineSizeChange(scope.row)"
-                               @input="() => handleInlineSizeChange(scope.row)" />
+                               @input="() => handleInlineSizeChange(scope.row)"
+                               :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.height ?? "" }}</span>
             </template>
           </el-table-column>
@@ -748,7 +774,8 @@
                                placeholder="璇疯緭鍏�"
                                clearable
                                @change="() => handleInlineQuantityChange(scope.row)"
-                               @input="() => handleInlineQuantityChange(scope.row)" />
+                               @input="() => handleInlineQuantityChange(scope.row)"
+                               :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.quantity ?? "" }}</span>
             </template>
           </el-table-column>
@@ -765,7 +792,8 @@
                                style="width: 100%"
                                placeholder="璇疯緭鍏�"
                                clearable
-                               @change="() => handleInlineSettleAreaChange(scope.row)" />
+                               @change="() => handleInlineSettleAreaChange(scope.row)"
+                               :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.settlePieceArea ? Number(scope.row.settlePieceArea).toFixed(4) : "" }}</span>
             </template>
           </el-table-column>
@@ -780,7 +808,8 @@
                                :step="1"
                                :precision="4"
                                style="width: 100%"
-                               placeholder="鑷姩璁$畻" />
+                               placeholder="鑷姩璁$畻"
+                               :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.actualTotalArea ? Number(scope.row.actualTotalArea).toFixed(4) : "" }}</span>
             </template>
           </el-table-column>
@@ -793,7 +822,8 @@
                          placeholder="璇烽�夋嫨"
                          clearable
                          style="width: 100%"
-                         @change="() => handleInlineTaxRateChange(scope.row)">
+                         @change="() => handleInlineTaxRateChange(scope.row)"
+                         :disabled="Number(form.reviewStatus) === 1">
                 <el-option label="1"
                            value="1" />
                 <el-option label="3"
@@ -825,10 +855,11 @@
                         v-model="scope.row.processRequirement"
                         placeholder="璇疯緭鍏�"
                         clearable
-                        style="width: 100%" />
+                        style="width: 100%"
+                        :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.processRequirement ?? "" }}</span>
             </template>
-          </el-table-column>     
+          </el-table-column>
           <el-table-column label="鍙戠エ绫诲瀷"
                            prop="invoiceType"
                            min-width="120">
@@ -837,7 +868,8 @@
                          v-model="scope.row.invoiceType"
                          placeholder="璇烽�夋嫨"
                          clearable
-                         style="width: 100%">
+                         style="width: 100%"
+                         :disabled="Number(form.reviewStatus) === 1">
                 <el-option label="澧炴櫘绁�"
                            value="澧炴櫘绁�" />
                 <el-option label="澧炰笓绁�"
@@ -855,7 +887,8 @@
                         v-model="scope.row.remark"
                         placeholder="璇疯緭鍏�"
                         clearable
-                        style="width: 100%" />
+                        style="width: 100%"
+                        :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.remark ?? "" }}</span>
             </template>
           </el-table-column>
@@ -867,7 +900,8 @@
                         v-model="scope.row.heavyBox"
                         placeholder="璇疯緭鍏�"
                         clearable
-                        style="width: 100%" />
+                        style="width: 100%"
+                        :disabled="Number(form.reviewStatus) === 1" />
               <span v-else>{{ scope.row.heavyBox ?? "" }}</span>
             </template>
           </el-table-column>
@@ -978,7 +1012,7 @@
                 <el-button link
                            type="primary"
                            size="small"
-                           :disabled="isProductShipped(scope.row) || hasEditingProductRow()"
+                           :disabled="isProductShipped(scope.row) || Number(form.reviewStatus) === 1"
                            @click="copyProductInline(scope.row, scope.$index)">
                   澶嶅埗鏂板缓
                 </el-button>
@@ -1003,7 +1037,7 @@
                     <el-button type="primary"
                                plain
                                size="small"
-                               :disabled="isProductShipped(scope.row)"
+                               :disabled="isProductShipped(scope.row) || Number(form.reviewStatus) === 1"
                                @click="startAddOtherAmountForRow(scope.row)">
                       鏂板
                     </el-button>
@@ -1016,7 +1050,7 @@
                                clearable
                                placeholder="璇烽�夋嫨棰濆鍔犲伐椤圭洰"
                                style="width: 100%;"
-                               :disabled="isProductShipped(scope.row)">
+                               :disabled="isProductShipped(scope.row) || Number(form.reviewStatus) === 1">
                       <el-option v-for="item in otherAmountSelectOptions"
                                  :key="item.id"
                                  :label="item.processName"
@@ -1024,13 +1058,13 @@
                     </el-select>
                     <div style="display:flex; justify-content:flex-end; gap: 8px;">
                       <el-button size="small"
-                                 :disabled="isProductShipped(scope.row)"
+                                 :disabled="isProductShipped(scope.row) || Number(form.reviewStatus) === 1"
                                  @click="scope.row.__inlineOtherAmountAdding = false; scope.row.__inlineOtherAmountAddId = null">
                         鍙栨秷
                       </el-button>
                       <el-button type="primary"
                                  size="small"
-                                 :disabled="isProductShipped(scope.row) || scope.row.__inlineOtherAmountAddId === null || scope.row.__inlineOtherAmountAddId === undefined || scope.row.__inlineOtherAmountAddId === ''"
+                                 :disabled="isProductShipped(scope.row) || Number(form.reviewStatus) === 1 || scope.row.__inlineOtherAmountAddId === null || scope.row.__inlineOtherAmountAddId === undefined || scope.row.__inlineOtherAmountAddId === ''"
                                  @click="confirmAddOtherAmountForRow(scope.row)">
                         纭娣诲姞
                       </el-button>
@@ -1051,12 +1085,12 @@
                                        :precision="0"
                                        style="width: 120px;"
                                        placeholder="鏁伴噺"
-                                       :disabled="operationType === 'view' || isProductShipped(scope.row)"
+                                       :disabled="operationType === 'view' || isProductShipped(scope.row) || Number(form.reviewStatus) === 1"
                                        @change="handleOtherAmountQuantityChange(scope.row)" />
                       <el-button type="danger"
                                  link
                                  size="small"
-                                 :disabled="isProductShipped(scope.row)"
+                                 :disabled="isProductShipped(scope.row) || Number(form.reviewStatus) === 1"
                                  @click="removeOtherAmountAtForRow(scope.row, idx)">
                         鍒犻櫎
                       </el-button>
@@ -1080,7 +1114,7 @@
                         clearable
                         type="textarea"
                         :rows="2"
-                        :disabled="operationType === 'view'" />
+                        :disabled="operationType === 'view' || Number(form.reviewStatus) === 1" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -1093,7 +1127,7 @@
                         clearable
                         type="textarea"
                         :rows="2"
-                        :disabled="operationType === 'view'" />
+                        :disabled="operationType === 'view' || Number(form.reviewStatus) === 1" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -1941,9 +1975,14 @@
             const ctx = canvas.getContext("2d");
             canvas.width = Math.max(QR_SIZE + horizontalPad * 2, 280);
             ctx.font = `${fontSize}px "Microsoft YaHei", "PingFang SC", sans-serif`;
-            const lines = wrapLedgerQrTextLines(ctx, label, canvas.width - horizontalPad * 2);
+            const lines = wrapLedgerQrTextLines(
+              ctx,
+              label,
+              canvas.width - horizontalPad * 2
+            );
             const textBlockHeight = lines.length * lineHeight;
-            canvas.height = padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
+            canvas.height =
+              padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
 
             ctx.fillStyle = "#ffffff";
             ctx.fillRect(0, 0, canvas.width, canvas.height);
@@ -2011,6 +2050,7 @@
       entryDateEnd: undefined,
       deliveryStatus: undefined, // 鍙戣揣鐘舵�侊細1鏈彂璐� 2瀹℃壒涓� 3瀹℃壒涓嶉�氳繃 4瀹℃壒閫氳繃 5宸插彂璐� 6閮ㄥ垎鍙戣揣
       stockStatus: undefined, // 鍏ュ簱鐘舵�侊細0鏈叆搴� 1閮ㄥ垎鍏ュ簱 2宸插叆搴�
+      reviewStatus: undefined, // 瀹℃牳鐘舵�侊細0寰呭鏍� 1宸插鏍� 2宸插弽瀹�
     },
     form: {
       salesContractNo: "",
@@ -2022,6 +2062,8 @@
       maintenanceTime: "",
       productData: [],
       executionDate: "",
+      reviewStatus: undefined,
+      stockStatus: undefined,
     },
     rules: {
       salesman: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
@@ -2219,7 +2261,9 @@
     copied.productModelId = row.productModelId ?? null;
     copied.specificationModel = row.specificationModel ?? "";
     copied.thickness =
-      row.thickness !== null && row.thickness !== undefined && row.thickness !== ""
+      row.thickness !== null &&
+      row.thickness !== undefined &&
+      row.thickness !== ""
         ? Number(row.thickness)
         : null;
     copied.floorCode = row?.floorCode ?? row?.floor_code ?? "";
@@ -2354,10 +2398,6 @@
     }
     if (row.actualTotalArea <= 0) {
       proxy.$modal.msgWarning("闈㈢Н蹇呴』澶т簬0");
-      return false;
-    }
-    if (row.taxInclusiveUnitPrice <= 0) {
-      proxy.$modal.msgWarning("鍚◣鍗曚环蹇呴』澶т簬0");
       return false;
     }
     if (!row.productModelId) {
@@ -2956,6 +2996,67 @@
     expandedRowKeys.value = [];
     getList();
   };
+
+  /** 瀹℃牳鎸夐挳鎿嶄綔 */
+  const handleAudit = async () => {
+    if (selectedRows.value.length === 0) {
+      proxy.$modal.msgWarning("璇烽�夋嫨瑕佸鏍哥殑鏁版嵁");
+      return;
+    }
+    const canNotAudit = selectedRows.value.filter(
+      row => Number(row.reviewStatus) !== 0
+    );
+    if (canNotAudit.length > 0) {
+      proxy.$modal.msgWarning("閫変腑鐨勬暟鎹腑鍖呭惈闈炲緟瀹℃牳椤癸紝璇烽噸鏂伴�夋嫨");
+      return;
+    }
+    try {
+      await ElMessageBox.confirm("鏄惁纭瀹℃牳閫変腑鐨勯攢鍞彴璐︼紵", "鎻愮ず", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning",
+      });
+      for (const row of selectedRows.value) {
+        await addOrUpdateSalesLedger({ ...row, reviewStatus: 1 });
+      }
+      proxy.$modal.msgSuccess("瀹℃牳鎴愬姛");
+      getList();
+    } catch (error) {
+      console.log(error);
+    }
+  };
+
+  /** 鍙嶅鎸夐挳鎿嶄綔 */
+  const handleReverseAudit = async () => {
+    if (selectedRows.value.length === 0) {
+      proxy.$modal.msgWarning("璇烽�夋嫨瑕佸弽瀹$殑鏁版嵁");
+      return;
+    }
+    const canNotReverse = selectedRows.value.filter(
+      row => Number(row.reviewStatus) !== 1
+    );
+    if (canNotReverse.length > 0) {
+      proxy.$modal.msgWarning("閫変腑鐨勬暟鎹腑鍖呭惈闈炲凡瀹℃牳椤癸紝璇烽噸鏂伴�夋嫨");
+      return;
+    }
+    try {
+      await ElMessageBox.confirm("鏄惁纭鍙嶅閫変腑鐨勯攢鍞彴璐︼紵", "鎻愮ず", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning",
+      });
+
+      for (const row of selectedRows.value) {
+        await addOrUpdateSalesLedger({ ...row, reviewStatus: 2 });
+      }
+
+      proxy.$modal.msgSuccess("鍙嶅鎴愬姛");
+      getList();
+    } catch (error) {
+      console.log(error);
+    }
+  };
+
   const paginationChange = obj => {
     page.current = obj.page;
     page.size = obj.limit;
@@ -2965,7 +3066,7 @@
     tableLoading.value = true;
     const { entryDate, ...rest } = searchForm;
     // 灏嗚寖鍥存棩鏈熷瓧娈典紶閫掔粰鍚庣
-    const params = { ...rest, ...page };
+    const params = { ...rest, ...page, reviewStatusList: [0, 1] };
     // 绉婚櫎褰曞叆鏃ユ湡鐨勯粯璁ゅ�艰缃紝鍙繚鐣欒寖鍥存棩鏈熷瓧娈�
     delete params.entryDate;
     // 鏌ヨ瀹㈡埛鍚嶇О涓庢柊澧炰繚鎸佷竴鑷达細鍏堥�� customerId锛屽啀鏄犲皠涓� customerName 鏌ヨ
@@ -2983,15 +3084,13 @@
         delete params.customerName;
       }
     }
-    const widthValue =
-      params.width != null ? String(params.width).trim() : "";
+    const widthValue = params.width != null ? String(params.width).trim() : "";
     if (widthValue) {
       params.width = widthValue;
     } else {
       delete params.width;
     }
-    const heightValue =
-      params.height != null ? String(params.height).trim() : "";
+    const heightValue = params.height != null ? String(params.height).trim() : "";
     if (heightValue) {
       params.height = heightValue;
     } else {
@@ -3065,7 +3164,9 @@
       const res = await productList({ salesLedgerId: id, type: 1 });
       stockProductList.value = [];
       stockProductList.value =
-        res.data.filter(item => item.productStockStatus == 0 || item.productStockStatus == 1) || [];
+        res.data.filter(
+          item => item.productStockStatus == 0 || item.productStockStatus == 1
+        ) || [];
     } catch (e) {
       proxy?.$modal?.msgError?.("鑾峰彇浜у搧鎴栧鎵逛汉澶辫触");
     } finally {
@@ -3096,9 +3197,16 @@
 
     proxy?.$modal?.loading?.("姝e湪鍏ュ簱锛岃绋嶅��...");
     try {
-      const approveUserIds = stockApproverNodes.value.map(node => node.userId).join(",");
+      const approveUserIds = stockApproverNodes.value
+        .map(node => node.userId)
+        .join(",");
       const approveUserName = stockApproverNodes.value
-        .map(node => stockApproverOptions.value.find(item => String(item.userId) === String(node.userId))?.userName)
+        .map(
+          node =>
+            stockApproverOptions.value.find(
+              item => String(item.userId) === String(node.userId)
+            )?.userName
+        )
         .filter(Boolean)
         .join(",");
       await salesStock({
@@ -3656,6 +3764,8 @@
         }
         form.value.tempFileIds = tempFileIds;
         form.value.type = 1;
+        form.value.reviewStatus = 0; // 榛樿瀹℃牳鐘舵�佷负寰呭鏍�
+        form.value.stockStatus = 0; // 榛樿鍏ュ簱鐘舵�佷负鏈叆搴�
         const submitPayload = { ...form.value };
         delete submitPayload.paymentMethod;
         addOrUpdateSalesLedger(submitPayload).then(res => {
@@ -3919,7 +4029,11 @@
       const templateUrl = HISTORY_IMPORT_TEMPLATE_URL_MAP[command];
       const fileName = HISTORY_IMPORT_TEMPLATE_FILE_NAME_MAP[command];
       if (templateUrl) {
-        proxy.download(templateUrl, {}, fileName || "閿�鍞彂璐у巻鍙叉暟鎹鍏ユā鏉�.xlsx");
+        proxy.download(
+          templateUrl,
+          {},
+          fileName || "閿�鍞彂璐у巻鍙叉暟鎹鍏ユā鏉�.xlsx"
+        );
         return;
       }
     }
@@ -3981,6 +4095,15 @@
       return;
     }
     const ids = selectedRows.value.map(item => item.id);
+
+    // 妫�鏌ユ槸鍚︽湁宸插鏍哥殑鍙拌处
+    const audited = selectedRows.value.filter(
+      row => Number(row.reviewStatus) === 1
+    );
+    if (audited.length > 0) {
+      proxy.$modal.msgWarning("閫変腑鐨勬暟鎹腑鍖呭惈宸插鏍搁」锛屼笉鑳藉垹闄�");
+      return;
+    }
 
     // 妫�鏌ユ槸鍚︽湁宸茶繘琛屽彂璐ф垨鍙戣揣瀹屾垚鐨勯攢鍞鍗曪紝鑻ユ湁鍒欎笉鍏佽鍒犻櫎
     const cannotDeleteNames = [];
@@ -4099,7 +4222,8 @@
         const processCardData = res?.data ?? {};
         // 琛ラ綈浜岀淮鐮佹墍闇�鐨勫彴璐︽爣璇嗭紙鍚庣鏁版嵁鏈夋椂涓嶅甫 id锛�
         if (processCardData && typeof processCardData === "object") {
-          processCardData.salesLedgerId = processCardData.salesLedgerId ?? selectedId;
+          processCardData.salesLedgerId =
+            processCardData.salesLedgerId ?? selectedId;
           processCardData.salesContractNo =
             (processCardData.salesContractNo ?? "").trim() ||
             String(selectedRow?.salesContractNo ?? "").trim();
@@ -4583,8 +4707,7 @@
 
     // 鍏佽锛�1鏈彂璐с��3瀹℃壒涓嶉�氳繃銆�4瀹℃壒閫氳繃銆�6閮ㄥ垎鍙戣揣锛涗笉鍏佽锛�2瀹℃壒涓��5宸插彂璐�
     const statusItem = selectedRows.value[0].deliveryStatus;
-    const ledgerAllowsDelivery = s =>
-      [1, 3, 4, 6].includes(Number(s));
+    const ledgerAllowsDelivery = s => [1, 3, 4, 6].includes(Number(s));
     let isTrue = true;
     selectedRows.value.forEach(row => {
       if (!ledgerAllowsDelivery(row.deliveryStatus)) {
@@ -4811,7 +4934,7 @@
         const run = async () => {
           for (const salesLedgerId of uniqueLedgerIds) {
             await addShippingInfo({
-              scanOutbound:  false,
+              scanOutbound: false,
               salesLedgerId,
               type: deliveryForm.value.type,
               approveUserIds,

--
Gitblit v1.9.3