From 617f74eed1202736a339b08ff6553e4a85a669a6 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期日, 02 四月 2023 17:04:58 +0800
Subject: [PATCH] 条码档案批量删除,送货单审核按钮,采购订单列表数据按组织过滤

---
 WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_BarCodeBillList.html |   64 ++++++++++++-------------------
 1 files changed, 25 insertions(+), 39 deletions(-)

diff --git a/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_BarCodeBillList.html b/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_BarCodeBillList.html
index db3bab7..2c1c025 100644
--- a/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_BarCodeBillList.html
+++ b/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_BarCodeBillList.html
@@ -137,7 +137,7 @@
         //CreateReport("Report"); //鎵撳嵃
         //  Report.LoadFromURL("鐗╂枡鏉$爜(涓冭绾稿ぇ)_浜斾簯.grf");
         var _cur_page = 1;
-        var sql = " and 1=1";
+        var sql = "";
 
         var options = document.getElementById('HStatus').children;
         function getUrlVars() {
@@ -218,6 +218,7 @@
                     , { field: '鐘舵��', title: '鐘舵��', width: 100, sort: true/*, fixed: true*/ }
                     , { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿', width: 180, sort: true/*, fixed: true*/ }
                     , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 120, sort: true/*, fixed: true*/ }
+                    , { field: '鏃х墿鏂欑紪鐮�', title: '鏃х墿鏂欑紪鐮�', width: 120, sort: true/*, fixed: true*/ }
                     , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 120, sort: true/*, fixed: true*/ }
                     , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 120, sort: true }
                     , { field: '鏁伴噺', title: '鏁伴噺', width: 100, sort: true }
@@ -237,7 +238,7 @@
                 //, skin: 'row' //琛ㄦ牸椋庢牸
                 // , even: true
                 , page: true //鏄惁鏄剧ず鍒嗛〉
-                , limits: [10, 20, 50, 100]
+                , limits: [10, 20, 50, 100,500,5000,10000]
                 , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
                 //, height: 500
                 , done: function (res, curr, count) {
@@ -283,6 +284,21 @@
                             layer.msg("鑷冲皯閫夋嫨涓�琛岃褰曪紒")
                         }
                         else {
+                            var url = "linteridSession";
+                            $.ajax({
+                                type: "POST",
+                                url: GetWEBURL() + url, //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                                async: true,
+                                data: { "linterid": rows.toString(), "HUserName": sessionStorage["HUserName"] },
+                                dataType: "json",
+                                success: function (data) {
+                                    layer.closeAll("loading");
+                                },
+                                error: function (err) {
+                                    layer.alert("閿欒:" + err, { icon: 5 });
+                                }
+                            });
+                            sessionStorage["linterid"] = rows.toString();
                             layer.open({
                                 type: 2
                                 , area: ['50%', '50%']
@@ -290,37 +306,10 @@
                                 , shade: 0.6 //閬僵閫忔槑搴�
                                 , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
                                 , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../views/BaseSet/SRM_OpenTmpList.html?linterid=' + rows.toString() + '&HBarcode=' + rows2.toString() + '&Type=HBarCodePrint', 'yes']
+                                , content: ['../../views/BaseSet/SRM_OpenTmpList.html?linterid=' + sessionStorage["HUserName"] + '&HBarcode=&Type=SRM_POOrderBillList', 'yes']// 瀹夌憺 type ='SRM_POOrderBillList' 鍘焧ype = 'HBarCodePrint'
                                 , resize: false
-                                //, cancel: function () {
-                                //    $(".layui-btn").removeClass("layui-btn-disabled");
-                                //}
                             })
                         }
-                        //if (OpenTmp != "")
-                        //{
-                        //    window.open("../../views/SRM/HBarPlanPrint.html?linterid=" + rows.toString() + "&Type=HBarCodePrint&OpenTmp=" + OpenTmp.toString());
-                        //    $.ajax(
-                        //    {
-                        //        type: "POST",
-                        //        url: GetWEBURL() + "UpdateBarcodePrintQty", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                        //        async: true,
-                        //        data: { "msg": rows2 },
-                        //        dataType: "json",
-                        //        success: function (data) {
-                        //            //if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                        //            //    layer.msg(data.Message, { icon: 1 });
-                        //            //}
-                        //            //else {
-                        //            //    layer.msg(data.Message, { icon: 5 });
-                        //            //}
-                        //            layer.closeAll("loading");
-                        //        },
-                        //        error: function (err) {
-                        //            f_alert("閿欒:" + err);
-                        //        }
-                        //    });
-                        //}
                         break;
                     case 'btn-Delete':
                         var checkStatus = table.checkStatus('mainTable')
@@ -334,12 +323,15 @@
                             InterID += data[i].HItemID.toString() + ",";
                         }
                         InterID = InterID.substring(0, InterID.length - 1)
+
+                        var oData = JSON.stringify(InterID) + ";" + sessionStorage["HUserName"];
+
                         //閫昏緫鍒犻櫎鏂规硶
                         layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
                             $.ajax({
-                                type: "GET",
+                                type: "POST",
                                 url: GetWEBURL() + "/DeltetBarCodeBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                                data: { "HInterID": InterID, "HUserName": sessionStorage["HUserName"] },
+                                data: { "oData": oData},
                                 success: function (result) {
                                     if (result.count == 1) {
                                         layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -396,7 +388,7 @@
                 });
             };
             form.on('submit(f_Query)', function (data) {//鏌ヨ
-                var sqlWhere = " and 1=1 ";
+                var sqlWhere = "";
                 if ($("#HStatus").val() != "")
                     sqlWhere += " and 鐘舵�� like ^^%" + $("#HStatus").val() + "%^^";
                 if ($("#HBarCode").val() != "")
@@ -429,12 +421,6 @@
                 RoadHBillNo(sqlWhere);
             });
             var $ = layui.$, active = {
-                //f_Query: function () { //鏌ヨ
-                //    var sqlWhere = " and 1=1 ";
-                //    if ($("#HBarCode").val() != "")
-                //        sqlWhere += " and 鏉$爜缂栧彿 like ''%" + $("#HBarCode").val() + "%''";
-                //    RoadHBillNo(sqlWhere);
-                //},
             };
             $('.test-table-reload-btn .layui-btn').on('click', function () {
                 var type = $(this).data('type');

--
Gitblit v1.9.1