From 0ea2c8c77849a2d0597e94dea447a547355e77b8 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 15 一月 2026 17:08:53 +0800
Subject: [PATCH] 宝工排产:排产天数新增到最大为100天
---
WebTM/views/PublicPage/PowerInformation.html | 37 +++++++++++++++++++++++++++++++++----
1 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/WebTM/views/PublicPage/PowerInformation.html b/WebTM/views/PublicPage/PowerInformation.html
index 58bfdef..a5b4d60 100644
--- a/WebTM/views/PublicPage/PowerInformation.html
+++ b/WebTM/views/PublicPage/PowerInformation.html
@@ -75,6 +75,8 @@
var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
var linterid = params[params[1]];//婧愬崟id
var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷
+ //灏唘rl鍙傛暟涓殑涓枃涔辩爜閲嶆柊杞崲鎴愪腑鏂囥�� 娉細linterid 鏄弬鏁板懡鍚嶏紝涓嶆槸鍊�
+ linterid = getParams("linterid");
}
var treeCkData = { id: 0 };
@@ -189,6 +191,21 @@
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
get_Display(sGnbm);
+ //#region 榛樿灞曞紑绗竴涓妭鐐规暟鎹垪琛�
+ var treeData_bak = getData();
+ if (treeData_bak) {
+ var data = treeData_bak[0];
+ //鐐瑰嚮楂樺厜
+ $('div[data-id="' + data.id + '"] span').eq(1).last().addClass("custom-tree-item-clicked");
+ $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+ treeCkData = data;
+ TagId = data.id;
+ TagParentId = data.ParentID;
+
+ sGnbm = data.id;
+ get_Display(sGnbm);
+ }
+ //#endregion
//閫�鍑�
form.on('submit(Exit)', function (data) {
@@ -259,7 +276,7 @@
return false;
}
var sSubStr = JSON.stringify(table.cache['mainTable']);
- var sMainSub = TagId + ';' + sSubStr + ';' + linterid;
+ var sMainSub = TagId + ';' + sSubStr + ';' + linterid + ";" + HSouceBillType;
//console.log(sMainSub);
//return false;
$.ajax(
@@ -272,7 +289,7 @@
success: function (data) {
if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
- $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
+ //$('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
get_Display(sGnbm);
});
}
@@ -295,7 +312,7 @@
$.ajax({
url: GetWEBURL() + '/PublicPageMethod/PowerList',
type: "GET",
- data: { "czybm": linterid, "sGnbm": sGnbm },
+ data: { "czybm": linterid, "sGnbm": sGnbm, "HSouceBillType": HSouceBillType},
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -318,6 +335,7 @@
$.ajax({
url: GetWEBURL() + '/Gy_MaintenanceMode/PowerLoadTree',
+ async:false,
type: "GET",
//data: { "sWhere": sWhere },
async: false,
@@ -346,10 +364,21 @@
} else {
treeData.push(it)
}
- })
+ })
return treeData;
}
+ //灏唘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;
+ };
</script>
</body>
--
Gitblit v1.9.1