From 24719b3e2e634b42f43560a4e924adafe165a69c Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期三, 19 十一月 2025 11:14:06 +0800
Subject: [PATCH] 条码变更
---
WebTM/views/模治具管理/模治具管理/KF_BarCodeStatusChangeBill.html | 32 ++++++++++++++++++++++++++++----
1 files changed, 28 insertions(+), 4 deletions(-)
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/KF_BarCodeStatusChangeBill.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/KF_BarCodeStatusChangeBill.html"
index 6b8c3e0..e676622 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/KF_BarCodeStatusChangeBill.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/KF_BarCodeStatusChangeBill.html"
@@ -258,13 +258,17 @@
<script type="text/html" id="HBarCodeStatus_New">
<select name="HBarCodeStatus_New" lay-filter="HBarCodeStatus_New" id="HBarCodeStatus_New{{d.LAY_TABLE_INDEX+1}}">
<option value=""></option>
- <option value="姝e父">姝e父</option>
+ <option value="鍑哄簱">鍑哄簱</option>
+ <option value="鍏ュ簱">鍏ュ簱</option>
+ <option value="寮傚父">寮傚父</option>
+ <option value="绌�">绌�</option>
+ <!--<option value="姝e父">姝e父</option>
<option value="鍦ㄥ簱">鍦ㄥ簱</option>
<option value="鍑哄簱">鍑哄簱</option>
<option value="浣滃簾">浣滃簾</option>
<option value="闅旂">闅旂</option>
<option value="涓嶈壇">涓嶈壇</option>
- <option value="鎶ュ簾">鎶ュ簾</option>
+ <option value="鎶ュ簾">鎶ュ簾</option>-->
</select>
</script>
<script>
@@ -289,7 +293,7 @@
var HBarCodeStatusVal = [];
var CopyHBarCodeStatusVal = [];
//#endregion
-
+ var ExistBarCode;
//#region 銆愬姩鎬佽幏鍙栨ā鍧楀悕绉般��
var HModuleType = "1288";
//閫氳繃鍗曟嵁绫诲瀷锛屼粠鏁版嵁搴撳姩鎬佽幏鍙栧崟鎹ā鍧楀懡鍚�,寮曠敤js鏂囦欢 PageTitle.js
@@ -604,8 +608,14 @@
if (num[j].HBarCodeStatus_New != HBarCodeStatusVal[j]) {
num[j].HBarCodeStatus_Old = HBarCodeStatusVal[j]
}
+ JudgeBarCodeIsExist(num[j].HBarCode);
+ if (!ExistBarCode) {
+ layer.msg('璇ユ潯鐮佸湪鏉$爜涓绘。涓笉瀛樺湪');
+ retrun ;
+ }
}
-
+
+
var sMainStr = JSON.stringify(data.field);
var sSubStr = JSON.stringify(num);
//var hentryid = linteridSub;//瀛愯〃 鎺掑簭id
@@ -635,7 +645,21 @@
}
});
}
+ function JudgeBarCodeIsExist(HbarCode) {
+ $.ajax({
+ url: GetWEBURL() + "/Gy_Material/findMaterialByNumber",
+ type: "GET",
+ async: false,
+ data: { "HbarCode": HbarCode, "HSTOCKORGID": sessionStorage["OrganizationID"] },
+ success: function (d) {
+ if (d.count === 1)
+ ExistBarCode = 1;
+ else
+ ExistBarCode = 0;
+ }
+ })
+ }
//缂栬緫 椤甸潰璧嬪��
function RoadBillMain(linterid)//鍔犺浇琛ㄥご
{
--
Gitblit v1.9.1