Ver Fonte

fix(发货单): 修复退货单不需要校验数量

liujt há 7 meses atrás
pai
commit
f9d6b38e3a

+ 1 - 0
src/views/saleManage/saleOrder/invoice/components/addInvoiceDialog.vue

@@ -183,6 +183,7 @@
           :typeIds="saleOrderValue.typedetailIds"
           :typeIds="saleOrderValue.typedetailIds"
           :isTotalCount="isTotalCount"
           :isTotalCount="isTotalCount"
           :oldProductList="oldProductList"
           :oldProductList="oldProductList"
+          :sourceType="form.sourceType"
         ></inventoryTable>
         ></inventoryTable>
       </el-tab-pane>
       </el-tab-pane>
       <el-tab-pane label="托盘清单" name="second">
       <el-tab-pane label="托盘清单" name="second">

+ 6 - 2
src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

@@ -410,7 +410,10 @@
         type: Array,
         type: Array,
         default: () => []
         default: () => []
       },
       },
-
+      sourceType: {
+        type: [String, Number],
+        default: ''
+      },
       isTotalCount: {
       isTotalCount: {
         default: 0
         default: 0
       }
       }
@@ -1476,7 +1479,8 @@
               is = true;
               is = true;
             }
             }
           });
           });
-          if (is) {
+          // 退货单退货不校验数量,实物赔偿无法计算
+          if (is && this.sourceType != 3) {
             this.$message.warning('发货数量大于订单总数量');
             this.$message.warning('发货数量大于订单总数量');
             if (this.isTotalCount == 1) {
             if (this.isTotalCount == 1) {
               callback(false);
               callback(false);