From 6da44ebfe2539d054e06691aba47c397c9ce5061 Mon Sep 17 00:00:00 2001
From: WYB <908761037@qq.com>
Date: 星期四, 15 四月 2021 21:31:44 +0800
Subject: [PATCH] 不良评审单保存逻辑完成以及页面选中完成
---
WebTM/views/生产工序管理/增加不良评审单/QC_Add_NoPassProdCheckBill.html | 474 +++++++++++++++++++++++++++++++++++++++--------------------
1 files changed, 314 insertions(+), 160 deletions(-)
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"
index 321c8ac..1497c90 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_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"
@@ -59,13 +59,14 @@
<div class="layui-col-xs2">
<label class="layui-form-label">浜у搧锛�</label>
<div class="layui-input-inline">
- <input type="text" name="" id="" lay-verify="" readonly="readonly" autocomplete="off" class="layui-input">
+ <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="" id="" lay-verify="" readonly="readonly" autocomplete="off" class="layui-input">
+ <input type="text" name="HMaterNumber" id="HMaterNumber" lay-verify="HMaterNumber" readonly="readonly" autocomplete="off" class="layui-input">
</div>
</div>
</div>
@@ -74,36 +75,36 @@
<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-xs2">
- <label class="layui-form-label">娴佽浆鍗″彿锛�</label>
+ <label class="layui-form-label">宸ュ簭璁″垝鍗曞彿锛�</label>
<div class="layui-input-inline">
- <input type="text" name="" id="" lay-verify="" autocomplete="off" class="layui-input">
+ <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" lay-verify="" autocomplete="off" class="layui-input">
- <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">
+ <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="" name="" type="hidden" />
-
+ <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="" lay-verify="" id="" readonly="readonly" autocomplete="off">
- <input id="" name="" type="hidden" />
+ <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>
+ <label class="layui-form-label"> 璁″垝鏁伴噺锛�</label>
<div class="layui-input-inline">
- <input class="layui-input" name="" lay-verify="" id="" readonly="readonly" autocomplete="off">
+ <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="" lay-verify="" id="" readonly="readonly" autocomplete="off">
+ <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>-->
@@ -112,7 +113,7 @@
<div class="layui-col-xs2">
<label class="layui-form-label"> 涓嶈壇鏁伴噺锛�</label>
<div class="layui-input-inline">
- <input class="layui-input" name="" lay-verify="" id="" autocomplete="off">
+ <input class="layui-input" name="HBadQty" id="HBadQty" autocomplete="off">
</div>
</div>
@@ -127,7 +128,7 @@
<div class="layui-colorpicker-xs">
<label class="layui-form-label"> 璇勫鎰忚锛�</label>
<div class="layui-input-block">
- <input class="layui-input" name="" id="" autocomplete="off">
+ <input class="layui-input" name="HNote" id="HNote" autocomplete="off">
</div>
</div>
</div>
@@ -136,30 +137,249 @@
</div>
</div>
</div>
+ <table>
+ <tr>
+
+ </tr>
+ </table>
+
<table class="layui-table" id="mainTable" lay-filter="mainTable">
<thead>
<tr>
<th>搴忓彿</th>
<th>涓嶈壇鍘熷洜</th>
- <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>璐ゅ績</td>
- <td>2016-11-29</td>
- <td>浜虹敓灏卞儚鏄竴鍦轰慨琛�</td>
+ <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>璁搁棽蹇�</td>
- <td>2016-11-28</td>
- <td>浜庡崈涓囦汉涔嬩腑閬囪浣犳墍閬囪鐨勪汉锛屼簬鍗冧竾骞翠箣涓紝鏃堕棿鐨勬棤娑殑鑽掗噹閲屸��</td>
+ <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>
@@ -170,7 +390,6 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script>
-
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -241,51 +460,12 @@
// console.log(d.data);
$("#HInterID").val(d.data[0].HInterID);
$("#HBillNo").val(d.data[0].HBillNo);
- //$("#HBillType").val(d.data[0].HSourceBillType);
$("#HSourceBillNo").val(d.data[0].HSourceBillNo);
- //$("#HWHID").val(d.data[0].HWhID);
- //$("#HKeeperID").val(d.data[0].HKeeperID);
- //$("#HSecManagerID").val(d.data[0].HSecManagerID);
- //$("#HDeptID").val(d.data[0].HDeptID);
- //$("#HBarCode").val(d.data[0].HBarCode);
- //$("#HQty").val(d.data[0].HQty);
+
}
})
}
-
-
- function RoadBillSub(linterid)//鍔犺浇琛ㄤ綋
- {
- table.render({
- elem: '#wl-table'
- , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- , cellMinWidth: 80
- , toolbar: '#toolbarDemo'
- , where: { HBillID: linterid, HBillType: '1202', sWhere: '' }
- , cols: [[
- { type: 'radio' }
- , { field: 'HQty', title: '鏁伴噺', width: 80 }
- , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 80 }
- , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
- , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 100 }
- , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 100 }
- , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 100 }
- , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 100 }
- , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
- , { field: 'HBatchNo', title: '鎵规', width: 100 }
- , { field: 'HAuxPropID', title: '杈呭姪灞炴��', width: 100 }
- , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 100 }
- , { field: 'HMaterID', title: '鐗╂枡ID', width: 100 }
- ]]
- , height: 500
- })
- }
-
- //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
-
-
-
-
+
var date = new Date();
var day = date.getDate();
@@ -316,34 +496,17 @@
}
- //杩涘叆鐗╂枡鏄庣粏椤电銆佹潯鐮佹 鍏夋爣鐒︾偣 new
- //if (1 == 2)
- //{
- // element.tabChange('tab-ProductlnBill', '3');
- // var pFocus = $("#HBarCode");
- // pFocus.focus();
- // pFocus.select();
- //}
- //else
- //{
- // element.tabChange('tab-ProductlnBill', '1');
- // var pFocus = $("#HSourceBillNo");
- // pFocus.focus();
- // pFocus.select();
- //}
- //
- //
- //閫夋嫨浠撳簱
- form.on('submit(HWHID-BT)', function () {//閫夋嫨浠撳簱
+ //閫夋嫨涓嶈壇鍘熷洜
+ form.on('submit(HBadReasonID-BT)', function () {//閫夋嫨浠撳簱
layer.open({
type: 2
, area: ['100%', '100%']
- , title: '浠撳簱鍒楄〃'
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
- , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_WarehouseList.html?Type=HWHID', 'yes']
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
, resize: false
, cancel: function () {
//$(".layui-btn").removeClass("layui-btn-disabled");
@@ -351,16 +514,16 @@
})
});
- //閫夋嫨浠撲綅
- form.on('submit(HSpID-BT)', function () {//閫夋嫨浠撲綅
+ //閫夋嫨宸ュ簭璁″垝鍗�
+ form.on('submit(HPlanID-BT)', function () {//閫夋嫨宸ュ簭璁″垝鍗�
layer.open({
type: 2
- , area: ['100%', '100%']
- , title: '浠撲綅鍒楄〃'
+ , area: ['80%', '80%']
+ , title: '宸ュ簭璁″垝鍗曞垪琛�'
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
- , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Sc_ProcessPlanViewList.html', 'yes']
, resize: false
, cancel: function () {
//$(".layui-btn").removeClass("layui-btn-disabled");
@@ -368,12 +531,12 @@
})
});
- //閫夋嫨淇濈
- form.on('submit(HKeeperID-BT)', function () {//閫夋嫨淇濈
+ //閫夋嫨璐d换浜�
+ form.on('submit(HEmployeeID-BT)', function () {//閫夋嫨璐d换浜�
layer.open({
type: 2
- , area: ['100%', '100%']
- , title: '淇濈鍒楄〃'
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
@@ -385,17 +548,17 @@
})
});
- //閫夋嫨楠屾敹
- form.on('submit(HSecManagerID-BT)', function (data) {//閫夋嫨楠屾敹
+ //閫夋嫨鐢宠宸ュ簭
+ form.on('submit(HSQProcID-BT)', function (data) {//閫夋嫨鐢宠宸ュ簭
var sMainStr = JSON.stringify(data.field);
layer.open({
type: 2
- , area: ['100%', '100%']
- , title: '楠屾敹鍒楄〃'
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
- , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes']
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
, resize: false
, cancel: function () {
//$(".layui-btn").removeClass("layui-btn-disabled");
@@ -403,16 +566,16 @@
})
});
- //閫夋嫨閮ㄩ棬
- form.on('submit(HDeptID-BT)', function () {//閫夋嫨閮ㄩ棬
+ //閫夋嫨璐d换宸ュ簭
+ form.on('submit(HZRProcID-BT)', function () {//閫夋嫨璐d换宸ュ簭
layer.open({
type: 2
- , area: ['100%', '100%']
- , title: '閮ㄩ棬鍒楄〃'
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
- , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes']
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
, resize: false
, cancel: function () {
//$(".layui-btn").removeClass("layui-btn-disabled");
@@ -446,59 +609,40 @@
//window.close();//鍏抽棴褰撳墠椤�
})
- //鎻愪氦
- form.on('submit(Saver)', function (data) {//鎻愪氦
- //debugger;
- if ($("#HExplanation").val() == "") {
- if ($("#HWHNAME").val() == "瀹藉箙鎴愬搧浠揘EW" || $("#HWHNAME").val() == "鏍锋湰浠揘EW") {
- $("#HWHNAME").val("");
- $("#HWHID").val("");
- layer.msg("璇锋壂MES搴撲綅鐮侊紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- return;
- }
- else
- {
- $("#HExplanation").val($("#HWHNAME").val());
- }
- }
- var sMainStr = JSON.stringify(data.field);
- var sSubStr = table.cache['wl-table'];
- //var sSourceType = $("#HBillType").val();
- var sSourceType = "3711";
- if (AllowLoadData(sSubStr) != false)//闈炵┖楠岃瘉
- {
- layer.load(3);
+ 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: "http://61.130.49.162:9090/WMSAPI///ProductIn/set_SaveProductInBill_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
- url: GetWEBURL() + "/ProductIn/set_SaveProductInBill_Json",
+ url: GetWEBURL()+"SaveBadReasonList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
async: true,
- data: { "oMain": sMainStr },
+ data: {"msg": sMainSub},
dataType: "json",
success: function (data) {
- if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
- layer.confirm("鐢熸垚浜у搧鍏ュ簱鍗�" + data.Message + $("#HBillNo").val(), {
- icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
- btn2: function () {
- //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
- //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
- parent.location.href = "../../../views/index.html"
- }//鍏抽棴
- }, function () { window.location.reload(); });//鏂板
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ layer.msg(data.Message, { icon: 1 });
}
else {
- layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+
+ f_alert(data.Message);
+ console.log("Reason" + sMainStr + "sub:::" + sSubStr);
}
layer.closeAll("loading");
},
- error: function (err) {
- layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ error: function (err) {
+
+ f_alert("閿欒:" + err);
+ console.log("Reason"+sMainStr);
}
});
- return false;
- }
- });
+ });
+ function f_alert(sMsg) {
+ layer.alert(sMsg, { icon: 5 });
+
+ }
//鐩戝惉鎻愪氦
form.verify({
@@ -527,27 +671,37 @@
}
});
});
- function GetHWHValue(obj) //杩斿洖璋冨叆浠撳簱
+ function GetHReasonValue(obj) //杩斿洖涓嶈壇鍘熷洜
{
- $("#HWHNAME").val(obj[0].HName);
+ $("#HWasterReasonName").val(obj[0].HName);
//sessionStorage["HWHID"] = obj[0].HItemID;
- $("#HWHID").val(obj[0].HItemID);
+ $("#HBadReasonID").val(obj[0].HItemID);
}
- function GetHSpValue(obj) { //杩斿洖璋冨叆浠撲綅
- $("#HStockPlaceName").val(obj[0].HName);
- $("#HStockPlaceID").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) { //杩斿洖淇濈
- $("#HKeeper").val(obj[0].HName);
- $("#HKeeperID").val(obj[0].HItemID);
+ function GetHKeeperValue(obj) { //杩斿洖鑱屽憳
+ $("#HEmpName").val(obj[0].HName);
+ //$("#HItemID").val(obj[0].HItemID);
}
- function GetHSecManagerValue(obj) { //杩斿洖楠屾敹
- $("#HSecManager").val(obj[0].HName);
- $("#HSecManagerID").val(obj[0].HItemID);
+ function GetHProcValue(obj) { //杩斿洖鐢宠宸ュ簭
+ $("#HSQProcName").val(obj[0].宸ュ簭);
+ $("#HProcID").val(obj[0].HItemID);
}
- function GetHDeptNameValue(obj) { //杩斿洖閮ㄩ棬
- $("#HDeptName").val(obj[0].HName);
- $("#HDeptID").val(obj[0].HItemID);
+ function GetHZRValue(obj) { //杩斿洖璐d换宸ュ簭
+ $("#HZRProcName").val(obj[0].宸ュ簭);
+ //$("#HItemID").val(obj[0].HItemID);
}
function AllowLoadData(sSubStr) { //闈炵┖楠岃瘉
//if ($("#HSourceBillNo").val() == '') {
--
Gitblit v1.9.1