| | |
| | | </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> |
| | |
| | | } |
| | | }); |
| | | }else if(obj.event === 'check'){//复核 |
| | | // 代码区域 |
| | | 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 }); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | }); |
| | | } |
| | | }); |