From 6029d9cca9e132c4ba7a64cefe3db5eeaaecdf74 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期五, 07 十一月 2025 09:24:53 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
---
WebTM/views/仓存管理/组托单/Sc_PackUnionBillMain_Setto.html | 59 +++++++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 47 insertions(+), 12 deletions(-)
diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillMain_Setto.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillMain_Setto.html"
index 1b55be7..1308c23 100644
--- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillMain_Setto.html"
+++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillMain_Setto.html"
@@ -98,11 +98,11 @@
<option value=">=">>=</option>
<option value=">">></option>
<option value="<=">
- <= </option>
+ <= </option>
<option value="<">
- < </option>
+ < </option>
<option value="<>">
- <>
+ <>
</option>
<option value="7">鍖呭惈</option>
<option value="8">宸﹀寘鍚�</option>
@@ -241,7 +241,7 @@
//#region 銆愬姩鎬佽幏鍙栨ā鍧楀悕绉般��
var HModuleType = "Sc_PackUnionBillMain_Setto";
//閫氳繃鍗曟嵁绫诲瀷锛屼粠鏁版嵁搴撳姩鎬佽幏鍙栧崟鎹ā鍧楀懡鍚�,寮曠敤js鏂囦欢 PageTitle.js
- var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType);
+ var HPageTitle = get_PageTitle(HModuleType) || document.title;
//#endregion
@@ -403,6 +403,7 @@
$("#HBeginDate").val(util.toDateString(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
$("#HEndDate").val(util.toDateString(new Date(), "yyyy-MM-dd"));
//鏌ヨ
+ get_FastQuery()
//鏌ヨ褰撳墠鐧诲綍鐢ㄦ埛鏈夋病鏈夊湪褰撳墠妯″潡璁剧疆榛樿杩囨护鏂规
get_DefaultModule();
}
@@ -517,10 +518,10 @@
ins = table.render(option);
layer.close(ajaxLoad);
- if ($("#ColName option").length < 1) {
- ColFilter();
- get_DefaultModule();//鍔犺浇鏂规
- }
+ // if ($("#ColName option").length < 1) {
+ // ColFilter();
+ // get_DefaultModule();//鍔犺浇鏂规
+ // }
//layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
} else {
@@ -555,6 +556,15 @@
//鍒嗛〉
function get_DisplayPage(sWhere) {
+ if (sessionStorage["HAutoLogin"] == "1") {
+ sWhere += " and HSupID = '" + sessionStorage["HUserName"] + "'";
+ } else {
+ var ModRightNameCheck = "Cg_Manager";
+ if (!set_ModCheck(ModRightNameCheck)) {
+ sWhere += " and HSupID = '" + sessionStorage["HSupID"] + "'";
+ }
+ }
+
var ajaxLoad = layer.load();
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
$.ajax({
@@ -606,11 +616,12 @@
//鍒锋柊琛ㄦ牸鏁版嵁
DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, titleData);
+ ins = table.render(option);
+
if ($("#ColName option").length < 1) {
ColFilter();
- get_DefaultModule();//鍔犺浇鏂规
+ // get_DefaultModule();//鍔犺浇鏂规
}
- ins = table.render(option);
Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]);
layer.close(ajaxLoad);
} else {
@@ -743,7 +754,7 @@
$("#HEndDate").val(util.toDateString(new Date(), "yyyy-MM-dd"));
$("#ColContent").val("");
$("#ColName").val("0");
- $("#Comparator").val("0");
+ $("#Comparator").val("0");
$("#ColContent2").val("");
$("#ColName2").val("0");
$("#Comparator2").val("0");
@@ -872,6 +883,28 @@
}
//#endregion
+ //#region 鏉冮檺鍒ゅ畾
+ function set_ModCheck(ModRightNameCheck) {
+ var Permission = false;
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/LMES/getReportByModRightNameCheck", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: false,
+ data: { "ModRightNameCheck": ModRightNameCheck, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ Permission = true;
+ } else {
+ //layer.alert("褰撳墠妯″潡娌℃湁鏌ヨ鏉冮檺!", { icon: 5 });
+ }
+ }, error: function (e) {
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+ return Permission;
+ }
+ //#endregion
+
//#region 銆愯繃婊ゆ柟妗堛��
//鑾峰彇褰撳墠鐢ㄦ埛鐨勯粯璁よ繃婊ゆ柟妗�
@@ -902,6 +935,8 @@
$("#" + data[i].杩囨护瀛楁ID).find("option[value='" + data[i].杩囨护鍊� + "']").attr("selected", true);
}
}
+
+
//鎵ц鏌ヨ鏂规硶
get_FastQuery()
form.render("select");
@@ -910,7 +945,7 @@
//闅愯棌鏄剧ず杩囨护鏂规鐨勬爣绛句俊鎭�
document.getElementById("HFilterScheme_Now").style.display = "none";
//鎵ц鏌ヨ鏂规硶
- get_FastQuery()
+ //get_FastQuery()
form.render("select");
}
}, error: function () {
--
Gitblit v1.9.1