From e107d58ffdfaf5461ade0e5fe91cfdaff25ca580 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期五, 13 十月 2023 11:11:14 +0800
Subject: [PATCH] 客诉单,异常反馈单,作业指导书
---
WebTM/views/基础资料/生产基础资料/Gy_SOPBillEdit.html | 56 +
WebTM/views/系统管理/用户管理/Xt_UserListEdit.html | 17
WebTM/views/品质管理/客诉处理/Crm_CustomerAppealBill_KaiBei.html | 1489 +++++++++++++++++++++++++++++++++++++++++++++
WebTM/views/质量管理/工序检验单/QC_ProcessCheckBill.html | 33
WebTM/views/生产管理/作业指导书/Gy_SOPBill_Video.html | 23
WebTM/views/index_KaiBeiNaiTe.html | 8
WebTM/views/生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html | 192 +++--
WebTM/views/质量管理/首件检验单/QC_Add_Edit_FirstPieceCheckBill.html | 123 ++-
WebTM/WebTM.csproj | 4
9 files changed, 1,799 insertions(+), 146 deletions(-)
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 8c74579..0553503 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -64,6 +64,8 @@
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
+ <Content Include="Files\OIP-C.jpg" />
+ <Content Include="Files\R-C.jpg" />
<Content Include="HtmlPage1.html" />
<Content Include="layuiadmin\ax\ax-response.css" />
<Content Include="layuiadmin\ax\ax.css" />
@@ -227,6 +229,7 @@
<Content Include="views\浜轰簨绠$悊\绂昏亴鐢宠\HR_EmpDimissionBillList.html" />
<Content Include="views\浜轰簨绠$悊\鑱屽憳寮傚姩鍗昞HR_EmpChangeBill.html" />
<Content Include="views\浜轰簨绠$悊\鑱屽憳寮傚姩鍗昞HR_EmpChangeBillList.html" />
+ <Content Include="views\鍝佽川绠$悊\瀹㈣瘔澶勭悊\Crm_CustomerAppealBill_KaiBei.html" />
<Content Include="views\鍝佽川绠$悊\瀹㈣瘔澶勭悊\Crm_CustomerAppealBill.html" />
<Content Include="views\鍝佽川绠$悊\瀹㈣瘔澶勭悊\Crm_CustomerAppealBillList.html" />
<Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Add_Edit_Gy_TemporaryArea.html" />
@@ -1840,7 +1843,6 @@
</Compile>
</ItemGroup>
<ItemGroup>
- <Folder Include="Files\" />
<Folder Include="views\浠撳瓨绠$悊\璋冩嫧鍗曟牳瀵筡" />
<Folder Include="views\浠撳瓨绠$悊\璋冩嫧鍗曠ń鏍竆" />
</ItemGroup>
diff --git a/WebTM/views/index_KaiBeiNaiTe.html b/WebTM/views/index_KaiBeiNaiTe.html
index ba4a438..9fa784b 100644
--- a/WebTM/views/index_KaiBeiNaiTe.html
+++ b/WebTM/views/index_KaiBeiNaiTe.html
@@ -217,7 +217,7 @@
//鍒ゆ柇鐢ㄦ埛鏄Щ鍔ㄧ杩樻槸PC绔�
var judgeMorPCflag = judgeMorPC();
if (!judgeMorPCflag) {//绉诲姩绔�
- window.location.href = 'index_Mobile_KaiBeiNaiTe.html'
+ //window.location.href = 'index_Mobile_KaiBeiNaiTe.html'
}
var ajaxLoad = layer.load();
@@ -286,7 +286,11 @@
subStr += '</dl>';
subStr += '</dd>';
} else {
- subStr += '<dd><a lay-href="' + subMenu.Hurl + '">'+ subMenu.HName + '</a></dd>';
+ if (subMenu.Hurl == '鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html') {
+ subStr += '<dd><a href="' + subMenu.Hurl + '">' + subMenu.HName + '</a></dd>';
+ } else {
+ subStr += '<dd><a lay-href="' + subMenu.Hurl + '">'+ subMenu.HName + '</a></dd>';
+ }
}
return subStr;
}
diff --git "a/WebTM/views/\345\223\201\350\264\250\347\256\241\347\220\206/\345\256\242\350\257\211\345\244\204\347\220\206/Crm_CustomerAppealBill_KaiBei.html" "b/WebTM/views/\345\223\201\350\264\250\347\256\241\347\220\206/\345\256\242\350\257\211\345\244\204\347\220\206/Crm_CustomerAppealBill_KaiBei.html"
new file mode 100644
index 0000000..29576db
--- /dev/null
+++ "b/WebTM/views/\345\223\201\350\264\250\347\256\241\347\220\206/\345\256\242\350\257\211\345\244\204\347\220\206/Crm_CustomerAppealBill_KaiBei.html"
@@ -0,0 +1,1489 @@
+锘�<!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">
+ <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></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 src="../../../layuiadmin/PubCustom.js"></script>
+ <style>
+ .main-btn { /*澶撮儴涓绘寜閽�*/
+ padding: 0 2px; /*璋冩暣鎸夐挳宸﹀彸绌洪殭澶у皬*/
+ height: 30px;
+ line-height: 30px;
+ }
+
+ .btn-title {
+ font-size: 16px;
+ }
+ /* 闃叉涓嬫媺妗嗙殑涓嬫媺鍒楄〃琚殣钘�---蹇呴』璁剧疆--- */
+ .layui-table-cell {
+ overflow: visible !important;
+ }
+ /* 浣垮緱涓嬫媺妗嗕笌鍗曞厓鏍煎垰濂藉悎閫� */
+ td .layui-form-select {
+ margin-top: -10px;
+ margin-left: -15px;
+ margin-right: -15px;
+ }
+
+ .layui-form-item .layui-inline {
+ margin-top: 5px;
+ margin-bottom: 5px;
+ margin-right: 0px;
+ }
+
+ .layui-form-label {
+ width: 25%;
+ }
+ </style>
+
+</head>
+<body>
+ <div class="layui-fluid" style="padding: 0;">
+ <div class="layui-card" style="padding: 2px;background-color: #efefef;">
+ <div class="layui-card-body" style="padding: 1px;">
+ <form class="layui-form" action="" lay-filter="formData" style="background-color:white;">
+ <div style="padding: 2px; ">
+ <!--<button type="button" id="btnSearch" style="margin-left: 0px" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btnSearch" >棰勮</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">鏂板</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">淇敼</button>-->
+
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">淇濆瓨</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnEdit" id="btnEdit">閫�鍑�</button>
+ <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_CheckBill" id="set_CheckBill">瀹℃牳</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_AbandonCheck" id="set_AbandonCheck">鍙嶅鏍�</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_CloseBill" id="set_CloseBill">鍏抽棴</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_CancelCloseBill" id="set_CancelCloseBill">鍙嶅叧闂�</button>-->
+ </div>
+ <div class="layui-tab" lay-filter="tab-POStockInBill">
+ <ul class="layui-tab-title" lay-filter="tab-all">
+ <li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li>
+ <li lay-id="2" style="padding:1px;">闄勪欢淇℃伅</li>
+ <li lay-id="3" style="padding:1px;">鍏朵粬淇℃伅</li>
+ </ul>
+ <div class="layui-tab-content">
+ <!--鍩烘湰淇℃伅-->
+ <div class="layui-tab-item layui-show">
+ <div class="layui-form-item" style="padding-top: 10px;">
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鍗曟嵁鍙�<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly>
+ <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鏃ユ湡<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">涓婚<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HContext" lay-verify="HContext" id="HContext" style="">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">璁㈠崟鍙�<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HOrderBillNo" lay-verify="HOrderBillNo" id="HOrderBillNo">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">浜у搧缂栫爜<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HMaterNumber1" name="HMaterNumber1" id="HMaterNumber1" style="background-color:#efefef4d;width: 62%;display: inline-block;" readonly>
+ <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHMater" id="btnSearchHMater" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">浜у搧鍚嶇О锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">瑙勬牸鍨嬪彿锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鐗╂枡DC==<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" lay-verify="HProDate" name="HProDate" id="HProDate" style="padding-left: 80px;">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">璐d换浜�<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HManagerName" name="HManagerName" id="HManagerName" style="background-color:#efefef4d;width: 62%;display: inline-block;" readonly>
+ <input type="hidden" name="HManager" id="HManager" lay-verify="HManager" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHManager" id="btnSearchHManager" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;display:none;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">瀹㈡湇<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HServiceManName" name="HServiceManName" id="HServiceManName" style="background-color:#efefef4d;width: 62%;display: inline-block;" readonly>
+ <input type="hidden" name="HServiceMan" id="HServiceMan" lay-verify="HServiceMan" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHServiceMan" id="btnSearchHServiceMan" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">杞﹂棿<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HWorkShopName" name="HWorkShopName" id="HWorkShopName" style="background-color: #efefef4d; width: 62%; display: inline-block;" readonly>
+ <input type="hidden" name="HWorkShopID" id="HWorkShopID" lay-verify="HWorkShopID" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHWorkShop" id="btnSearchHWorkShop" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">瀹㈡埛<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HCusName" name="HCusName" id="HCusName" style="background-color:#efefef4d;width: 62%;display: inline-block;" readonly>
+ <input type="hidden" name="HCusID" id="HCusID" lay-verify="HCusID" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHCus" id="btnSearchHCus" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">妫�楠屽憳==<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HManagerName" name="HManagerName" id="HManagerName" style="background-color:#efefef4d;width: 62%;display: inline-block;" readonly>
+ <input type="hidden" name="HManager" id="HManager" lay-verify="HManager" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHManager" id="btnSearchHManager" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;display:none;">
+ <label class="layui-form-label" style="width: 85px;">瀹㈡埛鑱旂郴浜�<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HLinkMan" lay-verify="HLinkMan" id="HLinkMan">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鎶曡瘔鍒嗙被锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px; width: 200px;">
+ <select name="HAppealType" id="HAppealType" lay-filter="HAppealType">
+ <option style="color:blue;" selected="selected" value="浜у搧鎶曡瘔">浜у搧鎶曡瘔</option>
+ <option style="color:blue;" value="鏈嶅姟鎶曡瘔">鏈嶅姟鎶曡瘔</option>
+ <option style="color:blue;" value="瀹㈡埛鎰忚">瀹㈡埛鎰忚</option>
+ <option style="color:blue;" value="鍏跺畠">鍏跺畠</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鎶曡瘔鏃堕棿<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="datetime-local" class="layui-input" lay-verify="HAppealTime" name="HAppealTime" id="HAppealTime" style="padding-left: 20px;width:198px;">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">绱ф�ョ▼搴︼細</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HLevel" id="HLevel" lay-filter="HLevel">
+ <option style="color:blue;" selected="selected" value="鏅��">鏅��</option>
+ <option style="color:blue;" value="绱ф��">绱ф��</option>
+ <option style="color:blue;" value="闈炲父绱ф��">闈炲父绱ф��</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">澶勭悊缁撴灉锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px; width: 200px;">
+ <select name="HWorkedResult" id="HWorkedResult" lay-filter="HWorkedResult">
+ <option style="color:blue;" selected="selected" value="鏈鐞�">鏈鐞�</option>
+ <option style="color:blue;" value="澶勭悊涓�">澶勭悊涓�</option>
+ <option style="color:blue;" value="澶勭悊瀹屾垚">澶勭悊瀹屾垚</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="display:none;">
+ <label class="layui-form-label" style="width: 85px;">鍙戠敓鏃堕棿<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="datetime-local" class="layui-input" lay-verify="HHappenTime" name="HHappenTime" id="HHappenTime" style="padding-left: 20px;width:198px;">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;display:none;">
+ <label class="layui-form-label" style="width: 85px;">璁¢噺鍗曚綅锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" lay-verify="HUnitName" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;" readonly>
+ <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" value="0">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;display:none;">
+ <label class="layui-form-label" style="width: 85px;">浜у搧绫诲瀷锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" lay-verify="HMaterType" name="HMaterType" id="HMaterType" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鐢熶骇鏁伴噺锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" lay-verify="HQty" name="HQty" id="HQty" value="0" onfocus="this.select();">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">涓嶈壇鏁伴噺锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" lay-verify="HBadQty" name="HBadQty" id="HBadQty" value="0" onfocus="this.select();">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">涓嶈壇鐜囷細</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" lay-verify="HBadRate" name="HBadRate" id="HBadRate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">涓嶈壇鍘熷洜<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HBadReasonName" name="HBadReasonName" id="HBadReasonName" style="background-color:#efefef4d;width: 63%;display: inline-block;" readonly>
+ <input type="hidden" name="HBadReasonID" id="HBadReasonID" lay-verify="HBadReasonID" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHBadReason" id="btnSearchHBadReason" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">闂鏉ユ簮锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBadSource" lay-verify="HBadSource" id="HBadSource">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鎶曡瘔鍦扮偣==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBadSource" lay-verify="HBadSource" id="HBadSource">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">瀹㈡埛缁熻==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">闂绫诲瀷==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鍙戠敓宸ュ簭<label style="color:red"> * </label>锛�</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HProcName" name="HProcName" id="HProcName" style="background-color:#efefef4d;width: 62%;display: inline-block;" readonly>
+ <input type="hidden" name="HProcID" id="HProcID" lay-verify="HProcID" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHProc" id="btnSearchHProc" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:340px;display:none">
+ <label class="layui-form-label" style="width: 85px;">鏄惁鍋滅嚎锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsStopLine" id="HIsStopLine" lay-filter="HIsStopLine">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鏄惁閲嶅鍙戠敓锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsRepeat" id="HIsRepeat" lay-filter="HIsRepeat">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鐗╂枡鏂欏彿锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HMaterNumber" lay-verify="HMaterNumber" id="HMaterNumber">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">瀹㈡埛鏂欏彿==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HMaterNumber" lay-verify="HMaterNumber" id="HMaterNumber">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;display:none">
+ <label class="layui-form-label" style="width: 85px;">鏄惁娑夊強鐗╂枡锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">闂璇︾粏鎻忚堪锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBadRemark" lay-verify="HBadRemark" id="HBadRemark">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">闂閿欒褰掔被==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">涓嶈壇鍘熷洜鍒嗘瀽鍜屾敼鍠勬帾鏂�==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBadRemark" lay-verify="HBadRemark" id="HBadRemark">
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">璀︾ず鍗曟槸鍚︽敹鍥�==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">瀹㈡埛鏄惁闂幆==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">鍐呴儴闂鏄惁鍏抽棴==锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <select name="HIsMater" id="HIsMater" lay-filter="HIsMater">
+ <option style="color:blue;" selected="selected" value="鏄�">鏄�</option>
+ <option style="color:blue;" value="鍚�">鍚�</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline" style="width:320px;">
+ <label class="layui-form-label" style="width: 85px;">澶囨敞锛�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HRemark" lay-verify="HRemark" id="HRemark">
+ </div>
+ </div>
+ <div class="layui-inline" style="display:none;">
+ <label class="layui-form-label" style="width: 85px;">涓嶈壇鍝丼N鐮侊細</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBarCode" lay-verify="HBarCode" id="HBarCode">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row" style="display:none;">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">闂鐜拌薄绠�杩帮細</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBadNote" lay-verify="HBadNote" id="HBadNote">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--闄勫姞淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-form-item">
+ <div class="layui-upload">
+ <button type="button" class="layui-btn" id="testList">閫夋嫨鏂囦欢</button><input class="layui-upload-file" type="file" accept="" name="file" multiple="">
+ <div class="layui-upload-list">
+ <table class="layui-table" lay-filter="mainTable">
+ <thead>
+ <tr>
+ <th>鏂囦欢鍚�</th>
+ <th>鍥剧墖</th>
+ <th>澶у皬</th>
+ <th>鐘舵��</th>
+ <th>鎿嶄綔</th>
+ </tr>
+ </thead>
+ <tbody id="ProImgByList" class="ProImgByList">
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--鍏朵粬淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-form-item">
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍒跺崟浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">淇敼浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">瀹℃牳浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍒跺崟鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">淇敼鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">瀹℃牳鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍏抽棴浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">浣滃簾浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">閫�鍥炰汉</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBacker" id="HBacker" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍏抽棴鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">浣滃簾鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">閫�鍥炴棩鏈�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="HBackDate" id="HBackDate" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+
+ <script>
+
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index' //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'laydate', 'table', 'element', 'upload'], function () {
+ //#region 鍏叡鍙橀噺
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , upload = layui.upload
+ , element = layui.element;
+
+ //妯″潡鍚�
+ var HModName = "Crm_CustomerAppealBill";
+ //鑾峰彇鍙傛暟
+ var params = getUrlVars();
+ var OperationType = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鏁版嵁绫诲瀷 1娣诲姞 淇濆瓨 2澶嶅埗 3 缂栬緫
+ var linterid = params[params[1]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+
+ //#endregion
+
+ //#region 杩涘叆椤甸潰鍗冲姞杞�
+ //#region 鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage.login != "login") {
+ layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+ icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+ }, function () { window.location.href = "../../user/login.html"; });
+ }
+ //#endregion
+
+ //#region 鍒ゆ柇骞惰缃搷浣滅被鍨嬨�侀〉闈㈠垵濮嬪寲
+ if (OperationType == null || OperationType == 1) { //鏂板
+ OperationType = 1;
+ //鐢熸垚骞惰缃富琛ㄧ殑鍐呯爜鍜屽崟鎹彿
+ createBillNo();
+ //鍒濆鍖栨椂闂寸粍浠�
+ set_InitDate();
+ //鍒濆鍖栧埗鍗曚汉鍜屽埗鍗曟椂闂�
+ $("#HMaker").val(sessionStorage["HUserName"]);
+ $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd"));
+ $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
+ }
+ //else if (OperationType == 2) { //澶嶅埗
+ // //绂佺敤缁勭粐閫夐」
+ // //$("#HOrgID").attr("disabled", true);
+ // RoadBillMain(linterid);
+ // $.ajax({
+ // url: GetWEBURL() + "/Web/GetMAXNum",
+ // type: "GET",
+ // async: false,
+ // data: { "HBillType": '4750' },
+ // success: function (d) {
+ // $("#HInterID").val(d.data[0].HInterID);
+ // $("#HBillNo").val(d.data[0].HBillNo);
+ // $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
+ // }
+ // });
+ //}
+ else if (OperationType == 3) {//濡傛灉淇敼鍒欒蛋涓嬮潰 new //缂栬緫
+ //鍒濆鍖栭」鐩樁娈佃〃
+ RoadBillMain(linterid);
+ PicUpload();
+ getFile();
+ }
+ //#endregion
+
+ //#endregion
+
+ //#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
+
+ //#region 寮圭獥閫夋嫨瑙﹀彂浜嬩欢
+ //#region 閫夋嫨浜у搧鎸夐挳
+ form.on('submit(btnSearchHMater)', function () {
+ get_checkSearchHMater();
+ });
+ //#endregion
+
+ //#region 閫夋嫨涓诲浜烘寜閽�
+ form.on('submit(btnSearchHManager)', function () {
+ get_checkSearchHManager();
+ });
+ //#endregion
+
+ //#region 閫夋嫨瀹㈡湇鎸夐挳
+ form.on('submit(btnSearchHServiceMan)', function () {
+ get_checkSearchHServiceMan();
+ });
+ //#endregion
+
+ //#region 閫夋嫨瀹㈡埛浠g爜鎸夐挳
+ form.on('submit(btnSearchHCus)', function () {
+ get_checkSearchHCus();
+ });
+ //#endregion
+
+ //#region 閫夋嫨杞﹂棿鎸夐挳
+ form.on('submit(btnSearchHWorkShop)', function () {
+ get_checkSearchHWorkShop();
+ });
+ //#endregion
+
+ //#region 閫夋嫨涓嶈壇鍘熷洜鎸夐挳
+ form.on('submit(btnSearchHBadReason)', function () {
+ get_checkSearchHBadReason();
+ });
+ //#endregion
+
+ //#region 閫夋嫨鍙戠敓宸ュ簭鎸夐挳
+ form.on('submit(btnSearchHProc)', function () {
+ get_checkSearchHProc();
+ });
+ //#endregion
+ //#endregion
+
+ //#region 澶嶉�夋瑙﹀彂浜嬩欢
+ //#endregion
+
+ //#region 鎿嶄綔鎸夐挳瑙﹀彂浜嬩欢
+ //#region 淇濆瓨鎻愪氦
+ form.on('submit(btnSave)', function (data) {//鎻愪氦
+ if (AllowLoadData(data)) {
+ set_AddNew(data);
+ }
+ });
+ //#endregion
+
+ //#region 閫�鍑�
+ form.on('submit(btnEdit)', function (data) {
+ if (params[1] != null) {
+ Pub_Close(1);
+ } else if (params[1] == null) {
+ Pub_Close(2);
+ }
+ });
+ //#endregion
+ //#endregion
+
+ //#region 鏂囨湰妗嗙洃鍚�
+ $(document).ready(function () {
+ //#region 瀹屾垚鏁伴噺鏂囨湰妗嗙洃鍚�
+ $("#HQty").on('blur', function (data) {
+ var ref = /^\d+(\.\d+)?$/; //鍒ゆ柇鏄惁鏄潪璐熸诞鐐规暟
+ var currHQty = data.currentTarget.value;
+ var HBadQty = $("#HBadQty").val();
+ var HBadRate = 0;
+
+ if (currHQty == "" || currHQty == "0") {
+ $("#HBadRate").val("");
+ } else if (!ref.test(currHQty)) {
+ $("#HQty").val("0");
+ $("#HBadRate").val("");
+ layer.msg("瀹屾垚鏁伴噺鏍煎紡杈撳叆閿欒锛岃杈撳叆闈炶礋鏁帮紒");
+ return;
+ } else if (!ref.test(HBadQty)) {
+ $("#HBadRate").val("");
+ layer.msg("涓嶈壇鏁伴噺鏍煎紡杈撳叆閿欒锛岃杈撳叆闈炶礋鏁帮紒");
+ return;
+ } else {
+ HBadRate = (HBadQty / currHQty).toFixed(2);
+ $("#HBadRate").val(HBadRate);
+ }
+ });
+ //#endregion
+
+ //#region 涓嶈壇鏁伴噺鏂囨湰妗嗙洃鍚�
+ $("#HBadQty").on('blur', function (data) {
+ var ref = /^\d+(\.\d+)?$/; //鍒ゆ柇鏄惁鏄潪璐熸诞鐐规暟
+ var currHBadQty = data.currentTarget.value;
+ var HQty = $("#HQty").val();
+ var HBadRate = 0;
+
+ if (currHBadQty == "" || currHBadQty == "0") {
+ $("#HBadRate").val("");
+ } else if (!ref.test(currHBadQty)) {
+ $("#HBadQty").val("0");
+ $("#HBadRate").val("");
+ layer.msg("瀹屾垚涓嶈壇鏍煎紡杈撳叆閿欒锛岃杈撳叆闈炶礋鏁帮紒");
+ return;
+ } else if (!ref.test(HQty)) {
+ $("#HBadRate").val("");
+ layer.msg("瀹屾垚鏁伴噺鏍煎紡杈撳叆閿欒锛岃杈撳叆闈炶礋鏁帮紒");
+ return;
+ } else {
+ HBadRate = (currHBadQty / HQty).toFixed(2);
+ $("#HBadRate").val(HBadRate);
+ }
+ });
+ //#endregion
+ });
+ //#endregion
+
+ //#endregion
+
+ //
+ form.on('submit(Cancel)', function () {
+ //sessionStorage["SourceFlag"] = false;
+ parent.location.href = "../../../views/index.html"
+ //window.close();//鍏抽棴褰撳墠椤�
+ })
+
+
+
+
+ //#region 鐩戝惉鎻愪氦
+ form.verify({
+ numberOrEmpty: function (value, item) {
+
+ // if (value != '') {
+ if (!/^\d+$/.test(value)) {
+ return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0';
+ }
+ //}
+ }
+ });
+ //#endregion
+
+
+
+ //#endregion
+
+ //#region 姝ら〉闈㈡墍鏈夌殑鏂规硶
+ //#region 鑾峰彇鍙傛暟
+ 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;
+ }
+ //#endregion
+
+ //鏂囦欢涓婁紶
+ function PicUpload() {
+ //澶氬浘鐗囦笂浼�
+ //澶氭枃浠跺垪琛ㄧず渚�
+ var ProImgByList = $('#ProImgByList')
+ , uploadListIns = upload.render({
+ elem: '#testList'
+
+ , url: GetWEBURL() + "/Cj_StationOutBill/UploadFile1"
+ , accept: 'file'
+ , multiple: true
+ , auto: false
+ //, bindAction: '#testListAction' //鎸夋壄缁戝畾
+ , data: { "HBillNo": $("#HBillNo").val(), "HRemark": $("#HRemark").val(), "HUserName": sessionStorage["HUserName"] }
+ , choose: function (obj) {
+ var files = this.files = obj.pushFile(); //灏嗘瘡娆¢�夋嫨鐨勬枃浠惰拷鍔犲埌鏂囦欢闃熷垪
+ //璇诲彇鏈湴鏂囦欢
+ obj.preview(function (index, file, result) {
+ var tr = $(['<tr id="upload-' + index + '">'
+ , '<td>' + file.name + '</td>'
+ , '<td>' + '<img id="showImg" class="ImgClass" style="width: 150px; margin:10px;cursor:pointer;"src="' + result + '" alt="' + file.name + '">' + '</td>'
+ , '<td>' + (file.size / 1014).toFixed(1) + 'kb</td>'
+ , '<td>绛夊緟涓婁紶</td>'
+ , '<td>'
+ , '<button class="layui-btn layui-btn-xs demo-reload ">涓婁紶</button>'
+ , '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>'
+ , '</td>'
+ , '</tr>'].join(''));
+
+
+ //鍗曚釜閲嶄紶
+ tr.find('.demo-reload').on('click', function () {
+ obj.upload(index, file);
+ return false;
+ });
+
+ //鍒犻櫎
+ tr.find('.demo-delete').on('click', function () {
+ delete files[index]; //鍒犻櫎瀵瑰簲鐨勬枃浠�
+ tr.remove();
+ uploadListIns.config.elem.next()[0].value = ''; //娓呯┖ input file 鍊硷紝浠ュ厤鍒犻櫎鍚庡嚭鐜板悓鍚嶆枃浠朵笉鍙��
+ });
+
+ ProImgByList.append(tr);
+
+ //鏌愬浘鐗囨斁澶ч瑙�
+ $(".ImgClass").click(function () {
+ var idx = $(".ImgClass").index(this);//鑾峰彇鐐瑰嚮琛屼笅鏍囨樉绀哄搴旂殑鍥剧墖
+
+ var width = $("#showImg").width();
+ var height = $("#showImg").height();
+ var scaleWH = width / height;
+ var bigH = 600;
+ var bigW = scaleWH * bigH;
+ if (bigW > 900) {
+ bigW = 900;
+ bigH = bigW / scaleWH;
+ }
+
+ // 鏀惧ぇ棰勮鍥剧墖
+ layer.open({
+ type: 1,
+ title: false,
+ closeBtn: 1,
+ shadeClose: true,
+ area: [bigW + 'px', bigH + 'px'], //瀹介珮
+ content: "<img width='" + bigW + "' height='" + bigH + "' src=" + result + " />"
+ });
+ });
+ });
+ }
+ , done: function (res, index, upload) {
+ if (res.code == 1) { //涓婁紶鎴愬姛
+ var tr = ProImgByList.find('tr#upload-' + index)
+ , tds = tr.children();
+ tds.eq(3).html('<span style="color: #5FB878;">涓婁紶鎴愬姛</span>');
+ tds.eq(4).html(''); //娓呯┖鎿嶄綔
+ //tds.eq(4).html('<td>'+
+ // '<button class="layui-btn layui-btn-xs demo-dowload" type="button" id="deltefile" onclick="javascript:dowload(this)"><i class="layui-icon layui-icon-download-circle layuiadmin-button-btn"></i>涓嬭浇</button>' +
+ // '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" type="button" id="deltefile" onclick="javascript:toManager(this)"><i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>鍒犻櫎</button>' +
+ // '</td>'); //娣诲姞涓嬭浇锛屽垹闄ゆ寜閽�
+ //tds.eq(3).find('.demo-reload').addClass('layui-hide'); //闅愯棌涓婁紶
+ return delete this.files[index]; //鍒犻櫎鏂囦欢闃熷垪宸茬粡涓婁紶鎴愬姛鐨勬枃浠�
+ }
+ this.error(index, upload);
+ }
+ , error: function (index, upload) {
+ var tr = ProImgByList.find('tr#upload-' + index)
+ , tds = tr.children();
+ tds.eq(2).html('<span style="color: #FF5722;">涓婁紶澶辫触[妫�鏌ユ枃浠跺悕鍙婃枃浠舵牸寮廬</span>');
+ tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //鏄剧ず涓婁紶
+ }
+ });
+ }
+
+ //缂栬緫鏃惰幏鍙栧浘鐗�
+ function getFile() {
+ var ProImgByList = $('#ProImgByList')
+ $.ajax({
+ url: GetWEBURL() + '/Cj_StationOutBill/Filelist',
+ type: "GET",
+ data: { "HBillNo": $("#HBillNo").val() },
+ success: function (data1) {
+ if (data1.count == 1) {
+ var index = 0;
+ for (var i = 0; i < data1.data.length; i++) {
+ var tr = $(['<tr id="upload-' + i + '">'
+ , '<td style="display:none">' + data1.data[i].HItemID + '</td>'
+ , '<td style="display:none">' + data1.data[i].HSourceBillNo + '</td>'
+ , '<td>' + data1.data[i].HFileName + '</td>'
+ , '<td>' + '<img id="showImg' + i + '" class="ImgClass" style="width: 150px; margin:10px;cursor:pointer;"src="' + data1.data[i].HFilePath + '" alt="' + data1.data[i].HFileName + '">' + '</td>'
+ , '<td>' + (data1.data[i].HFileSize / 1014).toFixed(1) + 'kb</td>'
+ , '<td style="color: #5FB878;">涓婁紶鎴愬姛</td>'
+ , '<td style="display:none">' + data1.data[i].url + '</td>'
+ , '<td>'
+ , '<button class="layui-btn layui-btn-xs demo-dowload" type="button" id="deltefile" onclick="javascript:dowload(this)"><i class="layui-icon layui-icon-download-circle layuiadmin-button-btn"></i>涓嬭浇</button>'
+ , '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" type="button" id="deltefile" onclick="javascript:toManager(this)"><i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>鍒犻櫎</button>'
+ , '</td>'
+ , '</tr>'].join(''));
+
+ $('#ProImgByList').append(tr);
+ }
+ //鏌愬浘鐗囨斁澶ч瑙�
+ $(".ImgClass").click(function () {
+ var idx = $(".ImgClass").index(this);//鑾峰彇鐐瑰嚮琛屼笅鏍囨樉绀哄搴旂殑鍥剧墖
+
+ var width = $("#showImg" + idx).width();
+ var height = $("#showImg" + idx).height();
+ var scaleWH = width / height;
+ var bigH = 600;
+ var bigW = scaleWH * bigH;
+ if (bigW > 900) {
+ bigW = 900;
+ bigH = bigW / scaleWH;
+ }
+ // 鏀惧ぇ棰勮鍥剧墖
+ layer.open({
+ type: 1,
+ title: false,
+ closeBtn: 1,
+ shadeClose: true,
+ area: [bigW + 'px', bigH + 'px'], //瀹介珮
+ content: "<img width='" + bigW + "' height='" + bigH + "' src=" + data1.data[idx].HFilePath + " />"
+ });
+ });
+
+ } else {
+ layer.alert(data1.code + data1.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+ }
+
+
+ //#region 鐢熸垚鍗曟嵁鍙�
+ function createBillNo() {
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetMAXNum",
+ type: "GET",
+ data: { "HBillType": '7511' },
+ success: function (d) {
+ //console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
+ PicUpload();
+ }
+ });
+ }
+ //#endregion
+
+ //#region 鏃堕棿缁勪欢鍒濆鍖�
+ function set_InitDate() {
+ var dateList = ["#HAppealTime", "#HHappenTime"];
+ for (var i = 0; i < dateList.length; i++) {
+ $(dateList[i]).val(Format(new Date(), "yyyy-MM-dd hh:mm:ss"));
+ }
+ }
+ //#endregion
+
+ //#region 浜у搧閫夋嫨椤甸潰
+ function get_checkSearchHMater() {
+ layer.open({
+ type: 2//寮圭獥绫诲瀷
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '浜у搧鍒楄〃'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_MaterialList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HMaterID").val(checkStatus.data[0].HItemID);//浜у搧鍐呯爜
+ $("#HMaterNumber1").val(checkStatus.data[0].HNumber);//浜у搧浠g爜
+ $("#HMaterName").val(checkStatus.data[0].HName);//浜у搧鍚嶇О
+ $("#HMaterModel").val(checkStatus.data[0].HModel);
+ $("#HUnitID").val(checkStatus.data[0].HUnitID);
+ $("#HUnitName").val(checkStatus.data[0].HUnitName);
+
+ var HMaterID = checkStatus.data[0].HItemID;
+ getMaterTypeByID(HMaterID);
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 涓诲浜洪�夋嫨椤甸潰
+ function get_checkSearchHManager() {
+ layer.open({
+ type: 2//寮圭獥绫诲瀷
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '鍛樺伐琛�'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HManager").val(checkStatus.data[0].HItemID);//瀹㈡埛id
+ $("#HManagerName").val(checkStatus.data[0].HName);//瀹㈡埛鍚嶇О
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 瀹㈡湇閫夋嫨椤甸潰
+ function get_checkSearchHServiceMan() {
+ layer.open({
+ type: 2//寮圭獥绫诲瀷
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '鍛樺伐琛�'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HServiceMan").val(checkStatus.data[0].HItemID);//瀹㈡埛id
+ $("#HServiceManName").val(checkStatus.data[0].HName);//瀹㈡埛鍚嶇О
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 瀹㈡埛閫夋嫨椤甸潰
+ function get_checkSearchHCus() {
+ layer.open({
+ type: 2//寮圭獥绫诲瀷
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '瀹㈡埛琛�'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_CustomerList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HCusID").val(checkStatus.data[0].HItemID);//瀹㈡埛id
+ $("#HCusName").val(checkStatus.data[0].HName);//瀹㈡埛鍚嶇О
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 杞﹂棿閫夋嫨椤甸潰
+ function get_checkSearchHWorkShop() {
+ //鎵撳紑閮ㄩ棬灏忕獥浣�
+ layer.open({
+ type: 2
+ , skin: "layui-layer-rim" //鍔犱笂杈规
+ , title: "杞﹂棿鍒楄〃" //鏍囬
+ , closeBtn: 1 //绐椾綋鍙充笂瑙掑叧闂� 鐨� 鏍峰紡
+ , shift: 2 //寮瑰嚭鍔ㄧ敾
+ , area: ["90%", "90%"] //绐椾綋澶у皬
+ , maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
+ , content: ["../../../views/Baseset/鍩虹璧勬枡/Gy_DepartmentList.html?Type=HDeptID", "yes"]
+ , btn: ["纭畾", "鍙栨秷"]
+ , btn1: function (index, laero) {
+ //鎸夐挳涓� 鐨勫洖璋�
+ var iframeWindow = window["layui-layer-iframe" + index];//鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//鑾峰彇閫変腑鐨勬暟鎹�
+
+ if (checkStatus.data.length != 1) {
+ return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+ }
+
+ $("#HWorkShopID").val(checkStatus.data[0].HItemID);//鍐呯爜
+ $("#HWorkShopName").val(checkStatus.data[0].HName);//鍚嶇О
+ layer.close(index);//鍏抽棴寮圭獥
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 涓嶈壇鍘熷洜閫夋嫨椤甸潰
+ function get_checkSearchHBadReason() {
+ layer.open({
+ type: 2
+ , skin: "layui-layer-rim" //鍔犱笂杈规
+ , title: "涓嶈壇鍘熷洜鍒楄〃" //鏍囬
+ , closeBtn: 1 //绐椾綋鍙充笂瑙掑叧闂� 鐨� 鏍峰紡
+ , shift: 2 //寮瑰嚭鍔ㄧ敾
+ , area: ["90%", "90%"] //绐椾綋澶у皬
+ , maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
+ , content: ["../../../views/鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_BadReason.html", "yes"]
+ , btn: ["纭畾", "鍙栨秷"]
+ , btn1: function (index, laero) {
+ //鎸夐挳涓� 鐨勫洖璋�
+ var iframeWindow = window["layui-layer-iframe" + index];//鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//鑾峰彇閫変腑鐨勬暟鎹�
+
+ if (checkStatus.data.length != 1) {
+ return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+ }
+
+ $("#HBadReasonID").val(checkStatus.data[0].HItemID);//鍐呯爜
+ $("#HBadReasonName").val(checkStatus.data[0].涓嶈壇鍘熷洜鍚嶇О);//鍚嶇О
+ layer.close(index);//鍏抽棴寮圭獥
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 鍙戠敓宸ュ簭閫夋嫨椤甸潰
+ function get_checkSearchHProc() {
+ layer.open({
+ type: 2//寮圭獥绫诲瀷
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '宸ュ簭鍒楄〃'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HProcID").val(checkStatus.data[0].HItemID);
+ $("#HProcName").val(checkStatus.data[0].宸ュ簭);
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
+ //#region 淇濆瓨HMaker
+ function set_AddNew(data) {
+ //鑻ヤ负缂栬緫-淇濆瓨锛屽垯鏇存柊淇敼浜哄拰淇敼鏃堕棿
+ if (OperationType == 3) {
+ data.field.HUpDater = sessionStorage["HUserName"];
+ data.field.HUpDateDate = Format(new Date(), "yyyy-MM-dd");
+ $("#HUpDater").val(sessionStorage["HUserName"]);
+ $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd"));
+ }
+ //鑾峰彇琛ㄥご鏁版嵁骞跺簭鍒楀寲
+ var sMainStr = JSON.stringify(data.field); //涓昏〃鏁版嵁
+
+ //鎷兼帴搴忓垪鍖栫殑鏁版嵁
+ var sMainSub = sMainStr + ';' + OperationType + ";" + sessionStorage["HUserName"];
+
+ var index = layer.load();
+ $.ajax({
+ type: "POST",
+ url: GetWEBURL() + "/Crm_CustomerAppealBill/SaveCustomerAppealBill",
+ async: true,
+ data: { "msg": sMainSub },
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) {
+ $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);
+ layer.close(index);
+ layer.msg("鎻愪氦鎴愬姛");
+ }
+ else {
+ layer.close(index);
+ layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ },
+ error: function (err) {
+ layer.close(index);
+ layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ });
+ }
+ //#endregion
+
+ //#region 缂栬緫 椤甸潰璧嬪��
+ function RoadBillMain(linterid)//鍔犺浇琛ㄥご
+ {
+ $.ajax({
+ url: GetWEBURL() + "/Crm_CustomerAppealBill/editInit",
+ type: "GET",
+ async: false,
+ data: { "HInterID": linterid, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ var tableMain = result.data;
+ //涓昏〃 璧嬪��
+ form.val("formData", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
+ "HInterID": tableMain[0]["HInterID"]
+ , "HBillNo": tableMain[0]["HBillNo"]
+ , "HDate": tableMain[0]["HDate"] == null ? "" : Format(new Date(tableMain[0]["HDate"]), "yyyy-MM-dd")
+ , "HContext": tableMain[0]["HContext"]
+ , "HOrderBillNo": tableMain[0]["HOrderBillNo"]
+ , "HMaterID": tableMain[0]["HMaterID"]
+ , "HMaterNumber1": tableMain[0]["HMaterNumber1"]
+ , "HMaterName": tableMain[0]["HMaterName"]
+ , "HMaterModel": tableMain[0]["HMaterModel"]
+ , "HUnitID": tableMain[0]["HUnitID"]
+ , "HUnitName": tableMain[0]["HUnitName"]
+ , "HMaterType": tableMain[0]["HMaterType"]
+ , "HManager": tableMain[0]["HManager"]
+ , "HManagerName": tableMain[0]["HManagerName"]
+ , "HServiceMan": tableMain[0]["HServiceMan"]
+ , "HServiceManName": tableMain[0]["HServiceManName"]
+ , "HCusID": tableMain[0]["HCusID"]
+ , "HCusName": tableMain[0]["HCusName"]
+ , "HLinkMan": tableMain[0]["HLinkMan"]
+ , "HAppealType": tableMain[0]["HAppealType"]
+ , "HAppealTime": tableMain[0]["HAppealTime"] == null ? "" : Format(new Date(tableMain[0]["HAppealTime"]), "yyyy-MM-dd hh:mm:ss")
+ , "HHappenTime": tableMain[0]["HHappenTime"] == null ? "" : Format(new Date(tableMain[0]["HHappenTime"]), "yyyy-MM-dd hh:mm:ss")
+ , "HLevel": tableMain[0]["HLevel"]
+ , "HWorkShopID": tableMain[0]["HWorkShopID"]
+ , "HWorkShopName": tableMain[0]["HWorkShopName"]
+ , "HQty": tableMain[0]["HQty"]
+ , "HBadQty": tableMain[0]["HBadQty"]
+ , "HBadReasonID": tableMain[0]["HBadReasonID"]
+ , "HBadReasonName": tableMain[0]["HBadReasonName"]
+ , "HBadSource": tableMain[0]["HBadSource"]
+ , "HProcID": tableMain[0]["HProcID"]
+ , "HProcName": tableMain[0]["HProcName"]
+ , "HWorkedResult": tableMain[0]["HWorkedResult"]
+ , "HIsStopLine": tableMain[0]["HIsStopLine"]
+ , "HIsRepeat": tableMain[0]["HIsRepeat"]
+ , "HIsMater": tableMain[0]["HIsMater"]
+ , "HMaterNumber": tableMain[0]["HMaterNumber"]
+ , "HBarCode": tableMain[0]["HBarCode"]
+ , "HBadNote": tableMain[0]["HBadNote"]
+ , "HBadRemark": tableMain[0]["HBadRemark"]
+ , "HRemark": tableMain[0]["HRemark"]
+ , "HMaker": tableMain[0]["HMaker"]
+ , "HMakeDate": tableMain[0]["HMakeDate"] == null ? "" : Format(new Date(tableMain[0]["HMakeDate"]), "yyyy-MM-dd")
+ , "HUpDater": tableMain[0]["HUpDater"]
+ , "HUpDateDate": tableMain[0]["HUpDateDate"] == null ? "" : Format(new Date(tableMain[0]["HUpDateDate"]), "yyyy-MM-dd")
+ , "HChecker": tableMain[0]["HChecker"]
+ , "HCheckDate": tableMain[0]["HCheckDate"] == null ? "" : Format(new Date(tableMain[0]["HCheckDate"]), "yyyy-MM-dd")
+ , "HCloseMan": tableMain[0]["HCloseMan"]
+ , "HCloseDate": tableMain[0]["HCloseDate"] == null ? "" : Format(new Date(tableMain[0]["HCloseDate"]), "yyyy-MM-dd")
+ , "HDeleteMan": tableMain[0]["HDeleteMan"]
+ , "HDeleteDate": tableMain[0]["HDeleteDate"] == null ? "" : Format(new Date(tableMain[0]["HDeleteDate"]), "yyyy-MM-dd")
+ });
+
+ var HQty = $("#HQty").val();
+ var HBadQty = $("#HBadQty").val();
+ if (HQty == 0) {
+ $("#HBadRate").val("");
+ } else {
+ var HBadRate = (HBadQty / HQty).toFixed(2);
+ $("#HBadRate").val(HBadRate);
+ }
+
+
+
+ } else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ }
+ , error: function (err) {
+ layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ })
+ }
+ //#endregion
+
+ //#region 鏁版嵁鏍¢獙
+ function AllowLoadData(data) {
+ //#region 鏁版嵁鏍¢獙宸ュ叿
+ var temp; //璁板綍闇�瑕佹楠岀殑灞炴�х殑鍊硷紝鐢ㄤ簬妫�楠�
+ var ref = /^\d+(\.\d+)?$/; //鍒ゆ柇鏄惁鏄潪璐熸诞鐐规暟
+ //#endregion
+
+ //#region 琛ㄥご鏁版嵁妫�楠�
+ temp = $("#HBillNo").val();
+ if (temp == "") {
+ layer.msg("鍗曟嵁鍙蜂笉鑳戒负绌猴紒");
+ return false;
+ }
+
+ temp = $("#HDate").val();
+ if (temp == "") {
+ layer.msg("鏃ユ湡涓嶈兘涓虹┖锛�");
+ return false;
+ }
+
+ temp = $("#HContext").val();
+ if (temp == "") {
+ layer.msg("涓婚涓嶈兘涓虹┖锛�");
+ return false;
+ }
+
+ temp = $("#HContext").val();
+ if (temp == "") {
+ layer.msg("涓婚涓嶈兘涓虹┖锛�");
+ return false;
+ }
+
+ temp = $("#HOrderBillNo").val();
+ if (temp == "") {
+ layer.msg("璁㈠崟鍙蜂笉鑳戒负绌猴紒");
+ return false;
+ }
+
+ temp = $("#HMaterID").val();
+ if (temp == "0") {
+ layer.msg("浜у搧鏈�夋嫨锛�");
+ return false;
+ }
+
+ temp = $("#HManager").val();
+ if (temp == "0") {
+ layer.msg("涓诲浜烘湭閫夋嫨锛�");
+ return false;
+ }
+
+ //temp = $("#HServiceMan").val();
+ //if (temp == "0") {
+ // layer.msg("瀹㈡湇鏈�夋嫨锛�");
+ // return false;
+ //}
+
+ temp = $("#HCusID").val();
+ if (temp == "0") {
+ layer.msg("瀹㈡埛鏈�夋嫨锛�");
+ return false;
+ }
+
+ //temp = $("#HLinkMan").val();
+ //if (temp == "") {
+ // layer.msg("瀹㈡埛鑱旂郴浜轰笉鑳戒负绌猴紒");
+ // return false;
+ //}
+
+ temp = $("#HAppealTime").val();
+ if (temp == "") {
+ layer.msg("鎶曡瘔鏃堕棿涓嶈兘涓虹┖锛�");
+ return false;
+ }
+
+ temp = $("#HHappenTime").val();
+ if (temp == "") {
+ layer.msg("鍙戠敓鏃堕棿涓嶈兘涓虹┖锛�");
+ return false;
+ }
+
+ temp = $("#HWorkShopID").val();
+ if (temp == "0") {
+ layer.msg("杞﹂棿鏈�夋嫨锛�");
+ return false;
+ }
+
+ temp = $("#HQty").val();
+ if (!ref.test(temp)) {
+ layer.msg("瀹屾垚鏁伴噺鏁版嵁鏍煎紡閿欒锛岃杈撳叆闈炶礋鏁帮紒");
+ }
+
+ temp = $("#HBadQty").val();
+ if (!ref.test(temp)) {
+ layer.msg("涓嶈壇鏁伴噺鏁版嵁鏍煎紡閿欒锛岃杈撳叆闈炶礋鏁帮紒");
+ }
+
+ temp = $("#HBadReasonID").val();
+ if (temp == "0") {
+ layer.msg("涓嶈壇鍘熷洜鏈�夋嫨锛�");
+ return false;
+ }
+
+ temp = $("#HProcID").val();
+ if (temp == "0") {
+ layer.msg("鍙戠敓宸ュ簭鏈�夋嫨锛�");
+ return false;
+ }
+
+ //#endregion
+ return true;
+ }
+ //#endregion
+
+ //#region 鏍规嵁鐗╂枡鍐呯爜鑾峰彇鐩稿叧淇℃伅-鐗╂枡鍒嗙被
+ function getMaterTypeByID(HMaterID) {
+ $.ajax({
+ url: GetWEBURL() + "/Crm_CustomerAppealBill/getInfoByHMaterID",
+ type: "GET",
+ async: false,
+ data: { "HMaterID": HMaterID, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ var tableMain = result.data;
+
+ var HMaterTypeName = tableMain[0]["HMaterTypeName"];
+ $("#HMaterType").val(HMaterTypeName);
+ } else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ }
+ , error: function (err) {
+ layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ })
+ }
+ //#endregion
+ //#endregion
+ //#endregion
+
+
+
+
+ });
+
+ //涓嬭浇鏂囦欢
+ function dowload(r) {
+ //寰楀埌褰撳墠鎵�鍦ㄨ
+ var rows = r.parentNode.parentNode.rowIndex;
+ //寰楀埌鎵�鍦ㄨ鐨勭浜斿垪鐨勫唴瀹�:鏂囦欢鍦板潃
+ var url = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(6)").html();
+ /*window.location.href = url;*/
+ window.open(url)
+ }
+
+ //鍒犻櫎鏂囦欢
+ function toManager(r) {
+ //寰楀埌褰撳墠鎵�鍦ㄨ
+ var rows = r.parentNode.parentNode.rowIndex;
+ //寰楀埌鎵�鍦ㄨ鐨勭涓�鍒楃殑鍐呭:涓婚敭ID
+ var HItemID = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(0)").html();
+ //寰楀埌鎵�鍦ㄨ鐨勭浜屽垪鐨勫唴瀹�:鍗曟嵁鍙�
+ var HSourceBillNo = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(1)").html();
+ //寰楀埌鎵�鍦ㄨ鐨勭涓夊垪鐨勫唴瀹�:鏂囦欢鍚嶇О
+ var HFileName = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(2)").html();
+ layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+
+ //鍒犻櫎宸蹭笂浼犳枃浠�
+ $.ajax({
+ url: GetWEBURL() + '/Cj_StationOutBill/DeleteFilelist',
+ type: "GET",
+ data: { "HItemID": HItemID, "HSourceBillNo": HSourceBillNo, "HFileName": HFileName },
+ success: function (data1) {
+ if (data1.count == 1) {
+ layer.alert(data1.Message, { icon: 1 });
+ $("#ProImgByList tr").eq((rows - 1)).remove();
+ }
+ else {
+ layer.alert(data1.code + data1.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+ })
+ }
+ </script>
+</body>
+</html>
\ No newline at end of file
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillEdit.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillEdit.html"
index 9c89533..77bc24c 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillEdit.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillEdit.html"
@@ -245,6 +245,7 @@
var option2 = [];
var HModName = "Gy_SOPBillEdit";
var arr = [];
+ var HEntryID = 1;
//#endregion
//#region 杩涘叆椤甸潰鏃㈠姞杞�
@@ -253,6 +254,7 @@
set_InitGrid2();
document.getElementById("right_table").style.visibility = 'hidden'; // 闅愯棌鍒楄〃
$('#ChoseFile').addClass("layui-btn-disabled").attr("disabled", true); //绂佺敤鎸夐挳
+ $('#ChoseFile').removeClass("layui-btn-disabled").attr("disabled", false);
$('#delete').addClass("layui-btn-disabled").attr("disabled", true);
//鍔犺浇鏁版嵁鍒扮綉鏍�
//get_Display(sWhere);
@@ -283,7 +285,26 @@
layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
}
-
+ //琛岀洃鍚簨浠�
+ table.on('row(mainTable)', function (obj) {
+ HEntryID = Number($(obj.tr).attr("data-index")) + Number(1);
+ var flag = !obj.tr.find(':checkbox:first').prop('checked');
+ obj.tr.find(':checkbox').prop('checked', flag);
+ if (flag) {
+ obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //璁剧疆澶嶉�夋閫変腑鏍峰紡
+ $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+ } else {
+ obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//鍙栨秷澶嶉�夋閫変腑鏍峰紡
+ $(obj.tr.selector).attr({ "style": "background:" });//鍙栨秷褰撳墠tr棰滆壊
+ }
+ //mainTable 涓鸿〃鏍糏D 娉ㄦ剰姝ゅ濡傛灉ID涓嶆纭皢瀵艰嚧浣犲湪鐩戝惉澶嶉�夋鏃惰幏鍙栦笉鍒颁綘閫夋嫨鐨勬暟鎹紝鍓嶉潰鐨勫彧鏄坊鍔犳垨鍒犻櫎閫変腑鏈�変腑鏍峰紡浠ュ強璁剧疆鑳屾櫙鑹诧紝瀛椾綋棰滆壊
+ layui.each(table.cache.mainTable, function (i, l) {
+ if (obj.tr.index() == l.LAY_TABLE_INDEX) {
+ l.LAY_CHECKED = flag;
+ }
+ });
+ PicUpload();
+ });
//#endregion
//#region 鐐瑰嚮浜嬩欢鍖呮嫭on form浜嬩欢绛�
@@ -645,6 +666,14 @@
}
});
}
+ var Updata = {
+ // 閫夋嫨鏂囦欢鎸夐挳ID
+ ChoseFile: 'ChoseFile',
+ // 纭涓婁紶鎸夐挳ID
+ btnUpLoad: 'btnUpLoad',
+ // 涓婁紶鍒濆鍖栨鏁�
+ initUploadListNum: 0
+ };
//鏂囦欢涓婁紶
function PicUpload() {
layui.use('upload', function () {
@@ -652,6 +681,11 @@
//澶氬浘鐗囦笂浼�
//澶氭枃浠跺垪琛ㄧず渚�
var ProImgByList = $('#ProImgByList')
+
+ // 鍒濆鍖栨椂閲嶆柊缁戝畾鎸夐挳瀵硅薄
+ var elemStr = '#' + Updata.ChoseFile + '-' + Updata.initUploadListNum;// 閫夋嫨鏂囦欢鎸夐挳
+ var impDataBtnStr = '#' + Updata.btnUpLoad + '-' + Updata.initUploadListNum;// 纭涓婁紶鎸夐挳
+
var uploadListIns = upload.render({
elem: '#ChoseFile'
, url: GetWEBURL() + "/Gy_SOPBill/UploadFile1"
@@ -659,9 +693,22 @@
, multiple: true
, auto: false
//, bindAction: '#testListAction' //鎸夋壄缁戝畾
- , data: { "HBillNo": $("#HBillNo").val(), "HInterID": $("#HInterID").val(), "HUserName": sessionStorage["HUserName"] }
+ , data: { "HBillNo": $("#HBillNo").val(), "HInterID": $("#HInterID").val(), "HUserName": sessionStorage["HUserName"], "HEntryID": HEntryID }
+ , before: function () {
+ // 鐐瑰嚮涓婁紶鍚庝慨鏀圭粦瀹氬璞$殑ID锛屼娇鍏跺彲浠ラ噸鏂板垵濮嬪寲
+ Updata.initUploadListNum += 1;
+ $(elemStr).id = '#' + Updata.ChoseFile + '-' + Updata.initUploadListNum;
+ $(impDataBtnStr).id = '#' + Updata.ChoseFile + '-' + Updata.initUploadListNum;
+ console.log($(elemStr));
+ console.log("initUploadListNum:" + Updata.initUploadListNum + " elemStr:" + $(elemStr).id + " impDataBtnStr:" + $(impDataBtnStr).id);
+ return;
+ }
, choose: function (obj) {
+ // 娓呯┖鍘嗗彶涓婁紶鏂囦欢锛岃В鍐砪hoose鍙墽琛屼竴娆$殑闂锛侊紒锛�
+ uploadListIns.config.elem.next()[0].value = '';
+
var files = this.files = obj.pushFile(); //灏嗘瘡娆¢�夋嫨鐨勬枃浠惰拷鍔犲埌鏂囦欢闃熷垪
+ console.log(files);
document.getElementById("right_table").style.visibility = ''; //浣挎爣绛炬樉绀�
//璇诲彇鏈湴鏂囦欢
obj.preview(function (index, file, result) {
@@ -670,7 +717,7 @@
, '<td>' + (file.size / 1014).toFixed(1) + 'kb</td>'
, '<td>绛夊緟涓婁紶</td>'
, '<td>'
- , '<button class="layui-btn layui-btn-xs demo-reload ">涓婁紶</button>'
+ , '<button class="layui-btn layui-btn-xs demo-reload " id="btnUpLoad">涓婁紶</button>'
, '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>'
, '</td>'
, '</tr>'].join(''));
@@ -690,8 +737,7 @@
ProImgByList.append(tr);
});
- }
-
+ }
, done: function (res, index, upload) {
if (res.code == 1) { //涓婁紶鎴愬姛
var tr = ProImgByList.find('tr#upload-' + index)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\275\234\344\270\232\346\214\207\345\257\274\344\271\246/Gy_SOPBill_Video.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\275\234\344\270\232\346\214\207\345\257\274\344\271\246/Gy_SOPBill_Video.html"
index 93009f4..a25921e 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\275\234\344\270\232\346\214\207\345\257\274\344\271\246/Gy_SOPBill_Video.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\275\234\344\270\232\346\214\207\345\257\274\344\271\246/Gy_SOPBill_Video.html"
@@ -76,17 +76,17 @@
</div> <!--top-end-->
<div style="width:98%;height:570px;min-height:300px;position: relative;">
<!--//杞挱鍥�-->
- <div class="layui-carousel" id="test1" style="position:absolute;">
+ <div class="layui-carousel" id="test1" style="position:absolute;"><!--閫忔槑搴� opacity: 0.2-->
<div carousel-item id="file">
</div>
</div>
<!--//瑙嗛-->
<div class="layui-colla-item" id="IsHide" style="z-index: 50;margin-left:912px;padding-top:385px;">
- <video controls width="290" height="180">
- <!--<source src="../../Files/yyh.qlv" type="video/webm" />
+ <video controls width="290" height="180" id="video">
+ <!--<source src="../../../Files/flower.webm" type="video/webm" />-->
- <source src="../../../Files/yyh.qlv" type="video/mp4" />
+ <!--<source src="../../../Files/yyh.qlv" type="video/mp4" />
Download the
<a href="/media/cc0-videos/flower.webm">WEBM</a>
@@ -183,6 +183,21 @@
});
//#endregion
+ var vvv = '';
+ vvv += '<source src="../../../Files/flower.webm" type="video/webm" />'
+ //$("#video").append(vvv);
+
+ var video = document.querySelector("video");
+
+ //寮�濮嬫挱鏀捐棰�
+ video.addEventListener("play", (event) => {
+ $('#test1').css('opacity', 0.5);
+ });
+ //缁撴潫鎾斁瑙嗛
+ video.addEventListener("pause", (event) => {
+ $('#test1').css('opacity', 1);
+ });
+
//鑾峰彇褰撳墠鐢熶骇璧勬簮鐨勭敓浜ц鍗�
get_Display(sWhere, HID);
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html"
index 6e067f8..0727c05 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html"
@@ -121,7 +121,7 @@
<div class="layui-inline">
<label class="layui-form-label">涓婚:</label>
<div class="layui-input-inline">
- <input class="layui-input" name="HContext" lay-verify="HContext" id="HContext" autocomplete="off">
+ <input class="layui-input" name="HContext" lay-verify="HContext" id="HContext" autocomplete="off" style="width:485px">
</div>
</div>
</div>
@@ -136,11 +136,10 @@
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label">鍙戦�侀儴闂�:</label>
+ <label class="layui-form-label">鎺ユ敹浜�:</label>
<div class="layui-input-inline">
- <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="float:left;width:150px;" disabled>
- <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="" style="float:left;width:150px;">
- <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptList" id="HDeptList" style="width:40px;">
+ <input type="text" name="HReceiveMan" id="HReceiveMan" class="layui-input" value="" style="float:left;width:150px;" disabled>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HReceiveManList" id="HReceiveManList" style="width:40px;">
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
</button>
</div>
@@ -156,21 +155,22 @@
</div>
</div>
</div>
- </div>
- <div class="layui-form-item">
<div class="layui-inline">
- <label class="layui-form-label">鎺ユ敹浜�:</label>
+ <label class="layui-form-label">鍙戦�佺被鍨�:</label>
<div class="layui-input-inline">
- <input type="text" name="HReceiveMan" id="HReceiveMan" class="layui-input" value="" style="float:left;width:150px;" disabled>
- <button type="button" lay-submit="" class="layui-btn" lay-filter="HReceiveManList" id="HReceiveManList" style="width:40px;">
- <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
- </button>
+ <select name="HSendType" lay-filter="HSendType" id="HSendType">
+ <option value="鍏叡" selected="selected">鍏叡</option>
+ <option value="涓汉">涓汉</option>
+ </select>
</div>
</div>
+ </div>
+ <div class="layui-form-item">
+
<div class="layui-inline">
<label class="layui-form-label">鎶勯��:</label>
- <div class="layui-input-inline">
- <input type="text" name="HCopyMan" id="HCopyMan" class="layui-input" value="" style="float:left;width:150px;" disabled>
+ <div >
+ <input type="text" name="HCopyMan" id="HCopyMan" class="layui-input" value="" style="float:left;width:1035px;" disabled>
<button type="button" lay-submit="" class="layui-btn" lay-filter="HCopyManList" id="HCopyManList" style="width:40px;">
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
</button>
@@ -185,57 +185,6 @@
</button>
</div>
</div>-->
- <div class="layui-inline">
- <label class="layui-form-label">鍙戦�佺被鍨�:</label>
- <div class="layui-input-inline">
- <select name="HSendType" lay-filter="HSendType" id="HSendType">
- <option value="鍏叡" selected="selected">鍏叡</option>
- <option value="涓汉">涓汉</option>
- </select>
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label">婧愬崟绫诲瀷:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="HMainSourceBillType" lay-verify="HMainSourceBillType" id="HMainSourceBillType" disabled autocomplete="off">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">婧愬崟鍗曞彿:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="HMainSourceBillNo" lay-verify="HMainSourceBillNo" id="HMainSourceBillNo" disabled autocomplete="off">
- <input id="HMainSourceInterID" name="HMainSourceInterID" value="0" type="hidden" />
- <input id="HMainSourceEntryID" name="HMainSourceEntryID" value="0" type="hidden" />
- </div>
- </div>
- <div class="layui-inline" style="display:none;">
- <label class="layui-form-label">鍌績娆℃暟:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="HHasten" lay-verify="HHasten" id="HHasten" autocomplete="off" value="0">
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label">浜у搧鍚嶇О:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" >
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">瑙勬牸鍨嬪彿:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel" >
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">鏁伴噺:</label>
- <div class="layui-input-inline">
- <input class="layui-input" name="HQty" lay-verify="HQty" id="HQty" autocomplete="off">
- </div>
- </div>
</div>
<!--<div class="layui-form-item">
<div class="layui-inline">
@@ -252,7 +201,7 @@
<div class="layui-inline">
<label class="layui-form-label">璇︾粏绫诲:</label>
<div class="layui-input-inline">
- <textarea placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" class="layui-textarea" name="HDescription" id="HDescription" style="width:780px;"></textarea>
+ <textarea placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" class="layui-textarea" name="HDescription" id="HDescription" style="width:1080px;"></textarea>
</div>
</div>
</div>
@@ -260,7 +209,75 @@
<div class="layui-inline">
<label class="layui-form-label">澶囨敞:</label>
<div class="layui-input-inline">
- <textarea placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" class="layui-textarea" name="HRemark" id="HRemark" style="width:780px;"></textarea>
+ <textarea placeholder="璇疯緭鍏ヨ缁嗗唴瀹�" class="layui-textarea" name="HRemark" id="HRemark" style="width:1080px;"></textarea>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item">
+ <div class="layui-inline">
+ <label class="layui-form-label">浜у搧缂栫爜:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HMaterNumber" lay-verify="HMaterNumber" id="HMaterNumber">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">浜у搧鍚嶇О:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">瑙勬牸鍨嬪彿:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">娑夊強鏁伴噺:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HQty" lay-verify="HQty" id="HQty" autocomplete="off">
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item">
+ <div class="layui-inline">
+ <label class="layui-form-label">婧愬崟鍗曞彿:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HMainSourceBillNo" lay-verify="HMainSourceBillNo" id="HMainSourceBillNo" disabled autocomplete="off">
+ <input id="HMainSourceInterID" name="HMainSourceInterID" value="0" type="hidden" />
+ <input id="HMainSourceEntryID" name="HMainSourceEntryID" value="0" type="hidden" />
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">婧愬崟绫诲瀷:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HMainSourceBillType" lay-verify="HMainSourceBillType" id="HMainSourceBillType" disabled autocomplete="off">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">鍙戦�侀儴闂�:</label>
+ <div class="layui-input-inline">
+ <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="float:left;width:150px;" disabled>
+ <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="" style="float:left;width:150px;">
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptList" id="HDeptList" style="width:40px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">鎺ユ敹閮ㄩ棬:</label>
+ <div class="layui-input-inline">
+ <input type="text" name="HRecDeptName" id="HRecDeptName" class="layui-input" value="" style="float:left;width:150px;" disabled>
+ <input type="hidden" name="HRecDeptID" id="HRecDeptID" class="layui-input" value="" style="float:left;width:150px;">
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HRecDeptList" id="HRecDeptList" style="width:40px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline" style="display:none;">
+ <label class="layui-form-label">鍌績娆℃暟:</label>
+ <div class="layui-input-inline">
+ <input class="layui-input" name="HHasten" lay-verify="HHasten" id="HHasten" autocomplete="off" value="0">
</div>
</div>
</div>
@@ -746,7 +763,7 @@
layer.open({
type: 2,
skin: 'layui-layer-rim', //鍔犱笂杈规
- title: '璧勬簮鍒楄〃',
+ title: '閮ㄩ棬鍒楄〃',
closeBtn: 1,
shift: 2,
area: ['80%', '80%'],
@@ -778,6 +795,45 @@
});
});
+
+ //鎺ユ敹閮ㄩ棬
+ form.on('submit(HRecDeptList)', function () {
+ //椤甸潰灞�-鑷畾涔�
+ layer.open({
+ type: 2,
+ skin: 'layui-layer-rim', //鍔犱笂杈规
+ title: '閮ㄩ棬鍒楄〃',
+ closeBtn: 1,
+ shift: 2,
+ area: ['80%', '80%'],
+ maxmin: true,
+ content: ['../../PublicPage/DeptInformation.html', 'yes'],
+ btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {
+
+ //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ $("#HRecDeptName").val(checkStatus.data[0].HName);
+ $("#HRecDeptID").val(checkStatus.data[0].HItemID);
+ layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) {
+ //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+ //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+ },
+ end: function () {
+
+ },
+ success: function (layero, index) {
+
+ }
+ });
+ });
+
//鎺ユ敹浜�
form.on('submit(HReceiveManList)', function () {
//椤甸潰灞�-鑷畾涔�
diff --git "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Xt_UserListEdit.html" "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Xt_UserListEdit.html"
index 5f003a1..bc0b58e 100644
--- "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Xt_UserListEdit.html"
+++ "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Xt_UserListEdit.html"
@@ -264,7 +264,7 @@
var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
linterid = params[params[1]];//婧愬崟id
var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷
- var closeType = params[params[3]]; //鍏抽棴绫诲瀷
+ var closeType = params[params[3]]; //鍏抽棴绫诲瀷
}
@@ -285,6 +285,9 @@
, formSelects = layui.formSelects
var option = [];
//#endregion
+
+ //灏唘rl鍙傛暟涓殑涓枃涔辩爜閲嶆柊杞崲鎴愪腑鏂囥�� 娉細linterid 鏄弬鏁板懡鍚嶏紝涓嶆槸鍊�
+ linterid = getParams("linterid");
//#region 杩涘叆椤甸潰鏃㈠姞杞�
Organ();//鍔犺浇缁勭粐
@@ -424,6 +427,18 @@
//#endregion
+ //灏唘rl鍙傛暟涓殑涓枃涔辩爜閲嶆柊杞崲鎴愪腑鏂�
+ function getParams(key) {
+ var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)");
+ //濡傛灉鍦板潃鏍忎腑鍑虹幇涓枃鍒欒繘琛岀紪鐮�
+ var r = encodeURI(window.location.search).substr(1).match(reg);
+ if (r != null) {
+ //灏嗕腑鏂囩紪鐮佺殑瀛楃閲嶆柊鍙樻垚涓枃
+ return decodeURI(unescape(r[2]));
+ }
+ return null;
+ };
+
//鍒濆鍖栬〃鏍�
function set_ClearBill() {
set_InitGrid();
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html"
index dd0d023..6729c89 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html"
@@ -1275,16 +1275,16 @@
//缂栬緫鏃跺姞杞借〃澶�
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);
- }
- })
+ //$.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);
+ // }
+ //})
var ajaxLoad = layer.load();
var sWhere = " and hmainid=" + linterid;
@@ -1669,6 +1669,19 @@
$("#HUpLimit").val(checkStatus.data[0].涓婇檺鍊�);
$("#HDownLimit").val(checkStatus.data[0].涓嬮檺鍊�);
+ option.data[$("#HEntryID").val() - 1].HSampleSchemeID = checkStatus.data[0].hmainid;
+ option.data[$("#HEntryID").val() - 1].HSampleSchemeName = checkStatus.data[0].鎶芥牱鏂规鍚嶇О;
+ option.data[$("#HEntryID").val() - 1].HSamplingType = checkStatus.data[0].鎶芥牱绫诲瀷;
+ option.data[$("#HEntryID").val() - 1].HInspectionLevel = checkStatus.data[0].妫�楠屾按骞�;
+ option.data[$("#HEntryID").val() - 1].HStrictness = checkStatus.data[0].涓ユ牸搴�;
+ option.data[$("#HEntryID").val() - 1].HAQL = checkStatus.data[0].AQL;
+ option.data[$("#HEntryID").val() - 1].HSampleQty = checkStatus.data[0].鏍锋湰閲�;
+ option.data[$("#HEntryID").val() - 1].HSampleQty2 = checkStatus.data[0].鏍锋湰閲�;
+ option.data[$("#HEntryID").val() - 1].HAcceptQty = checkStatus.data[0].鍏佽鏁�;
+ option.data[$("#HEntryID").val() - 1].HRejectQty = checkStatus.data[0].鎷掔粷鏁�;
+ option.data[$("#HEntryID").val() - 1].HUpLimit = checkStatus.data[0].涓婇檺鍊�;
+ option.data[$("#HEntryID").val() - 1].HDownLimit = checkStatus.data[0].涓嬮檺鍊�;
+
rowdata_Value = [];
for (let i = 1; i <= checkStatus.data[0].鏍锋湰閲�; i++) {
rowdata_Value.push({
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\351\246\226\344\273\266\346\243\200\351\252\214\345\215\225/QC_Add_Edit_FirstPieceCheckBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\351\246\226\344\273\266\346\243\200\351\252\214\345\215\225/QC_Add_Edit_FirstPieceCheckBill.html"
index e31661f..3f7283c 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\351\246\226\344\273\266\346\243\200\351\252\214\345\215\225/QC_Add_Edit_FirstPieceCheckBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\351\246\226\344\273\266\346\243\200\351\252\214\345\215\225/QC_Add_Edit_FirstPieceCheckBill.html"
@@ -812,7 +812,7 @@
$("#HMainSourceBillType").val(data.HBillType);
$("#HMainSourceInterID").val(data.HInterID);
$("#HICMOEntryID").val(data.HICMOEntryID);
- $("#HQCSchemeName").val(data.妫�楠屾柟妗堝悕绉�);
+ $("#HQCSchemeName").val(data.妫�楠屾柟妗堝悕绉�);
$("#HQCSchemeID").val(data.妫�楠屾柟妗圛D);
$("#HProcName").val(data.褰撳墠宸ュ簭);
//鑾峰彇琛ㄤ綋妫�楠岄」鐩俊鎭�
@@ -1317,7 +1317,7 @@
});
//淇濆瓨
- function set_SaveBill(data) {
+ function set_SaveBill(data) {
//璧嬪�兼渶鍚庝竴涓�変腑琛岀殑鏁版嵁缁檕ption.data
Assignment(LastIndex, LastIndex);
//淇濆瓨鏈�鍚庝竴娆$偣鍑昏鐨勬楠屽��
@@ -1367,7 +1367,7 @@
var sMainStr = JSON.stringify(data.field);
var sSubStr = JSON.stringify(table.cache['mainTable']);
var sSubValue = JSON.stringify(table.cache['ValueTable']);
- var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"] + ';' + sSubValue;
+ var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"] + ';' + sSubValue;
var index = layer.load();
$.ajax({
@@ -1788,6 +1788,19 @@
$("#HUpLimit").val(checkStatus.data[0].涓婇檺鍊�);
$("#HDownLimit").val(checkStatus.data[0].涓嬮檺鍊�);
+ option.data[$("#HEntryID").val() - 1].HSampleSchemeID = checkStatus.data[0].hmainid;
+ option.data[$("#HEntryID").val() - 1].HSampleSchemeName = checkStatus.data[0].鎶芥牱鏂规鍚嶇О;
+ option.data[$("#HEntryID").val() - 1].HSamplingType = checkStatus.data[0].鎶芥牱绫诲瀷;
+ option.data[$("#HEntryID").val() - 1].HInspectionLevel = checkStatus.data[0].妫�楠屾按骞�;
+ option.data[$("#HEntryID").val() - 1].HStrictness = checkStatus.data[0].涓ユ牸搴�;
+ option.data[$("#HEntryID").val() - 1].HAQL = checkStatus.data[0].AQL;
+ option.data[$("#HEntryID").val() - 1].HSampleQty = checkStatus.data[0].鏍锋湰閲�;
+ option.data[$("#HEntryID").val() - 1].HSampleQty2 = checkStatus.data[0].鏍锋湰閲�;
+ option.data[$("#HEntryID").val() - 1].HAcceptQty = checkStatus.data[0].鍏佽鏁�;
+ option.data[$("#HEntryID").val() - 1].HRejectQty = checkStatus.data[0].鎷掔粷鏁�;
+ option.data[$("#HEntryID").val() - 1].HUpLimit = checkStatus.data[0].涓婇檺鍊�;
+ option.data[$("#HEntryID").val() - 1].HDownLimit = checkStatus.data[0].涓嬮檺鍊�;
+
rowdata_Value = [];
for (let i = 1; i <= checkStatus.data[0].鏍锋湰閲�; i++) {
rowdata_Value.push({
@@ -1819,7 +1832,7 @@
$.ajax({
url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID",
type: "GET",
- data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty},
+ data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty },
success: function (result) {
if (result.code == 1) {
var rowdata = [];
@@ -1828,19 +1841,19 @@
for (var i = 0; i < result.data.length; i++) {
//瀛愯〃 璧嬪��
rowdata.push(
- {
- "HQCCheckItemID": data[i]["HQCCheckItemID"], "妫�楠岄」鐩�": data[i]["妫�楠岄」鐩�"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "妫�楠屼华鍣�": data[i]["妫�楠屼华鍣�"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["鍗曚綅鍚嶇О"], "HQCNote": "", "HAnalysisMethod": data[i]["鍒嗘瀽鏂规硶"], "HResult": data[i]["HResult"],
- "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["閲嶇偣妫�鏌�"] == 1 ? true : false, "HStatus": 0, "HSampleSchemeID": data[i]["HSampleSchemeID"], "HUnitID": data[i]["HUnitID"],
- "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "",
- "HSampleSchemeName": data[i].鎶芥牱鏂规鍚嶇О, "HSampleQty": data[i].鏍锋湰閲�, "HAcceptQty": data[i].鍏佽鏁�, "HInspectionLevel": data[i].妫�楠屾按骞�, "HRejectQty": data[i].鎷掔粷鏁�,
- "HStrictness": data[i].涓ユ牸搴�, "HSampleUnRightQty": "", "HAQL": data[i].AQL, "HSamplingType": data[i].鎶芥牱绫诲瀷
+ {
+ "HQCCheckItemID": data[i]["HQCCheckItemID"], "妫�楠岄」鐩�": data[i]["妫�楠岄」鐩�"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "妫�楠屼华鍣�": data[i]["妫�楠屼华鍣�"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["鍗曚綅鍚嶇О"], "HQCNote": "", "HAnalysisMethod": data[i]["鍒嗘瀽鏂规硶"], "HResult": data[i]["HResult"],
+ "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["閲嶇偣妫�鏌�"] == 1 ? true : false, "HStatus": 0, "HSampleSchemeID": data[i]["HSampleSchemeID"], "HUnitID": data[i]["HUnitID"],
+ "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "",
+ "HSampleSchemeName": data[i].鎶芥牱鏂规鍚嶇О, "HSampleQty": data[i].鏍锋湰閲�, "HAcceptQty": data[i].鍏佽鏁�, "HInspectionLevel": data[i].妫�楠屾按骞�, "HRejectQty": data[i].鎷掔粷鏁�,
+ "HStrictness": data[i].涓ユ牸搴�, "HSampleUnRightQty": "", "HAQL": data[i].AQL, "HSamplingType": data[i].鎶芥牱绫诲瀷
}
- );
+ );
SampleNum.push(data[i].鏍锋湰閲�);
}
-
+
//妫�楠岄」鐩�
- for (let j = 1; j <= data[data.length-1].鏍锋湰閲�; j++) {
+ for (let j = 1; j <= data[data.length - 1].鏍锋湰閲�; j++) {
rowdata_Value.push({
"HSEQ": j, "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val()
});
@@ -1857,7 +1870,7 @@
$('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true);
$('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true);
}
- form.render('select');
+ form.render('select');
option_Check = result.data;
@@ -1871,7 +1884,7 @@
trindex = result.data.length - 1;
$("#HEntryID").val() - 1
- }
+ }
}
})
}
@@ -2455,7 +2468,7 @@
} else {
isFristClick = false;
}
-
+
});
//#endregion
@@ -3014,7 +3027,7 @@
HUpOffSet: option.data[nowindex].HUpOffSet, //涓婂亸宸�
HDownOffSet: option.data[nowindex].HDownOffSet, //涓嬪亸宸�
};
- } else {
+ } else {
//var dataobj = {
// HEntryID: $("#HEntryID").val(), //琛屽彿
// HStatus: $("#HStatus").val(), //鐘舵��
@@ -3096,44 +3109,44 @@
};
}
//if (option.data[0].HSampleSchemeID == 0) {
- //璧嬪�硷紝鍌ㄥ瓨鏁版嵁
- maindata[nowindex].HStatus = dataobj.HStatus;
- maindata[nowindex].HSampleSchemeID = dataobj.HSampleSchemeID;
- maindata[nowindex].HUnitID = dataobj.HUnitID;
- maindata[nowindex].HInspectVal = dataobj.HInspectVal;
- maindata[nowindex].HTargetVal = dataobj.HTargetVal;
- maindata[nowindex].HUpLimit = dataobj.HUpLimit;
- maindata[nowindex].HDownLimit = dataobj.HDownLimit;
- maindata[nowindex].HUpOffSet = dataobj.HUpOffSet;
- maindata[nowindex].HDownOffSet = dataobj.HDownOffSet;
- maindata[nowindex].HSampleDamageQty = dataobj.HSampleDamageQty;
- maindata[nowindex].HSampleSchemeName = dataobj.HSampleSchemeName;
- maindata[nowindex].HUnit = dataobj.HUnit;
- maindata[nowindex].HSampleQty = dataobj.HSampleQty;
- maindata[nowindex].HAcceptQty = dataobj.HAcceptQty;
- maindata[nowindex].HInspectionLevel = dataobj.HInspectionLevel;
- maindata[nowindex].HRejectQty = dataobj.HRejectQty;
- maindata[nowindex].HStrictness = dataobj.HStrictness;
- maindata[nowindex].HSampleUnRightQty = dataobj.HSampleUnRightQty;
- maindata[nowindex].HAQL = dataobj.HAQL;
- maindata[nowindex].HSamplingType = dataobj.HSamplingType;
-
- maindata[nowindex].HSampleQty = dataobj.HSampleQty;
- maindata[nowindex].HInspectResultToSee = dataobj.HInspectResultToSee;
- maindata[nowindex].HInspectResultToSee2 = dataobj.HInspectResultToSee2;
- maindata[nowindex].HSampleUnRightQty = dataobj.HSampleUnRightQty;
- maindata[nowindex].HUnitID = dataobj.HUnitID;
- maindata[nowindex].HUnitName = dataobj.HUnitName;
- maindata[nowindex].HInspectValB = dataobj.HInspectValB;
- maindata[nowindex].HInspectVal = dataobj.HInspectVal;
- maindata[nowindex].HTargetValB = dataobj.HTargetValB;
- maindata[nowindex].HTargetVal = dataobj.HTargetVal;
- maindata[nowindex].HUpLimit = dataobj.HUpLimit;
- maindata[nowindex].HDownLimit = dataobj.HDownLimit;
- maindata[nowindex].HUpOffSet = dataobj.HUpOffSet;
- maindata[nowindex].HDownOffSet = dataobj.HDownOffSet;
+ //璧嬪�硷紝鍌ㄥ瓨鏁版嵁
+ maindata[nowindex].HStatus = dataobj.HStatus;
+ maindata[nowindex].HSampleSchemeID = dataobj.HSampleSchemeID;
+ maindata[nowindex].HUnitID = dataobj.HUnitID;
+ maindata[nowindex].HInspectVal = dataobj.HInspectVal;
+ maindata[nowindex].HTargetVal = dataobj.HTargetVal;
+ maindata[nowindex].HUpLimit = dataobj.HUpLimit;
+ maindata[nowindex].HDownLimit = dataobj.HDownLimit;
+ maindata[nowindex].HUpOffSet = dataobj.HUpOffSet;
+ maindata[nowindex].HDownOffSet = dataobj.HDownOffSet;
+ maindata[nowindex].HSampleDamageQty = dataobj.HSampleDamageQty;
+ maindata[nowindex].HSampleSchemeName = dataobj.HSampleSchemeName;
+ maindata[nowindex].HUnit = dataobj.HUnit;
+ maindata[nowindex].HSampleQty = dataobj.HSampleQty;
+ maindata[nowindex].HAcceptQty = dataobj.HAcceptQty;
+ maindata[nowindex].HInspectionLevel = dataobj.HInspectionLevel;
+ maindata[nowindex].HRejectQty = dataobj.HRejectQty;
+ maindata[nowindex].HStrictness = dataobj.HStrictness;
+ maindata[nowindex].HSampleUnRightQty = dataobj.HSampleUnRightQty;
+ maindata[nowindex].HAQL = dataobj.HAQL;
+ maindata[nowindex].HSamplingType = dataobj.HSamplingType;
+
+ maindata[nowindex].HSampleQty = dataobj.HSampleQty;
+ maindata[nowindex].HInspectResultToSee = dataobj.HInspectResultToSee;
+ maindata[nowindex].HInspectResultToSee2 = dataobj.HInspectResultToSee2;
+ maindata[nowindex].HSampleUnRightQty = dataobj.HSampleUnRightQty;
+ maindata[nowindex].HUnitID = dataobj.HUnitID;
+ maindata[nowindex].HUnitName = dataobj.HUnitName;
+ maindata[nowindex].HInspectValB = dataobj.HInspectValB;
+ maindata[nowindex].HInspectVal = dataobj.HInspectVal;
+ maindata[nowindex].HTargetValB = dataobj.HTargetValB;
+ maindata[nowindex].HTargetVal = dataobj.HTargetVal;
+ maindata[nowindex].HUpLimit = dataobj.HUpLimit;
+ maindata[nowindex].HDownLimit = dataobj.HDownLimit;
+ maindata[nowindex].HUpOffSet = dataobj.HUpOffSet;
+ maindata[nowindex].HDownOffSet = dataobj.HDownOffSet;
//}
-
+
//鍥炴樉
$("#HSampleSchemeID").val(maindata[nowindex].HSampleSchemeID);
@@ -3182,7 +3195,7 @@
}
//鍥炴樉妫�楠屽��
- EchoValue();
+ EchoValue();
}
}
//#endregion
--
Gitblit v1.9.1