From 292e2a1444cf753321cd629c4d296842a167e426 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期六, 06 五月 2023 15:05:37 +0800
Subject: [PATCH] 界面上快捷方式工艺路线列表模块改成工艺路线查询模块。 物料列表增加字段显示这个物料有没有工艺路线。 工艺路线新增的时候选择物料的弹框增加物料代码对的过滤条件。 工艺路线新增点击上一行下一行,点了之后选中的工序就不选中了。上下移动的时候,流水号不变 物料列表能不能根据物料流水号从大到小排序。 物料新增模块的备注字段名改成白坯要求,流转卡新增模块的备注2改成白坯要求 物料分类批量刷新。物料代码开头 WB代表纬编  QF代表经编  YM代表羊毛 生产订单新增:生产车间隐藏 物料新增主计量单位默认是米 工艺路线复制之后,选择物料,工艺路线名称不会自己改变。(改成物料代码) "生产订单列表排序 日期 单据号 产品物料代码 客户 业务员 门幅 规格 生产数量  计量单位 是否下推生成流转卡 制单人  制单日期 " 生产订单列表。字段框能不能自适应,自己根据数据内容调节大小 日期 单据号 产品物料 代码 客户 业务员 门幅 克重  规格 生产数量  计量单位  制单人  制单日期

---
 WebTM/views/生产管理/生产任务单/Sc_ICMOBillList.html |   92 ++++++++++++++++++++++++++++------------------
 1 files changed, 56 insertions(+), 36 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html"
index b430a76..13f9a97 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillList.html"
@@ -56,9 +56,9 @@
                                         <div class="layui-input-block" style="margin-top:10px">
                                             <select name="HSF" id="HSF" lay-verify="required" lay-search class="layui-input">
                                                 <!--  <option value="鍏ㄩ儴">鍏ㄩ儴</option>-->
-                                                <option value="鍏ㄩ儴">鍏ㄩ儴</option>
+                                                <option value="鍏ㄩ儴" selected="selected">鍏ㄩ儴</option>
                                                 <option value="宸蹭笅鎺�">宸蹭笅鎺�</option>
-                                                <option value="鏈笅鎺�" selected="selected">鏈笅鎺�</option>
+                                                <option value="鏈笅鎺�" >鏈笅鎺�</option>
                                             </select>
                                         </div>
                                     </div>
@@ -175,7 +175,7 @@
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill"><i class="layui-icon layui-icon-form"></i>瀹℃牳</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck"><i class="layui-icon layui-icon-form"></i>鍙嶅鏍�</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Excel"><i class="layui-icon layui-icon-file-b"></i>Excel瀵煎叆</button>
+                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_Excel"><i class="layui-icon layui-icon-file-b"></i>Excel瀵煎叆</button>-->
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="get-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="get-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
                             </div>
@@ -426,67 +426,71 @@
                     , toolbar: '#toolbarDemo'
                     , height: 'full-50'
                     , page: true
-                    //, cellMinWidth: 90
+                    , cellMinWidth: 'auto'
                     , totalRow: true
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
                     , cols: [[
                         { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' }
-                        , { field: 'hmainid', title: 'hmainid', sort: true, width: 165, hide: true }
-                        , { field: 'HEntryID', title: 'HEntryID', sort: true, width: 165, hide: true }
+                        , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
+                        , { field: 'HEntryID', title: 'HEntryID', sort: true, hide: true }
                         , { field: '鏃ユ湡', title: '鏃ユ湡' }
-                        , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
-                        , { field: '浜у搧浠g爜', title: '浜у搧浠g爜', width: 160 }
-                        , { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О', width: 160 }
-                        , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 215 }
-                        , { field: '鐘舵��', title: '鐘舵��', sort: true, width: 170 }
-                        , { field: '鍞竴ID', title: '鍞竴ID', sort: true, width: 170 }
-                        , { field: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', title: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', sort: true, width: 170 }
-                        , { field: '鐢熶骇杞﹂棿浠g爜', title: '鐢熶骇杞﹂棿浠g爜', width: 115 }
-                        , { field: '鐢熶骇杞﹂棿', title: '鐢熶骇杞﹂棿', width: 115 }
-                        , { field: '鐢熶骇浠诲姟鍗曟暟閲�', title: '鐢熶骇璁㈠崟鏁伴噺', width: 115, totalRow: true }
-                        , { field: '鍖呰鏍囪瘑浠g爜', title: '鍖呰鏍囪瘑浠g爜', width: 115 }
-                        , { field: '鍖呰鏍囪瘑', title: '鍖呰鏍囪瘑', width: 115 }
-                        , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 115 }
+                        , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
+                        , { field: '浜у搧浠g爜', title: '浜у搧浠g爜' }
+                        , { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О'}
+                        , { field: '瀹㈡埛', title: '瀹㈡埛' }
+                        , { field: '涓氬姟鍛�', title: '涓氬姟鍛�' }
+                        , { field: 'HWidth', title: '闂ㄥ箙' }
+                        , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿' }
+                        , { field: '鐢熶骇浠诲姟鍗曟暟閲�', title: '鐢熶骇璁㈠崟鏁伴噺', totalRow: true }
                         , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅' }
+                        , { field: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', title: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', sort: true }
+                        , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
+                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡' }
+                        , { field: '鐘舵��', title: '鐘舵��', sort: true }
+                        //, { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 115 }
+                        , { field: 'HAuxQty', title: '杈呮暟閲�' }
+                        , { field: 'HAuxUnitName', title: '杈呭姪鍗曚綅' }
                         , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�' }
                         , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡' }
                         , { field: '鏈�杩熷紑宸ユ棩鏈�', title: '鏈�杩熷紑宸ユ棩鏈�' }
                         , { field: '鏈�杩熷畬宸ユ棩鏈�', title: '鏈�杩熷畬宸ユ棩鏈�' }
-                        , { field: '榻愬鏁伴噺', title: '榻愬鏁伴噺' }
-                        , { field: '璁″垝鐢熶骇鏁伴噺', title: '璁″垝鐢熶骇鏁伴噺' }
-                        , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺' }
-                        , { field: '鏈叧鑱旀暟閲�', title: '鏈叧鑱旀暟閲�' }
-                        , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
-                        , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
-                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡' }
                         , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
                         , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡' }
                         , { field: '淇敼浜�', title: '淇敼浜�' }
                         , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
                         , { field: '鍏抽棴浜�', title: '鍏抽棴浜�' }
                         , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
+                        , { field: '鍞竴ID', title: '鍞竴ID', sort: true, }
+                        , { field: '鐢熶骇杞﹂棿浠g爜', title: '鐢熶骇杞﹂棿浠g爜'  }
+                        , { field: '鐢熶骇杞﹂棿', title: '鐢熶骇杞﹂棿',  }
+                        , { field: '鍖呰鏍囪瘑浠g爜', title: '鍖呰鏍囪瘑浠g爜' }
+                        , { field: '鍖呰鏍囪瘑', title: '鍖呰鏍囪瘑',  }
+                        , { field: '榻愬鏁伴噺', title: '榻愬鏁伴噺' }
+                        , { field: '璁″垝鐢熶骇鏁伴噺', title: '璁″垝鐢熶骇鏁伴噺' }
+                        , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺' }
+                        , { field: '鏈叧鑱旀暟閲�', title: '鏈叧鑱旀暟閲�' }
+                        , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
                         //, { field: '浣滃簾浜�', title: '浣滃簾浜�', hide: true }
                         //, { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', hide: true }
                         //, { field: '閿�鍞鍗曟棩鏈�', title: '閿�鍞鍗曟棩鏈�', sort: true, width: 120, hide: true }
-                       
-                        , { field: '閿�鍞鍗曟棩鏈�', title: '閿�鍞鍗曟棩鏈�', sort: true, width: 200 }
-                        , { field: '閿�鍞鍗曠紪鍙�', title: '閿�鍞鍗曠紪鍙�', sort: true, width: 200 }
-                        , { field: '閿�鍞墿鏂欏悕绉�', title: '閿�鍞墿鏂欏悕绉�', sort: true, width: 200 }
-                        , { field: '鍖呰鏂瑰紡', title: '鍖呰鏂瑰紡', sort: true, width: 150 }
-                        , { field: '閿�鍞暟閲�', title: '閿�鍞暟閲�', sort: true, width: 150 }
-                        , { field: '閿�鍞鍗曡仈绯讳汉', title: '閿�鍞鍗曡仈绯讳汉', sort: true, width: 150 }
-                        , { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', sort: true, width: 150 }
+                        , { field: '閿�鍞鍗曟棩鏈�', title: '閿�鍞鍗曟棩鏈�', sort: true  }
+                        , { field: '閿�鍞鍗曠紪鍙�', title: '閿�鍞鍗曠紪鍙�', sort: true }
+                        , { field: '閿�鍞墿鏂欏悕绉�', title: '閿�鍞墿鏂欏悕绉�', sort: true }
+                        , { field: '鍖呰鏂瑰紡', title: '鍖呰鏂瑰紡', sort: true }
+                        , { field: '閿�鍞暟閲�', title: '閿�鍞暟閲�', sort: true }
+                        , { field: '閿�鍞鍗曡仈绯讳汉', title: '閿�鍞鍗曡仈绯讳汉', sort: true }
+                        , { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', sort: true }
                         //, { field: '璁㈠崟璺熻釜鍙�', title: '璁㈠崟璺熻釜鍙�', sort: true, width: 120, hide: true }
                         //, { field: 'HDeptID', title: 'HDeptID', hide: true}
                         //, { field: 'HMaterID', title: 'HMaterID', hide: true }
                         //, { field: 'hunitid', title: 'hunitid', hide: true }
                         //, { field: 'hempid', title: 'hempid' , hide: true}
                         //, { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 100, hide: true}
-                        //, { field: '涓氬姟鍛�', title: '涓氬姟鍛�', hide: true}
+                       
                         //, { field: 'hcusid', title: 'hcusid', hide: true }
                         //, { field: '瀹㈡埛浠g爜', title: '瀹㈡埛浠g爜', hide: true }
-                        //, { field: '瀹㈡埛', title: '瀹㈡埛', hide: true }
+                      
                         //, { field: 'HCenterID', title: 'HCenterID' , hide: true}
                         //, { field: '宸ヤ綔涓績浠g爜', title: '宸ヤ綔涓績浠g爜', hide: true}
                         //, { field: '宸ヤ綔涓績', title: '宸ヤ綔涓績', hide: true}
@@ -504,6 +508,22 @@
                         //, { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', hide: true}
                         //, { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�', hide: true}
                     ]]
+                    , done: function (res, curr, count) {
+                        var $data = $('div[lay-id="mainTable"]').find('.layui-table-body').find('tr').eq(0).find('td');
+                        var $head = $('div[lay-id="mainTable"]').find('.layui-table-header').find('tr').eq(0).find('th');
+                        var $total = $('div[lay-id="mainTable"]').find('.layui-table-total').find('tr').eq(0).find('td');
+                        for (var i = 0; i < $data.length; i++) {
+                            var l1 = $data.eq(i).find('div').width();
+                            var l2 = $head.eq(i).find('div').width();
+                            if (l1 > l2) {
+                                $head.eq(i).find('div').width(l1);
+                                $total.eq(i).find('div').width(l1);
+                            } else {
+                                $data.eq(i).find('div').width(l2);
+                                $total.eq(i).find('div').width(l2);
+                            }
+                        }
+                    }
                 };
             }
 

--
Gitblit v1.9.1