From ebef191888d9d2c2a2e7a7f677189164e4eef0b3 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 05 八月 2025 19:04:33 +0800
Subject: [PATCH] 车间委外接收单列表bug处理
---
WebTM/views/Baseset/基础资料/Sc_ICMOBillListView.html | 160 +++++++++++++++++++++++++++--------------------------
1 files changed, 81 insertions(+), 79 deletions(-)
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ICMOBillListView.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ICMOBillListView.html"
index dd239b6..95fbb7b 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ICMOBillListView.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ICMOBillListView.html"
@@ -28,7 +28,7 @@
</div>
</div>
</div>
- <table class="layui-hide" id="ck-table"></table>
+ <table class="layui-hide" id="mainTable"></table>
<script src="../../../layuiadmin/layui/layui.js"></script>
<script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
@@ -37,94 +37,96 @@
//寮曠敤鐨勫崟鎹強妯″潡锛氬伐搴忔祦杞崱銆�
layui.use(['table', 'form', 'layer'], function () {
var table = layui.table
- , form = layui.form
- , layer = layui.layer;
+ , form = layui.form
+ , layer = layui.layer;
form.on('submit(HQuery)', function () {//閫夋嫨鍗曚綅
- //var sMainStr = JSON.stringify(table.cache['ck-table']);
+ //var sMainStr = JSON.stringify(table.cache['mainTable']);
RoadQuery($('#Value').val());
});
form.on('submit(FH)', function () {//閫夋嫨鍗曚綅
- //var sMainStr = JSON.stringify(table.cache['ck-table']);
- var checkStatus = table.checkStatus('ck-table')
- , data = checkStatus.data;
- //parent.GetICMOBillValue(data[0].hmainid);
+ //var sMainStr = JSON.stringify(table.cache['mainTable']);
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ parent.GetICMOBillValue(data);
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
RoadQuery($('#Value').val());
table.render({
- elem: '#ck-table'
+ elem: '#mainTable'
// , url: '/demo/table/user/'
- , data: []
- , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
- , cols: [[
- { type: 'radio' }
- , { field: 'hmainid', width: 150, title: 'hmainid', hide: true }
- , { field: 'HEntryID', width: 150, title: 'HEntryID', hide: true }
- , { field: 'HEmpID', width: 150, title: 'HEmpID', hide: true }
- , { field: 'HBomID', width: 150, title: 'HBomID', hide: true }
- , { field: 'HRoutingInterID', width: 150, title: 'HRoutingInterID', hide: true }
- , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
- , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
- , { field: 'HUnitID', width: 150, title: 'HUnitID', hide: true }
- , { field: 'HAuxPropID', width: 150, title: 'HAuxPropID', hide: true }
- , { field: 'HDeptID', width: 150, title: 'HDeptID', hide: true }
- , { field: 'HEntryCusID', width: 150, title: 'HEntryCusID', hide: true }
- , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
- , { field: '鏃ユ湡', width: 150, title: '鏃ユ湡' }
- , { field: '鍗曟嵁鍙�', width: 150, title: '鍗曟嵁鍙�' }
- , { field: '璁㈠崟璺熻釜鍙�', width: 150, title: '璁㈠崟璺熻釜鍙�' }
- , { field: '鍗曟嵁绫诲瀷', width: 150, title: '鍗曟嵁绫诲瀷' }
- , { field: '鐘舵��', width: 150, title: '鐘舵��' }
- , { field: '涓氬姟鍛樹唬鐮�', width: 150, title: '涓氬姟鍛樹唬鐮�' }
- , { field: '涓氬姟鍛�', width: 150, title: '涓氬姟鍛�' }
- , { field: 'BOM鍗曠紪鐮�', width: 150, title: 'BOM鍗曠紪鐮�' }
- , { field: '宸ヨ壓璺嚎浠g爜', width: 150, title: '宸ヨ壓璺嚎浠g爜' }
- , { field: '宸ヨ壓璺嚎', width: 150, title: '宸ヨ壓璺嚎' }
- , { field: '榻愬鏁伴噺', width: 150, title: '榻愬鏁伴噺' }
- , { field: '璁″垝鐢熶骇鏁伴噺', width: 150, title: '璁″垝鐢熶骇鏁伴噺' }
- , { field: '琛ㄥご澶囨敞', width: 150, title: '琛ㄥご澶囨敞' }
- , { field: '浜у搧浠g爜', width: 150, title: '浜у搧浠g爜' }
- , { field: '浜у搧鍚嶇О', width: 150, title: '浜у搧鍚嶇О' }
- , { field: '瑙勬牸鍨嬪彿', width: 150, title: '瑙勬牸鍨嬪彿' }
- , { field: '璁¢噺鍗曚綅浠g爜', width: 150, title: '璁¢噺鍗曚綅浠g爜' }
- , { field: '璁¢噺鍗曚綅', width: 150, title: '璁¢噺鍗曚綅' }
- , { field: '杈呭姪灞炴��', width: 150, title: '杈呭姪灞炴��' }
- , { field: '鎵瑰彿', width: 150, title: '鎵瑰彿' }
- , { field: '鐢熶骇浠诲姟鍗曟暟閲�', width: 150, title: '鐢熶骇浠诲姟鍗曟暟閲�' }
- , { field: '鍏ュ簱鏁伴噺', width: 150, title: '鍏ュ簱鏁伴噺' }
- , { field: '鐢熶骇杞﹂棿浠g爜', width: 150, title: '鐢熶骇杞﹂棿浠g爜' }
- , { field: '鐢熶骇杞﹂棿', width: 150, title: '鐢熶骇杞﹂棿' }
- , { field: '瀹㈡埛浠g爜', width: 150, title: '瀹㈡埛浠g爜' }
- , { field: '瀹㈡埛', width: 150, title: '瀹㈡埛' }
- , { field: '瀹㈡埛鍨嬪彿', width: 150, title: '瀹㈡埛鍨嬪彿' }
- , { field: '宸ヤ綔涓績浠g爜', width: 150, title: '宸ヤ綔涓績浠g爜' }
- , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
- , { field: '璁″垝璺熻釜鍙�', width: 150, title: '璁″垝璺熻釜鍙�' }
- , { field: '璁″垝寮�宸ユ棩鏈�', width: 150, title: '璁″垝寮�宸ユ棩鏈�' }
- , { field: '璁″垝瀹屽伐鏃ユ湡', width: 150, title: '璁″垝瀹屽伐鏃ユ湡' }
- , { field: '鏈�杩熷紑宸ユ棩鏈�', width: 150, title: '鏈�杩熷紑宸ユ棩鏈�' }
- , { field: '鏈�杩熷畬宸ユ棩鏈�', width: 150, title: '鏈�杩熷畬宸ユ棩鏈�' }
- , { field: '鍏宠仈鏁伴噺', width: 150, title: '鍏宠仈鏁伴噺' }
- , { field: '婧愬崟鍗曞彿', width: 150, title: '婧愬崟鍗曞彿' }
- , { field: '婧愬崟涓诲唴鐮�', width: 150, title: '婧愬崟涓诲唴鐮�' }
- , { field: '婧愬崟瀛愬唴鐮�', width: 150, title: '婧愬崟瀛愬唴鐮�' }
- , { field: '鏈叧鑱旀暟閲�', width: 150, title: '鏈叧鑱旀暟閲�' }
- , { field: '鍒跺崟浜�', width: 150, title: '鍒跺崟浜�' }
- , { field: '鍒跺崟鏃ユ湡', width: 150, title: '鍒跺崟鏃ユ湡' }
- , { field: '瀹℃牳浜�', width: 150, title: '瀹℃牳浜�' }
- , { field: '瀹℃牳鏃ユ湡', width: 150, title: '瀹℃牳鏃ユ湡' }
- , { field: '淇敼浜�', width: 150, title: '淇敼浜�' }
- , { field: '淇敼鏃ユ湡', width: 150, title: '淇敼鏃ユ湡' }
- , { field: '鍏抽棴浜�', width: 150, title: '鍏抽棴浜�' }
- , { field: '鍏抽棴鏃ユ湡', width: 150, title: '鍏抽棴鏃ユ湡' }
- , { field: '浣滃簾浜�', width: 150, title: '浣滃簾浜�' }
- , { field: '浣滃簾鏃ユ湡', width: 150, title: '浣滃簾鏃ユ湡' }
- , { field: '琛屽叧闂汉', width: 150, title: '琛屽叧闂汉' }
- , { field: '鍏抽棴绫诲瀷', width: 150, title: '鍏抽棴绫诲瀷' }
- ]]
- , page: true
+ , data: []
+ , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'hmainid', width: 150, title: 'hmainid', hide: true }
+ , { field: 'HEntryID', width: 150, title: 'HEntryID', hide: true }
+ , { field: 'HEmpID', width: 150, title: 'HEmpID', hide: true }
+ , { field: 'HBomID', width: 150, title: 'HBomID', hide: true }
+ , { field: 'HRoutingInterID', width: 150, title: 'HRoutingInterID', hide: true }
+ , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
+ , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
+ , { field: 'HUnitID', width: 150, title: 'HUnitID', hide: true }
+ , { field: 'HAuxPropID', width: 150, title: 'HAuxPropID', hide: true }
+ , { field: 'HDeptID', width: 150, title: 'HDeptID', hide: true }
+ , { field: 'HEntryCusID', width: 150, title: 'HEntryCusID', hide: true }
+ , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
+ , { field: '鏃ユ湡', width: 150, title: '鏃ユ湡' }
+ , { field: '鍗曟嵁鍙�', width: 150, title: '鍗曟嵁鍙�' }
+ , { field: '璁㈠崟璺熻釜鍙�', width: 150, title: '璁㈠崟璺熻釜鍙�' }
+ , { field: '鍗曟嵁绫诲瀷', width: 150, title: '鍗曟嵁绫诲瀷' }
+ , { field: '鐘舵��', width: 150, title: '鐘舵��' }
+ , { field: '涓氬姟鍛樹唬鐮�', width: 150, title: '涓氬姟鍛樹唬鐮�' }
+ , { field: '涓氬姟鍛�', width: 150, title: '涓氬姟鍛�' }
+ , { field: 'BOM鍗曠紪鐮�', width: 150, title: 'BOM鍗曠紪鐮�' }
+ , { field: '宸ヨ壓璺嚎浠g爜', width: 150, title: '宸ヨ壓璺嚎浠g爜' }
+ , { field: '宸ヨ壓璺嚎', width: 150, title: '宸ヨ壓璺嚎' }
+ , { field: '榻愬鏁伴噺', width: 150, title: '榻愬鏁伴噺' }
+ , { field: '璁″垝鐢熶骇鏁伴噺', width: 150, title: '璁″垝鐢熶骇鏁伴噺' }
+ , { field: '琛ㄥご澶囨敞', width: 150, title: '琛ㄥご澶囨敞' }
+ , { field: '浜у搧浠g爜', width: 150, title: '浜у搧浠g爜' }
+ , { field: '浜у搧鍚嶇О', width: 150, title: '浜у搧鍚嶇О' }
+ , { field: '瑙勬牸鍨嬪彿', width: 150, title: '瑙勬牸鍨嬪彿' }
+ , { field: '璁¢噺鍗曚綅浠g爜', width: 150, title: '璁¢噺鍗曚綅浠g爜' }
+ , { field: '璁¢噺鍗曚綅', width: 150, title: '璁¢噺鍗曚綅' }
+ , { field: '杈呭姪灞炴��', width: 150, title: '杈呭姪灞炴��' }
+ , { field: '鎵瑰彿', width: 150, title: '鎵瑰彿' }
+ , { field: '鐢熶骇浠诲姟鍗曟暟閲�', width: 150, title: '鐢熶骇浠诲姟鍗曟暟閲�' }
+ , { field: '鍏ュ簱鏁伴噺', width: 150, title: '鍏ュ簱鏁伴噺' }
+ , { field: '鐢熶骇杞﹂棿浠g爜', width: 150, title: '鐢熶骇杞﹂棿浠g爜' }
+ , { field: '鐢熶骇杞﹂棿', width: 150, title: '鐢熶骇杞﹂棿' }
+ , { field: '瀹㈡埛浠g爜', width: 150, title: '瀹㈡埛浠g爜' }
+ , { field: '瀹㈡埛', width: 150, title: '瀹㈡埛' }
+ , { field: '瀹㈡埛鍨嬪彿', width: 150, title: '瀹㈡埛鍨嬪彿' }
+ , { field: '宸ヤ綔涓績浠g爜', width: 150, title: '宸ヤ綔涓績浠g爜' }
+ , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
+ , { field: '璁″垝璺熻釜鍙�', width: 150, title: '璁″垝璺熻釜鍙�' }
+ , { field: '璁″垝寮�宸ユ棩鏈�', width: 150, title: '璁″垝寮�宸ユ棩鏈�' }
+ , { field: '璁″垝瀹屽伐鏃ユ湡', width: 150, title: '璁″垝瀹屽伐鏃ユ湡' }
+ , { field: '鏈�杩熷紑宸ユ棩鏈�', width: 150, title: '鏈�杩熷紑宸ユ棩鏈�' }
+ , { field: '鏈�杩熷畬宸ユ棩鏈�', width: 150, title: '鏈�杩熷畬宸ユ棩鏈�' }
+ , { field: '鍏宠仈鏁伴噺', width: 150, title: '鍏宠仈鏁伴噺' }
+ , { field: '婧愬崟鍗曞彿', width: 150, title: '婧愬崟鍗曞彿' }
+ , { field: '婧愬崟涓诲唴鐮�', width: 150, title: '婧愬崟涓诲唴鐮�' }
+ , { field: '婧愬崟瀛愬唴鐮�', width: 150, title: '婧愬崟瀛愬唴鐮�' }
+ , { field: '鏈叧鑱旀暟閲�', width: 150, title: '鏈叧鑱旀暟閲�' }
+ , { field: '鍒跺崟浜�', width: 150, title: '鍒跺崟浜�' }
+ , { field: '鍒跺崟鏃ユ湡', width: 150, title: '鍒跺崟鏃ユ湡' }
+ , { field: '瀹℃牳浜�', width: 150, title: '瀹℃牳浜�' }
+ , { field: '瀹℃牳鏃ユ湡', width: 150, title: '瀹℃牳鏃ユ湡' }
+ , { field: '淇敼浜�', width: 150, title: '淇敼浜�' }
+ , { field: '淇敼鏃ユ湡', width: 150, title: '淇敼鏃ユ湡' }
+ , { field: '鍏抽棴浜�', width: 150, title: '鍏抽棴浜�' }
+ , { field: '鍏抽棴鏃ユ湡', width: 150, title: '鍏抽棴鏃ユ湡' }
+ , { field: '浣滃簾浜�', width: 150, title: '浣滃簾浜�' }
+ , { field: '浣滃簾鏃ユ湡', width: 150, title: '浣滃簾鏃ユ湡' }
+ , { field: '琛屽叧闂汉', width: 150, title: '琛屽叧闂汉' }
+ , { field: '鍏抽棴绫诲瀷', width: 150, title: '鍏抽棴绫诲瀷' }
+ ]]
+ , page: true
+ , limits: [50, 500, 5000, 50000]
+ , limit: 50
});
///鍔犺浇鏄剧ず鏁版嵁
function RoadQuery(Where) {
@@ -142,7 +144,7 @@
success: function (result) {
if (result.count == 1) {
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
- table.reload('ck-table', {
+ table.reload('mainTable', {
data: ajaxReturnData
, height: 'full-10'
, loading: false
--
Gitblit v1.9.1