From ab2f1a6532be9950d792cedaa6a4011e09d94733 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期四, 13 十月 2022 09:24:38 +0800
Subject: [PATCH] 生产日计划查询 齐套分析显示红色
---
WebTM/views/生产管理/齐套分析/JIT_CompleteDetailList.html | 9 +++++++++
WebTM/views/生产管理/生产计划平台/Sc_ICMOSortBillList.html | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 0 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ICMOSortBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ICMOSortBillList.html"
index a671ca6..aca51aa 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ICMOSortBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_ICMOSortBillList.html"
@@ -22,6 +22,8 @@
<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="UniformMater" id="UniformMater">榻愭枡</button>
<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="LackMater" id="LackMater">缂烘枡</button>
<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Revoke" id="Revoke">鎾ら攢</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="WorkShopTure" id="WorkShopTure">杞﹂棿纭鎵ц</button>
+ <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="WorkShopRevoke" id="WorkShopRevoke">鎾ら攢杞﹂棿纭</button>
</div>
<div class="layui-collapse">
<div class="layui-colla-item">
@@ -153,6 +155,16 @@
//鎾ら攢
form.on('submit(Revoke)', function (data) {
btnMaterOperation(0);
+ });
+
+ //杞﹂棿纭鎵ц
+ form.on('submit(WorkShopTure)', function (data) {
+ btnWorkShopTure(0);
+ });
+
+ //鎾ら攢杞﹂棿纭
+ form.on('submit(WorkShopRevoke)', function (data) {
+ btnWorkShopTure(1);
});
//#endregion
@@ -367,6 +379,36 @@
}
}
+ function btnWorkShopTure(staus) {
+ var check = table.checkStatus("mainTable");
+
+ if (check.data.length == 0) {
+ return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+ }
+ else {
+ var HSourceID = check.data[0]["HSourceID"];
+ var HICMOInterID = check.data[0]["HICMOInterID"];
+ var HDate = check.data[0]["鏃ユ湡"];
+
+ $.ajax({
+ url: GetWEBURL() + '/JIT_ICMOSortBill/JIT_ICMOSortBillWorkShopTure',
+ type: "GET",
+ data: { "HSourceID": HSourceID, "HICMOInterID": HICMOInterID, "HDate": HDate, "HStatus": staus, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ layer.msg(result.Message);
+ get_FastQuery();
+ } else {
+ layer.alert(result.code + result.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.close(ajaxLoad);
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+ }
+ }
+
//闅愯棌鍒楄缃�
function get_HideColumn() {
var colName = "";
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html"
index ad23be8..50e3862 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html"
@@ -238,6 +238,15 @@
, { field: '浠撳簱缂栫爜', title: '浠撳簱缂栫爜' }
, { field: '浠撳簱鍚嶇О', title: '浠撳簱鍚嶇О' }
]]
+ , done: function (res, curr, count) {
+ for (var i in res.data) {
+ var item = res.data[i];
+
+ if (item["榻愬鐘舵��"] == "鏈綈濂�") {
+ $("tr[data-index='" + i + "']").attr({ "style": "background:red;color:black;" });
+ }
+ }
+ }
};
}
//#endregion
--
Gitblit v1.9.1