From fe41831b0e9057a16aef1e82048105aee671bbda Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期六, 19 十月 2024 19:08:06 +0800
Subject: [PATCH] Merge branch 'master' into Liudl

---
 HTML/views/SOSetting/ExportNotice.html |  100 +++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 83 insertions(+), 17 deletions(-)

diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html
index 7934f3e..cc00349 100644
--- a/HTML/views/SOSetting/ExportNotice.html
+++ b/HTML/views/SOSetting/ExportNotice.html
@@ -173,6 +173,22 @@
 								</div>
 							</div>
 						</div>
+						<div class="layui-inline" id="divFinish" style="display: none; padding-top: 10px;">
+							<div class="layui-inline">
+								<label class="layui-form-label">璐﹀彿</label>
+								<div class="layui-input-inline" style="width: 220px;">
+									<input type="text" id="admin" name="admin" placeholder="璐﹀彿" autocomplete="off"
+									class="layui-input">
+								</div>
+							</div>
+							<div class="layui-inline DivLoadingArea" style="margin-top: 10px;">
+								<label class="layui-form-label">瀵嗙爜</label>
+								<div class="layui-input-inline" style="width: 220px;">
+									<input type="text" id="password" name="password" placeholder="瀵嗙爜" autocomplete="off"
+									class="layui-input">
+								</div>
+							</div>
+						</div>
 						<!-- 缁存姢澶囨敞寮规 -->
 						<div class="layui-inline" id="divEditDemo" style="display: none; padding-top: 10px;">
 							<label class="layui-form-label">澶囨敞</label>
@@ -977,27 +993,77 @@
 							}
 						}); 
 					}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
+						
+						layer.open({
+							type: 1,
+							title: '澶嶆牳纭',
+							content: $('#divFinish'),
+							maxmin: true,
+							area: ['350px','215px'],
+							btn: ['纭畾', '鍙栨秷'],
+							yes: function(index, layero) {
+								var pa = $('#PickingArea').val();
+								console.log(pa)
+								if (isChongFu== true) {
+									isChongFu= false;
+									
+									if($('#admin').val()==''){
+										layer.msg("璇疯緭鍏ヨ处鍙�", {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										});
+										isChongFu= true;
+										return;
+									}
+									if($("#password").val() == '')
+									{
+										layer.msg("璇疯緭鍏ュ瘑鐮�", {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										});
+										isChongFu= true;
+										return;
+									}
+									
+									var param = {
+										Id:data.Id,
+										UserNo:$('#admin').val(),
+										Password:$('#password').val(),
+									};
+									console.log(param);
+									sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function (res) {
+										if (res.code == 0) { //鎴愬姛
+											layer.msg(res.msg, {
+												icon: 1,
+												time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											}, function () {
+												refreshTable();
+												$('#admin').val("");
+												$('#password').val("");
+												isChongFu = true
+											});
+										} else { //涓嶆垚鍔�
+											layer.msg(res.msg, {
+												icon: 2,
+												time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											}, function () { 
+												isChongFu = true ;
+												$('#admin').val("");
+												$('#password').val("")
+											});
+										}
+										layer.close(index);
 									});
-								} else { //涓嶆垚鍔�
-									layer.msg(res.msg, {
+									
+									
+								}else{
+									layer.msg("璇峰嬁閲嶅鐐瑰嚮", {
 										icon: 2,
 										time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-									}, function () { doing = true });
+									});
 								}
-							});
+								
+							}
 						});
 					}
 				});

--
Gitblit v1.8.0