From d1175c57d14ee9927073d7e5575e8bedfd299a6a Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期三, 27 七月 2022 08:48:07 +0800
Subject: [PATCH] 工艺路线导入增加自动转工序

---
 WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html |   68 ++++++++++++++++++++++++---------
 1 files changed, 49 insertions(+), 19 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/Kf_MoveStockBill_FastList.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/Kf_MoveStockBill_FastList.html"
index 4d934a2..99231a2 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/Kf_MoveStockBill_FastList.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/Kf_MoveStockBill_FastList.html"
@@ -323,28 +323,58 @@
             
         });
         //鏌ヨ
+        //form.on('submit(cmdQuery)', function () {
+        //    var HBillNo = $("#HBillNo").val();
+        //    var HSourceBillNo = $("#HSourceBillNo").val();
+        //    //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+        //    $.ajax({
+        //        url: GetWEBURL() + '/Gy_Mould/list1',
+        //        type: "GET",
+        //        data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
+        //        success: function (data1) {
+        //            if (data1.count == 1) {
+        //                option.data = data1.data;
+        //                table.render(option);
+        //                layer.close(index);
+        //            } else {
+        //                layer.close(index);
+        //                layer.alert(data1.code + data1.Message, { icon: 5 });
+        //            }
+        //        }, error: function () {
+        //            layer.close(index);
+        //            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+        //        }
+        //    });
+        //});
         form.on('submit(cmdQuery)', function () {
             var HBillNo = $("#HBillNo").val();
-            var HSourceBillNo = $("#HSourceBillNo").val();
-            //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
-            $.ajax({
-                url: GetWEBURL() + '/Gy_Mould/list1',
-                type: "GET",
-                data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
-                success: function (data1) {
-                    if (data1.count == 1) {
-                        option.data = data1.data;
-                        table.render(option);
-                        layer.close(index);
-                    } else {
-                        layer.close(index);
-                        layer.alert(data1.code + data1.Message, { icon: 5 });
-                    }
-                }, error: function () {
-                    layer.close(index);
-                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+            var HSourceBillNo = $("#HSourceBillNo").val();;
+
+
+            table.render({
+                elem: '#sy-table'
+                , url: GetWEBURL() + '/ProductInBillList/list1'
+                , toolbar: '#toolbarDemo'
+                , defaultToolbar: []
+                , where: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo }
+                , cols: [[
+                    { type: 'radio' }
+                    , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
+                    , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 150 }
+                    , { field: 'HMaker', title: '鍒跺崟浜�', width: 120 }
+                    , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 150 }
+                    , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+                    , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                    , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+                    , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                    , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                    , { field: 'HOrgID', title: '缁勭粐', width: 120 }
+                ]]
+                , height: 500
+                , done: function () {
+                    layer.closeAll("loading");
                 }
-            });
+            })
         });
        
         

--
Gitblit v1.9.1