From 4eff3a8e16e844fd1d842a6b790ecb9e1878d4b1 Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期一, 30 五月 2022 13:34:58 +0800
Subject: [PATCH] 缓存列表样式修改

---
 WebTM/views/验收入库/产品入库/Kf_ProductInBill_Fast.html |   61 ++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
index 4bfdfd3..63071e1 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
@@ -127,7 +127,7 @@
                                             <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                         </div>
                                         <div class="layui-col-xs3">
-                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
+                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" >...</button>
                                         </div>
                                     </div>
                                 </div>
@@ -686,8 +686,29 @@
             });
 
             //缂栬緫
+            //form.on('submit(cmdModify)', function () {//缂栬緫
+            //    var sSubStr = table.cache['wl-table'];
+            //    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+            //    layer.open({
+            //        type: 2
+            //        , area: ['100%', '100%']
+            //        , title: '鏄庣粏鍒楄〃'
+            //        , shade: 0.6 //閬僵閫忔槑搴�
+            //        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+            //        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+            //        , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
+            //        , resize: false
+            //        , cancel: function () {
+            //            //$(".layui-btn").removeClass("layui-btn-disabled");
+            //        }
+            //    })
+            //    // }
+            //});
+
             form.on('submit(cmdModify)', function () {//缂栬緫
-                var sSubStr = table.cache['wl-table'];
+                //var sSubStr = table.cache['wl-table'];
+                var checkStatus = table.checkStatus('wl-table')
+                    , data = checkStatus.data;
                 //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
                 layer.open({
                     type: 2
@@ -696,10 +717,42 @@
                     , shade: 0.6 //閬僵閫忔槑搴�
                     , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                     , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
+                    , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes']
                     , resize: false
                     , cancel: function () {
                         //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                    , end: function () {
+                        //鍒锋柊椤甸潰,
+                        //location.reload();
+                        var sInterID = $("#HInterID").val()
+                        table.render({
+                            elem: '#wl-table'
+                            //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
+                            , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
+                            , toolbar: '#toolbarDemo'
+                            , defaultToolbar: []
+                            , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
+                            , cols: [[
+                                { type: 'radio' }
+                                , { field: 'HQty', title: '鏁伴噺', width: 150 }
+                                , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+                                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+                                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+                                , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
+                                , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                                , { field: 'HBatchNo', title: '鎵规', width: 150 }
+                                , { field: 'HBarcodeQtys', title: '鏉$爜鏁伴噺', width: 150 }
+                            ]]
+                            // , data: [linterid]
+                            // , page: true
+                            , height: 500
+                            , done: function () {
+                                layer.closeAll("loading");
+                            }
+                        })
                     }
                 })
                 // }
@@ -1204,7 +1257,7 @@
                                         }
                                         if (result.data.hSourceBillTypeField == "3710") {
                                             $("#HBillType").empty();
-                                            $("#HBillType").val("3711");
+                                            $("#HBillType").val("3710");
                                             var optionHtml = '';
                                             optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鐢熶骇璁㈠崟' + "</option>";
                                             $("#HBillType").append(optionHtml);

--
Gitblit v1.9.1