From fa75ec494106612f6462c124fa271ce6c312dc8a Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 05 九月 2023 09:01:05 +0800
Subject: [PATCH] 客诉处理单:数据校验
---
WebTM/views/品质管理/客诉处理/Crm_CustomerAppealBill.html | 175 +++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 119 insertions(+), 56 deletions(-)
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.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.html"
index dc0f410..75d39fd 100644
--- "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.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.html"
@@ -75,20 +75,20 @@
<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>
+ <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>
+ <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:700px;">
- <label class="layui-form-label" style="width: 85px;">涓婚锛�</label>
+ <label class="layui-form-label" style="width: 85px;">涓婚<label style="color:red"> * </label>锛�</label>
<div class="layui-input-block" style="margin-left: 120px;width:560px;">
<input type="text" class="layui-input" name="HContext" lay-verify="HContext" id="HContext" style="width:560px;">
</div>
@@ -96,13 +96,13 @@
</div>
<div class="layui-row">
<div class="layui-inline" style="width:320px;">
- <label class="layui-form-label" style="width: 85px;">璁㈠崟鍙凤細</label>
+ <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 class="layui-inline" style="width:320px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">浜у搧缂栫爜锛�</label>
+ <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">
@@ -126,7 +126,7 @@
</div>
<div class="layui-row">
<div class="layui-inline" style="width:320px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">涓诲浜猴細</label>
+ <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">
@@ -136,7 +136,7 @@
</div>
</div>
<div class="layui-inline" style="width:320px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">瀹㈡湇锛�</label>
+ <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">
@@ -146,7 +146,7 @@
</div>
</div>
<div class="layui-inline" style="width:685px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">瀹㈡埛锛�</label>
+ <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: 85%;display: inline-block;" readonly>
<input type="hidden" name="HCusID" id="HCusID" lay-verify="HCusID" value="0">
@@ -158,7 +158,7 @@
</div>
<div class="layui-row">
<div class="layui-inline" style="width:320px;">
- <label class="layui-form-label" style="width: 85px;">瀹㈡埛鑱旂郴浜猴細</label>
+ <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>
@@ -175,7 +175,7 @@
</div>
</div>
<div class="layui-inline" style="width:680px;">
- <label class="layui-form-label" style="width: 85px;">鎶曡瘔鏃堕棿锛�</label>
+ <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: 80px;">
</div>
@@ -183,7 +183,7 @@
</div>
<div class="layui-row">
<div class="layui-inline" style="width:643px;">
- <label class="layui-form-label" style="width: 85px;">鍙戠敓鏃堕棿锛�</label>
+ <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: 80px;">
</div>
@@ -199,7 +199,7 @@
</div>
</div>
<div class="layui-inline" style="width:345px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">杞﹂棿锛�</label>
+ <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: 66%; display: inline-block;" readonly>
<input type="hidden" name="HWorkShopID" id="HWorkShopID" lay-verify="HWorkShopID" value="0">
@@ -244,7 +244,7 @@
</div>
</div>
<div class="layui-inline" style="width:322px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">涓嶈壇鍘熷洜锛�</label>
+ <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">
@@ -262,7 +262,7 @@
</div>
<div class="layui-row">
<div class="layui-inline" style="width:320px;">
- <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鍙戠敓宸ュ簭锛�</label>
+ <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">
@@ -1031,51 +1031,114 @@
}
//#endregion
- //#region 闈炵┖楠岃瘉
+ //#region 鏁版嵁鏍¢獙
function AllowLoadData(data) {
//#region 鏁版嵁鏍¢獙宸ュ叿
- //var temp; //璁板綍闇�瑕佹楠岀殑灞炴�х殑鍊硷紝鐢ㄤ簬妫�楠�
- //var ref = /^\d+(\.\d+)?$/; //鍒ゆ柇鏄惁鏄潪璐熸诞鐐规暟
- //var ref1 = /^\d+$/; //鍒ゆ柇鏄惁鏄潪璐熸暣鏁�
- //var value1 = ["#HWantPay",]; //瀛愯〃闇�瑕佽繘琛屾诞鐐规暟楠岃瘉鐨勫睘鎬ф竻鍗�
- //var value1_ = ["鏈熸湜钖按"]; ////瀛愯〃闇�瑕佽繘琛屾诞鐐规暟楠岃瘉鐨勫睘鎬ф竻鍗曞搴旂殑鍒楀悕娓呭崟
- //var value2 = ["#HAge","#HContractYear"]; //瀛愯〃闇�瑕佹暣鏁版楠岀殑灞炴�ф竻鍗�
- //var value2_ = ["骞撮緞","鍚堝悓鏈熼檺"]; //瀛愯〃闇�瑕佹暣鏁版楠岀殑灞炴�ф竻鍗曞搴旂殑鍒楀悕娓呭崟
- //var value3 = []; //瀛愯〃闇�瑕佽繘琛岄潪绌烘楠岀殑灞炴�ф竻鍗�
- //var value3_ = []; //瀛愯〃闇�瑕佽繘琛岄潪绌烘楠岀殑灞炴�ф竻鍗曞搴旂殑鍒楀悕娓呭崟
- ////#endregion
+ var temp; //璁板綍闇�瑕佹楠岀殑灞炴�х殑鍊硷紝鐢ㄤ簬妫�楠�
+ var ref = /^\d+(\.\d+)?$/; //鍒ゆ柇鏄惁鏄潪璐熸诞鐐规暟
+ //#endregion
- ////#region 琛ㄥご鏁版嵁妫�楠�
- ////闈炵┖妫�楠�
- //for (var j = 0; j < value3.length; j++) {
- // temp = $(value3[j]).val() + "";
- // if (temp == "") {
- // layer.msg(value3_[j] + "涓嶅彲涓虹┖!");
- // return false;
- // }
- //}
- ////鏁存暟妫�楠�
- //for (var j = 0; j < value2.length; j++) {
- // temp = $(value2[j]).val() + "";
- // if (temp == "") {
- // layer.msg(value2_[j] + "涓嶈兘涓虹┖!");
- // return false;
- // } else if (!ref1.test(temp)) {
- // layer.msg(value2_[j] + "璇疯緭鍏ラ潪璐熸暣鏁�!");
- // return false;
- // }
- //}
- ////娴偣鏁版楠�
- //for (var j = 0; j < value1.length; j++) {
- // temp = $(value1[j]).val() + "";
- // if (temp == "") {
- // layer.msg(value1_[j] + "涓嶈兘涓虹┖!");
- // return false;
- // } else if (!ref.test(temp)) {
- // layer.msg(value1_[j] + "璇疯緭鍏ユ纭潪璐熸暟瀛�!");
- // return false;
- // }
- //}
+ //#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;
}
--
Gitblit v1.9.1