From c5d31b89210479468708e0eda65c4cb5074c026e Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期二, 23 二月 2021 21:17:10 +0800
Subject: [PATCH] 新增找货单列表

---
 WebTM/views/仓存管理/仓库调拨/Cc_LookingForReturnBill.html |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForReturnBill.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForReturnBill.html"
index 3462f88..2d41dcf 100644
--- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForReturnBill.html"
+++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForReturnBill.html"
@@ -206,6 +206,13 @@
             $("#HMakerID").val(sessionStorage["Czybm"]);
             $("#HMaker").val(sessionStorage["HUserName"]);
 
+            //鍒ゆ柇鐢ㄦ埛鏄惁缁戝畾鐝粍鍜岀敓浜ц祫婧�
+            if ($("#HGroupID").val() == 0 || $("#HSourceID").val() == 0) {
+                layer.confirm("璇ョ敤鎴锋湭缁戝畾鐝粍鎴栫敓浜ц祫婧愶紒涓嶅厑璁告壘璐э紒", {
+                    icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['纭閫�鍑�']
+                }, function () { window.location.href = "../../index.html"; });
+            }
+
             //鑾峰彇鏈�澶у崟鎹彿 new
             $("#HInterID").val("");
             $("#HBillNo").val("");
@@ -235,7 +242,7 @@
                     , { field: 'HSPName', title: '浠撲綅' }
                     , { field: 'HStatus', title: '鍦ㄥ簱鐘舵��', width: 165 }
                     , { field: 'HWhID', title: '浠撳簱ID', hide: true }
-                    , { field: 'HWhName', title: '浠撳簱' }
+                    , { field: 'HWhName', title: '浠撳簱', width: 130 }
                     , { field: 'HSourceInterID', title: '婧愬崟ID', hide: true }
                     , { field: 'HSourceBillNo', title: '婧愬崟鍙�', width: 110 }
                     , { field: 'HGroupID', title: '鐝粍ID', hide: true }
@@ -275,7 +282,7 @@
                     , { field: 'HMTONo', title: '鎵瑰彿', width: 180 }
                     , { field: 'HStatus', title: '鍦ㄥ簱鐘舵��', width: 165 }
                     , { field: 'HWhID', title: '浠撳簱ID', hide: true }
-                    , { field: 'HWhName', title: '浠撳簱' }
+                    , { field: 'HWhName', title: '浠撳簱', width: 130 }
                     , { field: 'HSPID', title: '浠撲綅ID', hide: true }
                     , { field: 'HSPName', title: '浠撲綅' }
                     , { field: 'HGroupID', title: '鐝粍ID', hide: true }
@@ -564,7 +571,7 @@
                 {
                     //鍒ゆ柇涓婃灦搴撲綅鏄惁涓庢潯鐮佷腑搴撲綅涓�鑷�
                     var tableData = table.cache['bzd-table2'];
-                    if ($("#HWHID").val() != tableData[0].HWhID && $("#HSPID").val() != tableData[0].HSPID) {
+                    if ($("#HWHID").val() != tableData[0].HWhID || $("#HSPID").val() != tableData[0].HSPID) {
                         layer.msg("褰撳墠搴撲綅涓庡疄闄呬笉绗︼紒", { icon: 4, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                         return;
                     }
@@ -627,7 +634,7 @@
                                     layer.msg("璇峰厛鎵疄鐗╂潯鐮侊紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                                     return;
                                 }
-                                if (result.data[0].HWHID != tableData[0].HWhID && result.data[0].HItemID != tableData[0].HSPID) {
+                                if (result.data[0].HWHID != tableData[0].HWhID || result.data[0].HItemID != tableData[0].HSPID) {
                                     layer.msg("姝ゅ簱浣嶄笌瀹為檯涓嶇锛�", { icon: 4, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                                 } else {
                                     $("#HSPName").val(result.data[0].HName);

--
Gitblit v1.9.1