From d6c624bbcfc713ff6f2eeb8b76a044df06e7d908 Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期五, 25 三月 2022 16:58:31 +0800 Subject: [PATCH] nothing --- WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_BarCodeBillList.html | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 50 insertions(+), 1 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 0da8181..05b92d9 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 @@ -10,6 +10,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> + <style type="text/css"> + .layui-input-block { + width: 200px; + } + </style> </head> <body> @@ -121,6 +126,7 @@ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>--> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鏉$爜鎵撳嵃</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button> </div> @@ -224,9 +230,12 @@ , { 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 } + , { field: '鍐呭绠辨爣璇�', title: '鍐呭绠辨爣璇�', width: 100, sort: true } + , { field: '褰撳墠鎵樻暟', title: '褰撳墠鎵樻暟', width: 100, sort: true } + , { field: '鎬绘墭鏁�', title: '鎬绘墭鏁�', width: 100, sort: true } , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 120, sort: true } , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 80, sort: true } - , { field: '鏁伴噺', title: '鏁伴噺', width: 100, sort: true } , { field: '鎵规', title: '鎵规', width: 100 } , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 180 } , { field: '鏃ユ湡', title: '鐢熸垚鏃ユ湡', width: 150, sort: true } @@ -323,6 +332,46 @@ // }); //} break; + case 'btn-Delete': + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length == 0) { + layer.msg('璇烽�夋嫨瑕佸垹闄ょ殑鏁版嵁锛�'); + return; + } + var InterID = ""; + for (i = 0; i < data.length; i++) { + InterID += data[i].HItemID.toString() + ","; + } + InterID = InterID.substring(0, InterID.length - 1) + //閫昏緫鍒犻櫎鏂规硶 + layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { + $.ajax({ + type: "GET", + url: GetWEBURL() + "/DeltetBarCodeBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": InterID, "HUserName": sessionStorage["HUserName"] }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + //淇敼涓哄姛鍚庡埛鏂扮晫闈� + window.location.reload(); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + }) + + + break; case 'btn-exit': parent.layui.admin.events.closeThisTabs(); break; -- Gitblit v1.9.1