|  |  |  | 
|---|
|  |  |  | var warehouseArea = $('#warehouseArea').val(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 发送 Ajax 请求到后端 | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/inventoryCheckOrder/add/auth", // 替换为你的后端接口地址 | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | contentType: 'application/json;charset=UTF-8', | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | data: JSON.stringify({ orderNo: billNumber,area: warehouseArea }), | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | if (res.code === 200){ | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 1}); | 
|---|
|  |  |  | // 清空输入框 | 
|---|
|  |  |  | $('#billNumber').val(''); | 
|---|
|  |  |  | $('#warehouseArea').val('堆垛机'); // 重置为默认选项 | 
|---|
|  |  |  | form.render('select'); // 重新渲染 select | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 关闭弹框 | 
|---|
|  |  |  | layer.close(index); | 
|---|
|  |  |  | } else if (res.code === 403){ | 
|---|
|  |  |  | top.location.href = baseUrl+"/"; | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 2}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | error: function () { | 
|---|
|  |  |  | layer.msg('请求失败'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | function pakoutPreview(ids) { | 
|---|
|  |  |  | let loadIndex = layer.load(2); | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl + "/out/pakout/preview/auth", | 
|---|
|  |  |  | url: baseUrl + "/out/pakout/preview/auth/sxk", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | contentType: 'application/json;charset=UTF-8', | 
|---|
|  |  |  | data: JSON.stringify(ids), | 
|---|