From 0acd18b6bebdcfc24a0d7c27edb0f8ef1fc7f9aa Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@DESKTOP-5BIMHQ3> Date: 星期一, 04 三月 2024 10:29:34 +0800 Subject: [PATCH] 出库单复核功能修改 --- HTML/views/SOSetting/ExportNotice.html | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 deletions(-) diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html index 9b37cf2..8299035 100644 --- a/HTML/views/SOSetting/ExportNotice.html +++ b/HTML/views/SOSetting/ExportNotice.html @@ -90,7 +90,7 @@ <option value="3">姝e湪鎵ц</option> <option value="4">鎵ц瀹屾瘯</option> <option value="5">璁㈠崟鍏抽棴</option> - <option value="6">宸插鏍�</option> + <option value="6">涓婁紶瀹屾瘯</option> </select> </div> </div> @@ -362,11 +362,13 @@ </a>`; } if( d.Status == '5'){ - html += `<a class="layui-btn layui-btn-normal layui-btn-xs shangClass" lay-event="xml"> + html += `<a class="layui-btn layui-btn-normal layui-btn-xs checkClass" lay-event="check"> <i class="layui-icon layui-icon-ok"></i>澶嶆牳 </a>`; } - + html += `<a class="layui-btn layui-btn-normal layui-btn-xs shangClass" lay-event="xml"> + <i class="layui-icon layui-icon-ok"></i>XML + </a>`; 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; @@ -1135,7 +1137,7 @@ var param = { Id: parseInt(Id), }; - sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function(res) { + sendData(IP + "/UpApi/CloseExportNotice", param, 'post', function(res) { console.log(res); if (res.code == 0) { //鎴愬姛 layer.msg(res.msg, { @@ -1371,6 +1373,29 @@ }); } }); + }else if(obj.event === 'check'){//澶嶆牳 + // 浠g爜鍖哄煙 + layer.confirm('纭畾澶嶆牳姝ゅ崟鎹悧锛�', function(index) { + var param = { + Id:data.Id, + }; + sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function (res) { + if (res.code == 0) { //鎴愬姛 + layer.msg(res.msg, { + icon: 1, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { + refreshTable(); + doing = true + }); + } else { //涓嶆垚鍔� + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { doing = true }); + } + }); + }); } }); -- Gitblit v1.8.0