From f990f95a0b5aa099212116fa7d57b7ee2abcf863 Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@DESKTOP-JIE70N9> Date: 星期五, 23 五月 2025 14:22:46 +0800 Subject: [PATCH] 拣货拼托问题修复 --- HTML/views/QualityControl/InspectionRequest.html | 27 ++++++++++++++++++++------- 1 files changed, 20 insertions(+), 7 deletions(-) diff --git a/HTML/views/QualityControl/InspectionRequest.html b/HTML/views/QualityControl/InspectionRequest.html index fd0a743..30cefc5 100644 --- a/HTML/views/QualityControl/InspectionRequest.html +++ b/HTML/views/QualityControl/InspectionRequest.html @@ -245,9 +245,9 @@ var html = ''; switch (d.Status) { case "0" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs addClass" lay-event="upImage"> + html += `<a class="layui-btn layui-btn-normal layui-btn-xs shangClass" lay-event="upImage"> <i class="layui-icon layui-icon-add"></i>涓婁紶</a> `; - html += `<a class="layui-btn layui-btn-normal layui-btn-xs addClass" lay-event="ViewImage"> + html += `<a class="layui-btn layui-btn-normal layui-btn-xs chaClass" lay-event="ViewImage"> <i class="layui-icon layui-icon-add"></i>鏌ョ湅</a> `; html += `<a class="layui-btn layui-btn-normal layui-btn-xs addClass" lay-event="add"> <i class="layui-icon layui-icon-add"></i>璇烽獙</a> `; @@ -418,7 +418,7 @@ { field: 'UpdateTime', title: '瀹屾垚鏃ユ湡', align: 'center', width: 165, templet: '#templetUpdateTime' }, { field: 'UpdateUserName', title: '鍏冲崟浜�', align: 'center', width: 165 }, - { field: 'caozuo', title: '鎿嶄綔', fixed: 'right', width: 180, align: 'center', toolbar: '#InspectionRequestList', "disabled": true } + { field: 'caozuo', title: '鎿嶄綔', fixed: 'right', width: 270, align: 'center', toolbar: '#InspectionRequestList', "disabled": true } ]]; var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion @@ -480,6 +480,8 @@ // 娣诲姞鎸夐挳鏉冮檺 function setRight() { $(function () { + $(".shangClass").hide(); + $(".chaClass").hide(); $(".addClass").hide(); $(".editClass").hide(); $(".delClass").hide(); @@ -488,6 +490,17 @@ 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 () { + $(".shangClass").show(); + }); + } + if (res.data[k].MenuName == "鏌ョ湅") { + $(function () { + $(".chaClass").show(); + }); + } if (res.data[k].MenuName == "璇烽獙") { $(function () { $(".addClass").show(); @@ -588,16 +601,16 @@ Id: data.id, Code: data.QcNo, }; - sendData(IP + "/BllQuality/SendInspectionRequest", param, 'post', function (res) { - if (res.code == 0) { //鎴愬姛 - layer.msg(res.msg, { + sendData(IP + "/UpApi/SendInspectionRequest", param, 'post', function (res) { + if (res.Success == "0") { //鎴愬姛 + layer.msg(res.Message, { icon: 1, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 }, function () { bindInspectionRequest(); }); } else { //涓嶆垚鍔� - layer.msg(res.msg, { + layer.msg(res.Message, { icon: 2, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 }); -- Gitblit v1.8.0