From 5c00d7b902533c90a92bb57891a7589cfc3a01f6 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期五, 16 四月 2021 09:06:43 +0800
Subject: [PATCH] 新增采购订单、委外订单、收料通知单、退料通知单、销售订单、发货通知单、退货通知单等单据列表模块-合并
---
/dev/null | 10
WebTM/views/生产工序管理/增加不良评审单/QC_NoPassProdCheckBillList.html | 322 +++++++++++++
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user | 23
WebTM/views/Baseset/基础资料/Gy_BadReasonList.html | 103 ++++
WebTM/views/生产工序管理/增加不良评审单/QC_Add_NoPassProdCheckBill.html | 768 +++++++++++++++++++++++++++++++++
WebTM/views/Baseset/基础资料/Sc_ProcessPlanViewList.html | 111 ++++
WebTM/views/index.html | 1
WebTM/WebTM.csproj | 4
WebTM/views/Baseset/基础资料/Gy_ProcList.html | 26 +
9 files changed, 1,343 insertions(+), 25 deletions(-)
diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index d9d5c44..a78011b 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -18,10 +18,10 @@
<publishTime>04/13/2021 10:12:43</publishTime>
</File>
<File Include="bin/WebTM.dll">
- <publishTime>04/16/2021 08:22:21</publishTime>
+ <publishTime>04/15/2021 19:44:58</publishTime>
</File>
<File Include="bin/WebTM.pdb">
- <publishTime>04/16/2021 08:22:21</publishTime>
+ <publishTime>04/15/2021 19:44:58</publishTime>
</File>
<File Include="layuiadmin/config.js">
<publishTime>04/13/2021 10:12:41</publishTime>
@@ -704,6 +704,9 @@
<File Include="views/Baseset/SRM_OpenTmpList.html">
<publishTime>04/13/2021 10:12:43</publishTime>
</File>
+ <File Include="views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html">
+ <publishTime>04/14/2021 19:28:58</publishTime>
+ </File>
<File Include="views/Baseset/鍩虹璧勬枡/Gy_CustomerList.html">
<publishTime>04/13/2021 10:12:43</publishTime>
</File>
@@ -723,7 +726,7 @@
<publishTime>04/13/2021 10:12:43</publishTime>
</File>
<File Include="views/Baseset/鍩虹璧勬枡/Gy_ProcList.html">
- <publishTime>04/13/2021 10:12:43</publishTime>
+ <publishTime>04/15/2021 19:57:06</publishTime>
</File>
<File Include="views/Baseset/鍩虹璧勬枡/Gy_StockPlaceList.html">
<publishTime>04/13/2021 10:12:43</publishTime>
@@ -739,6 +742,9 @@
</File>
<File Include="views/Baseset/鍩虹璧勬枡/Gy_WorkCenterList.html">
<publishTime>04/13/2021 10:12:43</publishTime>
+ </File>
+ <File Include="views/Baseset/鍩虹璧勬枡/Sc_ProcessPlanViewList.html">
+ <publishTime>04/15/2021 17:57:24</publishTime>
</File>
<File Include="views/component/anim/index.html">
<publishTime>04/13/2021 10:12:43</publishTime>
@@ -948,7 +954,7 @@
<publishTime>04/13/2021 10:12:44</publishTime>
</File>
<File Include="views/index.html">
- <publishTime>04/15/2021 16:41:20</publishTime>
+ <publishTime>04/13/2021 15:45:25</publishTime>
</File>
<File Include="views/senior/echarts/bar.html">
<publishTime>04/13/2021 10:12:44</publishTime>
@@ -1172,11 +1178,14 @@
<File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Sc_MouldRepairCheckBillList.html">
<publishTime>04/13/2021 10:12:44</publishTime>
</File>
+ <File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_Add_NoPassProdCheckBill.html">
+ <publishTime>04/15/2021 21:27:39</publishTime>
+ </File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_NoPassProdCheckBill.html">
<publishTime>04/13/2021 10:12:44</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_NoPassProdCheckBillList.html">
- <publishTime>04/13/2021 10:12:44</publishTime>
+ <publishTime>04/13/2021 15:29:46</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/濮斿宸ュ崟/WW_EntrustWorkOrderBillMainList.html">
<publishTime>04/13/2021 10:12:44</publishTime>
@@ -1191,7 +1200,7 @@
<publishTime>04/13/2021 10:12:44</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭娲惧伐鍗�/Sc_Add_ProcessSendWork.html">
- <publishTime>04/13/2021 10:12:44</publishTime>
+ <publishTime>04/13/2021 17:38:51</publishTime>
</File>
<File Include="views/鐢熶骇绠$悊/鐢熶骇浠诲姟鍗�/Sc_ICMOBillList.html">
<publishTime>04/13/2021 10:12:45</publishTime>
@@ -1416,7 +1425,7 @@
<publishTime>04/13/2021 10:12:45</publishTime>
</File>
<File Include="Web.config">
- <publishTime>04/13/2021 16:16:58</publishTime>
+ <publishTime>04/15/2021 19:47:05</publishTime>
</File>
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index dccea2c..08bb7f6 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -299,6 +299,7 @@
<Content Include="views\app\workorder\listform.html" />
<Content Include="views\app\璇存槑.txt" />
<Content Include="views\Baseset\SRM_OpenTmpList.html" />
+ <Content Include="views\Baseset\鍩虹璧勬枡\Gy_BadReasonList.html" />
<Content Include="views\Baseset\鍩虹璧勬枡\Gy_ProcList.html" />
<Content Include="views\Baseset\鍩虹璧勬枡\Gy_CustomerList.html" />
<Content Include="views\Baseset\鍩虹璧勬枡\Gy_DepartmentList.html" />
@@ -311,6 +312,7 @@
<Content Include="views\Baseset\鍩虹璧勬枡\Gy_StockPlaceList.html" />
<Content Include="views\Baseset\鍩虹璧勬枡\Gy_SupplierList.html" />
<Content Include="views\Baseset\鍩虹璧勬枡\Gy_WarehouseList.html" />
+ <Content Include="views\Baseset\鍩虹璧勬枡\Sc_ProcessPlanViewList.html" />
<Content Include="views\component\anim\index.html" />
<Content Include="views\component\auxiliar\index.html" />
<Content Include="views\component\badge\index.html" />
@@ -454,7 +456,7 @@
<Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Sc_CheckToolsMaintainBillList.html" />
<Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Sc_CheckToolsDotCheckPlanBillList.html" />
<Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Sc_CheckToolsRepairWorkBillList.html" />
- <Content Include="views\鐢熶骇宸ュ簭绠$悊\澧炲姞涓嶈壇璇勫鍗昞QC_NoPassProdCheckBill.html" />
+ <Content Include="views\鐢熶骇宸ュ簭绠$悊\澧炲姞涓嶈壇璇勫鍗昞QC_Add_NoPassProdCheckBill.html" />
<Content Include="views\鐢熶骇宸ュ簭绠$悊\澧炲姞涓嶈壇璇勫鍗昞QC_NoPassProdCheckBillList.html" />
<Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ崟\WW_EntrustWorkOrderBillMainList.html" />
<Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ簭姹囨姤鍗昞Sc_StationOutBillMainList.html" />
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReasonList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReasonList.html"
new file mode 100644
index 0000000..4014221
--- /dev/null
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReasonList.html"
@@ -0,0 +1,103 @@
+锘�<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>涓嶈壇鍘熷洜鍒楄〃</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+</head>
+<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">
+ <div class="layui-inline">
+ <label class="layui-form-label">杩囨护鍒�</label>
+ <div class="layui-input-inline">
+ <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="璇疯緭鍏ヨ繃婊ゅ垪" class="layui-input">
+ </div>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">蹇�熸煡璇�</button>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">杩斿洖</button>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ <table class="layui-hide" id="ck-table"></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.on('submit(HQuery)', function () {//閫夋嫨鍗曚綅
+ //var sMainStr = JSON.stringify(table.cache['ck-table']);
+ 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.GetHReasonValue(data);
+ var index = parent.layer.getFrameIndex(window.name);
+ parent.layer.close(index);
+ });
+ RoadQuery($('#Value').val());
+ table.render({
+ elem: '#ck-table'
+ // , url: '/demo/table/user/'
+ , data: []
+ , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HItemID', width: 150, title: '涓嶈壇鍘熷洜ID', hide: true }
+ , { field: 'HNumber', width: 150, title: '涓嶈壇鍘熷洜浠g爜' }
+ , { field: 'HName', width: 150, title: '涓嶈壇鍘熷洜鍚嶇О', sort: true }
+ ]]
+ , page: true
+ });
+ ///鍔犺浇鏄剧ず鏁版嵁
+ function RoadQuery(Where) {
+ var Value = Where;
+ if (Value == null) {
+ Value = '';
+ }
+ $.ajax({
+ type: "get",
+ //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json",
+ url: GetWEBURL() + "/Web/GetBadReasonList_Json",
+ async: true,
+ data: { "BadReason": Value },
+ //data: { "Value": Value },
+ success: function (result) {
+ ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
+ table.reload('ck-table', {
+ data: ajaxReturnData
+ , height: 'full-10'
+ , loading: false
+ , done: function (index, res) {
+
+ }
+ });
+ },
+ error: function (result) {
+ console.log(result);
+ //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
+ }
+ });
+ };
+ });
+ </script>
+
+</body>
+</html>
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html"
index 7bc3225..e8995c5 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html"
@@ -35,6 +35,19 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script>
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+ var params = getUrlVars();
+ var Type = params[params[0]];
+
layui.use(['table', 'form', 'layer'], function () {
var table = layui.table
, form = layui.form
@@ -47,8 +60,17 @@
form.on('submit(FH)', function () {
//var sMainStr = JSON.stringify(table.cache['ck-table']);
var checkStatus = table.checkStatus('ck-table')
- , data = checkStatus.data;
- parent.GetHProcValue(data);
+ , data = checkStatus.data;
+
+ switch (Type) {
+ case "HZR": //杩斿洖淇濈
+ parent.GetHZRValue(data);
+ break;
+ default:
+ parent.GetHProcValue(data);
+ break;
+ }
+
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessPlanViewList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessPlanViewList.html"
new file mode 100644
index 0000000..ae18792
--- /dev/null
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Sc_ProcessPlanViewList.html"
@@ -0,0 +1,111 @@
+锘�<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>宸ュ簭璁″垝鍗曞垪琛�</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+</head>
+<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">
+ <div class="layui-inline">
+ <label class="layui-form-label">杩囨护鍒�</label>
+ <div class="layui-input-inline">
+ <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="璇疯緭鍏ヨ繃婊ゅ垪" class="layui-input">
+ </div>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">蹇�熸煡璇�</button>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">杩斿洖</button>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ <table class="layui-hide" id="ck-table"></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.on('submit(HQuery)', function () {//閫夋嫨鍗曚綅
+ //var sMainStr = JSON.stringify(table.cache['ck-table']);
+ 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.GetHPlanValue(data);
+ var index = parent.layer.getFrameIndex(window.name);
+ parent.layer.close(index);
+ });
+ RoadQuery($('#Value').val());
+ table.render({
+ elem: '#ck-table'
+ // , 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: 'hsubid', width: 150, title: 'hsubid', hide: true }
+ , { field: '鍗曟嵁鍙�', width: 150, title: '鍗曟嵁鍙�' }
+ , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
+ , { field: '鐗╂枡浠g爜', width: 150, title: '鐗╂枡浠g爜' }
+ , { field: '鐗╂枡鍚嶇О', width: 150, title: '鐗╂枡鍚嶇О' }
+ , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
+ , { field: '宸ヤ綔涓績', width: 150, title: '宸ヤ綔涓績' }
+ , { field: '瑙勬牸鍨嬪彿', width: 150, title: '瑙勬牸鍨嬪彿' }
+ , { field: '璁″垝鏁伴噺', width: 150, title: '璁″垝鏁伴噺' }
+
+ ]]
+ , page: true
+ });
+ ///鍔犺浇鏄剧ず鏁版嵁
+ function RoadQuery(Where) {
+ var Value = Where;
+ if (Value == null) {
+ Value = '';
+ }
+ $.ajax({
+ type: "get",
+ //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json",
+ url: GetWEBURL() + "/Web/GetPlanList_Json",
+ async: true,
+ data: { "Billno": Value },
+ //data: { "Value": Value },
+ success: function (result) {
+ ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
+ table.reload('ck-table', {
+ data: ajaxReturnData
+ , height: 'full-10'
+ , loading: false
+ , done: function (index, res) {
+
+ }
+ });
+ },
+ error: function (result) {
+ console.log(result);
+ //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
+ }
+ });
+ };
+ });
+ </script>
+
+</body>
+</html>
diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index bfa6bf7..8e4eaf7 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -147,6 +147,7 @@
<a>澧炲姞涓嶈壇璇勫鍗�</a>
<dl class="layui-nav-child">
<dd><a lay-href="鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_NoPassProdCheckBillList.html">涓嶈壇璇勫鍗曞垪琛�</a></dd>
+ <dd><a href="鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_Add_NoPassProdCheckBill.html" target="main_self_frame">鏂板涓嶈壇璇勫鍗�</a></dd>
</dl>
</dd>
diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_Add_NoPassProdCheckBill.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_Add_NoPassProdCheckBill.html"
new file mode 100644
index 0000000..1497c90
--- /dev/null
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_Add_NoPassProdCheckBill.html"
@@ -0,0 +1,768 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>鏂板涓嶈壇璇勫鍗�</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+</head>
+<body>
+
+ <div id="layout1" class="layui-fluid">
+ <div class="layui-row layui-col-space15">
+ <div class="layui-col-md12">
+ <div class="layui-card">
+ <form id="form0" class="layui-form" action="">
+ <div class="layui-card-header">
+ <div class="layui-btn-group">
+
+ <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">淇濆瓨</button>
+ <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">閫�鍑�</button>
+
+ </div>
+
+ </div>
+ <div class="layui-card-body">
+ <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
+ <!--<ul class="layui-tab-title">
+ <li class="layui-this">鍩烘湰淇℃伅</li>-->
+ <!--<li>鍏朵粬淇℃伅</li>-->
+ <!--</ul>-->
+ <h1 style="text-align:center;"><b>涓嶈壇璇勫鍗�</b></h1>
+ <div class="layui-tab-content">
+ <div class="layui-tab-item layui-show">
+
+ <div class="layui-form-item">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label">鍗� 鎹� 鍙凤細</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off">
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label">鍗曟嵁鏃ユ湡锛�</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HDate" id="HDate" readonly="readonly" autocomplete="off" disabled>
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label">璁㈠崟璺熻釜鍙凤細</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="" id="" autocomplete="off" disabled>
+ <input id="" name="" type="hidden" />
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label">浜у搧锛�</label>
+ <div class="layui-input-inline">
+ <input type="text" name="HMater" id="HMater" lay-verify="HMater" readonly="readonly" autocomplete="off" class="layui-input">
+ <input id="HMaterID" name="HMaterID" type="hidden" />
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label">浜у搧浠g爜锛�</label>
+ <div class="layui-input-inline">
+ <input type="text" name="HMaterNumber" id="HMaterNumber" lay-verify="HMaterNumber" readonly="readonly" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ </div>
+ <!--<button class="layui-btn" data-type="reload">閫夋嫨</button>-->
+ </div>
+ <div class="layui-form-item">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label">宸ュ簭璁″垝鍗曞彿锛�</label>
+ <div class="layui-input-inline">
+ <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" lay-verify="" autocomplete="off" class="layui-input">
+
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanID-BT">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ <input id="HMainSourceInterID" name="HMainSourceInterID" type="hidden" />
+ <input id="HMainSourceEntryID" name="HMainSourceEntryID" type="hidden" />
+ </div>
+ </div>
+
+ <div class="layui-col-xs2">
+ <label class="layui-form-label"> 宸ヤ綔涓績锛�</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HWorkCenterName" lay-verify="" id="HWorkCenterName" readonly="readonly" autocomplete="off">
+ <input id="HCenterID" name="HCenterID" type="hidden" />
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label"> 璁″垝鏁伴噺锛�</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HPlanQty" id="HPlanQty" readonly="readonly" autocomplete="off">
+
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label"> 瑙勬牸鍨嬪彿锛�</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HModel" lay-verify="" id="HModel" readonly="readonly" autocomplete="off">
+ <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HMateriaID-BT">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>-->
+ </div>
+ </div>
+ <div class="layui-col-xs2">
+ <label class="layui-form-label"> 涓嶈壇鏁伴噺锛�</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HBadQty" id="HBadQty" autocomplete="off">
+
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+
+ <div class="layui-form-item">
+ <div class="layui-row">
+
+ <div class="layui-colorpicker-xs">
+ <label class="layui-form-label"> 璇勫鎰忚锛�</label>
+ <div class="layui-input-block">
+ <input class="layui-input" name="HNote" id="HNote" autocomplete="off">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <table>
+ <tr>
+
+ </tr>
+ </table>
+
+ <table class="layui-table" id="mainTable" lay-filter="mainTable">
+ <thead>
+ <tr>
+ <th>搴忓彿</th>
+ <th>涓嶈壇鍘熷洜</th>
+ <th>璐d换浜�</th>
+ <th>鐢宠宸ュ簭</th>
+ <th>璐d换宸ュ簭</th>
+ <th>涓嶈壇鏁伴噺</th>
+ <th>澶囨敞</th>
+ <th>涓嶈壇纭浜�</th>
+ <th>鍒ゅ畾缁撴灉</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td><input type="text" id="HWasterReasonName" name="HWasterReasonName" style="width:200px;height:20px;" />
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HBadReasonID-BT">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ <input id="HBadReasonID" name="HBadReasonID" type="hidden" />
+ </td>
+ <td><input type="text" id="HEmpName" name="HEmpName" style="width:200px;height:20px;" />
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmployeeID-BT">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ <input id="HItemID" name="HItemID" type="hidden" />
+
+
+ </td>
+ <td><input type="text" id="HSQProcName" name="HSQProcName" style="width:200px;height:20px;" />
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HSQProcID-BT">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ <input id="HProcID" name="HProcID" type="hidden" />
+ </td>
+ <td><input type="text" id="HZRProcName" name="HZRProcName" style="width:200px;height:20px;" />
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HZRProcID-BT">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ <input id="HItemID" name="HItemID" type="hidden" />
+
+ </td>
+ <td><input type="text" id="HBadQty" name="HBadQty" style="width:200px;height:20px;" /></td>
+ <td><input type="text" id="HRemark" name="HRemark" style="width:200px;height:20px;" /></td>
+ <td><input type="text" id="HPSProcName" name="HPSProcName" style="width:200px;height:20px;" /></td>
+ <td><input type="text" id="HQCResultID" name="HQCResultID" style="width:200px;height:20px;" /></td>
+
+ </tr>
+
+ <tr>
+ <td>2</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+ <tr>
+ <td>3</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>4</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>5</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>6</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>7</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>8</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>9</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>10</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>11</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>12</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>13</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>14</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+ <tr>
+ <td>15</td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td ><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+ <td><input type="text" id="" style="width:200px;height:20px;"/></td>
+
+ </tr>
+
+
+ </tbody>
+
+ </table>
+
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/Scripts/json2.js"></script>
+ <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+ <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script>
+
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index' //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , element = layui.element;
+ //娓呯┖鐣岄潰 new
+
+ //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�侀噾铦剁敤鎴凤級 new
+ $("#HWHID").val(sessionStorage["HWHID"]);
+ $("#HWHNAME").val(sessionStorage["HWHName"]);
+ $("#HStockPlaceID").val(sessionStorage["HSPID"]);
+ $("#HStockPlaceName").val(sessionStorage["HSPName"]);
+ //$("#HSupID").val(sessionStorage["HSupID"]);
+ //$("#HSupName").val(sessionStorage["HSupName"]);
+ $("#HDeptID").val(sessionStorage["HDeptID"]);
+ $("#HDeptName").val(sessionStorage["HDept"]);
+ $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
+ $("#HSecManager").val(sessionStorage["HSecManager"]);
+ $("#HKeeperID").val(sessionStorage["HKeeperID"]);
+ $("#HKeeper").val(sessionStorage["HKeeper"]);
+ $("#HMaker").val(sessionStorage["HUserName"]);
+ $("#HMaker").hide();
+ $("#HMakerID").hide();
+ $("#HBillerID").val(sessionStorage["HBillerID"]);
+ $("#HBillerID").hide();
+ var HSourceFlag = sessionStorage["SourceFlag"];
+ //榛樿甯﹀叆鐨勪粨搴擄紝濡傛灉鍚敤浠撲綅鍒欎粨浣嶆湁鏁堬紝濡傛灉娌℃湁鍚敤鍒欎粨浣嶇伆搴� new
+
+ $("#HBarCode").focus();
+
+ //鑾峰彇鍙傛暟
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage.login != "login") {
+ layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+ icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+ }, function () { window.location.href = "../../user/login.html"; });
+ }
+
+ var params = getUrlVars();
+ var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+ var lSourceBillType = params[params[2]]; //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
+
+ function RoadBillMain(linterid)//鍔犺浇琛ㄥご
+ {
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetPonderationBill",
+ type: "GET",
+ data: { "HInterID": linterid },
+ success: function (d) {
+ // console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+
+ }
+ })
+ }
+
+
+ var date = new Date();
+ var day = date.getDate();
+ var month = date.getMonth() + 1;
+ var year = date.getFullYear();
+ var shijian = year + "-" + month + "-" + day;
+
+ //鍒ゆ柇鏄惁鏂板
+ if (linterid == null || linterid == 0) {
+ //鑾峰彇鏈�澶у崟鎹彿 new
+ $("#HInterID").val("");
+ $("#HBillNo").val("");
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetMAXNum",
+ type: "GET",
+ data: { "HBillType": '7509' },
+ success: function (d) {
+ //console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ $("#HDate").val(shijian);
+ }
+ });
+ }
+ else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
+ RoadBillMain(linterid);
+ RoadBillSub(linterid);
+ }
+
+
+
+ //閫夋嫨涓嶈壇鍘熷洜
+ form.on('submit(HBadReasonID-BT)', function () {//閫夋嫨浠撳簱
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨宸ュ簭璁″垝鍗�
+ form.on('submit(HPlanID-BT)', function () {//閫夋嫨宸ュ簭璁″垝鍗�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '宸ュ簭璁″垝鍗曞垪琛�'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Sc_ProcessPlanViewList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨璐d换浜�
+ form.on('submit(HEmployeeID-BT)', function () {//閫夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨鐢宠宸ュ簭
+ form.on('submit(HSQProcID-BT)', function (data) {//閫夋嫨鐢宠宸ュ簭
+ var sMainStr = JSON.stringify(data.field);
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨璐d换宸ュ簭
+ form.on('submit(HZRProcID-BT)', function () {//閫夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //缂栬緫
+ form.on('submit(cmdModify)', function () {//缂栬緫
+ var sSubStr = table.cache['wl-table'];
+ //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '鏄庣粏鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ // }
+ });
+
+ form.on('submit(Cancel)', function () {
+ //sessionStorage["SourceFlag"] = false;
+ parent.location.href = "../../../views/index.html"
+ //window.close();//鍏抽棴褰撳墠椤�
+ })
+
+ form.on('submit(Saver)', function (data) {//淇濆瓨
+ //debugger;
+ var sMainStr = JSON.stringify(data.field);
+ var sSubStr = JSON.stringify(table.cache['mainTable']);
+ var sMainSub = sMainStr + ';' + sSubStr;
+ $.ajax(
+ {
+ type: "POST",
+ url: GetWEBURL()+"SaveBadReasonList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: true,
+ data: {"msg": sMainSub},
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ layer.msg(data.Message, { icon: 1 });
+ }
+ else {
+
+ f_alert(data.Message);
+ console.log("Reason" + sMainStr + "sub:::" + sSubStr);
+ }
+ layer.closeAll("loading");
+ },
+ error: function (err) {
+
+ f_alert("閿欒:" + err);
+ console.log("Reason"+sMainStr);
+ }
+ });
+ });
+ function f_alert(sMsg) {
+ layer.alert(sMsg, { icon: 5 });
+
+ }
+
+ //鐩戝惉鎻愪氦
+ form.verify({
+ numberOrEmpty: function (value, item) {
+ // if (value != '') {
+ if (!/^\d+$/.test(value)) {
+ return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0';
+ }
+ //}
+ }
+ });
+
+
+ //鍒锋柊鏄庣粏椤电
+ table.render({
+ elem: '#mx-table'
+ // , url: 'http://61.130.49.162:9090/WMSAPI///Web/GetHBarCodeShowBillSub'
+ //, toolbar: '#toolbarDemo'
+ // , where: { sMsg: linterid, sMsg2: lentryid }
+ , cols: [[
+ , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
+ ]]
+ , page: true
+ , height: 500
+ , done: function () {
+ }
+ });
+ });
+ function GetHReasonValue(obj) //杩斿洖涓嶈壇鍘熷洜
+ {
+ $("#HWasterReasonName").val(obj[0].HName);
+ //sessionStorage["HWHID"] = obj[0].HItemID;
+ $("#HBadReasonID").val(obj[0].HItemID);
+ }
+ function GetHPlanValue(obj) { //杩斿洖宸ュ簭璁″垝鍗�
+ $("#HMainSourceInterID").val(obj[0].hmainid);
+ $("#HMainSourceEntryID").val(obj[0].hsubid);
+ $("#HMainSourceBillNo").val(obj[0].鍗曟嵁鍙�);
+ $("#HMaterID").val(obj[0].HMaterID);
+ $("#HMaterNumber").val(obj[0].鐗╂枡浠g爜);
+ $("#HMater").val(obj[0].鐗╂枡鍚嶇О);
+ $("#HCenterID").val(obj[0].HCenterID);
+ $("#HWorkCenterName").val(obj[0].宸ヤ綔涓績);
+ $("#HModel").val(obj[0].瑙勬牸鍨嬪彿);
+ $("#HPlanQty").val(obj[0].璁″垝鏁伴噺);
+
+
+ }
+ function GetHKeeperValue(obj) { //杩斿洖鑱屽憳
+ $("#HEmpName").val(obj[0].HName);
+ //$("#HItemID").val(obj[0].HItemID);
+ }
+ function GetHProcValue(obj) { //杩斿洖鐢宠宸ュ簭
+ $("#HSQProcName").val(obj[0].宸ュ簭);
+ $("#HProcID").val(obj[0].HItemID);
+ }
+ function GetHZRValue(obj) { //杩斿洖璐d换宸ュ簭
+ $("#HZRProcName").val(obj[0].宸ュ簭);
+ //$("#HItemID").val(obj[0].HItemID);
+ }
+ function AllowLoadData(sSubStr) { //闈炵┖楠岃瘉
+ //if ($("#HSourceBillNo").val() == '') {
+ // layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
+ // return false;
+ //}
+ if($("#HDeptName").val()=='')
+ {
+ layer.msg("閮ㄩ棬娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HSecManager").val() == '') {
+ layer.msg("楠屾敹浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HKeeper").val() == '') {
+ layer.msg("淇濈浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ //if ($("#HWHNAME").val() == '') {
+ // layer.msg("浠撳簱娌℃湁閫夋嫨!", { icon: 5 });
+ // return false;
+ //}
+ if ($("#HBillNo").val() == '') {
+ layer.msg("閿欒鐨勫崟鎹彿", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HInterID").val() == '') {
+ layer.msg("閿欒鐨勫唴鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (typeof (sSubStr) == "undefined")
+ {
+ layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (!typeof (sSubStr) == "undefined") {
+ //for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺
+ // if (parseFloat(sSubStr[i].HQtyMust) > 0) {
+ // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust))
+ // {
+ // layer.msg("鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+ // return false;
+ // }
+ // }
+ //}
+ for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
+ if (parseFloat(sSubStr[i].HQty) > 0) {
+ s = 1;
+ }
+ }
+ if (s == 0) {
+ layer.msg("浜у搧鍏ュ簱璁板綍鏈壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ }
+ else
+ {
+ return true;
+ }
+ }
+ </script>
+ </body>
+</html>
\ No newline at end of file
diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBill.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBill.html"
deleted file mode 100644
index 7a8b889..0000000
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBill.html"
+++ /dev/null
@@ -1,10 +0,0 @@
-锘�<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8" />
- <title></title>
-</head>
-<body>
-
-</body>
-</html>
\ No newline at end of file
diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBillList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBillList.html"
index e00d95b..9ad904b 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\242\236\345\212\240\344\270\215\350\211\257\350\257\204\345\256\241\345\215\225/QC_NoPassProdCheckBillList.html"
@@ -1,10 +1,322 @@
锘�<!DOCTYPE html>
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <meta charset="utf-8" />
- <title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>涓嶅悎鏍艰瘎瀹″垪琛�</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <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>
+
</head>
<body>
- <h1>鍝囧挃鍜旓紒锛侊紒锛�</h1>
+ <div class="layui-fluid">
+ <div class="layui-col-md12">
+ <div class="layui-card" style="padding: 1px">
+ <div class="layui-card-body" style="padding: 1px;">
+ <form class="layui-form" action="" lay-filter="component-form-group">
+ <div class="layui-collapse">
+ <div class="layui-colla-item">
+ <div class="layui-colla-title layui-inline">
+ <div class="layui-inline">
+ <span>鏇村</span>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">寮�濮嬫棩鏈�</label>
+ <div class="layui-input-block">
+ <input type="date" class="layui-input" id="HDate">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+ <div class="layui-input-block">
+ <input type="date" class="layui-input" id="HDate1">
+ </div>
+ </div>
+ <!--<div class="layui-inline">
+ <label class="layui-form-label">璁㈠崟璺熻釜鍙�</label>
+ <div class="layui-input-block">
+ <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO">
+ </div>
+ </div>-->
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
+
+ <!--<div class="layui-colla-content">
+ <div class="layui-inline">
+ <div class="layui-inline">
+ <span>鍏朵粬鏉′欢></span>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">鍗曟嵁鍙�</label>
+ <div class="layui-input-block">
+ <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter">
+ </div>
+ </div>
+ </div>-->
+ </div>
+ </div>
+ <table class="" id="mainTable" lay-filter="mainTable"></table>
+ <script type="text/html" id="toolbarDemo">
+ <div class="layui-btn-container">
+ <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
+ <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>-->
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-form"></i>娣诲姞</button>
+ <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon"></i>娣诲姞</button>-->
+
+ </div>
+ </script>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <script type="text/html" id="barDemo">
+ <a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</a>
+ <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
+</script>
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/Scripts/json2.js"></script>
+ <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+ <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script>
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index', //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () {
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , element = layui.element
+ , laypage = layui.laypage
+ , laydate = layui.laydate
+ //var sWhere = " 浜у搧浠g爜 = 'BX0002'";
+ var sWhere = "";
+
+ var option = {
+ elem: '#mainTable'
+ , toolbar: '#toolbarDemo'
+ ,height: 'full-50'
+ , page: true
+ ,cellMinWidth: 90
+ , cols: [[
+ //{ type: 'checkbox' }
+
+ { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+ , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
+ , { field: '鐢熶骇璧勬簮鍚嶇О ', title: '鐢熶骇璧勬簮鍚嶇О ', width: 115 }
+ , { field: '鐢熶骇璧勬簮浠g爜', title: '鐢熶骇璧勬簮浠g爜' }
+ , { field: '鐗╂枡鍐呯爜', title: '鐗╂枡鍐呯爜', width: 100 }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О' }
+ , { field: '妫�楠屽憳浠g爜', title: '妫�楠屽憳浠g爜' }
+ , { field: '妫�楠屽憳鍚嶇О', title: '妫�楠屽憳鍚嶇О' }
+ , { field: '鍗曚綅浠g爜', title: '鍗曚綅浠g爜' }
+ , { field: '鍗曚綅鍚嶇О', title: '鍗曚綅鍚嶇О' }
+ , { field: '涓嶈壇鍘熷洜浠g爜 ', title: '涓嶈壇鍘熷洜浠g爜' }
+ , { 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: 'hsubid', title: 'hsubid', fixed: true, hide: true }
+
+ //,{fixed: 'right', title:'鎿嶄綔', toolbar: '#barDemo', width:150}
+ ]]
+ };
+
+
+//鐩戝惉琛屽伐鍏蜂簨浠�
+ //table.on('tool(mainTable)', function(obj){
+ // var data = obj.data;
+ // //console.log(obj)
+ // if(obj.event == 'del'){
+ // layer.confirm('鐪熺殑鍒犻櫎琛屼箞', function(index){
+ // obj.del();
+ // layer.close(index);
+ // });
+ // } else if(obj.event == 'edit'){
+ // layer.prompt({
+ // formType: 2
+ // ,value: data.HDate
+ // }, function(value, index){
+ // obj.update({
+ // HDate: value
+ // });
+ // layer.close(index);
+ // });
+ // //layer.alert('鎴戞槸缂栬緫涓�');
+ // }
+ //});
+ //澶村伐鍏锋爮浜嬩欢
+ table.on('toolbar(mainTable)', function (obj) {
+ var checkStatus = table.checkStatus(obj.config.id);
+ switch (obj.event) {
+ case 'btn-Pushdown':
+ // var checkStatus = table.checkStatus('mainTable')
+ // , data = checkStatus.data;
+ // ajaxLabelData = data;
+ // var rows = '';
+ // var HEntry = '';
+ // for (var i = 0; i < data.length; i++) {
+ // rows += data[i].hmainid.toString() + ',' ;
+
+ // }
+
+ // if (checkStatus.data.length < 1)
+ // {
+ // layer.msg('璇烽�夋嫨涓�琛屾暟鎹笅鎺�');
+ // } else
+ // {
+
+ ////椤甸潰灞�
+ //layer.open({
+ // type: 2 //Page灞傜被鍨�
+ // ,area: ['100%', '100%']
+ // ,title: '鏂板娲惧伐鍗�'
+ // ,shade: 0.6 //閬僵閫忔槑搴�
+ // ,maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+ // , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ // , content: ['../宸ュ簭娲惧伐鍗�/Sc_Add_ProcessSendWork.html?HInterID=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1), '&PlanBeginDate=' + data[0].璁″垝寮�宸ユ棩鏈�.toString(), '&PlanEndDate=' + data[0].璁″垝瀹屽伐鏃ユ湡.toString(), 'yes']
+ // , resize: false
+ // , cancel: function () {
+ // //$(".layui-btn").removeClass("layui-btn-disabled");
+ // }
+
+ // });
+
+ // }
+ layer.msg('鍝囧挃鍜旓紒锛侊紒锛侊紒锛�');
+ break;
+ case 'btn-Add':
+ layer.open({
+ type: 2 //Page灞傜被鍨�
+ ,area: ['100%', '100%']
+ ,title: '鏂板娲惧伐鍗�'
+ ,shade: 0.6 //閬僵閫忔槑搴�
+ ,maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../澧炲姞涓嶈壇璇勫鍗�/QC_Add_NoPassProdCheckBill.html' , 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+
+ });
+ break;
+ case '':
+ layer.msg('');
+ break;
+
+ };
+ });
+
+ //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+ var index0 = layer.load(0, { shade: false });
+ $.ajax({
+ //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
+ url: GetWEBURL() + '/Sc_ProcessMangement/MES_QC_NoPassProdCheckBill_Json',
+ type: "GET",
+ data: { "sWhere": sWhere },
+ success: function (data1) {
+ if (data1.count == 1) {
+ option.data = data1.data;
+ table.render(option);
+ layer.close(index0);
+ } else {
+ layer.close(index0);
+ layer.alert(data1.code + data1.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.close(index0);
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+
+ //閲嶇疆鎸夐挳
+ form.on('submit(btnReSearch)', function (data) {
+ $("#HDate").val("");//寮�濮嬫棩鏈�
+ $("#HDate1").val("");//缁撴潫鏃ユ湡
+ //$("#HOrderProcNO").val("");//璁㈠崟璺熻釜鍙�
+ //$("#WorkCenter").val("");//鍗曟嵁鍙�
+ $("#btnSearch").click();
+ });
+
+ //鏌ヨ鎸夐挳
+ form.on('submit(btnSearch)', function (data) {//閫夋嫨浠撲綅
+ var HDate = $("#HDate").val();//寮�濮嬫棩鏈�
+ var HDate1 = $("#HDate1").val();//缁撴潫鏃ユ湡
+ //var HOrderProcNO = $("#HOrderProcNO").val();//璁㈠崟璺熻釜鍙�
+ //var WorkCenter = $("#WorkCenter").val();//鍗曟嵁鍙�
+ if (HDate) {
+ sWhere += " and 鏃ユ湡 >= '" + HDate + "'";
+ }
+ if (HDate1) {
+ sWhere += " and 鏃ユ湡 <= '" + HDate1 + "'";
+ }
+ //if (HOrderProcNO) {
+ // sWhere += " and 璁㈠崟璺熻釜鍙� like '%" + HOrderProcNO + "%'";
+ //}
+ //if (WorkCenter) {
+ // sWhere += " and HBillNo like '%" + WorkCenter + "%'";
+ //}
+ var index = layer.load(0, { shade: false });
+ $.ajax({
+ url: GetWEBURL() + '/Sc_ProcessMangement/MES_QC_NoPassProdCheckBill_Json',
+ type: "GET",
+ data: { "sWhere": sWhere },
+ success: function (data1) {
+ if (data1.count == 1) {
+ option.data = data1.data;
+ table.render(option);
+ layer.close(index);
+ layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
+ } else {
+ layer.close(index);
+ layer.alert(data1.code + data1.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.close(index);
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+ sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
+ });
+
+
+ //laydate.render({
+ // elem: '#HDate'
+ // , type: 'datetime'
+ // , trigger: 'click'
+ // , format:'yyyy-MM-dd HH:mm'
+ //});
+
+
+ //浠ヤ笂鏄痩ayui妯″潡
+ });
+
+
+
+
+ </script>
+
</body>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.9.1