From 8a36bbee40f5e1069b15a98b1e64ac9719ee8a46 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期二, 23 四月 2024 17:17:13 +0800
Subject: [PATCH] 1.销售出库单 增加 反写源单 销售订单和发货通知单   超出 关联数量  关闭源单 2.应收单 增加  反写源单 销售出库单 和 销售订单  超出关联数量  关闭源单 3.动态获取源单增加参数 Num 0蓝单   1红单  2全部 4.销售流程的测试并完善功能; 销售订单-》发货通知单-》销售出库单-》应收单 (注意: 源单类型的下拉框 需要 根据数据库 表动态加载, 关联数量 要准确 , 审核 且 未关闭 未行关闭的行 才能下推 ,关联数量超额后,要 反写 关闭 源单 )

---
 WebTM/views/生产管理/生产包装单/Sc_PackUnionBill.html |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\214\205\350\243\205\345\215\225/Sc_PackUnionBill.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\214\205\350\243\205\345\215\225/Sc_PackUnionBill.html"
index 1d84e32..c187c78 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\214\205\350\243\205\345\215\225/Sc_PackUnionBill.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\214\205\350\243\205\345\215\225/Sc_PackUnionBill.html"
@@ -9,6 +9,7 @@
     <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
     <script src="../../../layuiadmin/layui/layui.js"></script>
+    <script src="../../../layuiadmin/soulTable.slim.js"></script>
     <style type="text/css">
         input.layui-input.layui-unselect {
             padding-right: 0;
@@ -97,7 +98,7 @@
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
             index: 'lib/index', //涓诲叆鍙fā鍧�
-        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
             var $ = layui.$
                 , admin = layui.admin
                 , layer = layui.layer
@@ -107,6 +108,7 @@
                 , laypage = layui.laypage
                 , laydate = layui.laydate
                 , util = layui.util
+                , soulTable = layui.soulTable
             //鏌ヨ鏉′欢
             var sWhere = "";
             var resultTableHead = []; //鑾峰彇鍒楄〃澶村瓧娈佃嚜瀹氫箟鍒楁暟缁�
@@ -342,20 +344,28 @@
                 cols_arr[0][0] = { checkbox: true, fixed: true, totalRowText: '鍚堣' };
                 for (var i = 0; i < data.length; i++) {
                     if (data[i].name == 'hmainid') {
-                        cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', hide: true }; //闅愯棌id鍒�
+                        cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, hide: true }; //闅愯棌id鍒�
                     }
                     else {
                         switch (data[i].Type) {
                             //int
+                            //case 'Int32':
+                            //    cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 100 };
+                            //    break;
+                            ////Decimal
+                            //case 'Decimal':
+                            //    cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 };
+                            //    break;
+                            case 'long':
                             case 'Int32':
-                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', width: 100 };
-                                break;
-                            //Decimal
+                            case 'Int64':
+                            case 'double':
                             case 'Decimal':
-                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', width: 200 };
+                                cols_arr[0][i + 1] = {
+                                    field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, totalRow: true };
                                 break;
                             default:
-                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', width: 200 };
+                                cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 };
                         }
                     }
                 }
@@ -379,6 +389,7 @@
                     },
                     done: function (res) {   //杩斿洖鏁版嵁鎵ц鍥炶皟鍑芥暟
                         layer.close(layer.index);    //杩斿洖鏁版嵁鍏抽棴loading
+                        soulTable.render(this);
                     }
                 });
             }

--
Gitblit v1.9.1