From e7949c7f0b4f66802003721d2e6c46797973d91b Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期五, 29 三月 2024 09:20:15 +0800
Subject: [PATCH] 初始化库位和站点

---
 src/main/webapp/static/js/orderTable.js |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/orderTable.js b/src/main/webapp/static/js/orderTable.js
index 5d4c8b1..450fd13 100644
--- a/src/main/webapp/static/js/orderTable.js
+++ b/src/main/webapp/static/js/orderTable.js
@@ -1,13 +1,14 @@
 var insTb;
 layui.config({
     base: baseUrl + "/static/layui/lay/modules/"  // 閰嶇疆妯″潡鎵�鍦ㄧ殑鐩綍
-}).use(['table','laydate', 'form',  'admin'], function() {
+}).use(['table','laydate', 'form',  'admin', 'tableX'], function() {
     var table = layui.table;
     var $ = layui.jquery;
     var layer = layui.layer;
     var layDate = layui.laydate;
     var form = layui.form;
     var admin = layui.admin;
+    var tableX = layui.tableX;
 
     /****************************************** 宸﹁竟琛� *************************************************/
 
@@ -38,12 +39,27 @@
         //     '</p>'].join(''),
         defaultToolbar: [],
         cols: [[
-            // {type: 'numbers', title: '#'},
+            {type: 'checkbox'},
             {field: 'orderTime', title: '鏃ユ湡'},
             {field: 'orderNo', title: '鍗曟嵁缂栧彿', align: 'center'}
         ]],
         done: function (res, curr, count) {
             $('#dictTable+.layui-table-view .layui-table-body tbody>tr:first').trigger('click');
+
+            // 缁戝畾榧犳爣鍙抽敭
+            tableX.bindCtxMenu('originTable', function (d) {
+                return [
+                    {
+                        icon: 'layui-icon layui-icon-ok',
+                        name: '涓�閿嚭搴�',
+                        click: function (d) {
+                            autoOut(d.id);
+                        }
+                    }
+                ]
+
+            })
+
         }
     });
 

--
Gitblit v1.9.1