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_OtherInBill_Fast.html |  107 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 105 insertions(+), 2 deletions(-)

diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_Fast.html"
index ac4557a..0ca01fc 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_Fast.html"
@@ -210,6 +210,9 @@
                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">缂栬緫</button>
                                 </div>
                                 <div class="layui-col-xs3">
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">鍒锋柊</button>
+                                </div>
+                                <div class="layui-col-xs3">
                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button>
                                 </div>
                                 <div class="layui-col-xs3">
@@ -424,6 +427,33 @@
             }
             //
 
+
+            form.on('submit(cmdRefresh)', function () {
+                var sInterID = $("#HInterID").val()
+                table.render({
+                    elem: '#wl-table'
+                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
+                    , toolbar: '#toolbarDemo'
+                    , where: { HBillID: sInterID, HBillType: '1203', 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 }
+                    ]]
+                    , height: 500
+                    , done: function () {
+                        layer.closeAll("loading");
+                    }
+                });
+            });
+
             form.on('submit(HWHID-BT)', function () {//閫夋嫨浠撳簱
                 layer.open({
                     type: 2
@@ -571,8 +601,52 @@
                 //window.close();//鍏抽棴褰撳墠椤�
             })
 
+            //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 checkStatus = table.checkStatus('wl-table')
+            //        , data = checkStatus.data;
+            //    //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?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '& HAuxPropID = ' + data[0].HAuxPropID + '& HMTONo = ' + data[0].HMTONo + '& HSourceInterID = ' + data[0].HSourceInterID + '& HSourceEntryID = ' + data[0].HSourceEntryID + '& HQty = ' + data[0].HQtyMust + '& HBillType = ' + data[0].HBillType + '', '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
@@ -581,10 +655,37 @@
                     , 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: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
+                            , toolbar: '#toolbarDemo'
+                            , where: { HBillID: sInterID, HBillType: '1203', 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 }
+                            ]]
+                            , height: 500
+                            , done: function () {
+                                layer.closeAll("loading");
+                            }
+                        });
                     }
                 })
                 // }
@@ -895,6 +996,8 @@
                                     , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
                                     , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
                                     , { field: 'HBatchNo', title: '鎵规', width: 150 }
+                                    , { field: 'HAuxPropID', title: '杈呭姪灞炴��', width: 150 }
+                                    , { field: 'HMTONo', title: 'MTO鍙�', width: 150 }
                                 ]]
                                 , height: 500
                                 , done: function () {

--
Gitblit v1.9.1