From cd93dd1fd57afa3437e43499236273c2e1df4423 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期五, 19 十二月 2025 14:55:50 +0800
Subject: [PATCH] 车间出库页面车间增加1003车间一楼备件库
---
HTML/views/BaseSetting/Materials.html | 244 +++++++++++++++++++++---------------------------
1 files changed, 108 insertions(+), 136 deletions(-)
diff --git a/HTML/views/BaseSetting/Materials.html b/HTML/views/BaseSetting/Materials.html
index 0d65c55..1ab686a 100644
--- a/HTML/views/BaseSetting/Materials.html
+++ b/HTML/views/BaseSetting/Materials.html
@@ -159,21 +159,21 @@
{{# } }}
</script>
- <!-- 鏄惁鍙楁帶 -->
+ <!-- 鏄惁璇烽獙 -->
<script type="text/html" id="buttonIsControlled">
{{# if(d.IsControlled=='0'){ }}
- <p>鍙楁帶</p>
+ <p>鏄�</p>
{{# } else if(d.IsControlled=='1') { }}
- <p>闈炲彈鎺�</p>
+ <p>鍚�</p>
{{# } }}
</script>
- <!-- 鏄惁鍏嶆 -->
+ <!-- 鏄惁鍙楁帶 -->
<script type="text/html" id="buttonIsInspect">
{{# if(d.IsInspect=='0'){ }}
- <p>鍚�</p>
+ <p>鏄�</p>
{{# } else if(d.IsInspect=='1') { }}
- <p>鏄�</p>
+ <p>鍚�</p>
{{# } }}
</script>
<!-- 鏄惁璐存爣 -->
@@ -222,6 +222,7 @@
laypage = layui.laypage,
layer = layui.layer;
+ var $ = layui.$;
var h1 = GetTableHeight();
refreshTable("", "", "", "", "", "", "", "");
var tableIns;
@@ -251,132 +252,22 @@
CategoryNo: CategoryNo
};
- var url = "/Basis/GetMateList?SkuNo=" + SkuNo + "&&SkuName=" + SkuName + "&&AuditStatusNo=" + AuditStatusNo + "&&Type=" + Type + "&&IsControlled=" + IsControlled + "&&IsInspect=" + IsInspect + "&&Environment=" + Environment + "&CategoryNo=" + CategoryNo;
- sendData(IP + url, {}, 'get', function (res) {
- if (res.code == 0) //鎴愬姛
- {
- var list = res.data;
- $.extend(infoOptions, {
- data: list
- });
- infoOptions.page = {
- curr: 1
- }
- tableIns = table.render(infoOptions);
- }
- else //涓嶆垚鍔�
- {
- layer.msg('鑾峰彇鐗╂枡鍒楄〃淇℃伅澶辫触锛�', {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- }, function () { });
- }
- });
- sendData(IP + "/basis/GetRoleRightList", {}, "get", function (res) {
- $(function () {
- $(".approvalBtn").hide();
- });
- $(function () {
- $(".approvalBtndel").hide();
- });
- $(function () {
- $(".approvalBtnupt").hide();
- });
- if (res.code == 0) //鎴愬姛
- {
- for (var k = 0; k < res.data.length; k++) {
- if (res.data[k].MenuName == "娣诲姞鐗╂枡") {
- $(function () {
- $(".approvalBtn").show();
- });
- }
- if (res.data[k].MenuName == "鍒犻櫎鐗╂枡") {
- $(function () {
- $(".approvalBtndel").show();
- });
- }
- if (res.data[k].MenuName == "缂栬緫鐗╂枡") {
- $(function () {
- $(".approvalBtnupt").show();
- });
- }
- }
- }
- else //涓嶆垚鍔�
- {
- layer.msg(
- "鑾峰彇淇℃伅澶辫触",
- {
- icon: 2,
- time: 2000, //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- },
- function () {
- //鍥炶皟
- }
- );
- }
- });
- }
-
-
-
- sendData(IP + "/basis/GetRoleRightList", {}, "get", function (res) {
- $(function () {
- $(".approvalBtn").hide();
- });
- $(function () {
- $(".approvalBtndel").hide();
- });
- $(function () {
- $(".approvalBtnupt").hide();
- });
- if (res.code == 0) //鎴愬姛
- {
- for (var k = 0; k < res.data.length; k++) {
- if (res.data[k].MenuName == "娣诲姞鐗╂枡") {
- $(function () {
- $(".approvalBtn").show();
- });
- }
- if (res.data[k].MenuName == "鍒犻櫎鐗╂枡") {
- $(function () {
- $(".approvalBtndel").show();
- });
- }
- if (res.data[k].MenuName == "缂栬緫鐗╂枡") {
- $(function () {
- $(".approvalBtnupt").show();
- });
- }
- }
- }
- else //涓嶆垚鍔�
- {
- layer.msg(
- "鑾峰彇淇℃伅澶辫触",
- {
- icon: 2,
- time: 2000, //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- },
- function () {
- //鍥炶皟
- }
- );
- }
- });
-
-
- var infoOptions = {
- elem: "#LAY-app-content-list",
- height: h1,
- id: "LAY-app-content-list",
- page: true,
- limit: pageCnt,
- limits: pageLimits,
- even: true,
- cellMinWidth: 80, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
- cols:
- [[
+ table.render({
+ elem: '#LAY-app-content-list',
+ url: IP + "/Basis/GetMateList",
+ method: 'POST',
+ height: h1,//'full-'+hei1
+ id: 'LAY-app-content-list',
+ where: param,
+ contentType: 'application/json',
+ headers: { ToKen: $.cookie('token') },
+ page: true,
+ even: true,
+ limit: pageCnt,
+ limits: pageLimits,
+ cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
+ even: true,
+ cols: [[
{
title: '搴忓彿', type: 'numbers', fixed: 'left', width: 65
},
@@ -394,10 +285,10 @@
field: 'Type', title: '绫诲瀷', align: 'center', templet: '#buttonType', width: 100
},
{
- field: 'IsControlled', templet: '#buttonIsControlled', title: '鏄惁鍙楁帶', align: 'center', width: 100
+ field: 'IsControlled', templet: '#buttonIsControlled', title: '鏄惁璇烽獙', align: 'center', width: 100
},
{
- field: 'IsInspect', title: '鏄惁鍏嶆', align: 'center', templet: '#buttonIsInspect', width: 100
+ field: 'IsInspect', title: '鏄惁鍙楁帶', align: 'center', templet: '#buttonIsInspect', width: 100
},
{
field: 'IsPasteCode', title: '鏄惁璐存爣', align: 'center', templet: '#buttonIsPasteCode', width: 100
@@ -448,8 +339,57 @@
{
title: '鎿嶄綔', fixed: 'right', align: 'center', toolbar: '#table-content-list', width: 170
}
- ]],
- };
+ ]]
+ });
+
+ }
+
+
+
+ sendData(IP + "/basis/GetRoleRightList", {}, "get", function (res) {
+ $(function () {
+ $(".approvalBtn").hide();
+ });
+ $(function () {
+ $(".approvalBtndel").hide();
+ });
+ $(function () {
+ $(".approvalBtnupt").hide();
+ });
+ if (res.code == 0) //鎴愬姛
+ {
+ for (var k = 0; k < res.data.length; k++) {
+ if (res.data[k].MenuName == "娣诲姞鐗╂枡") {
+ $(function () {
+ $(".approvalBtn").show();
+ });
+ }
+ if (res.data[k].MenuName == "鍒犻櫎鐗╂枡") {
+ $(function () {
+ $(".approvalBtndel").show();
+ });
+ }
+ if (res.data[k].MenuName == "缂栬緫鐗╂枡") {
+ $(function () {
+ $(".approvalBtnupt").show();
+ });
+ }
+ }
+ }
+ else //涓嶆垚鍔�
+ {
+ layer.msg(
+ "鑾峰彇淇℃伅澶辫触",
+ {
+ icon: 2,
+ time: 2000, //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ },
+ function () {
+ //鍥炶皟
+ }
+ );
+ }
+ });
//鐩戝惉鎼滅储
form.on('submit(LAY-app-contlist-search)', function (data) {
@@ -505,6 +445,22 @@
Price: Number(field.Price),
AdventTime: Number(field.AdventTime), //涓存湡
LowInventory: Number(field.LowInventory), //浣庡簱瀛�
+
+ //CAS鍙�
+ CasNo: field.CasNo,
+ //鏄惁鎵规绠$悊
+ IsLotManage: field.IsLotManage,
+ //鐣欐牱鏃堕棿
+ LeaveTime: field.LeaveTime,
+ //娑蹭綋鐗╂枡闂偣
+ LiquidFlashPoint: field.LiquidFlashPoint,
+ //鍗遍櫓璐т綅淇℃伅
+ DangerLocatInfo: field.DangerLocatInfo,
+ //鐏伀鏂瑰紡
+ OutFireMethod: field.OutFireMethod,
+ //鐗╂枡绂佸繉
+ MaterialTaboo: field.MaterialTaboo,
+
Demo: field.Demo
};
if (doing) {
@@ -677,6 +633,22 @@
Price: Number(field.Price),
AdventTime: Number(field.AdventTime), //涓存湡
LowInventory: Number(field.LowInventory), //浣庡簱瀛�
+
+ //CAS鍙�
+ CasNo: field.CasNo,
+ //鏄惁鎵规绠$悊
+ IsLotManage: field.IsLotManage,
+ //鐣欐牱鏃堕棿
+ LeaveTime: field.LeaveTime,
+ //娑蹭綋鐗╂枡闂偣
+ LiquidFlashPoint: field.LiquidFlashPoint,
+ //鍗遍櫓璐т綅淇℃伅
+ DangerLocatInfo: field.DangerLocatInfo,
+ //鐏伀鏂瑰紡
+ OutFireMethod: field.OutFireMethod,
+ //鐗╂枡绂佸繉
+ MaterialTaboo: field.MaterialTaboo,
+
Demo: field.Demo
};
if (doing) {
--
Gitblit v1.8.0