From 28f707af0c4a5dd0ba7a4ba650a66c9930871696 Mon Sep 17 00:00:00 2001
From: black-goat-me <226547893@qq.com>
Date: 星期一, 29 五月 2023 09:22:31 +0800
Subject: [PATCH] 1

---
 WebTM/views/领料发货/销售出库/Kf_SellOutBill_Fast.html |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_Fast.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_Fast.html"
index be8cf66..3e67a13 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_Fast.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_Fast.html"
@@ -1316,7 +1316,11 @@
                 var HScanStyle = $("#HScanStyle").val();
 
                 if (HDeleteFlag == "*") {
-                    if (sBarCode != "") {
+                    if (sBarCode == "") {
+                        layer.msg("璇锋壂鎻忚鍒犻櫎鐨勬潯鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        return;
+                    }
+                    else {
                         $('#HBarCode').val("");
                     }
                     $.ajax(
@@ -1334,6 +1338,36 @@
                                     table.reload('wl-table', {
                                         where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                     });
+
+                                    //鍒锋柊鍒楄〃淇℃伅
+                                    $.ajax({
+                                        url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
+                                        type: "GET",
+                                        data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: sBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
+                                        success: function (result) {
+                                            if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                                                listOption.data = result.data.list;
+                                                table.render(listOption);
+                                                listOption1.data = result.data.list2;
+                                                table.render(listOption1);
+
+                                                //console.log(result.data.list2);
+                                                var count = 0;
+                                                var count1 = 0;
+                                                for (var i = 0; i < result.data.list.length; i++) {
+                                                    count += result.data.list[i].HQty;
+                                                    count1 += result.data.list[i].HPieceQty;
+                                                }
+                                                $("#HSumQtys").val(count);
+                                                $("#HBarCodeQtys").val(count1);
+                                                //return;
+                                            }
+                                            else {
+                                                layer.msg(result.Message);
+                                            }
+                                            layer.closeAll("loading");
+                                        }
+                                    });
                                 }
                                 else {
                                     playSound();

--
Gitblit v1.9.1