From 87110c04df904eb4947587a34f3fc5a1eb45eb7e Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期日, 12 十月 2025 16:21:11 +0800
Subject: [PATCH] 入库单据开发导入入库单功能;
---
HTML/views/StatisticalReport/BoxInfor.html | 47 +++++++++++++++++++++++++++++++++++++----------
1 files changed, 37 insertions(+), 10 deletions(-)
diff --git a/HTML/views/StatisticalReport/BoxInfor.html b/HTML/views/StatisticalReport/BoxInfor.html
index fbac037..94d5113 100644
--- a/HTML/views/StatisticalReport/BoxInfor.html
+++ b/HTML/views/StatisticalReport/BoxInfor.html
@@ -225,6 +225,17 @@
</button>
</div>
<!-- #endregion -->
+ <script type="text/html" id="toolbarDemo1">
+ {{# function GetBtn1(d){
+ var html = '';
+
+ html += `<a class="layui-btn layui-btn-normal layui-btn-xs editDemoClass" lay-event="editDemo">
+ <i class="layui-icon layui-icon-edit"></i>澶囨敞</a>`;
+ return html;
+ }
+ }}
+ {{ GetBtn1(d) }}
+ </script>
<!-- #region 鑷畾涔夎〃澶� -->
<script type="text/html" id="templetProductionTime">
@@ -325,13 +336,7 @@
<i class="layui-icon layui-icon-edit"></i>璇︽儏
</button>
</script>
- <!-- 娣诲姞澶囨敞鎸夐挳 -->
- <script type="text/html" id="toolbarDemo1">
-
- <a class="layui-btn layui-btn-normal layui-btn-xs editDemoClass" lay-event="editDemo">
- <i class="layui-icon layui-icon-edit"></i>澶囨敞
- </a>
- </script>
+
</div>
</div>
</div>
@@ -391,7 +396,7 @@
function addZero(s) {
return s < 10 ? ('0' + s) : s;
};
-
+
var $ = layui.$;
var yemianid = 0;
refreshTable("", "", "", "", "", "", "", "", "", "", "", "", "", "");
@@ -426,8 +431,7 @@
{ field: 'OwnerName', title: '璐т富鍚嶇О', align: 'center', width: 100, },
{ field: 'SupplierNo', title: '渚涘簲鍟嗙紪鐮�', align: 'center', width: 100, },
{ field: 'SupplierName', title: '渚涘簲鍟嗗悕绉�', align: 'center', width: 100, },
- { field: 'SupplierName', title: '渚涘簲鍟嗗悕绉�', align: 'center', width: 100, },
- { field: 'SupplierName', title: '澶囨敞', align: 'center', width: 100, },
+ { field: 'Demo', title: '澶囨敞', align: 'center', width: 100, },
{ field: 'caozuo', title: '鎿嶄綔', fixed: 'right', width: 280, align: 'center', toolbar: '#toolbarDemo1', "disabled": true }
]];
@@ -461,6 +465,7 @@
even: true,
cellMinWidth: 80, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
done: function () {
+ setRight();
//鑷畾涔夊垪瀹�
SetTableColW('LAY-app-content-list', 'Statistical/GetBindList', TotalColsSysArr);
},
@@ -507,6 +512,28 @@
});
//#endregion
}
+ function setRight() {
+ $(function () {
+ $(".editDemoClass").hide();//澶囨敞
+
+ });
+ sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) {
+ if (res.code == 0) { //鎴愬姛
+ for (var k = 0; k < res.data.length; k++) {
+ if (res.data[k].MenuName == "缁存姢鎵樼洏鏄庣粏澶囨敞") {
+ $(function () {
+ $(".editDemoClass").show();
+ });
+ }
+ }
+ } else { //涓嶆垚鍔�
+ layer.msg('鑾峰彇鏉冮檺淇℃伅澶辫触', {
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function () { });
+ }
+ });
+ }
// 琛ㄥ崟闇�瑕佺殑鍙橀噺
var infoOptions2;
--
Gitblit v1.8.0