From 7ae052d141e69fe9e19392172fc2960134a03232 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 01 十二月 2025 15:54:52 +0800
Subject: [PATCH] 1.采购入库单列表、直接调拨单列表、其他出库单列表、生产入库列表、销售出库单列表:layui中开发 查看包装明细

---
 WebTM/views/WMS扫码模块/采购入库/Kf_POStockInBackBill_PDA.html |   35 +++++++++++++++++++++++++++++------
 1 files changed, 29 insertions(+), 6 deletions(-)

diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBill_PDA.html"
index 5371a6e..30f3d5a 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBill_PDA.html"
@@ -96,6 +96,7 @@
                                                 <select name="HMainSourceBillType" id="HMainSourceBillType">
                                                     <option value="1105">閫�鏂欓�氱煡鍗�</option>
                                                     <option value="1102">閲囪喘璁㈠崟</option>
+                                                    <option value="1201">閲囪喘鍏ュ簱鍗�</option>
                                                     <option value="-1">鎵嬪伐褰曞叆</option>
                                                 </select>
                                             </div>
@@ -618,6 +619,17 @@
                             $("#HSupName").attr("disabled", "disabled");
                             $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
                         }
+                        else if (d.data[0].HSourceBillType == "1201") {
+                            $("#HMainSourceBillType").empty();
+                            var optionHtml = '';
+                            optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '閲囪喘鍏ュ簱鍗�' + "</option>";
+                            $("#HMainSourceBillType").append(optionHtml);
+                            layui.form.render('select');
+                            $("#HMainSourceBillType").attr("disabled", "disabled");
+                            //渚涘簲鍟嗕笉鍙紪杈�
+                            $("#HSupName").attr("disabled", "disabled");
+                            $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+                        }
                         else {
                             $("#HMainSourceBillType").empty();
                             var optionHtml = '';
@@ -682,8 +694,8 @@
                             if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
                                 $("#HWHID").val(result.data[0].HItemID);
                                 $("#HWHName").val(result.data[0].HName);
-                                $("#HStockPlaceID").val("0");
-                                $("#HStockPlaceName").val("");
+                                $("#HStockPlaceID").val(result.data[0].HSPID);
+                                $("#HStockPlaceName").val(result.data[0].HSPName);
                                 if (result.data[0].HSPFlag == 0) {
                                     $("#HStockPlaceName").attr("disabled", "disabled");
                                     $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
@@ -1290,6 +1302,9 @@
                 else if (HSourceBillType == '1102') {
                     HSourceTitle = "閲囪喘璁㈠崟";
                 }
+                else if (HSourceBillType == '1201') {
+                    HSourceTitle = "閲囪喘鍏ュ簱鍗�";
+                }
 
                 layer.open({
                     type: 2
@@ -1505,8 +1520,8 @@
                                 if (result.data.hBarTypeField == '浠撳簱鏉$爜') {
                                     $("#HWHName").val(result.data.hWhNameField);
                                     $("#HWHID").val(result.data.hWhIDField);
-                                    $("#HStockPlaceName").val("");
-                                    $("#HStockPlaceID").val("0");
+                                    $("#HStockPlaceName").val(result.data.hSPNameField);
+                                    $("#HStockPlaceID").val(result.data.hSPIDField);
                                     if (result.data.hSPFlagField == 0) {
                                         $("#HStockPlaceName").attr("disabled", "disabled");
                                         $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
@@ -1552,6 +1567,14 @@
                                         $("#HMainSourceBillType").empty();
                                         var optionHtml = '';
                                         optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '閲囪喘璁㈠崟' + "</option>";
+                                        $("#HMainSourceBillType").append(optionHtml);
+                                        layui.form.render('select');
+                                        $("#HMainSourceBillType").attr("disabled", "disabled");
+                                    }
+                                    else if (result.data.hSourceBillTypeField == "1201") {
+                                        $("#HMainSourceBillType").empty();
+                                        var optionHtml = '';
+                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '閲囪喘鍏ュ簱鍗�' + "</option>";
                                         $("#HMainSourceBillType").append(optionHtml);
                                         layui.form.render('select');
                                         $("#HMainSourceBillType").attr("disabled", "disabled");
@@ -1751,8 +1774,8 @@
             if (obj.length > 0) {
                 $("#HWHName").val(obj[0].HName);
                 $("#HWHID").val(obj[0].HItemID);
-                $("#HStockPlaceName").val("");
-                $("#HStockPlaceID").val("0");
+                $("#HStockPlaceName").val(obj[0].HSPName);
+                $("#HStockPlaceID").val(obj[0].HSPID);
                 if (obj[0].HSPFlag == 0) {
                     $("#HStockPlaceName").attr("disabled", "disabled");
                     $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤

--
Gitblit v1.9.1