From b7e08df5a07b3fa832a46ecc31983e16f2bccc8c Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 24 七月 2023 14:56:01 +0800
Subject: [PATCH] # 出库作业,和库存明细管理 排序

---
 src/main/webapp/views/matOut/waitMatoutQuery.html |   38 +++++++++++++-------------------------
 1 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/src/main/webapp/views/matOut/waitMatoutQuery.html b/src/main/webapp/views/matOut/waitMatoutQuery.html
index 8095354..d0c0cd4 100644
--- a/src/main/webapp/views/matOut/waitMatoutQuery.html
+++ b/src/main/webapp/views/matOut/waitMatoutQuery.html
@@ -95,28 +95,32 @@
     var pageCurr;
     function getCol() {
         var cols = [
-            {type: 'checkbox'}
-            ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+            {type: 'checkbox', fixed: 'left'}
+            ,{field: 'qty', title: '閫氱煡鍑哄簱閲�', fixed: 'left', width:100}
+            ,{field: 'outQty', title: '宸插嚭搴撻噺', fixed: 'left', width:90}
         ];
         cols.push.apply(cols, detlCols);
-        cols.push(
-            {field: 'memo', align: 'center',title: '澶囨敞'}
+        cols.push({field: 'billNo', title:'鍗曟嵁缂栧彿', align: 'center'}
+            ,{field: 'seqNo', title:'搴忓彿', align: 'center', width:80}
             ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
             ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'})
         return cols;
     }
 
-    layui.use(['table','laydate', 'form'], function() {
+    layui.config({
+        base: baseUrl + "/static/layui/lay/modules/"
+    }).use(['table','laydate', 'form', 'tableMerge'], function() {
         var table = layui.table;
         var $ = layui.jquery;
         var layer = layui.layer;
         var layDate = layui.laydate;
         var form = layui.form;
+        var tableMerge = layui.tableMerge;
         // 鏁版嵁娓叉煋
         locDetlTableIns = table.render({
             elem: '#stockOut',
             headers: {token: localStorage.getItem('token')},
-            url: baseUrl+'/stock/out/list/auth',
+            url: baseUrl+'/waitMatout/list/auth',
             page: true,
             limit: 10,
             even: true,
@@ -142,9 +146,9 @@
                 if (res.code === 403) {
                     top.location.href = baseUrl+"/";
                 }
-                pageCurr=curr;
-                $('.layui-form-checkbox').css("pointer-events", "none");
-                $('td[data-field="0').css("cursor", "pointer")
+                // pageCurr=curr;
+                // $('.layui-form-checkbox').css("pointer-events", "none");
+                // $('td[data-field="0').css("cursor", "pointer")
             }
         });
 
@@ -203,20 +207,6 @@
         });
     })
 
-    var b = true;
-    $(function(){
-        $(document.body).on('click','td[data-field="0"]',function(){
-            var locNo = $(this).next().children("div").html();
-            if (b) {
-                b = false;
-                $("tr td[data-field=locNo\\$] div:contains("+ locNo +")").parent().prev().children().children("div").click();
-                setTimeout(function () {
-                    b = true;
-                }, 200)
-            }
-        });
-    })
-
     function tableReload(child) {
         var searchData = {};
         $.each($('#search-box [name]').serializeArray(), function() {
@@ -232,8 +222,6 @@
                     top.location.href = baseUrl+"/";
                 }
                 pageCurr=curr;
-                $('.layui-form-checkbox').css("pointer-events", "none");
-                $('td[data-field="0').css("cursor", "pointer")
             }
         });
     }

--
Gitblit v1.9.1