From 215e9507b1e0d89d6818bdbb33ddb67e8b6c9c67 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 11 十月 2024 11:44:19 +0800
Subject: [PATCH] 1
---
WebTM/views/Baseset/基础资料/Sc_ICMOBillListView.html | 161 +++++++++++++++++++++++++++--------------------------
1 files changed, 81 insertions(+), 80 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 2909b14..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"
@@ -12,7 +12,6 @@
<body>
<div class="layui-fluid">
<div class="layui-card">
- <!--<div class="layui-card-header"></div>-->
<div class="layui-card-body" style="padding: 15px;">
<form class="layui-form" action="" lay-filter="component-form-group">
<div class="layui-form-item">
@@ -29,103 +28,105 @@
</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>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script>
+ //寮曠敤鐨勫崟鎹強妯″潡锛氬伐搴忔祦杞崱銆�
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;
+ //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, sort: true }
- , { field: '璁㈠崟璺熻釜鍙�', width: 150, title: '璁㈠崟璺熻釜鍙�' }
- , { field: '鐢熶骇璁㈠崟鍙�', width: 150, title: '鐢熶骇璁㈠崟鍙�' }
- , { field: 'hdeptid', width: 150, title: 'hdeptid', hide: true }
- , { field: '鐢熶骇杞﹂棿浠g爜', width: 150, title: '鐢熶骇杞﹂棿浠g爜' }
- , { field: '鐢熶骇杞﹂棿鍚嶇О', width: 150, title: '鐢熶骇杞﹂棿鍚嶇О' }
- , { field: 'hmaterid', width: 150, title: 'hmaterid', hide: true }
- , { field: '鐗╂枡浠g爜', width: 150, title: '鐗╂枡浠g爜' }
- , { field: '鐗╂枡鍚嶇О', width: 150, title: '鐗╂枡鍚嶇О' }
- , { field: '瑙勬牸鍨嬪彿', width: 150, title: '瑙勬牸鍨嬪彿' }
- , { field: '鎵瑰彿', width: 150, title: '鎵瑰彿' }
- , { field: '娴佽浆鍗℃暟閲�', width: 150, title: '娴佽浆鍗℃暟閲�' }
- , { field: 'hunitid', width: 150, title: 'hunitid', hide: true }
- , { field: '璁¢噺鍗曚綅浠g爜', width: 150, title: '璁¢噺鍗曚綅浠g爜' }
- , { field: '璁¢噺鍗曚綅鍚嶇О', width: 150, title: '璁¢噺鍗曚綅鍚嶇О' }
- , { field: '璁″垝鐢熶骇鏁伴噺', width: 150, title: '璁″垝鐢熶骇鏁伴噺' }
- , { field: 'hbomid', width: 150, title: 'hbomid' }
- , { field: 'BOM鍗曚唬鐮�', width: 150, title: 'BOM鍗曚唬鐮�' }
- , { field: 'HRoutingID', width: 150, title: 'HRoutingID' }
- , { field: '璁″垝寮�宸ユ棩鏈�', width: 150, title: '璁″垝寮�宸ユ棩鏈�' }
- , { field: '璁″垝瀹屽伐鏃ユ湡', width: 150, title: '璁″垝瀹屽伐鏃ユ湡' }
- , { field: 'hsubid', width: 150, title: 'hsubid' }
- , { field: '宸ュ簭鍙�', width: 150, title: '宸ュ簭鍙�' }
- , { field: 'hprocid', width: 150, title: 'hprocid' }
- , { field: '宸ュ簭浠g爜', width: 150, title: '宸ュ簭浠g爜' }
- , { field: '宸ュ簭', width: 150, title: '宸ュ簭' }
- , { field: '鍔犲伐璇存槑', width: 150, title: '鍔犲伐璇存槑' }
- , { field: 'HWorkCenterID', width: 150, title: 'HWorkCenterID' }
- , { field: '宸ヤ綔涓績浠g爜', width: 150, title: '宸ヤ綔涓績浠g爜' }
- , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
- , { field: 'HSourceID', width: 150, title: 'HSourceID' }
- , { field: '鐢熶骇璧勬簮浠g爜', width: 150, title: '鐢熶骇璧勬簮浠g爜' }
- , { field: '鐢熶骇璧勬簮', width: 150, title: '鐢熶骇璧勬簮' }
- , { field: 'HGroupID', width: 150, title: 'HGroupID' }
- , { field: '鐝粍浠g爜', width: 150, title: '鐝粍浠g爜' }
- , { field: '鐝粍', width: 150, title: '鐝粍' }
- , { field: 'HWorkerID', width: 150, title: 'HWorkerID' }
- , { field: '鎿嶄綔宸ヤ唬鐮�', width: 150, title: '鎿嶄綔宸ヤ唬鐮�' }
- , { field: 'HSupID', width: 150, title: 'HSupID' }
- , { 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: 'HBillType', width: 150, title: 'HBillType' }
- , { field: '鍏宠仈鏁伴噺', width: 150, title: '鍏宠仈鏁伴噺' }
- , { field: 'HEntryID', width: 150, title: 'HEntryID' }
- , { field: '涓嬮亾娴佽浆宸ュ簭', width: 150, title: '涓嬮亾娴佽浆宸ュ簭' }
- , { field: '浜у搧CODE', width: 150, title: '浜у搧CODE' }
- , { 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) {
@@ -143,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