src/main/java/com/zy/asrs/controller/MobileController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/asrs/entity/param/CombParam.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/asrs/service/MobileService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/pda/comb.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -2,6 +2,8 @@ import com.core.annotations.ManagerAuth; import com.core.common.R; import com.zy.asrs.entity.param.CombParam; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -18,7 +20,7 @@ */ @RequestMapping("/comb/auth") @ManagerAuth(memo = "组托") public R comb(){ public R comb(@RequestBody CombParam combParam){ return R.ok(); } src/main/java/com/zy/asrs/entity/param/CombParam.java
New file @@ -0,0 +1,56 @@ package com.zy.asrs.entity.param; import java.util.List; /** * Created by vincent on 2020/6/28 */ public class CombParam { // 托盘条码 private String barcode; private List<CombMat> combMats; public static class CombMat { // 物料编号 private String matNo; // 物料数量 private Double count; public String getMatNo() { return matNo; } public void setMatNo(String matNo) { this.matNo = matNo; } public Double getCount() { return count; } public void setCount(Double count) { this.count = count; } } public String getBarcode() { return barcode; } public void setBarcode(String barcode) { this.barcode = barcode; } public List<CombMat> getCombMats() { return combMats; } public void setCombMats(List<CombMat> combMats) { this.combMats = combMats; } } src/main/java/com/zy/asrs/service/MobileService.java
New file @@ -0,0 +1,4 @@ package com.zy.asrs.service; public interface MobileService { } src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
New file @@ -0,0 +1,10 @@ package com.zy.asrs.service.impl; import com.zy.asrs.service.MobileService; /** * 移动端服务核心类 * Created by vincent on 2020/6/28 */ public class MobileServiceImpl implements MobileService { } src/main/webapp/views/pda/comb.html
@@ -113,7 +113,7 @@ <footer> <div class="layui-btn-container"> <button type="button" class="layui-btn layui-btn-xs layui-btn-primary" onclick="reset()">重置</button> <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb" style="margin-left: 20px">组托</button> <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb()" style="margin-left: 20px">组托</button> </div> </footer> </body> @@ -183,7 +183,32 @@ // 组托 function comb() { let barcode = $('#code').val(); if (isEmpty(barcode)) { layer.msg("请输入托盘条码"); return; } let combMats = matData; $.ajax({ url: baseUrl+"/mobile/comb/auth", headers: {'token': localStorage.getItem('token')}, data: JSON.stringify({ barcode: barcode, combMats: combMats }), contentType:'application/json;charset=UTF-8', method: 'POST', asyne: false, success: function (res) { if (res.code === 200) { } else if (res.code === 403) { top.location.href = baseUrl + "/pda"; } else { alert(res.msg) } } }) } </script> </html>