From a03addb5fbf4da382275f3c9dff8dbc916c4e021 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 17 九月 2025 09:52:01 +0800
Subject: [PATCH] 其他出库、其他入库:子表件数可以输入为0 乔一客户物料即时库存报表:把米数和件数的合计加上去 (按生产订单)客户订单:过滤条件改为模糊查询

---
 WebTM/views/生产管理/生产工位/Gy_SourceWorkStationSet.html |   49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 48 insertions(+), 1 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\267\245\344\275\215/Gy_SourceWorkStationSet.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\267\245\344\275\215/Gy_SourceWorkStationSet.html"
index 847c6a7..687e9d1 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\267\245\344\275\215/Gy_SourceWorkStationSet.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\267\245\344\275\215/Gy_SourceWorkStationSet.html"
@@ -100,7 +100,7 @@
                                 </div>
                             </div>
                         </div>
-                        <div class="layui-row">
+                        <div class="layui-row" id="IsHide">
                             <div class="layui-inline">
                                 <label class="layui-form-label" style="width: 85px;">鍒涘缓浜�</label>
                                 <div class="layui-input-inline">
@@ -179,6 +179,10 @@
                 //缂栬緫鐘舵�佹椂锛屾牴鎹唴鐮侊紝鑾峰彇淇℃伅骞跺啓鍏ョ晫闈�
                 RoadBillMain(linterid);
                 $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);//淇濆瓨鍚庡姞杞芥暟鎹椂淇濆瓨鎸夐挳绂佺敤
+            }
+            else if (OperationType == 5) {//璁剧疆
+                document.getElementById("IsHide").style.display = "none";//闅愯棌鍒涘缓浜猴紝鍒涘缓鏃堕棿瀛楁
+                RoadBillToSop(linterid);
             }
             else {
                 layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
@@ -297,6 +301,49 @@
             }
             //#endregion
 
+            //#region 浣滀笟鎸囧涔﹁缃姞杞芥暟鎹�
+            function RoadBillToSop(linterid) {
+                //鏌ヨ妫�楠屾柟妗堝崟鏄惁瀛樺湪
+                var ajaxLoad = layer.load();
+                sWhere = " and HSourceID = " + linterid
+                $.ajax({
+                    url: GetWEBURL() + "Gy_SourceWorkStationSet_ToSop/Soplist",
+                    type: "GET",
+                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
+                    success: function (result) {
+                        if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝     
+                            if (result.data.length < 1) {
+                                return;
+                            };
+                            var data = result.data[0];
+                            form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
+                                "HItemID": data.HItemID
+                                , "HMacAddr": data.MAC鍙�
+                                , "HSourceID": data.HSourceID
+                                , "HSourceName": data.鐢熶骇璧勬簮鍚嶇О
+                                , "HWorkStationID": data.HWorkStationID
+                                , "HWorkStationName": data.宸ヤ綅鍚嶇О
+                                , "HProcID": data.HProcID
+                                , "HProcName": data.宸ュ簭鍚嶇О
+                                , "HType": data.鍖归厤绫诲瀷
+                                , "HVideo": data.鏄惁榛樿鎾斁瑙嗛 == "鏄�" ? 1 : 0
+                                , "HRemark": data.澶囨敞
+                                , "HCreateDate": Format(data.鍒涘缓鏃ユ湡, "yyyy-MM-dd")
+                                , "HCreator": data.鍒涘缓浜�
+                            });
+                            layer.close(ajaxLoad);
+                        } else {
+                            layer.close(ajaxLoad);
+                            layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                        }
+                    }, error: function () {
+                        layer.close(ajaxLoad);
+                        layer.alert("鍙戠敓閿欒!", { icon: 5 });
+                    }
+                });
+            }
+            //#endregion
+
             //#region 閫夋嫨鐢熶骇璧勬簮鏂规硶
             function get_checkHSource() {
                 layer.open({

--
Gitblit v1.9.1