已重命名2个文件
已添加20个文件
已修改17个文件
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.bill; |
| | | |
| | | /** |
| | | * @Description åºå
¥åºçè¡¨åæ¨¡ç |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | public class InoutBill { |
| | | |
| | | /** |
| | | * é»è®¤å
¥åºè¿ç£
å |
| | | */ |
| | | public static String IN_WEIGHT_DEFAULT = "<!DOCTYPE html><html lang='zh-cn'><head><meta http-equiv='Content-Type' content='text/html;charset=UTF-8'><title>å
¥åºè¿ç£
å</title><style>body {text-align: center;padding: 10px} .tit {margin: 10px;font-size: 24px;font-family: 'å®ä½';padding-top: 15px} .div-tit {padding-top: 10px} table {width: 100%;border-right: 1px solid;border-bottom: 1px solid;font-size: 14px} table td {border-left: 1px solid;border-top: 1px solid;height: 38px} .sp1 {width: 50%;float: left;padding-bottom: 10px} .sp2 {width: 25%;float: left;text-align: center}</style></head><body><h1 class='tit'>billTitle</h1><div id=\"print_main\" class='div-tit'><span class='sp1'>宿æ¶é´ï¼<a>completeTime</a></span><span class='sp1'>åå·ï¼serId</span></div><table cellspacing='0' cellpadding='0'><tr><td width='12.5%'>åè´§åä½</td><td colspan='3' width='37.5%'>customerName</td><td width='12.5%'>æ¶è´§åä½</td><td colspan='3' `width`='37.5%'>deptName</td></tr><tr><td width='12.5%'>æ¿è¿äºº</td><td width='12.5%'>driverName</td><td width='12.5%'>ç²®é£åç§</td><td width='12.5%'>foodVariety</td><td width='12.5%'>è£
å¸ä»åº</td><td width='12.5%'>depotName</td><td width='12.5%'>ç²®é£äº§å°</td><td width='12.5%'>foodLocation</td></tr><tr><td>æ¿è¿è½¦ç</td><td>plateNum</td><td>æ¯é(KG)</td><td>fullWeight</td><td>ç®é(KG)</td><td>emptyWeight</td><td>åé(KG)</td><td>netWeight</td></tr><tr><td>è´¨æ£æ£é(KG)</td><td>deCheck</td><td>è´¨æ£å¢é(KG)</td><td>addCheck</td><td>å¼ä»æ£é(KG)</td><td>deHandle</td><td>å
¶ä»æ£é(KG)</td><td>deOther</td></tr><tr><td>è´¨æ£ç»æ</td><td colspan='3'>checkStatus</td><td>å
¥åºéé(KG)</td><td>recordWeight</td><td>ç»ç®éé(KG)</td><td>settleWeight</td></tr><tr><td>夿³¨</td><td colspan='7'>remark</td></tr></table><div class='div-tit'><span class='sp2'>å¸ç£
åï¼</span><span class='sp2'>çç£
åï¼</span><span class='sp2'>ä¿ç®¡åï¼handleUser</span><span class='sp2'>æ¿è¿äººï¼driverName</span></div></br><div style=\"padding-top: 10px\"><span></span></div><div style=\"text-align: left;font-size: 12px\"><span>注ï¼</span></div><div style=\"text-align: left;font-size: 12px\"><span>1.åé=æ¯é-ç®éï¼è´¨æ£å¢æ£éæ ¹æ®è´¨æ£è¯¦ç»å¡«åï¼</span></div><div style=\"text-align: left;font-size: 12px\"><span>2.å
¥åºéé=åé-æ£éï¼ç»ç®éé=å
¥åºéé+è´¨æ£å¢éï¼</span></div><div style=\"text-align: left;font-size: 12px\"><span>3.ç½èï¼åæ ¹ï¼ï¼çº¢èï¼è®°è´¦ï¼ï¼é»èï¼å®¢æ·ä¿çï¼</span></div></body></html>"; |
| | | /** |
| | | * é»è®¤åºåºè¿ç£
å |
| | | */ |
| | | public static String OUT_WEIGHT_DEFAULT = "<!DOCTYPE html><html lang='zh-cn'><head><meta http-equiv='Content-Type'content='text/html;charset=UTF-8'><title>åºåºç§°éå</title><style>body{text-align:center;padding:10px}.tit{margin:10px;font-size:24px;font-family:'å®ä½';padding-top:15px}.div-tit{padding-top:10px}.sp1{width:50%;float:left;padding-bottom:10px}.sp2{width:25%;float:left;text-align:center}table{width:100%;border-right:1px solid;border-bottom:1px solid;font-size:14px}table td{border-left:1px solid;border-top:1px solid;height:38px}</style></head><body><h1 class='tit'>billTitle</h1><div class='div-tit'><span class='sp1'>宿æ¶é´ï¼completeTime</span><span class='sp1'>åºåºåå·ï¼serId</span></div><table cellspacing='0'cellpadding='0'><tr><td width='12.5%'>åè´§åä½</td><td colspan='3'width='37.5%'>deptName</td><td width='12.5%'>æ¶è´§åä½</td><td colspan='3'width='37.5%'>customerName</td></tr><tr><td width='12.5%'>æ¿è¿äºº</td><td width='12.5%'>driverName</td><td width='12.5%'>ç²®é£åç§</td><td width='12.5%'>foodVariety</td><td width='12.5%'>åºåºä»åº</td><td width='12.5%'>depotName</td><td width='12.5%'>ç²®é£äº§å°</td><td width='12.5%'>foodLocation</td></tr><tr><td>æ¿è¿è½¦ç</td><td>plateNum</td><td>æ¯é(KG)</td><td>fullWeight</td><td>ç®é(KG)</td><td>emptyWeight</td><td>åé(KG)</td><td>netWeight</td></tr><tr><td>å
¶ä»æ£é(KG)</td><td>deOther</td><td>å¼ä»æ£é(KG)</td><td>deHandle</td><td>åºåºéé(KG)</td><td>recordWeight</td><td>ç»ç®éé(KG)</td><td>settleWeight</td></tr><tr><td>夿³¨</td><td colspan='7'>remark</td></tr></table><div class='div-tit'><span class='sp2'>å¸ç£
åï¼</span><span class='sp2'>çç£
åï¼</span><span class='sp2'>ä¿ç®¡åï¼handleUser</span><span class='sp2'>æ¿è¿äººï¼driverName</span></div><br></body><div style=\"padding-top: 10px\"><span></span></div><div style=\"text-align: left;font-size: 12px\"><span>注ï¼</span></div><div style=\"text-align: left;font-size: 12px\"><span>1.åé=æ¯é-ç®éï¼</span></div><div style=\"text-align: left;font-size: 12px\"><span>2.åºåºéé=åé-æ»æ£éï¼ç»ç®éé=åé-æ»æ£éï¼</span></div><div style=\"text-align: left;font-size: 12px\"><span>3.ç½èï¼åæ ¹ï¼ï¼çº¢èï¼è®°è´¦ï¼ï¼é»èï¼å®¢æ·ä¿çï¼</span></div></html>"; |
| | | |
| | | /** |
| | | * é»è®¤ç»ç®å |
| | | */ |
| | | public static String IN_SETTLE_DEFAULT = "<!DOCTYPE html><html lang='zh-cn'><head><meta http-equiv='Content-Type'content='text/html;charset=UTF-8'><title>å
¥åºè¿ç£
å</title><style>body{text-align:center;padding:10px}.tit{margin:10px;font-size:24px;font-family:'å®ä½';padding-top:15px}.div-tit{padding-top:10px}table{width:100%;border-right:1px solid;border-bottom:1px solid;font-size:14px}table td{border-left:1px solid;border-top:1px solid;height:38px}.sp1{width:50%;float:left;padding-bottom:10px}.sp2{width:50%;float:left;text-align:center}</style></head><body><h1 class='tit'>billTitle</h1><div class='div-tit'><span class='sp1'>ç»ç®æ¶é´ï¼payTime</span><span class='sp1'>å
¥åºåå·ï¼serId</span></div><table cellspacing='0'cellpadding='0'><tr><td width='12.5%'>åè´§åä½</td><td colspan='3'width='37.5%'>customerName</td><td width='12.5%'>æ¶è´§åä½</td><td colspan='3'width='37.5%'>deptName</td></tr><tr><td width='12.5%'>弿·é¶è¡</td><td colspan='3'width='37.5%'>bank</td><td>æ¯é(KG)</td><td>fullWeight</td><td>ç®é(KG)</td><td>emptyWeight</td></tr><tr><td width='12.5%'>é¶è¡å¡å·</td><td colspan='3'width='37.5%'>banNum</td><td>åé(KG)</td><td>netWeight</td><td>æ»æ£é(KG)</td><td>deSum</td></tr><tr><td>å
¥åºä»åº</td><td>depotName</td><td>ç²®é£åç§</td><td>foodVariety</td><td>ç²®é£åä»·</td><td>payPrice</td><td>ç»ç®éé</td><td>settleWeight</td></tr><tr><td>ä¿ç®¡å</td><td>keeperName</td><td>æ¿è¿äºº</td><td>driverName</td><td>å
¶ä»è´¹ç¨</td><td>otherSum</td><td>ç»ç®è´¹ç¨</td><td>paySum</td></tr><tr><td>夿³¨</td><td colspan='3'>remark</td><td>大åéé¢</td><td colspan='3'>moneyName</td></tr></table><div class='div-tit'><span class=\"sp2\">æ¶è´§åä½ç¾åï¼</span><span class=\"sp2\">客æ·ç¾åï¼</span></div></body></html>"; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @Description è·åçæ§ææ¾ä¿¡æ¯å°è£
ç±» |
| | | * @Author CZT |
| | | * @Date 2024/12/11 10:10 |
| | | */ |
| | | @Data |
| | | public class ApiCameraData implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * ç»ç»ç¼ç |
| | | */ |
| | | private String companyId; |
| | | /** |
| | | * ååºç¼ç |
| | | */ |
| | | private String deptId; |
| | | /** |
| | | * çæ§ID |
| | | */ |
| | | private String cameraId; |
| | | /** |
| | | * çæ§åç§° |
| | | */ |
| | | private String cameraName; |
| | | /** |
| | | * IP |
| | | */ |
| | | private String ip; |
| | | /** |
| | | * æ§å¶ç«¯å£ |
| | | */ |
| | | private Integer controlPort; |
| | | /** |
| | | * ææ¾æ¹å¼ |
| | | */ |
| | | private String playType; |
| | | /** |
| | | * æææ¹å¼ |
| | | **/ |
| | | private String snapType; |
| | | /** |
| | | * çæ§SN |
| | | */ |
| | | private String sn; |
| | | /** |
| | | * ééå· |
| | | */ |
| | | private Integer channel; |
| | | /** |
| | | * ç»å½å |
| | | */ |
| | | private String loginId; |
| | | /** |
| | | * å¯ç |
| | | */ |
| | | private String pwd; |
| | | /** |
| | | * äºå°é度 |
| | | */ |
| | | private int speed = 129;//é度ï¼0-255 é»è®¤129ï¼ |
| | | /** |
| | | * äºå°æ§å¶å½ä»¤ 1=ä¸ï¼2=ä¸ï¼3=å·¦ï¼4=å³ï¼5=å·¦ä¸ï¼6=å·¦ä¸ï¼7=å³ä¸ï¼8=å³ä¸ï¼0=忢ï¼9=ååå°ï¼10 = ååå |
| | | * é¢ç½®ä½å½ä»¤ 1=设置ï¼2=æ§è¡ï¼3=å é¤ |
| | | */ |
| | | private String command; |
| | | /** |
| | | * é¢ç½®ä½ç¼å·1~255 |
| | | */ |
| | | private String preset; |
| | | /** |
| | | * RTSPå°å |
| | | */ |
| | | private String mediaAddr; |
| | | /** |
| | | * å
ç½ææ¾å°å |
| | | */ |
| | | private String urlIn; |
| | | /** |
| | | * å¤ç½ææ¾å°å |
| | | */ |
| | | private String urlOut; |
| | | /** |
| | | * è¯·æ±æ¹IPï¼ç¨äºå¤ææ¯å
ç½ææ¾ï¼è¿æ¯å¤ç½ææ¾ |
| | | */ |
| | | private String requireIp; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description è§é¢ææ¾å°è£
ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2024/12/11 09:59 |
| | | */ |
| | | @Data |
| | | public class ApiCameraResp { |
| | | |
| | | |
| | | public static String CODE_SUCCESS = "SUCCESS"; |
| | | public static String CODE_ERROR = "ERROR"; |
| | | |
| | | private String code = CODE_SUCCESS; |
| | | |
| | | private String msg; |
| | | |
| | | /** |
| | | * ææ¾ä¿¡æ¯ |
| | | */ |
| | | private String cameraId; //çæ§ID |
| | | private String cameraName; //è§é¢åç§° |
| | | private String playUrl; //ææ¾å°å |
| | | private String playType; //ææ¾æ¹å¼ |
| | | private String snapType; //ææ¾æ¹å¼ |
| | | private String appkey; //å®é²å¹³å°appKey |
| | | private String secret; //å®é²å¹³å°ç§é¥ |
| | | private String ip; //设å¤IP |
| | | private Integer port; //设å¤ç«¯å£ |
| | | private String sn; //设å¤åºåå· |
| | | |
| | | /** |
| | | * ææéä»¶åç§° |
| | | */ |
| | | private String fileName; |
| | | |
| | | public ApiCameraResp() { |
| | | } |
| | | |
| | | public ApiCameraResp(String playUrl) { |
| | | this.code = CODE_SUCCESS; |
| | | this.msg = "æå"; |
| | | this.playUrl = playUrl; |
| | | } |
| | | |
| | | public ApiCameraResp(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public ApiCameraResp(String appkey, String secret, String ip, Integer port, String sn) { |
| | | this.code = CODE_SUCCESS; |
| | | this.msg = "æå"; |
| | | this.appkey = appkey; |
| | | this.secret = secret; |
| | | this.ip = ip; |
| | | this.port = port; |
| | | this.sn = sn; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import com.fzzy.igds.domain.InoutConf; |
| | | import lombok.Data; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * åºå
¥åºæµç¨è¿ç¨ä¸ï¼è½¦ç失败ï¼è¯»å¡å¨ç设å¤çå
Œ
±åæ°åä¼ é对象 |
| | | */ |
| | | @Data |
| | | public class ApiInoutData implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | private String id; |
| | | |
| | | private String companyId; |
| | | |
| | | private String deptId; |
| | | |
| | | /** |
| | | * åºå
¥åºé
å¥åºå· |
| | | */ |
| | | private String sort = "1"; |
| | | |
| | | /** |
| | | * 设å¤åç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * 设å¤åºåå·/设å¤ç¼ç |
| | | */ |
| | | private String sn; |
| | | |
| | | private String ip; |
| | | |
| | | private Integer port; |
| | | |
| | | |
| | | private String loginId; |
| | | |
| | | private String pwd; |
| | | |
| | | private int chanNum = 1; |
| | | |
| | | private Integer portCtrl; |
| | | |
| | | private String type; |
| | | |
| | | private String status; |
| | | |
| | | private String protocol; |
| | | |
| | | private String playType; |
| | | |
| | | private String snapType; |
| | | |
| | | /** |
| | | * 车çè¯å«ææ-éç¨äºé£æ£è´è¿API-HTTPåè®® |
| | | */ |
| | | private String plateSnapType; |
| | | |
| | | private String mediaAddr; |
| | | |
| | | private String videoPath; |
| | | |
| | | private String videoName; |
| | | |
| | | private String errorMsg = "ERROR"; |
| | | |
| | | // 车çå· |
| | | private String plateNum; |
| | | |
| | | // ç¨æ·Id |
| | | private String userId; |
| | | |
| | | private Date time = new Date(); |
| | | |
| | | //ä¿¡æ¯ |
| | | private String msg; |
| | | |
| | | //ä¿¡æ¯ææ¾æ¬¡æ° |
| | | private int repeat = 1; |
| | | |
| | | //æºæ
§å¡å· |
| | | private String icCardNo; |
| | | |
| | | //ç§°éä¿¡æ¯ |
| | | private double weight = 0.0; |
| | | |
| | | //å¨ä½ç¼ç ï¼0=å
³é/红ç¯ï¼1=æå¼/è·¯ç¯ |
| | | private String actionCode; |
| | | |
| | | //设å¤ç¼å· |
| | | private int deviceCode; |
| | | |
| | | |
| | | public ApiInoutData() { |
| | | super(); |
| | | } |
| | | |
| | | public ApiInoutData(InoutConf conf) { |
| | | this.id = conf.getId(); |
| | | this.companyId = conf.getCompanyId(); |
| | | this.deptId = conf.getDeptId(); |
| | | this.sort = conf.getSort(); |
| | | this.name = conf.getName(); |
| | | this.sn = conf.getSn(); |
| | | this.ip = conf.getIp(); |
| | | this.port = conf.getPort(); |
| | | this.loginId = conf.getLoginId(); |
| | | this.pwd = conf.getPwd(); |
| | | this.chanNum = conf.getChanNum(); |
| | | this.portCtrl = conf.getPortCtrl(); |
| | | this.type = conf.getType(); |
| | | this.status = conf.getStatus(); |
| | | this.protocol = conf.getProtocol(); |
| | | this.playType = conf.getPlayType(); |
| | | this.snapType = conf.getSnapType(); |
| | | this.mediaAddr = conf.getMediaAddr(); |
| | | this.deviceCode = conf.getInOrder(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import com.fzzy.igds.domain.InoutConf; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * åºå
¥åºè§é¢ |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper=false) |
| | | public class InoutCameraDto extends InoutConf implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * è§é¢ææ¾å°åï¼æ ¹æ®ä¸åçææ¾æ¹å¼çæä¸åçææ¾å°å |
| | | */ |
| | | private String playAddr; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import com.fzzy.igds.domain.FileInfo; |
| | | import com.fzzy.igds.domain.InoutRecord; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/12/4 14:04 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class InoutData extends InoutRecord implements Serializable { |
| | | |
| | | //æäº¤çç¸å
³éä»¶ä¿¡æ¯ï¼ä¾å¦ç
§çã |
| | | private List<FileInfo> files; |
| | | |
| | | } |
| | |
| | | |
| | | private String progress; |
| | | |
| | | private String progressTag; //表示æªå®æçåæ® |
| | | |
| | | private String weightTag; |
| | | |
| | | private String type; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * ç§°éåä¿¡æ¯å°è£
|
| | | * |
| | | * @author chen |
| | | */ |
| | | @Data |
| | | public class InoutPrintBill implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private String billTitle = "ç§°éå"; |
| | | |
| | | private String companyId = ""; |
| | | |
| | | //ç»è®°æ¶é´ |
| | | private String registerTime = ""; |
| | | //宿æ¶é´ |
| | | private String completeTime = ""; |
| | | //宿æ¶é´ |
| | | private String fullTime = ""; |
| | | //宿æ¶é´ |
| | | private String emptyTime = ""; |
| | | //æµæ°´åå· |
| | | private String serId = ""; |
| | | |
| | | //徿¥åä½(å
¥åºä¸ºåè´§åä½ï¼åºåºä¸ºæ¶è´§åä½) |
| | | private String customerName = ""; |
| | | //徿¥åä½(åºåºä¸ºåè´§åä½ï¼å
¥åºä¸ºæ¶è´§åä½) |
| | | private String unitName = ""; |
| | | private String noticeId = ""; |
| | | |
| | | private String deptId = ""; |
| | | private String deptName = ""; |
| | | private String weightUser = "";//ç§°é人 |
| | | |
| | | private String keeperUser = "";//ä¿ç®¡å |
| | | //æ¿è¿äºº |
| | | private String driverName = ""; |
| | | private String userId = ""; |
| | | private String userContact = ""; |
| | | private String userAddress = ""; |
| | | //ç²®é£åç§ |
| | | private String foodVariety = ""; |
| | | //ä»åºåç§° |
| | | private String depotName = ""; |
| | | //ç²®é£äº§å° |
| | | private String foodLocation = ""; |
| | | private String foodLevel = ""; |
| | | //æ¿è¿è½¦ç |
| | | private String plateNum = ""; |
| | | //æ¯é |
| | | private double fullWeight = 0.0; |
| | | //ç®é |
| | | private double emptyWeight = 0.0; |
| | | //åé |
| | | private double netWeight = 0.0; |
| | | //è´¨æ£æ£é |
| | | private double deCheck = 0.0; |
| | | //è´¨æ£å¢é |
| | | private double addCheck = 0.0; |
| | | //å
è£
æ£é |
| | | private double dePackage = 0.0; |
| | | //è´¨æ£ç»æ |
| | | private String checkStatus; |
| | | //å
¥åºéé |
| | | private double recordWeight = 0.0; |
| | | //æ°´å墿£é |
| | | private double deWet = 0.0; |
| | | //æè´¨å¢æ£é |
| | | private double deImpurity = 0.0; |
| | | //æ°´å |
| | | private String wet = ""; |
| | | //æè´¨ |
| | | private String impurity = ""; |
| | | //å¼ä»æ£é |
| | | private double deHandle = 0.0; |
| | | //å
¶ä»æ£é |
| | | private double deOther = 0.0; |
| | | //æ»æ£é |
| | | private double deSum = 0.0; |
| | | //ç»ç®éé¢ |
| | | private String settleMoney = ""; |
| | | //ç»ç®éé |
| | | private double settleWeight = 0.0; |
| | | //åä»· |
| | | private String price = ""; |
| | | //大åéé¢ |
| | | private String moneyName = ""; |
| | | //夿³¨ |
| | | private String remark = ""; |
| | | //ä¿ç®¡å |
| | | private String handleUser = ""; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.data; |
| | | |
| | | import com.fzzy.igds.constant.Constant; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description ææå¯¹è±¡å°è£
ï¼æ¯æåºå
¥åºåç³»ç»é
ç½® |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @Data |
| | | public class SnapImgDto { |
| | | |
| | | private String companyId; |
| | | |
| | | private String deptId; |
| | | |
| | | //å¤é®ID--ç¨äºä¿åæä»¶æ°æ®åºä½¿ç¨ |
| | | private String bizId; |
| | | |
| | | // ä¸å¡ç¬¬äºä¸ªæ ç¾ |
| | | private String progress; |
| | | |
| | | //ä¸å¡ç±»å |
| | | private String bizType = Constant.TYPE_IN; |
| | | |
| | | //åºå
¥åºè½¦çå· |
| | | private String plateNum; |
| | | |
| | | //é
置信æ¯ID1 |
| | | private String id1; |
| | | |
| | | //é
置信æ¯ID2 |
| | | private String id2; |
| | | |
| | | //é
置信æ¯ID2 |
| | | private String id3; |
| | | |
| | | private String fileName1; |
| | | |
| | | private String fileName2; |
| | | |
| | | private String fileName3; |
| | | |
| | | private String sort; |
| | | |
| | | private double weight; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @Description éä»¶ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/12/4 13:56 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "d_file") |
| | | @TableName("d_file") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class FileInfo extends BizBaseEntity implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @Column(name = "id", columnDefinition = "varchar(40) COMMENT 'éä»¶ID'") |
| | | @TableField("id") |
| | | private String fileId; |
| | | |
| | | @Column(name = "dept_id", columnDefinition = "varchar(40) COMMENT 'æå±åºåº'") |
| | | @TableField("dept_id") |
| | | private String deptId; |
| | | |
| | | @Column(name = "biz_id", columnDefinition = "varchar(40) COMMENT 'ä¸å¡ID'") |
| | | @TableField("biz_id") |
| | | private String bizId; |
| | | |
| | | @Column(name = "biz_tag", columnDefinition = "varchar(40) COMMENT 'ä¸å¡æ ç¾'") |
| | | @TableField("biz_tag") |
| | | private String bizTag; |
| | | |
| | | @Column(name = "file_name", columnDefinition = "varchar(200) COMMENT 'æä»¶è·¯å¾ååç§°'") |
| | | @TableField("file_name") |
| | | private String fileName; |
| | | |
| | | } |
| | |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | |
| | | |
| | | /** |
| | | * @Description çµåå·¡é»è®°å½ä¸»è¡¨ |
| | | * @Author sgj |
| | | * @Date 2025/12/04 11:38 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "d_patrol") |
| | |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | //çæè§å å¹´ææ¥ |
| | | @Id |
| | | @Column(name = "id", columnDefinition = "varchar(40) COMMENT '主é®'") |
| | | @TableField("id") |
| | | private String id; |
| | | |
| | | @Id |
| | | @Column(name = "batch_id", columnDefinition = "varchar(40) COMMENT 'çæ¬¡ç¼å·'") |
| | | @TableField("batch_id") |
| | | private String batchId; |
| | | |
| | | @Id |
| | | @Column(name = "user_id", columnDefinition = "varchar(40) COMMENT 'å·¡é»äººè´¦å·'") |
| | | @TableField("user_id") |
| | | private String userId; |
| | | |
| | | @Column(name = "user_name", columnDefinition = "varchar(40) COMMENT 'å·¡é»äºº'") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | @Column(name = "dept_id", columnDefinition = "varchar(40) COMMENT 'æå±åºåº'") |
| | | @TableField("dept_id") |
| | | private String deptId; |
| | | |
| | | @Column(name = "batch_id", columnDefinition = "varchar(40) COMMENT 'çæ¬¡ç¼å·'") |
| | | @TableField("batch_id") |
| | | private String batchId; |
| | | |
| | | @Column(name = "user_name", columnDefinition = "varchar(40) COMMENT 'å·¡é»äºº'") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description çµåå·¡é»é
ç½® |
| | | * @Author sgj |
| | | * @Date 2025/12/04 11:38 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "d_patrol_conf") |
| | |
| | | @TableField("batch_name") |
| | | private String batchName; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Column(name = "start_time", columnDefinition = "datetime COMMENT 'å·¡é»å¼å§æ¶é´'") |
| | | @TableField("start_time") |
| | | private Date startTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Column(name = "end_time", columnDefinition = "datetime COMMENT 'å·¡é»ç»ææ¶é´'") |
| | | @TableField("end_time") |
| | | private Date endTime; |
| | | |
| | | @Column(name = "user_name", columnDefinition = "varchar(40) COMMENT 'å·¡é»äºº'") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description çµåå·¡é»è®°å½å表 |
| | | * @Description çµåå·¡é» |
| | | * @Author CZT |
| | | * @Date 2025/11/25 19:38 |
| | | */ |
| | |
| | | @TableField("point_name") |
| | | private String pointName; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Column(name = "create_time", columnDefinition = "datetime COMMENT '巡黿¶é´'") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | @Column(name = "longitude", columnDefinition = "decimal(20,6) COMMENT 'ç»åº¦'") |
| | | @TableField("longitude") |
| | | private String longitude; |
| | |
| | | /** |
| | | * --------é¸ç°å¾ä¿¡æ¯-------- |
| | | **/ |
| | | |
| | | @Column(name = "img_id", columnDefinition = "varchar(50) COMMENT 'å·¡æ´ç
§ç'") |
| | | @TableField("img_id") |
| | | private String imgId; |
| | | |
| | | @Column(name = "file_name", columnDefinition = "varchar(50) COMMENT 'å·¡æ´ç
§ç'") |
| | | @TableField("file_name") |
| | | private String imgName; |
| | | |
| | | //å·¡æ´ç
§çå
¨è·¯å¾ |
| | | @Transient |
| | | private String imgPath; |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®IDæ¥è¯¢åºåºä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Dept getDeptById(String id) { |
| | | |
| | | return coreDeptMapper.selectById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ææ´æ°åºåºä¿¡æ¯ |
| | | * @param sysDept |
| | | * @param isAdd |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.service; |
| | | |
| | | import com.ruoyi.common.config.FrameworkConfig; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | |
| | | import java.io.File; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/12/4 17:36 |
| | | */ |
| | | @Service |
| | | public class FileService { |
| | | |
| | | /** |
| | | * è·ååºå
¥åºæä»¶è·¯å¾ |
| | | * @param date |
| | | * @return |
| | | */ |
| | | public String getInoutFilePath(Date date) { |
| | | if (null == date) date = new Date(); |
| | | String basePath = FrameworkConfig.getProfile() + "INOUT/" + DateFormatUtils.format(date, "yyyyMM") + "/"; |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * è·ååºåºè·¯å¾ä¸æä»¶ |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public String getDeptFilePath(String companyId) { |
| | | if (StringUtils.isEmpty(companyId)){ |
| | | companyId = FrameworkConfig.getCompanyId(); |
| | | } |
| | | |
| | | String basePath = FrameworkConfig.getProfile() + "IMG/"+ companyId + "/SECURITY/"; |
| | | |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | } |
| | |
| | | * @param param |
| | | */ |
| | | public void listPageInout(Page<InoutRecord> page, InoutParam param) { |
| | | if(StringUtils.isBlank(param.getCompanyId())){ |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if(StringUtils.isBlank(param.getDeptId())){ |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | QueryWrapper<InoutRecord> queryWrapper = getQueryWrapper(param); |
| | | inoutRecordMapper.selectPage(page, queryWrapper); |
| | | } |
| | |
| | | * @param param |
| | | */ |
| | | public List<InoutRecord> listInout(InoutParam param) { |
| | | if(StringUtils.isBlank(param.getCompanyId())){ |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if(StringUtils.isBlank(param.getDeptId())){ |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | QueryWrapper<InoutRecord> queryWrapper = getQueryWrapper(param); |
| | | |
| | | return inoutRecordMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | |
| | | */ |
| | | public QueryWrapper<InoutRecord> getQueryWrapper(InoutParam param) { |
| | | QueryWrapper<InoutRecord> queryWrapper = new QueryWrapper<>(); |
| | | |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | queryWrapper.eq("company_id", param.getCompanyId()); |
| | | queryWrapper.eq("dept_id", param.getDeptId()); |
| | | if (StringUtils.isNotBlank(param.getCompanyId())) { |
| | | queryWrapper.eq("company_id", param.getCompanyId()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getDeptId())) { |
| | | queryWrapper.eq("dept_id", param.getDeptId()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getCustomerName())) { |
| | | queryWrapper.like("customer_name", param.getCustomerName()); |
| | | } |
| | | |
| | | if (StringUtils.isNotBlank(param.getId())) { |
| | | queryWrapper.eq("id", param.getId()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getPlateNum())) { |
| | | queryWrapper.eq("plate_num", param.getPlateNum()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getWeightTag())) { |
| | | //æ¥è¯¢å¾
ç§°éç |
| | | queryWrapper.likeRight("progress", param.getWeightTag()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getProgressTag())) { |
| | | //æªå®æç |
| | | queryWrapper.ne("progress", param.getProgressTag()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getProgress())) { |
| | | queryWrapper.eq("progress", param.getProgress()); |
| | | } |
| | | if (StringUtils.isNotBlank(param.getFoodVariety())) { |
| | | queryWrapper.eq("food_variety", param.getFoodVariety()); |
| | |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥è¯¢æ°æ® |
| | | * @param id |
| | | * æ¥è¯¢æ°æ® |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public InoutRecord selectById(String id) { |
| | | if(StringUtils.isBlank(id)){ |
| | | return null; |
| | | |
| | | public InoutRecord selectOne(InoutParam param) { |
| | | if(StringUtils.isBlank(param.getCompanyId())){ |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | return inoutRecordMapper.selectById(id); |
| | | QueryWrapper<InoutRecord> queryWrapper = getQueryWrapper(param); |
| | | |
| | | return inoutRecordMapper.selectOne(queryWrapper); |
| | | } |
| | | |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.utils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.text.DecimalFormat; |
| | | |
| | | /** |
| | | * æ°åæ ¼å¼åå·¥å
·ç±» |
| | | */ |
| | | public class NumberUtil { |
| | | |
| | | /** |
| | | * 对doubleç±»åçæ°å¼ä¿çæå®ä½æ°çå°æ°ã<br> |
| | | * è¯¥æ¹æ³èå
¥æ¨¡å¼ï¼åâææ¥è¿çâæ°åèå
¥ï¼å¦æä¸ä¸¤ä¸ªç¸é»æ°åçè·ç¦»ç¸çï¼å为åä¸èå
¥çèå
¥æ¨¡å¼ã<br> |
| | | * <b>注æï¼</b>å¦æç²¾åº¦è¦æ±æ¯è¾ç²¾ç¡®è¯·ä½¿ç¨ keepPrecision(String number, int precision)æ¹æ³ |
| | | * @param number è¦ä¿çå°æ°çæ°å |
| | | * @param precision å°æ°ä½æ° |
| | | * @return double 妿æ°å¼è¾å¤§ï¼å使ç¨ç§å¦è®¡æ°æ³è¡¨ç¤º |
| | | */ |
| | | public static double keepPrecision(Double number, int precision) { |
| | | if(null == number || 0.0 == number ) return 0.0; |
| | | BigDecimal bg = new BigDecimal(number); |
| | | return bg.setScale(precision, BigDecimal.ROUND_HALF_UP).doubleValue(); |
| | | } |
| | | |
| | | /** |
| | | * 对floatç±»åçæ°å¼ä¿çæå®ä½æ°çå°æ°ã<br> |
| | | * è¯¥æ¹æ³èå
¥æ¨¡å¼ï¼åâææ¥è¿çâæ°åèå
¥ï¼å¦æä¸ä¸¤ä¸ªç¸é»æ°åçè·ç¦»ç¸çï¼å为åä¸èå
¥çèå
¥æ¨¡å¼ã<br> |
| | | * <b>注æï¼</b>å¦æç²¾åº¦è¦æ±æ¯è¾ç²¾ç¡®è¯·ä½¿ç¨ keepPrecision(String number, int precision)æ¹æ³ |
| | | * @param number è¦ä¿çå°æ°çæ°å |
| | | * @param precision å°æ°ä½æ° |
| | | * @return float 妿æ°å¼è¾å¤§ï¼å使ç¨ç§å¦è®¡æ°æ³è¡¨ç¤º |
| | | */ |
| | | public static float keepPrecision(Float number, int precision) { |
| | | if(null == number) return 0f; |
| | | BigDecimal bg = new BigDecimal(number); |
| | | return bg.setScale(precision, BigDecimal.ROUND_HALF_UP).floatValue(); |
| | | } |
| | | /** |
| | | * double转å符串ï¼é¿å
åºç°ç§å¦è®¡æ°æ³ |
| | | * @param d |
| | | * @return |
| | | */ |
| | | public static String doubleToStr(Double d) { |
| | | if(null == d) return ""; |
| | | DecimalFormat df = new DecimalFormat("0.0"); |
| | | return df.format(d); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.task; |
| | |
| | | </DataType> |
| | | </Model> |
| | | <View> |
| | | <Property name="packages">font-awesome</Property> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsCompany"> |
| | | <Property name="dataType">[dtCompany]</Property> |
| | | <Property name="dataProvider">selectDeptPR#listCompany</Property> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * This file is part of Dorado 7.x (http://dorado7.bsdn.org). |
| | | * |
| | | * Copyright (c) 2002-2012 BSTEK Corp. All rights reserved. |
| | | * |
| | | * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) |
| | | * and BSDN commercial (http://www.bsdn.org/licenses) licenses. |
| | | * |
| | | * If you are unsure which license is appropriate for your use, please contact the sales department |
| | | * at http://www.bstek.com/contact. |
| | | */ |
| | | |
| | | package com.bstek.dorado.core; |
| | | |
| | | import java.rmi.dgc.VMID; |
| | | |
| | | import org.apache.commons.lang.StringUtils; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | *è°æ´æ¾ç¤ºä¿¡æ¯ |
| | | * |
| | | * ç¨äºè·ååç§Doradoåºæ¬ä¿¡æ¯çå·¥å
፱ȋ |
| | | * @author Benny Bao (mailto:benny.bao@bstek.com) |
| | | * @since Feb 27, 2007 |
| | | */ |
| | | public class DoradoAbout { |
| | | private static String instanceId = new VMID().toString(); |
| | | private static long instantiationTime = System.currentTimeMillis(); |
| | | |
| | | /** |
| | | * è¿å产ååç§°ã |
| | | */ |
| | | public static String getProductTitle() { |
| | | return "dorado"; |
| | | } |
| | | |
| | | /** |
| | | * è¿å产åæä¾åã |
| | | */ |
| | | public static String getVendor() { |
| | | return "dorado"; |
| | | } |
| | | |
| | | /** |
| | | * è¿å产åçæ¬å·ã |
| | | */ |
| | | public static String getVersion() { |
| | | Package pkg = DoradoAbout.class.getPackage(); |
| | | String version = null; |
| | | if (pkg != null) version = pkg.getImplementationVersion(); |
| | | if (StringUtils.isEmpty(version)) version = instanceId; |
| | | return version; |
| | | } |
| | | |
| | | /** |
| | | * è¿ådoradoçå®ä¾idã |
| | | */ |
| | | public static String getInstanceId() { |
| | | return instanceId; |
| | | } |
| | | |
| | | /** |
| | | * è¿å该doradoçå®ä¾çå建æ¶é´ã |
| | | */ |
| | | public static long getInstantiationTime() { |
| | | return instantiationTime; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.sys.controller.file; |
| | | |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.sys.manager.file.FileManager; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.*; |
| | | |
| | | /** |
| | | * @Description åºå
¥åºè®¾å¤ç¸å
³åè½ |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @Slf4j |
| | | @Controller |
| | | @RequestMapping("basic/file") |
| | | public class FileController { |
| | | |
| | | @Resource |
| | | private FileManager fileManager; |
| | | |
| | | /** |
| | | * é¸ç°å¾é¢è§é¡µé¢ |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/dept-img") |
| | | public String deptImg(@RequestParam(value = "id", required = true) String id, |
| | | ModelMap view) { |
| | | |
| | | if(StringUtils.isNotEmpty(id)){ |
| | | String imgPath = fileManager.getDeptFile(id);; |
| | | view.put("imgPath", imgPath); |
| | | } |
| | | |
| | | return "web/common/preview-img"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * é¿ä¼ åºå
¥åºå¾ç |
| | | * |
| | | * @param file |
| | | * @param request |
| | | * @return |
| | | * @throws IOException |
| | | */ |
| | | @RequestMapping("/update-file") |
| | | @ResponseBody |
| | | public PageResponse<String> updateFile( |
| | | @RequestParam(value = "file", required = true) MultipartFile file, |
| | | HttpServletRequest request) throws IOException { |
| | | |
| | | String plateNum = request.getParameter("plateNum"); |
| | | |
| | | return fileManager.upLoadInoutHandleImg(file, plateNum); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.sys.controller.inout; |
| | | |
| | | import com.fzzy.igds.constant.RespCodeEnum; |
| | | import com.fzzy.igds.data.*; |
| | | import com.fzzy.igds.utils.SystemUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | |
| | | /** |
| | | * @Description åºå
¥åºè®¾å¤ç¸å
³åè½ |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("inout/api") |
| | | public class InoutApiController { |
| | | |
| | | /** |
| | | * è·å车çè¯å«ä¿¡æ¯ |
| | | * |
| | | * @param param 车çè¯å«æ°æ®ä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/get-plateNum") |
| | | public PageResponse<ApiInoutData> getPlateNum(@RequestBody ApiInoutData param) { |
| | | |
| | | if (null == param.getIp()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "åºå
¥åºé
ç½®ä¸æ²¡æé
ç½®å¦å
¥ç»è®°ç车çè¯å«"); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(param.getProtocol())) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "å½å车çè¯å«æªé
ç½®é讯åè®®ï¼æ æ³æ§è¡"); |
| | | } |
| | | |
| | | // param = inoutEventControl.getPlateNum(param); |
| | | //TODO å¾
å®ç°ï¼åç»æ ¹æ®éæ±è¿è¡å®ç° |
| | | |
| | | if (StringUtils.isEmpty(param.getErrorMsg())) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000, param); |
| | | } |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), param.getErrorMsg()); |
| | | } |
| | | |
| | | /** |
| | | * åºå
¥åºææ |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/snap-img") |
| | | public @ResponseBody |
| | | PageResponse<SnapImgDto> cutImg(@RequestBody SnapImgDto param) { |
| | | |
| | | //TODO å¾
å®ç°ï¼åç»æ ¹æ®éæ±è¿è¡å®ç° |
| | | // param = inoutApiManager.snapImg(param); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000, param); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * åºå
¥åºè§é¢ |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/inout-video-play") |
| | | @ResponseBody |
| | | public ApiCameraResp inoutVideoPlay(HttpServletRequest request, @RequestBody InoutCameraDto param) { |
| | | //è·åè¯·æ±æ¹IP |
| | | String ip = SystemUtil.getIP(request); |
| | | // return inoutEventControl.inoutVideoPlay(param, ip); |
| | | //TODO å¾
å®ç°ï¼åç»æ ¹æ®éæ±è¿è¡å®ç° |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.fzzy.common.dto.BaseParam; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.RespCodeEnum; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.data.InoutParam; |
| | | import com.fzzy.igds.data.NoticeParam; |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.data.*; |
| | | import com.fzzy.igds.domain.*; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.igds.utils.DateUtil; |
| | |
| | | } |
| | | |
| | | /** |
| | | * åºå
¥åºå¼ä» |
| | | * @param httpRequest |
| | | * @param sort |
| | | * @param type |
| | | * @param view |
| | | * @return |
| | | */ |
| | | @RequestMapping("/handle") |
| | | public String handle(HttpServletRequest httpRequest, |
| | | @RequestParam(value = "sort", required = false) String sort, |
| | | @RequestParam(value = "type", required = false) String type, |
| | | ModelMap view) { |
| | | |
| | | //å¦ææ²¡ææå®å°ç£
ï¼ä»ç¨æ·ä¸ä¸ä¸ªéæ©ä¸è·å |
| | | if (StringUtils.isEmpty(sort)) { |
| | | sort = "1"; |
| | | } |
| | | if (StringUtils.isEmpty(sort)) { |
| | | sort = inoutManager.getInoutWeightByClient(httpRequest); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(type)) { |
| | | //é»è®¤å
¥åº |
| | | type = Constant.TYPE_IN; |
| | | } |
| | | view.put("type", type); |
| | | |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | view.put(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | view.put("deptId", deptId); |
| | | |
| | | // å½åæµç¨æ ç¾ |
| | | view.put("progress", Constant.PROGRESS_HANDLE); |
| | | |
| | | //å
¥åºæµç¨é
ç½® |
| | | String inoutProgress = inoutManager.getInoutProgressConf(user.getCompanyId(), deptId, type); |
| | | view.put("inoutProgress", inoutProgress); |
| | | |
| | | // ç±»å |
| | | List<SysDictData> listInoutType = commonManager.getInoutType(); |
| | | view.put("listInoutType", listInoutType); |
| | | |
| | | // ä»åºå表å䏿æ¡ä½¿ç¨ |
| | | List<Depot> listDepot = commonManager.listDepotByDeptId(deptId); |
| | | view.put(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | // ç²®é£åç§ä¸ææ¡ |
| | | List<SysDictData> listFoodVariety = commonManager.getDicTrigger(Constant.TRIGGER_PARENT_FOOD_VARIETY, user.getCompanyId()); |
| | | view.put("listFoodVariety", listFoodVariety); |
| | | |
| | | return prefix + "/handle"; |
| | | } |
| | | |
| | | /** |
| | | * å
¥åºç§°éæä½ï¼å
æ¬ç©ºè½¦ç§°éåæ»¡è½¦ç§°éï¼å
±ç¨ä¸ä¸ªé¡µé¢ |
| | | * |
| | | * @param sort 表示使ç¨çåºå
¥åºè®¾å¤é
å¥å·ï¼ä¸ä¼ éé»è®¤ä¸º1 |
| | |
| | | } |
| | | |
| | | /** |
| | | * åºå
¥åºæ°æ®æ¥è¯¢ï¼æ ¹æ®æ¡ä»¶æ¥è¯¢æ°æ®ï¼åºå
¥åºæ°æ®ä¿¡æ¯ |
| | | * è·åå¾
å¼ä»çæ°æ® |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/list-handle-data") |
| | | @ResponseBody |
| | | public PageResponse<List<InoutRecord>> listHandleData(@RequestBody InoutParam param) { |
| | | return inoutManager.listHandleData(param); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢å¾
ç§°éçæ°æ® |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/inout-query") |
| | | @ResponseBody |
| | | public PageResponse<InoutRecord> inoutQuery(@RequestBody InoutParam param) { |
| | | if (null == param.getCompanyId()) param.setCompanyId(ContextUtil.getCompanyId()); |
| | | |
| | | return inoutManager.inoutQuery(param); |
| | | } |
| | | |
| | |
| | | */ |
| | | @RequestMapping("/submit-register") |
| | | @ResponseBody |
| | | public PageResponse<InoutRecord> submitRegister(@RequestBody InoutRecord data) { |
| | | public PageResponse<InoutData> submitRegister(@RequestBody InoutData data) { |
| | | |
| | | return inoutManager.submitRegister(data); |
| | | } |
| | |
| | | */ |
| | | @RequestMapping("/submit-check") |
| | | @ResponseBody |
| | | public PageResponse<InoutRecord> submitCheck(@RequestBody InoutRecord data) { |
| | | public PageResponse<InoutData> submitCheck(@RequestBody InoutData data) { |
| | | |
| | | return inoutManager.submitCheck(data); |
| | | } |
| | |
| | | */ |
| | | @RequestMapping("/submit-weight") |
| | | @ResponseBody |
| | | public PageResponse<InoutRecord> submitWeight(@RequestBody InoutRecord data) { |
| | | public PageResponse<InoutData> submitWeight(@RequestBody InoutData data) { |
| | | |
| | | return inoutManager.submitWeight(data); |
| | | } |
| | |
| | | @RequestMapping("/submit-handle") |
| | | @Transactional |
| | | @ResponseBody |
| | | public PageResponse<InoutRecord> submitHandle(@RequestBody InoutRecord data) { |
| | | public PageResponse<InoutData> submitHandle(@RequestBody InoutData data) { |
| | | |
| | | log.debug("-------------submitHandle------------------"); |
| | | return inoutManager.submitHandle(data); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.sys.controller.print; |
| | | |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.RespCodeEnum; |
| | | import com.fzzy.igds.data.InoutData; |
| | | import com.fzzy.igds.data.InoutParam; |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.domain.InoutRecord; |
| | | import com.fzzy.igds.service.InoutRecordService; |
| | | import com.fzzy.sys.manager.print.PrintManager; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @Description åæ®æå° |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("basic/print") |
| | | public class PrintController { |
| | | |
| | | @Resource |
| | | private PrintManager reportManager; |
| | | @Resource |
| | | private InoutRecordService inoutRecordService; |
| | | |
| | | /** |
| | | * è·ååºåºç§°éæå°å |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @RequestMapping("/bill-weight") |
| | | public PageResponse<String> inoutWeightBill(@RequestBody InoutData data) { |
| | | try { |
| | | InoutParam inoutParam = new InoutParam(); |
| | | inoutParam.setId(data.getId()); |
| | | InoutRecord inoutData = inoutRecordService.selectOne(inoutParam); |
| | | if (inoutData.getProgress().equals(Constant.PROGRESS_WEIGHT_FULL) |
| | | || inoutData.getProgress().equals(Constant.PROGRESS_WEIGHT_EMPTY) |
| | | || inoutData.getProgress().equals(Constant.PROGRESS_HANDLE)) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1008.getCode(), "æä½å¼å¸¸ï¼" + "请å
å®æç§°é"); |
| | | } |
| | | String html; |
| | | if (Constant.TYPE_IN.equals(data.getType())) { |
| | | html = reportManager.inWeightBill(inoutData); |
| | | } else { |
| | | html = reportManager.outWeightBill(inoutData); |
| | | } |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000, html); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("åå°å¼å¸¸:{}", e); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), |
| | | "åå°å¼å¸¸ï¼" + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.sys.manager.file; |
| | | |
| | | import com.fzzy.igds.constant.RespCodeEnum; |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.domain.Dept; |
| | | import com.fzzy.igds.service.CoreDeptService; |
| | | import com.fzzy.igds.service.FileService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description åºå
¥åºè®¾å¤ç¸å
³åè½ |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @Slf4j |
| | | @Component("file.fileManager") |
| | | public class FileManager { |
| | | @Resource |
| | | private CoreDeptService coreDeptService; |
| | | @Resource |
| | | private FileService fileService; |
| | | |
| | | /** |
| | | * æ ¹æ®åä½IDè·ååä½ä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public String getDeptFile(String deptId) { |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | return null; |
| | | } |
| | | String imgBathPath = "æªä¸ä¼ "; |
| | | Dept dept = coreDeptService.getDeptById(deptId); |
| | | |
| | | if (StringUtils.isNotEmpty(dept.getImgName())) { |
| | | File imgFile = new File(dept.getImgName()); |
| | | if (imgFile.exists()) { |
| | | imgBathPath = dept.getImgName(); |
| | | } |
| | | } |
| | | return imgBathPath; |
| | | } |
| | | |
| | | /** |
| | | * åºå
¥åºçé件䏿¬¡ï¼åæ°æ¯è½¦çå· |
| | | * |
| | | * @param file |
| | | * @return |
| | | * @throws IOException |
| | | */ |
| | | public PageResponse<String> upLoadInoutHandleImg(MultipartFile file, String plateNum) |
| | | throws IOException { |
| | | |
| | | log.debug("ä¸ä¼ åºå
¥åºçéä»¶â¦â¦"); |
| | | |
| | | // è·åé»è®¤ç¼ç çåèæ°ç» |
| | | byte[] fileByte = file.getBytes(); |
| | | |
| | | // è·åæä»¶çæºæä»¶åç§° |
| | | String oldFileName = file.getOriginalFilename(); |
| | | |
| | | // è·åæä»¶ä¿åè·¯å¾ |
| | | String filePath = fileService.getInoutFilePath(new Date()); |
| | | |
| | | // è·åæ°çID |
| | | String newFileName = ContextUtil.generateId(); |
| | | |
| | | // æä»¶åç¼å |
| | | String suffixName = oldFileName.substring(oldFileName.lastIndexOf(".")); |
| | | |
| | | // åææ°çæä»¶å |
| | | if (StringUtils.isEmpty(plateNum)) { |
| | | newFileName = newFileName + suffixName; |
| | | } else { |
| | | newFileName = plateNum + "_" + newFileName + suffixName; |
| | | } |
| | | |
| | | // æä»¶ä¸ä¼ |
| | | boolean flag = uploadFile(fileByte, filePath, newFileName); |
| | | |
| | | // 夿æä»¶ä¸ä¼ æ¯å¦æå,æåè¿åæä»¶å |
| | | if (flag) { |
| | | return new PageResponse<String>(RespCodeEnum.CODE_0000.getCode(), |
| | | newFileName); |
| | | } else { |
| | | return new PageResponse<String>(RespCodeEnum.CODE_1111.getCode(), |
| | | "ä¸ä¼ 失败"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æä»¶æµä¸ä¼ æä»¶ |
| | | * |
| | | * @param file |
| | | * @param filePath |
| | | * @param fileName |
| | | * @return |
| | | */ |
| | | private static boolean uploadFile(byte[] file, String filePath, String fileName) throws IOException { |
| | | // é»è®¤æä»¶ä¸ä¼ æå |
| | | boolean flag = true; |
| | | // newä¸ä¸ªæä»¶å¯¹è±¡å®ä¾ |
| | | File targetFile = new File(filePath); |
| | | // 妿å½åæä»¶ç®å½ä¸åå¨å°±èªå¨å建该æä»¶æè
ç®å½ |
| | | if (!targetFile.exists()) { |
| | | targetFile.mkdirs(); |
| | | } |
| | | // å建æä»¶æµ |
| | | FileOutputStream fileOutputStream = new FileOutputStream(filePath + fileName); |
| | | try { |
| | | fileOutputStream.write(file); |
| | | } catch (FileNotFoundException e) { |
| | | flag = false; |
| | | } catch (IOException ioException) { |
| | | flag = false; |
| | | } finally { |
| | | fileOutputStream.flush(); |
| | | fileOutputStream.close(); |
| | | } |
| | | return flag; |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.RespCodeEnum; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.data.InoutParam; |
| | | import com.fzzy.igds.data.NoticeParam; |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.data.*; |
| | | import com.fzzy.igds.domain.*; |
| | | import com.fzzy.igds.service.DicAreaService; |
| | | import com.fzzy.igds.service.InoutConfService; |
| | |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.*; |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®é
ç½®è·ååºå
¥åºçé
ç½®åæ° |
| | | * |
| | | * @param listInoutConf |
| | | * @param type |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®é
ç½®è·ååºå
¥åºçé
ç½®åæ° |
| | | * |
| | | * @param listInoutConf |
| | | * @param sort |
| | | * @param type |
| | |
| | | } |
| | | |
| | | /** |
| | | * åºå
¥åºæ³¨åæ°æ®æäº¤ï¼åºå
¥åºç»è®°ä½¿ç¨åä¸ä¸ªæ¹æ³ |
| | | * åºå
¥åºæ³¨åæ°æ®æäº¤ï¼åºå
¥åºç»è®°ä½¿ç¨åä¸ä¸ªæ¹æ³ï¼å
å«ç§°éæ¶ç´æ¥ç»è®° |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public PageResponse<InoutRecord> submitRegister(InoutRecord data) { |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | public PageResponse<InoutData> submitRegister(InoutData data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(user.getCompanyId()); |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setDeptId(ContextUtil.subDeptId(user)); |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | int num = inoutRecordService.checkExist(data.getCompanyId(), data.getPlateNum()); |
| | |
| | | data.setUserName(data.getUserName().trim()); |
| | | } |
| | | //ç»è®°äººåç»è®°æ¶é´ |
| | | data.setRegisterUser(user.getUserName()); |
| | | data.setRegisterUser(ContextUtil.getLoginUserName()); |
| | | data.setRegisterTime(new Date()); |
| | | |
| | | num = inoutRecordService.addInoutRecord(data); |
| | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "ç»è®°å¤±è´¥ï¼", data); |
| | | } |
| | | |
| | | //TODO éä»¶å¤ç |
| | | // List<FileData> files = data.getFiles(); |
| | | // if (null != files && files.size() > 0) { |
| | | // // æ§è¡éä»¶ä¿¡æ¯ |
| | | // fileService.saveInoutFiles(files, data.getCompanyId(), data.getId(), curProgress); |
| | | // } |
| | | //éä»¶å¤ç |
| | | saveInoutFiles(data.getFiles(), data.getId(), curProgress); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "ç»è®°æåï¼", data); |
| | | } |
| | | |
| | | /** |
| | | * åéªä¿¡æ¯æäº¤ |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public PageResponse<InoutRecord> submitCheck(InoutRecord data) { |
| | | public PageResponse<InoutData> submitCheck(InoutData data) { |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(user.getCompanyId()); |
| | |
| | | |
| | | /** |
| | | * ç§°éæäº¤ï¼å
å«ç§°éç»è®°æäº¤ååç¬ç§°éæäº¤ |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public PageResponse<InoutRecord> submitWeight(InoutRecord data) { |
| | | public PageResponse<InoutData> submitWeight(InoutData data) { |
| | | if (Constant.PROGRESS_WEIGHT_EMPTY.equals(data.getProgress())) { |
| | | data.setEmptyWeightTime(new Date()); |
| | | data.setEmptyWeightUser(ContextUtil.getLoginUserName()); |
| | | } |
| | | if (Constant.PROGRESS_WEIGHT_FULL.equals(data.getProgress())) { |
| | | data.setFullWeightTime(new Date()); |
| | | data.setFullWeightUser(ContextUtil.getLoginUserName()); |
| | | } |
| | | if (StringUtils.isBlank(data.getId())) { |
| | | //è¡¨ç¤ºç§°éæ¶ç´æ¥ç»è®° |
| | | return submitRegister(data); |
| | | } |
| | | |
| | | // è·åç³»ç»åæ°é
ç½® |
| | | //è·åç³»ç»åæ°é
ç½® |
| | | InoutSysConf inoutSysConf = inoutConfService.getCacheInoutSysConf(data.getCompanyId(), data.getDeptId()); |
| | | if (null == inoutSysConf) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æç¤ºï¼å½åç³»ç»ä¸æµç¨é
ç½®å¼å¸¸ï¼è¯·è系管çå", data); |
| | |
| | | String nextProgress = getNextProgress(curProgress, data.getType(), inoutSysConf); |
| | | data.setProgress(nextProgress); |
| | | |
| | | int num; |
| | | if(StringUtils.isBlank(data.getId())){ |
| | | data.setRegisterTime(new Date()); |
| | | data.setRegisterUser(ContextUtil.getLoginUserName()); |
| | | |
| | | //è®¾ç½®åæ¬¡æäº¤æ¶ç§°éæ¶é´ä¿¡æ¯ |
| | | if(data.getFullWeight() > 0){ |
| | | data.setFullWeightUser(ContextUtil.getLoginUserName()); |
| | | data.setFullWeightTime(new Date()); |
| | | } |
| | | if(data.getEmptyWeight() > 0){ |
| | | data.setEmptyWeightUser(ContextUtil.getLoginUserName()); |
| | | data.setEmptyWeightTime(new Date()); |
| | | } |
| | | //ç§°éç»è®° |
| | | num = inoutRecordService.addInoutRecord(data); |
| | | }else { |
| | | if (Constant.PROGRESS_WEIGHT_EMPTY.equals(curProgress)) { |
| | | data.setEmptyWeightTime(new Date()); |
| | | data.setEmptyWeightUser(ContextUtil.getLoginUserName()); |
| | | } |
| | | if (Constant.PROGRESS_WEIGHT_FULL.equals(curProgress)) { |
| | | data.setFullWeightTime(new Date()); |
| | | data.setFullWeightUser(ContextUtil.getLoginUserName()); |
| | | } |
| | | //ç§°éæ´æ° |
| | | num = inoutRecordService.updateInoutRecord(data); |
| | | } |
| | | //ç§°éæ°æ®æ´æ° |
| | | int num = inoutRecordService.updateInoutRecord(data); |
| | | |
| | | if (num == 0) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æäº¤å¤±è´¥ï¼", data); |
| | | } |
| | | |
| | | //TODO éä»¶å¤ç |
| | | // List<FileData> files = data.getFiles(); |
| | | // if (null != files && files.size() > 0) { |
| | | // // æ§è¡éä»¶ä¿¡æ¯ |
| | | // fileService.saveInoutFiles(files, data.getCompanyId(), data.getId(), curProgress); |
| | | // } |
| | | //éä»¶å¤ç |
| | | saveInoutFiles(data.getFiles(), data.getId(), curProgress); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "æ§è¡æå", data); |
| | | } |
| | | |
| | | /** |
| | | * å¼ä»ä¿¡æ¯æäº¤ |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public PageResponse<InoutRecord> submitHandle(InoutRecord data) { |
| | | public PageResponse<InoutData> submitHandle(InoutData data) { |
| | | |
| | | // è·åç³»ç»åæ°é
ç½® |
| | | InoutSysConf inoutSysConf = inoutConfService.getCacheInoutSysConf(data.getCompanyId(), data.getDeptId()); |
| | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æäº¤å¤±è´¥ï¼", data); |
| | | } |
| | | |
| | | //TODO éä»¶å¤ç |
| | | // List<FileData> files = data.getFiles(); |
| | | // if (null != files && files.size() > 0) { |
| | | // // æ§è¡éä»¶ä¿¡æ¯ |
| | | // fileService.saveInoutFiles(files, data.getCompanyId(), data.getId(), curProgress); |
| | | // } |
| | | //éä»¶å¤ç |
| | | saveInoutFiles(data.getFiles(), data.getId(), curProgress); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "æäº¤æå", data); |
| | | } |
| | | |
| | | /** |
| | | * 弿¥æ§è¡éä»¶ä¿å |
| | | * @param files éä»¶ä¿¡æ¯ |
| | | * @param bizId ä¸å¡id |
| | | * @param progress æµç¨èç¹ |
| | | */ |
| | | @Async |
| | | public void saveInoutFiles(List<FileInfo> files, String bizId, String progress) { |
| | | |
| | | if (null == files || files.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | //TODO éä»¶é»è¾å¾
å¤ç |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * å页æ¥è¯¢æ°æ® |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | |
| | | if (StringUtils.isEmpty(param.getDeptId())) { |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | param.setProgressTag(Constant.PROGRESS_RECORD); |
| | | |
| | | Page<InoutRecord> corePage = new Page<>(param.getPage(), param.getLimit()); |
| | | inoutRecordService.listPageInout(corePage, param); |
| | |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢æ°æ® |
| | | * æ¥è¯¢å¾
ç§°éçæ°æ® |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å¾
å¼ä»çæ°æ® |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public PageResponse<List<InoutRecord>> listHandleData(InoutParam param) { |
| | | if (StringUtils.isEmpty(param.getCompanyId())) { |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(param.getDeptId())) { |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | List<InoutRecord> inoutRecords = inoutRecordService.listInout(param); |
| | | |
| | | if (null == inoutRecords || inoutRecords.isEmpty()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_2000.getCode(), "è·åå°æ°æ®ä¿¡æ¯ä¸ºç©º"); |
| | | } |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000, inoutRecords); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ® |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public PageResponse<InoutRecord> inoutQuery(InoutParam param) { |
| | | if (StringUtils.isEmpty(param.getId())) { |
| | | |
| | | if (StringUtils.isEmpty(param.getId()) && StringUtils.isEmpty(param.getPlateNum())) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1007.getCode(), "æ¥è¯¢åæ°ä¸å®æ´ï¼æ¥è¯¢å¤±è´¥ï¼"); |
| | | } |
| | | if (StringUtils.isEmpty(param.getCompanyId())) { |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(param.getDeptId())) { |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | InoutRecord result = inoutRecordService.selectById(param.getId()); |
| | | if(Constant.PROGRESS_WEIGHT_EMPTY.equals(param.getProgress()) || Constant.PROGRESS_WEIGHT_FULL.equals(param.getProgress())){ |
| | | //设置æ¥è¯¢å¾
ç§°éç |
| | | param.setProgress(null); |
| | | //è®¾ç½®ç§°éæµç¨æ è®° |
| | | param.setWeightTag("WEIGHT"); |
| | | } |
| | | |
| | | InoutRecord result = inoutRecordService.selectOne(param); |
| | | if (null == result) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_2000.getCode(), |
| | | "ç³»ç»æªæ¥è¯¢å°æ§è¡ä¸çåæ®ä¿¡æ¯", null); |
| | |
| | | |
| | | /** |
| | | * å页è·ååºåä¿¡æ¯ |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | param.setDeptId(ContextUtil.subDeptId(user)); |
| | | |
| | | List<InoutNoticeIn> list = inoutNoticeService.getNoticeIn(param.getCompanyId(), param.getDeptId(),Constant.COMPLETE_STATUS_NONE); |
| | | List<InoutNoticeIn> list = inoutNoticeService.getNoticeIn(param.getCompanyId(), param.getDeptId(), Constant.COMPLETE_STATUS_NONE); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æ¥è¯¢ç»æä¸ºç©ºï¼"); |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | param.setDeptId(ContextUtil.subDeptId(user)); |
| | | |
| | | List<InoutNoticeOut> list = inoutNoticeService.getNoticeOut(param.getCompanyId(), param.getDeptId(),Constant.COMPLETE_STATUS_NONE); |
| | | List<InoutNoticeOut> list = inoutNoticeService.getNoticeOut(param.getCompanyId(), param.getDeptId(), Constant.COMPLETE_STATUS_NONE); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æ¥è¯¢ç»æä¸ºç©ºï¼"); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.sys.manager.print; |
| | | |
| | | import com.fzzy.igds.bill.InoutBill; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.FoodVariety; |
| | | import com.fzzy.igds.data.InoutPrintBill; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.domain.InoutRecord; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.service.SysDeptService; |
| | | import com.fzzy.igds.utils.NumberUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | import java.text.DecimalFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * @Description åæ®æå° |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @Component |
| | | public class PrintManager { |
| | | |
| | | @Resource |
| | | private SysDeptService sysDeptService; |
| | | @Resource |
| | | private DepotService depotService; |
| | | |
| | | /** |
| | | * è·åå
¥åºè¿ç£
åæ°æ®ä¿¡æ¯ |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String inWeightBill(InoutRecord data) { |
| | | |
| | | // è·åè¡¨åæ°æ® |
| | | InoutPrintBill bill = this.createBillData(data, "å
¥åºåç å"); |
| | | |
| | | // è°æ´æ¨¡çæ°æ®å¹¶è¿å |
| | | String htmlStr = InoutBill.IN_WEIGHT_DEFAULT; |
| | | |
| | | htmlStr = htmlStr.replace("billTitle", bill.getBillTitle()); |
| | | |
| | | htmlStr = htmlStr.replace("registerTime", bill.getRegisterTime()); |
| | | htmlStr = htmlStr.replace("completeTime", bill.getCompleteTime()); |
| | | htmlStr = htmlStr.replace("fullTime", bill.getFullTime()); |
| | | htmlStr = htmlStr.replace("emptyTime", bill.getEmptyTime()); |
| | | htmlStr = htmlStr.replace("serId", bill.getSerId()); |
| | | |
| | | htmlStr = htmlStr.replace("customerName", bill.getCustomerName()); |
| | | htmlStr = htmlStr.replace("deptName", bill.getUnitName()); |
| | | |
| | | htmlStr = htmlStr.replace("driverName", bill.getDriverName()); |
| | | htmlStr = htmlStr.replace("userNumberId", bill.getUserId()); |
| | | htmlStr = htmlStr.replace("userContact", bill.getUserContact()); |
| | | htmlStr = htmlStr.replace("userAddress", bill.getUserAddress()); |
| | | htmlStr = htmlStr.replace("foodVariety", bill.getFoodVariety()); |
| | | htmlStr = htmlStr.replace("depotName", bill.getDepotName()); |
| | | htmlStr = htmlStr.replace("foodLocation", bill.getFoodLocation()); |
| | | |
| | | if ("5326".equals(data.getCompanyId())) { |
| | | htmlStr = htmlStr.replace("recordWeight", new DecimalFormat("0").format(bill.getRecordWeight())); |
| | | htmlStr = htmlStr.replace("settleWeight", new DecimalFormat("0").format(bill.getSettleWeight())); |
| | | htmlStr = htmlStr.replace("fullWeight", new DecimalFormat("0").format(bill.getFullWeight())); |
| | | htmlStr = htmlStr.replace("emptyWeight", new DecimalFormat("0").format(bill.getEmptyWeight())); |
| | | htmlStr = htmlStr.replace("netWeight", new DecimalFormat("0").format(bill.getNetWeight())); |
| | | } |
| | | htmlStr = htmlStr.replace("plateNum", bill.getPlateNum()); |
| | | htmlStr = htmlStr.replace("fullWeight", |
| | | new DecimalFormat("0.00").format(bill.getFullWeight())); |
| | | htmlStr = htmlStr.replace("emptyWeight", |
| | | new DecimalFormat("0.00").format(bill.getEmptyWeight())); |
| | | htmlStr = htmlStr.replace("netWeight", |
| | | new DecimalFormat("0.00").format(bill.getNetWeight())); |
| | | |
| | | htmlStr = htmlStr.replace("deImpurity", bill.getDeImpurity() + ""); |
| | | htmlStr = htmlStr.replace("deWet", bill.getDeWet() + ""); |
| | | |
| | | htmlStr = htmlStr.replace("recordWeight", new DecimalFormat("0.00").format(bill.getRecordWeight())); |
| | | htmlStr = htmlStr.replace("deCheck", bill.getDeCheck() + ""); |
| | | htmlStr = htmlStr.replace("addCheck", bill.getAddCheck() + ""); |
| | | |
| | | htmlStr = htmlStr.replace("deSum", bill.getDeSum() + ""); |
| | | htmlStr = htmlStr.replace("settleWeight", |
| | | new DecimalFormat("0.00").format(bill.getSettleWeight())); |
| | | |
| | | htmlStr = htmlStr.replace("dePackage", bill.getDePackage() + ""); |
| | | htmlStr = htmlStr.replace("deHandle", bill.getDeHandle() + ""); |
| | | htmlStr = htmlStr.replace("deOther", bill.getDeOther() + ""); |
| | | htmlStr = htmlStr.replace("price", bill.getPrice()); |
| | | htmlStr = htmlStr.replace("settleMoney", bill.getSettleMoney() + ""); |
| | | htmlStr = htmlStr.replace("wet", bill.getWet() + ""); |
| | | htmlStr = htmlStr.replace("impurity", bill.getImpurity() + ""); |
| | | |
| | | htmlStr = htmlStr.replace("checkStatus", bill.getCheckStatus()); |
| | | htmlStr = htmlStr.replace("remark", bill.getRemark()); |
| | | htmlStr = htmlStr.replace("moneyName", bill.getMoneyName()); |
| | | |
| | | htmlStr = htmlStr.replace("unitName", bill.getUnitName()); |
| | | htmlStr = htmlStr.replace("time", bill.getRegisterTime()); |
| | | htmlStr = htmlStr.replace("handleStart", ""); |
| | | htmlStr = htmlStr.replace("handleEnd", ""); |
| | | htmlStr = htmlStr.replace("noticeId", bill.getNoticeId() == null ? "" : bill.getNoticeId()); |
| | | htmlStr = htmlStr.replace("phone", data.getUserContact() == null ? "" : data.getUserContact() + ""); |
| | | htmlStr = htmlStr.replace("printTime", DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm")); |
| | | |
| | | htmlStr = htmlStr.replaceAll("weightUser", |
| | | bill.getWeightUser() == null ? "" : bill.getWeightUser()); |
| | | htmlStr = htmlStr.replaceAll("handleUser", |
| | | bill.getHandleUser() == null ? "" : bill.getHandleUser()); |
| | | htmlStr = htmlStr.replaceAll("keeperName", |
| | | bill.getKeeperUser() == null ? "" : bill.getKeeperUser()); |
| | | |
| | | |
| | | return htmlStr; |
| | | } |
| | | |
| | | /** |
| | | * è·ååºåºè¿ç£
å |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String outWeightBill(InoutRecord data) { |
| | | // è·åè¡¨åæ°æ® |
| | | InoutPrintBill bill = this.createBillData(data, "åºåºåç å"); |
| | | |
| | | //é»è®¤æ¨¡ç |
| | | String htmlStr = InoutBill.OUT_WEIGHT_DEFAULT; |
| | | |
| | | htmlStr = htmlStr.replace("billTitle", bill.getBillTitle()); |
| | | |
| | | htmlStr = htmlStr.replace("registerTime", bill.getRegisterTime()); |
| | | htmlStr = htmlStr.replace("completeTime", bill.getCompleteTime()); |
| | | htmlStr = htmlStr.replace("fullTime", bill.getFullTime()); |
| | | htmlStr = htmlStr.replace("emptyTime", bill.getEmptyTime()); |
| | | htmlStr = htmlStr.replace("serId", bill.getSerId()); |
| | | |
| | | htmlStr = htmlStr.replace("customerName", bill.getCustomerName()); |
| | | htmlStr = htmlStr.replace("deptName", bill.getUnitName()); |
| | | |
| | | htmlStr = htmlStr.replace("driverName", bill.getDriverName()); |
| | | htmlStr = htmlStr.replace("userNumberId", bill.getUserId()); |
| | | htmlStr = htmlStr.replace("userContact", bill.getUserContact()); |
| | | htmlStr = htmlStr.replace("userAddress", bill.getUserAddress()); |
| | | htmlStr = htmlStr.replace("foodVariety", bill.getFoodVariety()); |
| | | htmlStr = htmlStr.replace("depotName", bill.getDepotName()); |
| | | htmlStr = htmlStr.replace("foodLocation", bill.getFoodLocation()); |
| | | |
| | | if ("5326".equals(data.getCompanyId())) { |
| | | htmlStr = htmlStr.replace("recordWeight", new DecimalFormat("0").format(bill.getRecordWeight())); |
| | | htmlStr = htmlStr.replace("settleWeight", new DecimalFormat("0").format(bill.getSettleWeight())); |
| | | htmlStr = htmlStr.replace("fullWeight", new DecimalFormat("0").format(bill.getFullWeight())); |
| | | htmlStr = htmlStr.replace("emptyWeight", new DecimalFormat("0").format(bill.getEmptyWeight())); |
| | | htmlStr = htmlStr.replace("netWeight", new DecimalFormat("0").format(bill.getNetWeight())); |
| | | } |
| | | htmlStr = htmlStr.replace("plateNum", bill.getPlateNum()); |
| | | htmlStr = htmlStr.replace("fullWeight", |
| | | new DecimalFormat("0.00").format(bill.getFullWeight())); |
| | | htmlStr = htmlStr.replace("emptyWeight", |
| | | new DecimalFormat("0.00").format(bill.getEmptyWeight())); |
| | | htmlStr = htmlStr.replace("netWeight", |
| | | new DecimalFormat("0.00").format(bill.getNetWeight())); |
| | | htmlStr = htmlStr.replace("dePackage", |
| | | new DecimalFormat("0.00").format(bill.getDePackage())); |
| | | htmlStr = htmlStr.replace("remark", bill.getRemark()); |
| | | |
| | | htmlStr = htmlStr.replace("settleWeight", |
| | | new DecimalFormat("0.00").format(bill.getSettleWeight())); |
| | | htmlStr = htmlStr.replace("deHandle", bill.getDeHandle() + ""); |
| | | htmlStr = htmlStr.replace("recordWeight", new DecimalFormat("0.00").format(bill.getRecordWeight())); |
| | | htmlStr = htmlStr.replace("deSum", bill.getDeSum() + ""); |
| | | htmlStr = htmlStr.replace("deOther", bill.getDeOther() + ""); |
| | | htmlStr = htmlStr.replace("price", bill.getPrice()); |
| | | htmlStr = htmlStr.replace("settleMoney", bill.getSettleMoney() + ""); |
| | | htmlStr = htmlStr.replace("wet", bill.getWet() + ""); |
| | | htmlStr = htmlStr.replace("impurity", bill.getImpurity() + ""); |
| | | |
| | | htmlStr = htmlStr.replace("unitName", getValue(bill.getUnitName())); |
| | | htmlStr = htmlStr.replace("time", bill.getRegisterTime()); |
| | | htmlStr = htmlStr.replace("handleStart", ""); |
| | | htmlStr = htmlStr.replace("handleEnd", ""); |
| | | htmlStr = htmlStr.replace("noticeId", bill.getNoticeId() == null ? "" : bill.getNoticeId()); |
| | | htmlStr = htmlStr.replace("phone", data.getUserContact() == null ? "" : data.getUserContact() + ""); |
| | | htmlStr = htmlStr.replace("printTime", DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm")); |
| | | |
| | | htmlStr = htmlStr.replaceAll("weightUser", getValue(bill.getWeightUser())); |
| | | htmlStr = htmlStr.replace("handleUser", getValue(bill.getHandleUser())); |
| | | htmlStr = htmlStr.replaceAll("keeperName", getValue(bill.getKeeperUser())); |
| | | return htmlStr; |
| | | } |
| | | |
| | | |
| | | public String getValue(String value) { |
| | | if (null == value) return ""; |
| | | return value; |
| | | } |
| | | |
| | | /** |
| | | * å°è£
è¿ç£
åæ°æ® |
| | | * |
| | | * @param data |
| | | * @param billTitle |
| | | * @return |
| | | */ |
| | | private InoutPrintBill createBillData(InoutRecord data, String billTitle) { |
| | | InoutPrintBill bill = new InoutPrintBill(); |
| | | |
| | | bill.setBillTitle(billTitle); |
| | | |
| | | SysDept dept = sysDeptService.getCacheDept(data.getCompanyId(), data.getDeptId()); |
| | | if (null != dept && StringUtils.isNotEmpty(dept.getDeptName())) { |
| | | bill.setBillTitle(dept.getDeptName() + billTitle); |
| | | bill.setDeptId(dept.getDeptId() + ""); |
| | | bill.setDeptName(dept.getDeptName() + ""); |
| | | bill.setUnitName(dept.getDeptName()); |
| | | } |
| | | |
| | | //æ¸
è¿åºåè´§åä½åæ é¢ï¼ä½¿ç¨å
¬å¸å |
| | | if ("5368".equals(data.getCompanyId())) { |
| | | SysDept company = sysDeptService.getCacheDept(data.getCompanyId(), data.getCompanyId()); |
| | | if (null != company && StringUtils.isNotEmpty(company.getDeptName())) { |
| | | bill.setBillTitle(company.getDeptName() + billTitle); |
| | | bill.setUnitName(company.getDeptName()); |
| | | } |
| | | } |
| | | |
| | | bill.setCompanyId(data.getCompanyId() == null ? "" : data |
| | | .getCompanyId()); |
| | | if (null == data.getRegisterTime()) { |
| | | data.setRegisterTime(new Date()); |
| | | } |
| | | bill.setRegisterTime(DateFormatUtils.format(data.getRegisterTime(), |
| | | "yyyy-MM-dd HH:mm")); |
| | | |
| | | if (null == data.getCompleteTime()) { |
| | | data.setCompleteTime(new Date()); |
| | | } |
| | | bill.setCompleteTime(DateFormatUtils.format(data.getCompleteTime(), |
| | | "yyyy-MM-dd HH:mm")); |
| | | |
| | | bill.setEmptyTime(DateFormatUtils.format(data.getEmptyWeightTime(), |
| | | "yyyy-MM-dd HH:mm:ss")); |
| | | bill.setFullTime(DateFormatUtils.format(data.getFullWeightTime(), |
| | | "yyyy-MM-dd HH:mm:ss")); |
| | | bill.setSerId(data.getId()); |
| | | if ("5016".equals(data.getCompanyId()) || "5347".equals(data.getCompanyId()) || "5352".equals(data.getCompanyId())) { |
| | | bill.setCompleteTime(DateFormatUtils.format(data.getCompleteTime(), "yyyy-MM-dd")); |
| | | bill.setSerId(data.getId().substring(2)); |
| | | |
| | | } |
| | | |
| | | //客æ·ä¿¡æ¯ |
| | | bill.setCustomerName(data.getCustomerName() == null ? "" : data.getCustomerName()); |
| | | bill.setUserId(data.getUserId() == null ? "" : data.getUserId()); |
| | | bill.setUserAddress(data.getUserAddress() == null ? "" : data.getUserAddress()); |
| | | bill.setUserContact(data.getUserContact() == null ? "" : data.getUserContact()); |
| | | |
| | | |
| | | bill.setNoticeId(data.getNoticeId()); |
| | | |
| | | |
| | | bill.setDriverName(data.getUserName() == null ? "" : data.getUserName()); |
| | | |
| | | // è·åä»åºä¿¡æ¯ |
| | | Depot depot = depotService.getCacheDepot(data.getCompanyId(), |
| | | data.getDepotId()); |
| | | if (depot != null) { |
| | | bill.setDepotName(depot.getName() == null ? "" : depot.getName()); |
| | | bill.setHandleUser(depot.getStoreKeeperName() == null ? "" : depot |
| | | .getStoreKeeperName()); |
| | | } |
| | | |
| | | bill.setFoodVariety(FoodVariety.getMsg(data.getFoodVariety())); |
| | | bill.setFoodLocation(data.getFoodLocation() == null ? "" : data |
| | | .getFoodLocation()); |
| | | bill.setPlateNum(data.getPlateNum()); |
| | | |
| | | bill.setFullWeight(data.getFullWeight()); |
| | | bill.setEmptyWeight(data.getEmptyWeight()); |
| | | bill.setNetWeight(data.getNetWeight()); |
| | | bill.setRecordWeight(data.getRecordWeight()); |
| | | bill.setCheckStatus(data.getCheckStatus().equals(Constant.STATUS_CHECK) ? "åæ ¼" : "ä¸åæ ¼"); |
| | | |
| | | bill.setDeOther(data.getDeOther()); |
| | | bill.setSettleWeight(data.getSettleWeight()); |
| | | |
| | | bill.setPrice(data.getPrice() == null ? "" : data.getPrice() + ""); |
| | | if (data.getSettleMoney() <= 0) { |
| | | if (null != data.getPrice() && null != data.getRecordWeight()) { |
| | | data.setSettleMoney(NumberUtil.keepPrecision(data.getPrice() * data.getRecordWeight(), 2)); |
| | | } |
| | | } |
| | | bill.setSettleMoney(data.getSettleMoney() == null ? "" : data.getSettleMoney() + ""); |
| | | bill.setRemark(data.getRemarks() == null ? "" : data.getRemarks()); |
| | | |
| | | if (Constant.TYPE_IN.equals(data.getType())) { |
| | | bill.setWeightUser(data.getFullWeightUser()); |
| | | } |
| | | if (Constant.TYPE_OUT.equals(data.getType())) { |
| | | bill.setWeightUser(data.getEmptyWeightUser()); |
| | | } |
| | | bill.setHandleUser(data.getHandleUser()); |
| | | bill.setKeeperUser(depot.getStoreKeeperName()); |
| | | return bill; |
| | | } |
| | | |
| | | } |
| | |
| | | Application Version: fzzy-igdss |
| | | Application Version: 2.0 |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Vendorï¼http://www.fzzygf.com |
| | | ============================================ |
| | | |
| | | ______ _______ _______ ___ __ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | //ç§°é-å
æ¬ç©ºè½¦å满车称é |
| | | var layer; |
| | | var form; |
| | | var table; |
| | | var upload; |
| | | var recordData = null;// ä¸å¡æ°æ®ä¿¡æ¯ |
| | | var img1, img2, img3;// 页é¢ä¸çå¾çä¸ä¼ åç§° |
| | | |
| | | $(function () { |
| | | layui.use(['layer', 'laydate', 'form','table', 'upload'], function () { |
| | | upload = layui.upload; |
| | | layer = layui.layer; |
| | | form = layui.form; |
| | | table = layui.table; |
| | | |
| | | //çå¬éæ©æ°æ®äºä»¶ |
| | | table.on('tool(tableListProgressData)', function (obj) { |
| | | var data = obj.data; |
| | | if (obj.event === 'select') { |
| | | //æ¸
空表å |
| | | resetForm(); |
| | | flushData(data.id, null); |
| | | $("#listProgressData").css("display", "none"); |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | |
| | | //ä¸ä¼ |
| | | upload.render({ |
| | | elem: '#kccz-r-btn1', |
| | | url: '/basic/file/update-file', //ä¸ä¼ æ¥å£ |
| | | size: 4 * 1024, //é嶿件大å°ï¼åä½KB, æå¤§ä¸ä¼ 4MB |
| | | accept: 'images', |
| | | before: function (obj) { |
| | | var plateNum = $("#plateNum").val(); |
| | | this.data = {"plateNum": plateNum, "type": "1"};//æºå¸¦åæ° |
| | | //é¢è¯»æ¬å°æä»¶ç¤ºä¾ï¼ä¸æ¯æie8 |
| | | obj.preview(function (index, file, result) { |
| | | $('#kccz-r-img1').attr('src', result); //å¾ç龿¥ï¼base64ï¼ |
| | | }); |
| | | }, |
| | | done: function (res) { |
| | | //妿ä¸ä¼ 失败 |
| | | if (res.code > 0) { |
| | | layer.msg("å¾çä¸ä¼ 失败ï¼"); |
| | | } |
| | | //ä¸ä¼ æå |
| | | img1 = res.msg; |
| | | layer.msg("å¾çä¸ä¼ æåï¼"); |
| | | //console.log(img1); |
| | | } |
| | | }); |
| | | upload.render({ |
| | | elem: '#kccz-r-btn2', |
| | | url: '/basic/file/update-file', //ä¸ä¼ æ¥å£ |
| | | size: 4 * 1024, //é嶿件大å°ï¼åä½KB, æå¤§ä¸ä¼ 4MB |
| | | accept: 'images', |
| | | before: function (obj) { |
| | | var plateNum = $("#plateNum").val(); |
| | | this.data = {"plateNum": plateNum, "type": "1"};//æºå¸¦åæ° |
| | | //é¢è¯»æ¬å°æä»¶ç¤ºä¾ï¼ä¸æ¯æie8 |
| | | obj.preview(function (index, file, result) { |
| | | $('#kccz-r-img2').attr('src', result); //å¾ç龿¥ï¼base64ï¼ |
| | | }); |
| | | }, |
| | | done: function (res) { |
| | | //妿ä¸ä¼ 失败 |
| | | if (res.code > 0) { |
| | | layer.msg("å¾çä¸ä¼ 失败ï¼"); |
| | | } |
| | | //ä¸ä¼ æå |
| | | img2 = res.msg; |
| | | layer.msg("å¾çä¸ä¼ æåï¼"); |
| | | // console.log(img2); |
| | | } |
| | | }); |
| | | upload.render({ |
| | | elem: '#kccz-r-btn3', |
| | | url: '/basic/file/update-file', //ä¸ä¼ æ¥å£ |
| | | size: 4 * 1024, //é嶿件大å°ï¼åä½KB, æå¤§ä¸ä¼ 4MB |
| | | accept: 'images', |
| | | before: function (obj) { |
| | | var plateNum = $("#plateNum").val(); |
| | | this.data = {"plateNum": plateNum}; //æºå¸¦åæ° |
| | | //é¢è¯»æ¬å°æä»¶ç¤ºä¾ï¼ä¸æ¯æie8 |
| | | obj.preview(function (index, file, result) { |
| | | $('#kccz-r-img3').attr('src', result); //å¾ç龿¥ï¼base64ï¼ |
| | | }); |
| | | }, |
| | | done: function (res) { |
| | | //妿ä¸ä¼ 失败 |
| | | if (res.code > 0) { |
| | | layer.msg("å¾çä¸ä¼ 失败ï¼"); |
| | | } |
| | | //ä¸ä¼ æå |
| | | img3 = res.msg; |
| | | layer.msg("å¾çä¸ä¼ æåï¼"); |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | //æ¾ç¤ºæµç¨ç¯è |
| | | updateEditAndProgress(); |
| | | }); |
| | | |
| | | /** |
| | | * æå¨éæ©ï¼è·åå¾
ç§°éçæ°æ®ï¼å¼¹åºéæ© |
| | | */ |
| | | function selectByHand() { |
| | | var param = { |
| | | deptId: deptId, |
| | | type: type, |
| | | progress: curProgress, |
| | | timer: Math.random() |
| | | }; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/basic/inout/list-handle-data", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(param), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | layer.msg(result.msg); |
| | | } else { |
| | | renderTableProgressData(result.data); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.msg("ç³»ç»è·åæ°æ®åºç°å¼å¸¸ï¼éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 车è¾éæ©å¼¹çª |
| | | * @param list |
| | | */ |
| | | function renderTableProgressData(list) { |
| | | // æ¸
ç©ºæ°æ® |
| | | $("#tableListProgressData").empty(); |
| | | layer.open({ |
| | | type: 1, |
| | | title: "éæ©å¼ä»ä¸è½¦è¾", |
| | | offset: ['240px', '100px'], |
| | | area: ['1000px', '560px'], |
| | | cancel: function (index, layero) { |
| | | $("#listProgressData").css("display", "none"); |
| | | }, |
| | | shade: 0, |
| | | scrollbar: 0, |
| | | content: $('#listProgressData'), |
| | | closeBtn: 1 |
| | | }); |
| | | table.render({ |
| | | elem: '#tableListProgressData', |
| | | data: list, |
| | | page: false, |
| | | even: true, |
| | | cols: [[ |
| | | { |
| | | type: 'numbers', |
| | | title: 'åºå·' |
| | | }, { |
| | | field: 'id', |
| | | title: 'åæ®å·', |
| | | align: 'center' |
| | | }, { |
| | | field: 'userName', |
| | | title: 'æ¿è¿äºº', |
| | | align: 'center' |
| | | }, { |
| | | field: 'plateNum', |
| | | title: '车çå·', |
| | | align: 'center' |
| | | }, { |
| | | field: 'progress', |
| | | title: 'æµç¨è¿åº¦', |
| | | align: 'center', |
| | | style: 'font-weight: bold', |
| | | templet: function (item) { |
| | | return INOUT_PROGRESS_MSG(item.progress); |
| | | } |
| | | }, { |
| | | fixed: 'right', |
| | | title: 'éæ©æä½', |
| | | align: 'center', |
| | | toolbar: '#barSelectProgress' |
| | | } |
| | | ]] |
| | | }); |
| | | $("thead tr").css({ |
| | | "border-bottom": "2px solid #53adce", |
| | | "background": "#eff4f6" |
| | | }); |
| | | } |
| | | |
| | | // è¡¨åæ¸
空 |
| | | function resetForm() { |
| | | $("#form-data")[0].reset(); |
| | | $('#kccz-r-img1').removeAttr('src'); |
| | | $('#kccz-r-img2').removeAttr('src'); |
| | | $('#kccz-r-img3').removeAttr('src'); |
| | | form.render(); |
| | | recordData = null; |
| | | $("#text-param").val(null); |
| | | } |
| | | |
| | | /** |
| | | * 页é¢å·æ° |
| | | */ |
| | | function flushPage() { |
| | | layer.confirm('ç¡®å®è¦å·æ°é¡µé¢åï¼', {icon: 3, title: 'æç¤º'}, function (index) { |
| | | resetForm(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param id |
| | | * @param plateNum |
| | | */ |
| | | function flushData(id, plateNum) { |
| | | var index = layer.load(); |
| | | var param = { |
| | | type: type, |
| | | progress: curProgress, |
| | | id: id, |
| | | plateNum: plateNum |
| | | }; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/basic/inout/inout-query", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(param), |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | notifyProgress(result.msg, result.data); |
| | | } else { |
| | | recordData = result.data; |
| | | |
| | | // è¿åçæ°æ®è¿è¡èµå¼ |
| | | form.val("form-data", recordData); |
| | | form.render(); |
| | | |
| | | updateEditAndProgress(); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | alertError("æ¥è¯¢å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // å½å宿 |
| | | function submit() { |
| | | if (!recordData) { |
| | | alertError("没æä¸å¡æ°æ®ä¿¡æ¯ï¼æ§è¡è¢«æç»"); |
| | | return; |
| | | } |
| | | var data = form.val("form-data"); |
| | | //åå¹¶æ°æ® |
| | | Object.assign(recordData, data); |
| | | // è·åç
§ç |
| | | var files = [{ |
| | | fileName: img1 |
| | | }, { |
| | | fileName: img2 |
| | | }, { |
| | | fileName: img3 |
| | | }]; |
| | | recordData.files = files; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/basic/inout/submit-handle", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | notify(result.msg, result.data); |
| | | } else { |
| | | notify("æ°æ®æäº¤æå", result.data); |
| | | resetForm(); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | alertError("æäº¤å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸å¡æ°æ®æ´æ°é¡µé¢ä¸çç¶æ |
| | | */ |
| | | function updateEditAndProgress() { |
| | | //æ¾ç¤ºå½åæµç¨ |
| | | if (type === "IN") { |
| | | $("#rk-progress-register").addClass("active"); |
| | | $("#rk-progress-fullWeight").addClass("active"); |
| | | $("#rk-progress-hand").addClass("active"); |
| | | $("#rk-progress-emptyWeight").removeClass("active"); |
| | | } |
| | | if (type === "OUT") { |
| | | $("#ck-progress-register").addClass("active"); |
| | | $("#ck-progress-emptyWeight").addClass("active"); |
| | | $("#ck-progress-hand").addClass("active"); |
| | | $("#ck-progress-fullWeight").removeClass("active"); |
| | | } |
| | | //æµç¨æ¾ç¤º |
| | | if (inoutProgress) { |
| | | if (inoutProgress.indexOf("REGISTER") === -1) { |
| | | $("#rk-progress-register").css("display", "none"); |
| | | $("#ck-progress-register").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_FULL") === -1) { |
| | | $("#rk-progress-fullWeight").css("display", "none"); |
| | | $("#ck-progress-fullWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("HANDLE") === -1) { |
| | | $("#rk-progress-hand").css("display", "none"); |
| | | $("#ck-progress-hand").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_EMPTY") === -1) { |
| | | $("#rk-progress-emptyWeight").css("display", "none"); |
| | | $("#ck-progress-emptyWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CARD_BACK") === -1) { |
| | | $("#rk-progress-cardBack").css("display", "none"); |
| | | $("#ck-progress-cardBack").css("display", "none"); |
| | | } |
| | | |
| | | if (type === "IN") { |
| | | $("#rk_progress").css("display", "block"); |
| | | $("#ck_progress").css("display", "none"); |
| | | } |
| | | if (type === "OUT") { |
| | | $("#ck_progress").css("display", "block"); |
| | | $("#rk_progress").css("display", "none"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å¼¹åºæéæ¡ |
| | | * @param msg æéä¿¡æ¯ |
| | | * @param data æ°æ®ä¿¡æ¯ï¼å¯è½ä¸ºç©º |
| | | */ |
| | | function notify(msg, data) { |
| | | if (data) { |
| | | //èµå¼ |
| | | $("#resultMsg").text(msg); |
| | | $("#resultUserName").text(data.userName); |
| | | $("#resultPlateNum").text(data.plateNum); |
| | | if ("IN" == data.type) { |
| | | $("#resultType").text("å
¥åº-" + INOUT_PROGRESS_MSG(data.progress)); |
| | | } else { |
| | | $("#resultType").text("åºåº-" + INOUT_PROGRESS_MSG(data.progress)); |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 1, |
| | | offset: ['150px', '200px'], |
| | | area: '450px;', |
| | | shade: 0.8, |
| | | id: 'dialog_notify_info', |
| | | btn: ['ç¡®å®'], |
| | | content: $('#dialog-from-notify'), |
| | | yes: function (index) { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } else { |
| | | layer.alert(msg, {offset: ['300px', '300px']}); |
| | | } |
| | | } |
| ÎļþÃû´Ó fzzy-igdss-web/src/main/resources/static/inout/register.js ÐÞ¸Ä |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../inout/api/get-plateNum", |
| | | url: "/inout/api/get-plateNum", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | |
| | | alertError(result.msg); |
| | | } else { |
| | | $("#plateNum").val(result.data.plateNum); |
| | | $("#plateNum2").val(result.data.plateNum); |
| | | } |
| | | layer.close(index); |
| | | }, |
| | |
| | | $("#form-data")[0].reset(); |
| | | form.render(); |
| | | // 身份è¯éç½® |
| | | $("#id_img_pers").attr("src", "../../static/images/rkbk-photo_03.png"); |
| | | $("#id_img_pers").attr("src", "/img/web/inout/rkbk-photo_03.png"); |
| | | $("#pz-img").removeClass("kccz-r-img-red"); |
| | | $("#pz-text").text("èªå¨ææ"); |
| | | } |
| | |
| | | var recordData = null;// ä¸å¡æ°æ®ä¿¡æ¯ |
| | | var snapData;//ç³»ç»ææå¯¹è±¡ä¿¡æ¯ |
| | | var timerWeight; |
| | | var paramIntelCard;//设å¤è¯å«ç»æ |
| | | var paramIdCard;//设å¤è¯å«ç»æ |
| | | var curCheckItems = null;// å½åæ°æ®çæ£æ¥é¡¹ä¿¡æ¯ |
| | | var step = 1; |
| | | var curProgress = null; |
| | | |
| | | $(function () { |
| | | layui.use(['layer', 'laydate', 'form', 'table', 'util'], function () { |
| | |
| | | if (obj.event === 'select') { |
| | | //æ¸
空表å |
| | | resetForm(); |
| | | flushData(data.intelCard, null); |
| | | flushData(data.id, null); |
| | | $("#listProgressData").css("display", "none"); |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | |
| | | }); |
| | | |
| | | //æ¾ç¤ºæµç¨ç¯è |
| | | showProgress(); |
| | | updateEditAndProgress(); |
| | | |
| | | // çå¬ééåå |
| | | $(".weight").blur(function () { |
| | | deAutoByIn(this.name); |
| | | deAuto(this.name); |
| | | }); |
| | | |
| | | // åå§åWebSocket |
| | | // initInoutWS(companyId, bizType, progress, userId); |
| | | }); |
| | | |
| | | window.onload = function () { |
| | |
| | | }); |
| | | }; |
| | | |
| | | // socketä¿¡æ¯è¿åèç |
| | | function socketOnMessage(packet) { |
| | | //ææ |
| | | } |
| | | |
| | | //ç¹å»ç§°é |
| | | /** |
| | | * ç§°éåææ |
| | | */ |
| | | function weight() { |
| | | // 没æä¸å¡æ°æ®ä¸å¯æ§è¡ |
| | | if (!recordData) { |
| | | alertError("æ²¡ææ¥è¯¢å°ä¸å¡æ°æ®ï¼æ§è¡è¢«æç»ï¼"); |
| | | return; |
| | | } |
| | | // 妿æ¯ç©ºè½¦ç§°é |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | if (InoutProgress.WEIGHT_EMPTY === curProgress) { |
| | | form.val("form-data", { |
| | | emptyWeight: weightDto.weight |
| | | }); |
| | | form.render(); |
| | | } |
| | | // å¦ææ¯æ»¡è½¦ç§°é |
| | | if (InoutProgress.WEIGHT_FULL == recordData.progress) { |
| | | if (InoutProgress.WEIGHT_FULL === curProgress) { |
| | | form.val("form-data", { |
| | | fullWeight: weightDto.weight |
| | | }); |
| | | form.render(); |
| | | } |
| | | |
| | | var data = form.val("form-data"); |
| | | if (!data.plateNum) { |
| | | alertError("æç¤ºï¼å¡«åç»è®°è½¦çä¿¡æ¯"); |
| | | return; |
| | | } |
| | | |
| | | // ç¹å»ç§°éèªå¨è°ç¨ææ |
| | | snapData = { |
| | | companyId: companyId, |
| | | deptId: deptId, |
| | | progress: recordData.progress, |
| | | progress: curProgress, |
| | | bizType: type, |
| | | bizId: recordData.id, |
| | | plateNum: recordData.plateNum, |
| | | id1: snapDto1.id, |
| | | id2: snapDto2.id, |
| | | id3: snapDto3.id, |
| | | id4: snapDto2.id, |
| | | sort: $("#scaleName").val(), |
| | | weight: weightDto.weight |
| | | sort: $("#scaleName").val() |
| | | }; |
| | | |
| | | //å½åAJAXæå¡ä¸ºåæ¥æå¡ï¼è¿åæ°æ®å
è£
ç
§çä¿¡æ¯ |
| | |
| | | $.ajax({ |
| | | sync: false, |
| | | type: "POST", |
| | | url: "../../inout/api/snap-img", |
| | | url: "/inout/api/snap-img", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(snapData), |
| | |
| | | if (result.code != "0000") { |
| | | alertError(result.msg); |
| | | } else { |
| | | layer.msg("æææå"); |
| | | snapData = result.data; |
| | | } |
| | | }, |
| | |
| | | alertError("åå°è°ç¨æªå¾å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | //妿æ¯ç¬¬äºæ¬¡ç§°éï¼é»è®¤æ§è¡èªå¨è®¡ç® |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | deAutoByIn("emptyWeight"); |
| | | } |
| | | } |
| | | |
| | | // ä½¿ç¨æä»¶è·åèº«ä»½è¯ |
| | | function flushIdCard() { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: true, |
| | | url: "http://127.0.0.1:9111/IDCARD", |
| | | data: {}, |
| | | dataType: "json", |
| | | // jsonp: "callback", |
| | | // jsonpCallback: "jsonpCallback", |
| | | success: function (json) { |
| | | layer.close(index); |
| | | var data = json; |
| | | if (data.code === "200" || data.code == 200) { |
| | | paramIdCard = data.idNum; |
| | | $("#text-param").text("è¯å«èº«ä»½è¯ï¼" + paramIdCard); |
| | | flushData(null, paramIdCard); |
| | | } else { |
| | | alertError("没æè¯»åå°èº«ä»½è¯ä¿¡æ¯ï¼"); |
| | | return; |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | alertError("没æè¯»åå°èº«ä»½è¯ä¿¡æ¯ï¼"); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function flushByHand() { |
| | | var intelCard = $("#intelCard").val(); |
| | | flushData(intelCard, null); |
| | | } |
| | | |
| | | /** |
| | | * æå¨éæ©ï¼è·åå¾
ç§°éçæ°æ®ï¼å¼¹åºéæ© |
| | | * ç§°éæäº¤ |
| | | */ |
| | | function selectByHand() { |
| | | var param = { |
| | | deptId: deptId, |
| | | type: type, |
| | | timer: Math.random() |
| | | }; |
| | | function submit() { |
| | | |
| | | var data = form.val("form-data"); |
| | | if (!data.depotId) { |
| | | alertError("æç¤ºï¼è£
å¸ä»åºå¿
å¡«"); |
| | | return; |
| | | } |
| | | if (!data.customerName) { |
| | | alertError("æç¤ºï¼éç¥åä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | if (!data.foodVariety) { |
| | | alertError("æç¤ºï¼ç²®é£åç§å¿
å¡«"); |
| | | return; |
| | | } |
| | | |
| | | // æ ¡éª-å
¥åºæ»¡è½¦ç§°é |
| | | if (InoutProgress.WEIGHT_FULL === curProgress) { |
| | | if (data.fullWeight <= 0.0) { |
| | | alertError("æç¤ºï¼æ»¡è½¦ç§°éä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | } |
| | | if (InoutProgress.WEIGHT_EMPTY === curProgress) { |
| | | if (data.emptyWeight <= 0.0) { |
| | | alertError("æç¤ºï¼ç©ºè½¦ç§°éä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if(recordData){ |
| | | //åå¹¶æ°æ® |
| | | Object.assign(recordData, data); |
| | | }else { |
| | | recordData = data; |
| | | } |
| | | recordData.progress = curProgress; |
| | | |
| | | // è·åç
§ç |
| | | var files = [{ |
| | | fileName: snapData.fileName1 |
| | | }, { |
| | | fileName: snapData.fileName2 |
| | | }, { |
| | | fileName: snapData.fileName3 |
| | | }]; |
| | | recordData.files = files; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/basic/inout/list-weight-data", |
| | | url: "/basic/inout/submit-weight", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(param), |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | layer.msg(result.msg); |
| | | alertError(result.msg); |
| | | } else { |
| | | renderTableProgressData(result.data); |
| | | notify("æ°æ®æäº¤æå", result.data); |
| | | //ç¬¬ä¸æ¬¡ç§°éåï¼å·æ°é¡µé¢ |
| | | if (recordData.recordWeight <= 0.0) { |
| | | resetForm(); |
| | | } |
| | | } |
| | | layer.close(index); |
| | | }, |
| | | error: function () { |
| | | layer.msg("ç³»ç»è·åæ°æ®åºç°å¼å¸¸ï¼éæ°å°è¯"); |
| | | layer.close(index); |
| | | alertError("æäº¤å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * ç¹å»æå°ï¼ç³»ç»å¤ææ¯å¦å·²ç»æ§è¡å®æï¼å¦æå·²ç»å®æï¼ç´æ¥æå°ï¼å¦ææªå®æåå
æ§è¡å®æ |
| | | */ |
| | | function printBill() { |
| | | if (!recordData) { |
| | | alertError("没æè·åå°ä¸å¡æ°æ®ï¼æå°è¢«æç»ï¼"); |
| | | return; |
| | | } |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/basic/print/bill-weight", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | alertError(result.msg); |
| | | } else { |
| | | layer.msg("å¼å§æ¸²ææå°åâ¦â¦"); |
| | | printWeight(result.data); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | alertError("è·åæå°æ¨¡ç失败ï¼è¯·è系管ç忥çåå "); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * å°ç£
æ°æ®å·æ° |
| | | */ |
| | | function flushWeight() { |
| | | var ip = "127.0.0.1"; |
| | | if (weightDto.ip) { |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | // ç¹å»æå°ï¼ç³»ç»å¤ææ¯å¦å·²ç»æ§è¡å®æï¼å¦æå·²ç»å®æï¼ç´æ¥æå°ï¼å¦ææªå®æåå
æ§è¡å®æ |
| | | function printBill() { |
| | | if (!recordData) { |
| | | alertError("没æè·åå°ä¸å¡æ°æ®ï¼æå°è¢«æç»ï¼"); |
| | | return; |
| | | } |
| | | // ä»åå°è·å模çå¹¶æå° |
| | | var data = form.val("form-data"); |
| | | // åå¹¶æ´æ°ç¶åç¼è¾æ°æ® |
| | | Object.assign(recordData, data); |
| | | |
| | | /** |
| | | * 读åèº«ä»½è¯ |
| | | */ |
| | | function flushIdCard() { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/report/bill-weight", |
| | | type: "GET", |
| | | async: true, |
| | | url: "http://127.0.0.1:9111/IDCARD", |
| | | data: {}, |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | success: function (json) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | alertError(result.msg); |
| | | var data = json; |
| | | if (data.code === "200" || data.code == 200) { |
| | | // 临æ¶èµå¼ |
| | | $("#userName").val(data.cnName); |
| | | $("#userAddress").val(data.address); |
| | | $("#userId").val(data.idNum); |
| | | } else { |
| | | layer.msg("å¼å§æ¸²ææå°åâ¦â¦"); |
| | | printWeight(result.data); |
| | | alertError("没æè·åå°èº«ä»½è¯ä¿¡æ¯ï¼"); |
| | | return; |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.alert("身份è¯è¯»å失败ï¼", { |
| | | offset: ['300px', '300px'] |
| | | }); |
| | | layer.close(index); |
| | | alertError("è·åæå°æ¨¡ç失败ï¼è¯·è系管ç忥çåå "); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // è¡¨åæ¸
空 |
| | | /** |
| | | * 读å车çå· |
| | | */ |
| | | function flushPlateNum() { |
| | | var param = JSON.stringify(snapDto1); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/inout/api/get-plateNum", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | alertError(result.msg); |
| | | } else { |
| | | $("#plateNum").val(result.data.plateNum); |
| | | } |
| | | layer.close(index); |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | alertError("车çè¯å«å¤±è´¥ï¼"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * æå¨éæ©ï¼è·åå¾
ç§°éçæ°æ®ï¼å¼¹åºéæ© |
| | | */ |
| | | function selectByHand() { |
| | | var param = { |
| | | deptId: deptId, |
| | | type: type, |
| | | timer: Math.random() |
| | | }; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/basic/inout/list-weight-data", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(param), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | layer.msg(result.msg); |
| | | } else { |
| | | renderTableProgressData(result.data); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.msg("ç³»ç»è·åæ°æ®åºç°å¼å¸¸ï¼éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * è¡¨åæ°æ®éç½® |
| | | */ |
| | | function resetForm() { |
| | | $("#form-data")[0].reset(); |
| | | form.render(); |
| | | recordData = null; |
| | | curProgress = null; |
| | | weightDto.weight = 0.0; |
| | | $("#weightValue").text("0.0"); |
| | | $("#img_scale_statule").attr("src", "/img/web/inout/icon-red.png"); |
| | |
| | | $("#text-param").val(null); |
| | | } |
| | | |
| | | /** |
| | | * 页é¢å·æ° |
| | | */ |
| | | function flushPage() { |
| | | layer.confirm('ç¡®å®è¦å·æ°é¡µé¢åï¼', {icon: 3, title: 'æç¤º'}, function (index) { |
| | | resetForm(); |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | //çå¬è¡¨åéçæ°å¼åå |
| | | document.getElementById('intelCard').addEventListener('input', function (event) { |
| | | var intelCard = $("#intelCard").val(); |
| | | if (intelCard.length == 10) { |
| | | flushData(intelCard, null); |
| | | } |
| | | }); |
| | | |
| | | // --æ¥è¯¢æ¹æ³,è·å身份è¯å·ãå¡å·ã车çå·ï¼è¿è¡æ¥è¯¢ |
| | | function flushData(intelCard, userIdCard) { |
| | | /** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param id |
| | | * @param plateNum |
| | | */ |
| | | function flushData(id, plateNum) { |
| | | var index = layer.load(); |
| | | var userIdCard = userIdCard; |
| | | var intelCard = intelCard; |
| | | var plateNum = $("#plateNum").val(); |
| | | var param = { |
| | | type: type, |
| | | progress: progress, |
| | | intelCard: intelCard, |
| | | userId: userIdCard, |
| | | progress: curProgress, |
| | | id: id, |
| | | plateNum: plateNum |
| | | }; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/inout-query", |
| | | url: "/basic/inout/inout-query", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(param), |
| | |
| | | notifyProgress(result.msg, result.data); |
| | | } else { |
| | | recordData = result.data; |
| | | curProgress = recordData.progress; |
| | | // è¿åçæ°æ®è¿è¡èµå¼ |
| | | form.val("form-data", recordData); |
| | | form.render(); |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸å¡æ°æ®æ´æ°é¡µé¢ä¸çç¶æ |
| | | */ |
| | | function updateEditAndProgress() { |
| | | if (recordData) { |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | $("#emptyWeight").removeClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", false); |
| | | |
| | | $("#progress-hand").addClass("active"); |
| | | $("#progress-emptyWeight").addClass("active"); |
| | | |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | //å½åæµç¨èç¹ |
| | | if (curProgress == null) { |
| | | if (type === "IN") { |
| | | curProgress = "WEIGHT_FULL"; |
| | | } |
| | | if (InoutProgress.WEIGHT_FULL == recordData.progress) { |
| | | if (type === "OUT") { |
| | | curProgress = "WEIGHT_EMPTY"; |
| | | } |
| | | } |
| | | //æ¾ç¤ºå½åæµç¨ |
| | | if (type === "IN") { |
| | | $("#rk-progress-register").addClass("active"); |
| | | if (curProgress === InoutProgress.WEIGHT_FULL) { |
| | | $("#rk-progress-fullWeight").addClass("active"); |
| | | $("#rk-progress-hand").removeClass("active"); |
| | | $("#rk-progress-emptyWeight").removeClass("active"); |
| | | |
| | | //满车ééå¯ç¼è¾ |
| | | $("#fullWeight").removeClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", false); |
| | | |
| | | $("#progress-hand").removeClass("active"); |
| | | $("#progress-emptyWeight").removeClass("active"); |
| | | |
| | | //空车ééä¸è½ç¼è¾ |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | } |
| | | } else { |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | if (curProgress === InoutProgress.WEIGHT_EMPTY) { |
| | | $("#rk-progress-fullWeight").addClass("active"); |
| | | $("#rk-progress-hand").addClass("active"); |
| | | $("#rk-progress-emptyWeight").addClass("active"); |
| | | |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | //满车ééä¸è½ç¼è¾ |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | |
| | | $("#progress-hand").removeClass("active"); |
| | | $("#progress-emptyWeight").removeClass("active"); |
| | | //空车ééå¯ç¼è¾ |
| | | $("#emptyWeight").removeClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", false); |
| | | } |
| | | } |
| | | if (type === "OUT") { |
| | | $("#ck-progress-register").addClass("active"); |
| | | if (curProgress === InoutProgress.WEIGHT_EMPTY) { |
| | | $("#ck-progress-emptyWeight").addClass("active"); |
| | | $("#ck-progress-hand").removeClass("active"); |
| | | $("#ck-progress-fullWeight").removeClass("active"); |
| | | |
| | | //满车ééä¸è½ç¼è¾ |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | |
| | | //空车ééå¯ç¼è¾ |
| | | $("#emptyWeight").removeClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", false); |
| | | } |
| | | if (curProgress === InoutProgress.WEIGHT_FULL) { |
| | | $("#ck-progress-emptyWeight").addClass("active"); |
| | | $("#ck-progress-hand").addClass("active"); |
| | | $("#ck-progress-fullWeight").addClass("active"); |
| | | |
| | | //满车ééå¯ç¼è¾ |
| | | $("#fullWeight").removeClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", false); |
| | | |
| | | //空车ééä¸è½ç¼è¾ |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | } |
| | | } |
| | | //æµç¨æ¾ç¤º |
| | | if (inoutProgress) { |
| | | if (inoutProgress.indexOf("REGISTER") === -1) { |
| | | $("#rk-progress-register").css("display", "none"); |
| | | $("#ck-progress-register").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_FULL") === -1) { |
| | | $("#rk-progress-fullWeight").css("display", "none"); |
| | | $("#ck-progress-fullWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("HANDLE") === -1) { |
| | | $("#rk-progress-hand").css("display", "none"); |
| | | $("#ck-progress-hand").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_EMPTY") === -1) { |
| | | $("#rk-progress-emptyWeight").css("display", "none"); |
| | | $("#ck-progress-emptyWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CARD_BACK") === -1) { |
| | | $("#rk-progress-cardBack").css("display", "none"); |
| | | $("#ck-progress-cardBack").css("display", "none"); |
| | | } |
| | | |
| | | if (type === "IN") { |
| | | $("#rk_progress").css("display", "block"); |
| | | $("#ck_progress").css("display", "none"); |
| | | } |
| | | if (type === "OUT") { |
| | | $("#ck_progress").css("display", "block"); |
| | | $("#rk_progress").css("display", "none"); |
| | | } |
| | | } |
| | | //æ ¹æ®é
置信æ¯è®¾ç½®å°ç£
æ¯å¦å¯ç¼è¾ |
| | | if (weightEditTag && weightEditTag == 'N') { |
| | |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | } |
| | | } |
| | | |
| | | // å½å宿 |
| | | function submit() { |
| | | if (!recordData) { |
| | | alertError("没æä¸å¡æ°æ®ä¿¡æ¯ï¼æ§è¡è¢«æç»"); |
| | | return; |
| | | } |
| | | var data = form.val("form-data"); |
| | | |
| | | if (!data.depotId) { |
| | | alertError("æç¤ºï¼è£
å¸ä»åºå¿
å¡«"); |
| | | return; |
| | | } |
| | | if (!data.customerName) { |
| | | alertError("æç¤ºï¼å®¢æ·åç§°å¿
å¡«"); |
| | | return; |
| | | } |
| | | |
| | | // æ ¡éª-å
¥åºæ»¡è½¦ç§°é |
| | | if (InoutProgress.WEIGHT_FULL == recordData.progress) { |
| | | if (data.fullWeight <= 0.0) { |
| | | alertError("æç¤ºï¼æ»¡è½¦ç§°éä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | } |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | if (data.emptyWeight <= 0.0) { |
| | | alertError("æç¤ºï¼ç©ºè½¦ç§°éä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | if (!data.foodVariety) { |
| | | alertError("æç¤ºï¼ç²®é£åç§å¿
å¡«"); |
| | | return; |
| | | } |
| | | |
| | | if (!data.settleWeight || data.settleWeight <= 0.0) { |
| | | alertError("ç»ç®ééä¸åè§ï¼è¯·æ ¸å¯¹"); |
| | | return; |
| | | } |
| | | if (!data.recordWeight || data.recordWeight <= 0.0) { |
| | | alertError("å
¥åºééä¸åè§ï¼è¯·æ ¸å¯¹"); |
| | | return; |
| | | } |
| | | } |
| | | //åå¹¶æ°æ® |
| | | Object.assign(recordData, data); |
| | | // è·åç
§ç |
| | | var files = [{ |
| | | fileName: snapData.fileName1 |
| | | }, { |
| | | fileName: snapData.fileName2 |
| | | }, { |
| | | fileName: snapData.fileName3 |
| | | }, { |
| | | fileName: snapData.fileName4 |
| | | }]; |
| | | recordData.files = files; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/submit-weight", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | alertError(result.msg); |
| | | } else { |
| | | notify("æ°æ®æäº¤æå", result.data); |
| | | if (InoutProgress.WEIGHT_FULL == recordData.progress) { |
| | | resetForm(); |
| | | } |
| | | } |
| | | layer.close(index); |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | alertError("æäº¤å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 车è¾éæ©å¼¹çª |
| | | * @param list |
| | | */ |
| | | function renderTableProgressData(list) { |
| | | // æ¸
ç©ºæ°æ® |
| | | $("#tableListProgressData").empty(); |
| | |
| | | var page = 1; |
| | | var limit = 15; |
| | | var recordData = null; |
| | | var selectData = null; //åéçä¿¡æ¯ |
| | | var snapData;//ç³»ç»ææå¯¹è±¡ä¿¡æ¯ |
| | | var timerWeight; |
| | | var img1, img2, img3;// 页é¢ä¸çå¾çä¸ä¼ åç§° |
| | | var curProgress = null; |
| | | |
| | | $(function () { |
| | | layui.use(['layer', 'laydate', 'form', 'table'], function () { |
| | |
| | | } |
| | | }); |
| | | |
| | | // çå¬ä»åºéæ©ï¼éæ©åèªå¨è°ç¨ä»åºçç²®åç§å产å°ä¿¡æ¯ |
| | | form.on('select(select_depotId)', function (obj) { |
| | | updateFoodVarietyByDepot(obj.value); |
| | | }); |
| | | // åå§åè¡¨åæ°æ® |
| | | renderTable(); |
| | | }); |
| | | |
| | | //æ¾ç¤ºç§°éå¼¹çªæµç¨ |
| | | showProgress(); |
| | | |
| | | // ç嬿¯ä¾å¼å¡«å |
| | | $(".per").blur(function () { |
| | | deAutoByPer(); |
| | | }); |
| | | |
| | | // ç嬿¯ä¾å¼å¡«å |
| | | // çå¬ééåå |
| | | $(".weight").blur(function () { |
| | | deAutoByWeight(); |
| | | deAuto(this.name); |
| | | }); |
| | | //åå§åWebSocket |
| | | // initWS(deptId, bizType, progress, userId); |
| | | }); |
| | | |
| | | window.onload = function () { |
| | |
| | | }, 2500); |
| | | |
| | | // å è½½è§é¢ |
| | | initVideo(lprDto, snapDto1, snapDto2); |
| | | initVideo(snapDto1, snapDto2, snapDto3); |
| | | |
| | | //设置å°ç£
|
| | | $("#scaleName").val(weightDto.sort); |
| | |
| | | function flushData() { |
| | | var index = layer.load(); |
| | | var param = form.val("form-param"); |
| | | param.weightTag = "WEIGHT"; |
| | | table.reload('tableData', { |
| | | url: "/basic/inout/page-inout-data", |
| | | where: param |
| | |
| | | // 渲æè¡¨åæ°æ® |
| | | function renderTable() { |
| | | var param = form.val("form-param"); |
| | | param.weightTag = "WEIGHT"; |
| | | // æ¸
ç©ºæ°æ® |
| | | $("#tableData").empty(); |
| | | table.render({ |
| | |
| | | templet: function (item) { |
| | | var result = item.foodVariety; |
| | | $.each(listFoodVariety, function (index, data) { |
| | | if (item.foodVariety == data.code) { |
| | | result = data.name; |
| | | if (item.foodVariety == data.dictValue) { |
| | | result = data.dictLabel; |
| | | return true; |
| | | } |
| | | }); |
| | |
| | | }); |
| | | } |
| | | |
| | | /*-----------------------å¼¹çªæ¾ç¤ºæ¸²æ-å¼å§------------------------------*/ |
| | | |
| | | //æä½åï¼éæ°æµæ°´æ°æ®å½åä¿¡æ¯ |
| | | /** |
| | | * ç§°éå¼¹çªéæ°æ¥è¯¢æ°æ® |
| | | * @param obj |
| | | */ |
| | | function afreshGetData(obj) { |
| | | var index = layer.load(); |
| | | recordData = null; |
| | | var data = obj.data; |
| | | var param = { |
| | | userId: data.userId, |
| | | plateNum: data.plateNum, |
| | | id: data.id |
| | | type: data.type, |
| | | progress: data.progress, |
| | | id: data.id, |
| | | plateNum: data.plateNum |
| | | }; |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | layer.alert("è¯·å·æ°é¡µé¢åï¼éæ°æä½ï¼ï¼"); |
| | | } else { |
| | | recordData = result.data; |
| | | showWindows(recordData.progress); |
| | | curProgress = recordData.progress; |
| | | showWindows(); |
| | | } |
| | | layer.close(index); |
| | | }, |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ¾ç¤ºæµç¨æä½å¼¹çª |
| | | /** |
| | | * ç»è®°å¼¹çª |
| | | */ |
| | | function quickRegister() { |
| | | //ç»è®°æé®æ¾å¼ |
| | | $("#btn_register").css("display", "block"); |
| | | $("#text-info").removeClass("text-info"); |
| | | //ç§°éæä½å¼¹çª |
| | | var pro = 'ç»è®°'; |
| | | recordData = null; |
| | | updateEditAndProgress(); |
| | | flushPage(); |
| | | layer.open({ |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ¾ç¤ºæµç¨æä½å¼¹çª |
| | | function showWindows(progress) { |
| | | /** |
| | | * ç§°éå¼¹çª |
| | | * @param progress |
| | | */ |
| | | function showWindows() { |
| | | |
| | | //ç»è®°æé®æ¾å¼ |
| | | $("#btn_register").css("display", "none"); |
| | | $("#text-info").addClass("text-info"); |
| | | //ç§°éæä½å¼¹çª |
| | | var pro = '空车称é'; |
| | | if (progress == 'WEIGHT_FULL') { |
| | | if (curProgress == 'WEIGHT_FULL') { |
| | | pro = '满车称é'; |
| | | } |
| | | updateEditAndProgress(); |
| | |
| | | }); |
| | | } |
| | | |
| | | //ç§°éå¼¹çªä¸æµç¨ç¯èæ¾ç¤º |
| | | function showProgress() { |
| | | if (!inoutProgress) { |
| | | return; |
| | | } |
| | | if (inoutProgress.indexOf("REGISTER") == -1) { |
| | | $("#progress-register").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_FULL") == -1) { |
| | | $("#progress-fullWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("HANDLE") == -1) { |
| | | $("#progress-hand").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_EMPTY") == -1) { |
| | | $("#progress-emptyWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CARD_BACK") == -1) { |
| | | $("#progress-cardBack").css("display", "none"); |
| | | } |
| | | } |
| | | |
| | | //ç§°éå¼¹çªä¸æ´æ°æµç¨èç¹ |
| | | /** |
| | | * æ ¹æ®ä¸å¡æ°æ®æ´æ°é¡µé¢ä¸çç¶æ |
| | | */ |
| | | function updateEditAndProgress() { |
| | | if (recordData) { |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | $("#emptyWeight").removeClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", false); |
| | | |
| | | $("#progress-hand").removeClass("active"); |
| | | $("#progress-fullWeight").removeClass("active"); |
| | | |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | //å½åæµç¨èç¹ |
| | | if (curProgress == null) { |
| | | if (type === "IN") { |
| | | curProgress = "WEIGHT_FULL"; |
| | | } |
| | | if (type === "OUT") { |
| | | curProgress = "WEIGHT_EMPTY"; |
| | | } |
| | | } |
| | | //æ¾ç¤ºå½åæµç¨ |
| | | if (type === "IN") { |
| | | $("#rk-progress-register").addClass("active"); |
| | | if (curProgress === InoutProgress.WEIGHT_FULL) { |
| | | $("#rk-progress-fullWeight").addClass("active"); |
| | | $("#rk-progress-hand").removeClass("active"); |
| | | $("#rk-progress-emptyWeight").removeClass("active"); |
| | | |
| | | if (InoutProgress.WEIGHT_FULL == recordData.progress) { |
| | | //满车ééå¯ç¼è¾ |
| | | $("#fullWeight").removeClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", false); |
| | | |
| | | $("#progress-hand").addClass("active"); |
| | | $("#progress-fullWeight").addClass("active"); |
| | | |
| | | //空车ééä¸è½ç¼è¾ |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | } |
| | | } else { |
| | | if (curProgress === InoutProgress.WEIGHT_EMPTY) { |
| | | $("#rk-progress-fullWeight").addClass("active"); |
| | | $("#rk-progress-hand").addClass("active"); |
| | | $("#rk-progress-emptyWeight").addClass("active"); |
| | | |
| | | //满车ééä¸è½ç¼è¾ |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | |
| | | //空车ééå¯ç¼è¾ |
| | | $("#emptyWeight").removeClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", false); |
| | | } |
| | | } |
| | | if (type === "OUT") { |
| | | $("#ck-progress-register").addClass("active"); |
| | | if (curProgress === InoutProgress.WEIGHT_EMPTY) { |
| | | $("#ck-progress-emptyWeight").addClass("active"); |
| | | $("#ck-progress-hand").removeClass("active"); |
| | | $("#ck-progress-fullWeight").removeClass("active"); |
| | | |
| | | //满车ééä¸è½ç¼è¾ |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | |
| | | //空车ééå¯ç¼è¾ |
| | | $("#emptyWeight").removeClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", false); |
| | | } |
| | | if (curProgress === InoutProgress.WEIGHT_FULL) { |
| | | $("#ck-progress-emptyWeight").addClass("active"); |
| | | $("#ck-progress-hand").addClass("active"); |
| | | $("#ck-progress-fullWeight").addClass("active"); |
| | | |
| | | //满车ééå¯ç¼è¾ |
| | | $("#fullWeight").removeClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", false); |
| | | |
| | | //空车ééä¸è½ç¼è¾ |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | } |
| | | } |
| | | //æµç¨æ¾ç¤º |
| | | if (inoutProgress) { |
| | | if (inoutProgress.indexOf("REGISTER") === -1) { |
| | | $("#rk-progress-register").css("display", "none"); |
| | | $("#ck-progress-register").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_FULL") === -1) { |
| | | $("#rk-progress-fullWeight").css("display", "none"); |
| | | $("#ck-progress-fullWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("HANDLE") === -1) { |
| | | $("#rk-progress-hand").css("display", "none"); |
| | | $("#ck-progress-hand").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("WEIGHT_EMPTY") === -1) { |
| | | $("#rk-progress-emptyWeight").css("display", "none"); |
| | | $("#ck-progress-emptyWeight").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CARD_BACK") === -1) { |
| | | $("#rk-progress-cardBack").css("display", "none"); |
| | | $("#ck-progress-cardBack").css("display", "none"); |
| | | } |
| | | |
| | | if (type === "IN") { |
| | | $("#rk_progress").css("display", "block"); |
| | | $("#ck_progress").css("display", "none"); |
| | | } |
| | | if (type === "OUT") { |
| | | $("#ck_progress").css("display", "block"); |
| | | $("#rk_progress").css("display", "none"); |
| | | } |
| | | } |
| | | //æ ¹æ®é
置信æ¯è®¾ç½®å°ç£
æ¯å¦å¯ç¼è¾ |
| | | if (weightEditTag && weightEditTag == 'N') { |
| | | $("#fullWeight").addClass("rkbk-search-input"); |
| | | $("#fullWeight").attr("disabled", true); |
| | | |
| | | $("#emptyWeight").addClass("rkbk-search-input"); |
| | | $("#emptyWeight").attr("disabled", true); |
| | | |
| | | $("#progress-hand").removeClass("active"); |
| | | $("#progress-fullWeight").removeClass("active"); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | //ç¹å»ç§°é |
| | | function weight() { |
| | | // 没æä¸å¡æ°æ®ä¸å¯æ§è¡ |
| | | if (!recordData) { |
| | | layer.alert("æ²¡ææ¥è¯¢å°ä¸å¡æ°æ®ï¼æ§è¡è¢«æç»ï¼ï¼"); |
| | | return; |
| | | } |
| | | // 妿æ¯ç©ºè½¦ç§°é |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | form.val("form-weight", { |
| | | if (InoutProgress.WEIGHT_EMPTY === curProgress) { |
| | | form.val("form-data", { |
| | | emptyWeight: weightDto.weight |
| | | }); |
| | | form.render(); |
| | | } |
| | | // å¦ææ¯æ»¡è½¦ç§°é |
| | | if (InoutProgress.WEIGHT_FULL == recordData.progress) { |
| | | form.val("form-weight", { |
| | | if (InoutProgress.WEIGHT_FULL === curProgress) { |
| | | form.val("form-data", { |
| | | fullWeight: weightDto.weight |
| | | }); |
| | | form.render(); |
| | | } |
| | | form.render(); |
| | | snapData == null; |
| | | |
| | | //ç¹å»ç§°éæ¶åèªå¨æææ°æ® |
| | | layer.msg("ç³»ç»èªå¨ææä¿çè®°å½â¦â¦"); |
| | | var data = form.val("form-data"); |
| | | if (!data.plateNum) { |
| | | alertError("æç¤ºï¼å¡«åç»è®°è½¦çä¿¡æ¯"); |
| | | return; |
| | | } |
| | | |
| | | // ç¹å»ç§°éèªå¨è°ç¨ææ |
| | | snapData = { |
| | | companyId: companyId, |
| | | deptId: deptId, |
| | | bizTag: recordData.progress, |
| | | bizType: bizType, |
| | | plateNum: recordData.plateNum + "-" + recordData.carNum, |
| | | |
| | | id1: (null != lprDto) ? lprDto.id : null, |
| | | id2: (null != snapDto1) ? snapDto1.id : null, |
| | | id3: (null != snapDto2) ? snapDto2.id : null |
| | | progress: curProgress, |
| | | bizType: type, |
| | | id1: snapDto1.id, |
| | | id2: snapDto2.id, |
| | | id3: snapDto3.id, |
| | | sort: $("#scaleName").val() |
| | | }; |
| | | |
| | | console.log(snapData); |
| | | //å½åAJAXæå¡ä¸ºåæ¥æå¡ï¼è¿åæ°æ®å
è£
ç
§çä¿¡æ¯ |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | sync: false, |
| | | type: "POST", |
| | | url: "../../basic/inout/snap-img", |
| | | url: "/inout/api/snap-img", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(snapData), |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | layer.alert(result.msg); |
| | | alertError(result.msg); |
| | | } else { |
| | | layer.msg("æææå"); |
| | | snapData = result.data; |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.msg("åå°è°ç¨æªå¾å¤±è´¥ï¼è¯·éæ°å°è¯ï¼ï¼"); |
| | | alertError("åå°è°ç¨æªå¾å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | //äºæ¬¡ç§°éåï¼èªå¨è°ç¨ä¸èªå¨è®¡ç® |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | deAutoByPer(); |
| | | } |
| | | flushBtn("btn-weight"); |
| | | } |
| | | |
| | | // èªå¨è®¡ç®ï¼æ³¨æï¼åºåºæ°´åæ¯ +ï¼å
¥åºæ°´åéè¦ - |
| | | function deAutoByPer() { |
| | | var curData = form.val("form-weight"); |
| | | |
| | | var netWeight = 0, deImpurity = 0, deWet = 0, deSum = 0, settleWeight = 0; |
| | | |
| | | if (curData.fullWeight == 0 || curData.emptyWeight == 0) { |
| | | return; |
| | | } |
| | | // 计ç®åé |
| | | netWeight = curData.fullWeight - curData.emptyWeight; |
| | | |
| | | if (netWeight <= 0) { |
| | | layer.msg("åéå°äºçäº0ï¼å½å计ç®ä¸æ£ç¡®ï¼"); |
| | | return; |
| | | } |
| | | |
| | | // æè´¨æ£é |
| | | if (curData.impurity > 0) { |
| | | deImpurity = (netWeight * curData.impurity / 100.00).toFixed(0); |
| | | } |
| | | // æ°´åå¢é |
| | | if (curData.wet > 0) { |
| | | deWet = (netWeight * curData.wet / 100.00).toFixed(0); |
| | | } |
| | | |
| | | |
| | | // æ»æ£é |
| | | deSum = Number(deImpurity) + Number(curData.deOther) |
| | | + Number(curData.deHandle); |
| | | deSum = deSum.toFixed(0); |
| | | |
| | | // ç»ç®åéï¼ææ°´åæ·»å è¿æ¥ |
| | | settleWeight = Number(netWeight) - Number(deSum) + Number(deWet); |
| | | settleWeight = settleWeight.toFixed(0); |
| | | |
| | | form.val("form-weight", { |
| | | netWeight: netWeight, |
| | | deImpurity: deImpurity, |
| | | deWet: deWet, |
| | | deSum: deSum, |
| | | settleWeight: settleWeight |
| | | }); |
| | | form.render(); |
| | | } |
| | | |
| | | // èªå¨è®¡ç® |
| | | function deAutoByWeight() { |
| | | var curData = form.val("form-weight"); |
| | | |
| | | var netWeight = 0, impurity = 0, wet = 0, deSum = 0, settleWeight = 0; |
| | | |
| | | if (curData.fullWeight == 0 || curData.emptyWeight == 0) { |
| | | return; |
| | | } |
| | | // åé |
| | | netWeight = curData.fullWeight - curData.emptyWeight; |
| | | |
| | | if (netWeight <= 0) { |
| | | layer.msg("åéå°äºçäº0ï¼å½å计ç®ä¸æ£ç¡®ï¼"); |
| | | return; |
| | | } |
| | | |
| | | // æè´¨-ç¾åæ¯ |
| | | if (curData.deImpurity > 0) { |
| | | impurity = (curData.deImpurity / netWeight * 100).toFixed(2); |
| | | } |
| | | // æ°´å -ç¾åæ¯ |
| | | if (curData.deWet > 0) { |
| | | wet = (curData.deWet / netWeight * 100).toFixed(2); |
| | | } |
| | | |
| | | // æ»æ£é= æè´¨æ£é + ä¸å®åæ£é + æ°ä½æ£é + å¼ä»æ£é + å
è£
æ£é |
| | | deSum = Number(curData.deImpurity) |
| | | + Number(curData.deOther) + Number(curData.deHandle); |
| | | |
| | | deSum = deSum.toFixed(0); |
| | | |
| | | // ç»ç®åéï¼ææ°´åæ·»å è¿æ¥ |
| | | settleWeight = Number(netWeight) - Number(deSum) + Number(curData.deWet); |
| | | settleWeight = settleWeight.toFixed(0); |
| | | |
| | | form.val("form-weight", { |
| | | netWeight: netWeight, |
| | | impurity: impurity, |
| | | wet: wet, |
| | | deSum: deSum, |
| | | settleWeight: settleWeight |
| | | }); |
| | | form.render(); |
| | | } |
| | | |
| | | //æ ¹æ®å½åæä½çæé®IDæ´æ°å
¶ä»æé®ç¶æ |
| | | function flushBtn(btnId) { |
| | | if ("btn-weight" == btnId) {// ç§°éåå¯ä»¥ç¹å»å®æç§°é |
| | | $("#btn-submit").removeClass("layui-btn-disabled"); |
| | | $("#btn-submit").attr("disabled", false); |
| | | } |
| | | if ("btn-submit" == btnId) { |
| | | $("#btn-submit").addClass("layui-btn-disabled"); |
| | | $("#btn-submit").attr("disabled", true); |
| | | flushData(); |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) {// åºåºï¼å¦ææ¯ç©ºè½¦ç§°éï¼å®ææ¶ç´æ¥å·æ°é¡µé¢ |
| | | layer.closeAll(); |
| | | } else { |
| | | // å®æç§°éåæ§å¶æé® |
| | | $("#btn-weight").addClass("layui-btn-disabled"); |
| | | $("#btn-weight").attr("disabled", true); |
| | | |
| | | $("#btn-printBill").removeClass("layui-btn-disabled"); |
| | | $("#btn-printBill").attr("disabled", false); |
| | | addDisabled(); |
| | | } |
| | | } |
| | | if ("btn-printBill" == btnId) {// æå°è¿ç£
åï¼è¯´æä¸å¡å®æ |
| | | $("#btn-weight").removeClass("layui-btn-disabled"); |
| | | $("#btn-weight").attr("disabled", false); |
| | | |
| | | $("#btn-submit").addClass("layui-btn-disabled"); |
| | | $("#btn-submit").attr("disabled", true); |
| | | |
| | | $("#btn-printBill").addClass("layui-btn-disabled"); |
| | | $("#btn-printBill").attr("disabled", true); |
| | | layer.closeAll(); |
| | | flushData(); |
| | | } |
| | | } |
| | | |
| | | //æ´æ¹æ£éä¿¡æ¯æ¡ä¸å¯ç¼è¾ |
| | | function addDisabled() { |
| | | //æè´¨ |
| | | $("#impurity").attr("disabled", true); |
| | | $("#deImpurity").attr("disabled", true); |
| | | //æ°´å |
| | | $("#wet").attr("disabled", true); |
| | | $("#deWet").attr("disabled", true); |
| | | //å¼ä» |
| | | $("#deHandle").attr("disabled", true); |
| | | //å
¶ä» |
| | | $("#deOther").attr("disabled", true); |
| | | } |
| | | |
| | | //æ¢å¤æ£éä¿¡æ¯æ¡ç¼è¾ç¶æ |
| | | function delDisabled() { |
| | | //æè´¨ |
| | | $("#impurity").attr("disabled", false); |
| | | $("#deImpurity").attr("disabled", false); |
| | | //æ°´å |
| | | $("#wet").attr("disabled", false); |
| | | $("#deWet").attr("disabled", false); |
| | | //å¼ä» |
| | | $("#deHandle").attr("disabled", false); |
| | | //å
¶ä» |
| | | $("#deOther").attr("disabled", false); |
| | | } |
| | | |
| | | // ç¹å»æå°ï¼ç³»ç»å¤ææ¯å¦å·²ç»æ§è¡å®æï¼å¦æå·²ç»å®æï¼ç´æ¥æå°ï¼å¦ææªå®æåå
æ§è¡å®æ |
| | | /** |
| | | * ç¹å»æå°ï¼ç³»ç»å¤ææ¯å¦å·²ç»æ§è¡å®æï¼å¦æå·²ç»å®æï¼ç´æ¥æå°ï¼å¦ææªå®æåå
æ§è¡å®æ |
| | | */ |
| | | function printBill() { |
| | | if (!recordData) { |
| | | layer.alert("没æè·åå°ä¸å¡æ°æ®ï¼ä¸æ¯ææå°ï¼"); |
| | | alertError("没æè·åå°ä¸å¡æ°æ®ï¼æå°è¢«æç»ï¼"); |
| | | return; |
| | | } |
| | | // ä»åå°è·å模çå¹¶æå° |
| | | var data = form.val("form-weight"); |
| | | // åå¹¶æ´æ°ç¶åç¼è¾æ°æ® |
| | | Object.assign(recordData, data); |
| | | |
| | | printBillStep2(); |
| | | }; |
| | | |
| | | // ç¹å»æå°ï¼å
æ§è¡ç³»ç»é»è®¤æ§è¡å®æå¡åæ¶ |
| | | function printBillStep2() { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout-report/inout-bill-weight", |
| | | url: "/basic/print/bill-weight", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | layer.msg(result.msg); |
| | | alertError(result.msg); |
| | | } else { |
| | | layer.msg("å¼å§æ¸²ææå°åâ¦â¦"); |
| | | printWeight(result.data); |
| | | // å·æ°æé® |
| | | flushBtn("btn-printBill"); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.msg("è·åæå°æ¨¡ç失败ï¼è¯·è系管ç忥çåå ï¼ï¼"); |
| | | alertError("è·åæå°æ¨¡ç失败ï¼è¯·è系管ç忥çåå "); |
| | | } |
| | | }); |
| | | }; |
| | | } |
| | | /** |
| | | * ç§°éæäº¤ |
| | | */ |
| | | function submit() { |
| | | |
| | | //å®æç§°é |
| | | function submitWeight() { |
| | | if (null == recordData) { |
| | | notify("æ²¡ææ°æ®å¯ä»¥æäº¤", null); |
| | | return; |
| | | } |
| | | var data = form.val("form-weight"); |
| | | var data = form.val("form-data"); |
| | | if (!data.depotId) { |
| | | notify("è£
å¸ä»åºå¿
须填å", null); |
| | | alertError("æç¤ºï¼è£
å¸ä»åºå¿
å¡«"); |
| | | return; |
| | | } |
| | | // æ ¡éª-åºåºç©ºè½¦ |
| | | if (InoutProgress.WEIGHT_EMPTY == recordData.progress) { |
| | | if (data.emptyWeight <= 0.0) { |
| | | notify("空车称éä¿¡æ¯å¿
å¡«", null); |
| | | return; |
| | | } |
| | | if (!data.customerName) { |
| | | notify("徿¥åä½ä¿¡æ¯å¿
å¡«", null); |
| | | return; |
| | | } |
| | | } else { |
| | | if (!data.customerName) { |
| | | alertError("æç¤ºï¼éç¥åä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | if (!data.foodVariety) { |
| | | alertError("æç¤ºï¼ç²®é£åç§å¿
å¡«"); |
| | | return; |
| | | } |
| | | |
| | | // æ ¡éª-å
¥åºæ»¡è½¦ç§°é |
| | | if (InoutProgress.WEIGHT_FULL === curProgress) { |
| | | if (data.fullWeight <= 0.0) { |
| | | notify("满车称éä¿¡æ¯å¿
å¡«", null); |
| | | return; |
| | | } |
| | | if (!data.foodVariety) { |
| | | notify("ç²®é£åç§å¿
å¡«", null); |
| | | return; |
| | | } |
| | | if (!data.foodLocation) { |
| | | notify("ç²®é£äº§å°å¿
å¡«", null); |
| | | return; |
| | | } |
| | | if (!data.settleWeight || data.settleWeight <= 0.0) { |
| | | notify("æ£éååä¿¡æ¯ä¸æ£ç¡®ï¼è¯·æ ¸å®è®¡ç®", null); |
| | | alertError("æç¤ºï¼æ»¡è½¦ç§°éä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | } |
| | | // åå¹¶æ´æ°ç¶åç¼è¾æ°æ® |
| | | Object.assign(recordData, data); |
| | | if (InoutProgress.WEIGHT_EMPTY === curProgress) { |
| | | if (data.emptyWeight <= 0.0) { |
| | | alertError("æç¤ºï¼ç©ºè½¦ç§°éä¿¡æ¯å¿
å¡«"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if(recordData){ |
| | | //åå¹¶æ°æ® |
| | | Object.assign(recordData, data); |
| | | }else { |
| | | recordData = data; |
| | | } |
| | | recordData.progress = curProgress; |
| | | |
| | | // è·åç
§ç |
| | | var files = [{ |
| | |
| | | fileName: snapData.fileName3 |
| | | }]; |
| | | recordData.files = files; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/inout-next-step", |
| | | url: "/basic/inout/submit-weight", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(recordData), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | layer.alert("æ°æ®æäº¤å¤±è´¥ï¼è¯·éè¯ï¼ï¼"); |
| | | alertError(result.msg); |
| | | } else { |
| | | curProgress = null; |
| | | clearInterval(timerWeight); |
| | | layer.alert("æ°æ®æäº¤æåï¼ï¼"); |
| | | // æ´æ°æé®æ¾ç¤º |
| | | flushBtn("btn-submit"); |
| | | notify("æ°æ®æäº¤æå", result.data); |
| | | //ç¬¬ä¸æ¬¡ç§°éåï¼å·æ°é¡µé¢ |
| | | if (recordData.recordWeight <= 0.0) { |
| | | flushData(); |
| | | layer.closeAll(); |
| | | } |
| | | } |
| | | layer.close(index); |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.alert("æäº¤å¤±è´¥ï¼è¯·éæ°å°è¯ï¼ï¼"); |
| | | alertError("æäº¤å¤±è´¥ï¼è¯·éæ°å°è¯"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //éæ°ç§°éæ¶ï¼è¡¨å䏿¸
ç©ºï¼æé®éç½® |
| | | function flushPage() { |
| | | |
| | | weightDto.weight = 0.0; |
| | | $("#weightValue").text("0.0"); |
| | | $("#img_scale_statule").attr("src", "/img/web/inout/icon-red.png"); |
| | | timerGetWeight(); |
| | | |
| | | //æ£éä¿¡æ¯æ¡æ¢å¤ä¸ºå¯ç¼è¾ |
| | | delDisabled(); |
| | | //è¡¨åæ°æ®éç½® |
| | | form.val("form-weight", recordData); |
| | | form.val("form-data", recordData); |
| | | form.render(); |
| | | } |
| | | |
| | | //æ ¹æ®éæ©çä»åºä¿¡æ¯,æ´æ°ç²®é£åç§ |
| | | function updateFoodVarietyByDepot(selectId) { |
| | | var selectDepot; |
| | | $.each(listDepot, function (index, data) { |
| | | if (data.id === selectId) { |
| | | selectDepot = data; |
| | | return false; |
| | | /** |
| | | * 读åèº«ä»½è¯ |
| | | */ |
| | | function flushIdCard() { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: true, |
| | | url: "http://127.0.0.1:9111/IDCARD", |
| | | data: {}, |
| | | dataType: "json", |
| | | success: function (json) { |
| | | layer.close(index); |
| | | var data = json; |
| | | if (data.code === "200" || data.code == 200) { |
| | | // 临æ¶èµå¼ |
| | | $("#userName").val(data.cnName); |
| | | $("#userAddress").val(data.address); |
| | | $("#userId").val(data.idNum); |
| | | } else { |
| | | alertError("没æè·åå°èº«ä»½è¯ä¿¡æ¯ï¼"); |
| | | return; |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.alert("身份è¯è¯»å失败ï¼", { |
| | | offset: ['300px', '300px'] |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | |
| | | if (selectDepot) { |
| | | form.val("form-weight", { |
| | | foodVariety: selectDepot.foodVariety, |
| | | foodLocation: selectDepot.foodLocation, |
| | | foodLevel: selectDepot.foodLevel, |
| | | noticeId: selectDepot.noticeId |
| | | }); |
| | | form.render(); |
| | | } |
| | | } |
| | | |
| | | /*-----------------------ç§°éæä½-ç»æ------------------------------*/ |
| | | /** |
| | | * 读å车çå· |
| | | */ |
| | | function flushPlateNum() { |
| | | var param = JSON.stringify(snapDto1); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/inout/api/get-plateNum", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | alertError(result.msg); |
| | | } else { |
| | | $("#plateNum").val(result.data.plateNum); |
| | | } |
| | | layer.close(index); |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | alertError("车çè¯å«å¤±è´¥ï¼"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * å¼¹åºæéæ¡ |
| | |
| | | * å
¥åº-ç§°éèªå¨è®¡ç® |
| | | * @param name 触åäºä»¶ç屿§åç§° |
| | | */ |
| | | function deAutoByIn(name) { |
| | | function deAuto(name) { |
| | | var curData = form.val("form-data"); |
| | | if (curData.fullWeight == 0 || curData.emptyWeight == 0) { |
| | | return; |
| | |
| | | return; |
| | | } |
| | | //å
¶ä»ä¿¡æ¯ |
| | | var deHandle = curData.deHandle, dePackage = curData.dePackage, deOther = curData.deOther, settleWeight = 0, |
| | | recordWeight = 0, deCheck = curData.deCheck, addCheck = curData.addCheck; |
| | | recordWeight = Number(netWeight) - Number(deHandle) - Number(dePackage) - Number(deOther) - Number(deCheck); |
| | | settleWeight = Number(recordWeight) + Number(addCheck); |
| | | var deOther = curData.deOther, settleWeight = 0, recordWeight = 0; |
| | | recordWeight = Number(netWeight) - Number(deOther); |
| | | settleWeight = Number(recordWeight); |
| | | |
| | | netWeight = netWeight.toFixed(1); |
| | | recordWeight = recordWeight.toFixed(1); |
| | |
| | | <script th:src="@{/common/constant.js}"></script> |
| | | <script th:src="@{/common/igds-common.js}"></script> |
| | | <script th:src="@{/inout/inout-common.js}"></script> |
| | | <script th:src="@{/inout/check.js}"></script> |
| | | <script th:src="@{/inout/inout-check.js}"></script> |
| | | |
| | | <script type="text/html" id="barControl"> |
| | | <a class="layui-btn control-btn" lay-event="edit">ç»æå½å
¥</a> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh-cn" xmlns:th=http://www.thymeleaf.org> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="renderer" content="webkit"> |
| | | <title>åºå
¥åºç®¡ç-å¼ä»ç®¡ç</title> |
| | | |
| | | <link rel="stylesheet" th:href="@{/ajax/libs/layui/css/layui.css}"/> |
| | | <link rel="stylesheet" th:href="@{/inout/inout-style.css}"> |
| | | |
| | | <style> |
| | | .kccz-r-btnbox { |
| | | width: 86px !important; |
| | | } |
| | | |
| | | .kccz-r-btn { |
| | | width: 86px !important; |
| | | } |
| | | |
| | | #text-param { |
| | | font-size: 14px; |
| | | color: red; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .display-none { |
| | | display: none; |
| | | } |
| | | |
| | | .cursor { |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .kccz-czxx-dl dt { |
| | | width: 25px; |
| | | height: 24px; |
| | | color: #000; |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .kccz-left-box2 { |
| | | height: 555px; |
| | | } |
| | | |
| | | .color-red { |
| | | color: red !important; |
| | | } |
| | | |
| | | .layui-table td { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .layui-select-disabled .layui-disabled { |
| | | color: #000 !important; |
| | | } |
| | | |
| | | .depot-food input { |
| | | line-height: 34px; |
| | | padding-right: 10px; |
| | | font-size: 16px; |
| | | color: #666; |
| | | background: #eff4f6; |
| | | } |
| | | |
| | | .rk-step-wrap { |
| | | padding: 0px; |
| | | border-bottom: 0px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .rkbk-quick { |
| | | margin-top: 15px !important; |
| | | } |
| | | |
| | | .kccz-con { |
| | | margin: 10px 0px; |
| | | } |
| | | |
| | | .border-no { |
| | | border: 0px; |
| | | } |
| | | |
| | | .qyzj-btnbox { |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .kccz-data-btnbox { |
| | | min-height: 38px; |
| | | padding-top: 2px; |
| | | } |
| | | |
| | | .layui-layer-title { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .rkbk-search-btn { |
| | | width: 100px; |
| | | height: 30px; |
| | | line-height: 30px; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .r-240 { |
| | | right: 240px; |
| | | } |
| | | |
| | | .r-120 { |
| | | right: 120px; |
| | | } |
| | | |
| | | .rkbk-search-input.bg-date { |
| | | background: #FFF !important; |
| | | } |
| | | .kccz-left-box2 { |
| | | height: 741px; |
| | | } |
| | | #scaleName { |
| | | width: 130px; |
| | | height: 28px; |
| | | } |
| | | .kccz-r-item { |
| | | height: 240px; |
| | | } |
| | | .kccz-r-con { |
| | | height: 190px; |
| | | } |
| | | .kccz-r-vedio { |
| | | background: unset; |
| | | height: 190px; |
| | | } |
| | | .kccz-r-vedio img{ |
| | | width: 80%; |
| | | height: 100%; |
| | | background: #dee6ec; |
| | | } |
| | | </style> |
| | | |
| | | </head> |
| | | |
| | | <body> |
| | | |
| | | <div class="l-container layui-clear"> |
| | | <div class="rk-main"> |
| | | <div class="qyzj-btnbox layui-clear"> |
| | | |
| | | <div class="rkbk-quick fl"> |
| | | <button class="rkbk-quick-btn layui-btn" onclick="selectByHand()"> |
| | | <i><img th:src="@{/img/web/inout/icon-hyd.png}"/></i>éæ©å¼ä» |
| | | </button> |
| | | <button id="btn-submit" class="rkbk-quick-btn layui-btn btn-green" onclick="submit()"> |
| | | <i><img th:src="@{/img/web/inout/icon-ok.png}"/></i>å¼ä»å®æ |
| | | </button> |
| | | <button class="rkbk-quick-btn layui-btn btn-violet" onclick="flushPage()"> |
| | | <i><img th:src="@{/img/web/inout/icon-shuaxin2.png}"/></i>å·æ°é¡µé¢ |
| | | </button> |
| | | |
| | | </div> |
| | | <!-- æµç¨å¼å¯¼ --> |
| | | <div class="rk-step-wrap fr"> |
| | | <ul class="rk-step" id="rk_progress" style="display: none;"> |
| | | <li id="rk-progress-register" class="rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-dengji.png}"/> |
| | | </span> |
| | | <p>å
¥åºç»è®°</p> |
| | | </li> |
| | | <li id="rk-progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="rk-progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>å
¥åºå¼ä»</p> |
| | | </li> |
| | | <li id="rk-progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="rk-progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-banli.png}"/> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | | <ul class="rk-step" id="ck_progress" style="display: none;"> |
| | | <li id="ck-progress-register" class="rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-dengji.png}"/> |
| | | </span> |
| | | <p>åºåºç»è®°</p> |
| | | </li> |
| | | <li id="ck-progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="ck-progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>åºåºå¼ä»</p> |
| | | </li> |
| | | <li id="ck-progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="ck-progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-banli.png}"/> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <!-- æµç¨å¼å¯¼EDN --> |
| | | </div> |
| | | <!--qyzj-btnbox end--> |
| | | |
| | | |
| | | <div class="kccz-con"> |
| | | <div class="kccz-left fl"> |
| | | <div class="kccz-left-box2 radius-6"> |
| | | <div class="rkbk-tit"> |
| | | <i></i> |
| | | <h3>ä¸å¡æ°æ®<span id="text-param"></span></h3> |
| | | </div> |
| | | |
| | | <div class="kccz-data-form layui-row"> |
| | | <form class="layui-form" action="" id="form-data" |
| | | lay-filter="form-data"> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="foodLocationId"> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="noticeId"> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <label class="layui-form-label">éè-åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="id" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <label class="layui-form-label">éè-æµç¨èç¹</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="progress" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <label class="layui-form-label">éè-éç¥åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="noticeId" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <label class="layui-form-label">éè-产å°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="foodLocationId" |
| | | autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <label class="layui-form-label">éè-ç±»å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="type" th:value="${type}" |
| | | autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red" id="depotIdLabel">è£
å¸ä»åº</label> |
| | | <div class="layui-input-block"> |
| | | <select name="depotId" id="depotId" lay-filter="select_depotId"> |
| | | <option value=""></option> |
| | | <option th:each="depot,depotSet:${listDepot}" |
| | | th:value="${depot.id}" th:text="${depot.name}"></option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">æ¯é(满车)</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="fullWeight" id="fullWeight" autocomplete="off" |
| | | placeholder="å°ç£
èªå¨å¸¦å
¥" class="layui-input rkbk-search-input" |
| | | disabled> |
| | | <em |
| | | class="kccz-data-dw">KG</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">ç®é(空车)</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="emptyWeight" id="emptyWeight" autocomplete="off" |
| | | placeholder="å°ç£
èªå¨å¸¦å
¥" class="layui-input weight rkbk-search-input" |
| | | disabled> |
| | | <em |
| | | class="kccz-data-dw">KG</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">éç¥å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="customerName" placeholder="è¯·éæ©" |
| | | autocomplete="off" class="layui-input" disabled="disabled"> <em |
| | | class="kccz-data-dw cursor" onclick="showNotice()">â¦â¦</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">ç²®é£åç§</label> |
| | | <div class="layui-input-block"> |
| | | <select name="foodVariety" id="foodVariety"> |
| | | <option value=""></option> |
| | | <option th:each="dic,dicSet:${listFoodVariety}" |
| | | th:value="${dic.dictValue}" th:text="${dic.dictLabel}"></option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">å é</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="netWeight" autocomplete="off" |
| | | placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">ç²®é£äº§å°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="foodLocation" placeholder="è¯·éæ©" |
| | | autocomplete="off" class="layui-input" disabled="disabled"> <em |
| | | class="kccz-data-dw cursor" onclick="showFoodLocation()">â¦â¦</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ°´ å</label> |
| | | <div class="layui-input-block"> |
| | | <input id="perWet" type="text" name="perWet" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | | class="kccz-data-dw">%</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ£ é</label> |
| | | <div class="layui-input-block"> |
| | | <input id="deOther" type="text" name="deOther" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | | class="kccz-data-dw">KG</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">å ä»·</label> |
| | | <div class="layui-input-block"> |
| | | <input id="price" type="text" name="price" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | | class="kccz-data-dw">å
</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ è´¨</label> |
| | | <div class="layui-input-block"> |
| | | <input id="perImpurity" type="text" name="perImpurity" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | | class="kccz-data-dw">%</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">å
¥åºéé</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="recordWeight" placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" |
| | | autocomplete="off" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">夿³¨è¯´æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="remarks" placeholder="请è¾å
¥å
容" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">ç»ç®éé</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="settleWeight" placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" |
| | | autocomplete="off" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">æ¿è¿äºº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userName" placeholder="请è¾å
¥" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">身份è¯å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userId" id="userId" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">车çå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="plateNum" id="plateNum" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">èç³»çµè¯</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userContact" id="userContact" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">å° å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userAddress" id="userAddress" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | <!--kccz-left-box2 end--> |
| | | |
| | | </div> |
| | | <!--kccz-left end--> |
| | | <div class="kccz-right fr bg-ef"> |
| | | <div class="kccz-r-item radius-6"> |
| | | <div class="kccz-r-box"> |
| | | <div class="rkbk-tit"> |
| | | <i></i> |
| | | <h3>å¼ä»è®°å½1</h3> |
| | | </div> |
| | | <div class="kccz-r-con"> |
| | | <div class="kccz-r-vedio"><img id="kccz-r-img1"></div> |
| | | <div class="kccz-r-btnbox"> |
| | | <a href="javascript:;" class="kccz-r-btn" id="kccz-r-btn1"> <span |
| | | class="kccz-r-img"></span> |
| | | <p>ä¸ä¼ å¾ç</p> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <!--kccz-r-item end--> |
| | | |
| | | <div class="kccz-r-item radius-6 mt-10"> |
| | | <div class="kccz-r-box"> |
| | | <div class="rkbk-tit"> |
| | | <i></i> |
| | | <h3>å¼ä»è®°å½2</h3> |
| | | </div> |
| | | <div class="kccz-r-con"> |
| | | <div class="kccz-r-vedio"><img id="kccz-r-img2"></div> |
| | | <div class="kccz-r-btnbox"> |
| | | <a href="javascript:;" class="kccz-r-btn" id="kccz-r-btn2"> <span |
| | | class="kccz-r-img"></span> |
| | | <p>ä¸ä¼ å¾ç</p> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <!--kccz-r-item end--> |
| | | |
| | | <div class="kccz-r-item radius-6 mt-10"> |
| | | <div class="kccz-r-box"> |
| | | <div class="rkbk-tit"> |
| | | <i></i> |
| | | <h3>å¼ä»è®°å½3</h3> |
| | | </div> |
| | | <div class="kccz-r-con"> |
| | | <div class="kccz-r-vedio"><img id="kccz-r-img3"></div> |
| | | <div class="kccz-r-btnbox"> |
| | | <a href="javascript:;" class="kccz-r-btn" id="kccz-r-btn3"> <span |
| | | class="kccz-r-img"></span> |
| | | <p>ä¸ä¼ å¾ç</p> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <!--kccz-r-item end--> |
| | | </div> |
| | | |
| | | </div> |
| | | <!--kccz-con end--> |
| | | |
| | | </div> |
| | | <!--rk-main end--> |
| | | |
| | | </div> |
| | | <!--l-container end--> |
| | | |
| | | |
| | | <script th:inline="javascript"> |
| | | //æµç¨ç¯è |
| | | var inoutProgress = [[${inoutProgress}]]; |
| | | var curProgress = [[${progress}]]; |
| | | var deptId = [[${deptId}]]; |
| | | var listDepot = [[${listDepot}]]; |
| | | |
| | | //åºå
¥åºç±»å |
| | | var type = [[${type}]]; |
| | | var companyId = [[${loginUser.companyId}]]; |
| | | |
| | | </script> |
| | | |
| | | <script th:src="@{/ajax/libs/layui/layui.js}"></script> |
| | | <script th:src="@{/js/jquery.min.js}"></script> |
| | | <script th:src="@{/common/constant.js}"></script> |
| | | <script th:src="@{/common/igds-common.js}"></script> |
| | | <script th:src="@{/inout/inout-common.js}"></script> |
| | | <script th:src="@{/inout/inout-handle.js}"></script> |
| | | |
| | | </body> |
| | | |
| | | <!-- å¼¹åºç²®é£äº§å° --> |
| | | <div class="layui-tab-content" id="listFoodLocation" style="display: none;"> |
| | | <table class="layui-table" lay-skin="nob" id="tableFoodLoaction" |
| | | lay-filter="tableFoodLoaction" style="margin: 0px;"></table> |
| | | </div> |
| | | |
| | | <!-- æµç¨æ°æ®ä¿¡æ¯ --> |
| | | <div class="layui-tab-content" id="listProgressData" style="display: none;"> |
| | | <table class="layui-table tableListProgressData" id="tableListProgressData" |
| | | lay-filter="tableListProgressData"> |
| | | <thead> |
| | | <tr class="qyzj-table-tit"> |
| | | <th>åæ®å·</th> |
| | | <th>æ¿è¿äºº</th> |
| | | <th>车çå·</th> |
| | | <th>æä½</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | <!-- å¼¹åºæ¡çä¿¡æ¯ --> |
| | | <div class="layui-tab-content" id="dialog-from-notify" style="display: none;"> |
| | | <table class="layui-table"> |
| | | <colgroup> |
| | | <col width="100"> |
| | | </colgroup> |
| | | <tbody> |
| | | <tr> |
| | | <td>è¿åä¿¡æ¯</td> |
| | | <td id="resultMsg" style="color: red;font-weight: bold;"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>æ¿è¿äºº</td> |
| | | <td id="resultUserName" style="font-weight: bold;"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>车çå·</td> |
| | | <td id="resultPlateNum" style="font-weight: bold;"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>ä¸ä¸æ¥</td> |
| | | <td id="resultType" style="font-weight: bold;"></td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | <script type="text/html" id="barSelectProgress"> |
| | | <a class="layui-btn layui-btn-xs" lay-event="select">éæ©å¼ä»</a> |
| | | </script> |
| | | </html> |
| | |
| | | <script th:src="@{/common/igds-common.js}"></script> |
| | | <script th:src="@{/inout/inout-common.js}"></script> |
| | | <script th:src="@{/inout/video-play.js}"></script> |
| | | <script th:src="@{/inout/register.js}"></script> |
| | | <script th:src="@{/inout/inout-register.js}"></script> |
| | | |
| | | <!-- å¼¹åºæ¡çä¿¡æ¯ --> |
| | | <div class="layui-tab-content" id="dialog-from-notify" style="display: none;"> |
| | |
| | | <meta name="renderer" content="webkit"> |
| | | <title>åºå
¥åºç®¡ç-å
¥åºç§°é</title> |
| | | |
| | | <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui-ruoyi/css/layui.css}"/> |
| | | <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui/css/layui.css}"/> |
| | | <link rel="stylesheet" type="text/css" th:href="@{/inout/inout-style.css}"> |
| | | |
| | | <!--ä½¿ç¨æå°æä»¶ éèå½åæä»¶ --> |
| | |
| | | .kccz-r-btnbox { |
| | | width: 86px !important; |
| | | } |
| | | |
| | | .layui-table-body { |
| | | max-height: 400px; |
| | | } |
| | | |
| | | .kccz-r-btn { |
| | | width: 86px !important; |
| | | } |
| | |
| | | } |
| | | |
| | | .rkbk-search-input { |
| | | background: #FFF !important; |
| | | } |
| | | |
| | | .rkbk-search-input.bg-date { |
| | | background: #FFF !important; |
| | | background: #e7eaec !important; |
| | | } |
| | | |
| | | #scaleName { |
| | |
| | | </div> |
| | | <!-- æµç¨å¼å¯¼ --> |
| | | <div class="rk-step-wrap fr"> |
| | | <ul class="rk-step"> |
| | | <li id="progress-register" class="active rk-step-first"> |
| | | <ul class="rk-step" id="rk_progress" style="display: none;"> |
| | | <li id="rk-progress-register" class="rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-dengji.png}"/> |
| | | </span> |
| | | <p>å
¥åºç»è®°</p> |
| | | </li> |
| | | <li id="rk-progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="rk-progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>å
¥åºå¼ä»</p> |
| | | </li> |
| | | <li id="rk-progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="rk-progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-banli.png}"/> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | | <ul class="rk-step" id="ck_progress" style="display: none;"> |
| | | <li id="ck-progress-register" class="rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-dengji.png}"/> |
| | | </span> |
| | | <p>å
¥åºç»è®°</p> |
| | | <p>åºåºç»è®°</p> |
| | | </li> |
| | | <li id="progress-check" class="active"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-zhijian.png}"/> |
| | | </span> |
| | | <p>æ¦æ ·è´¨æ£</p> |
| | | </li> |
| | | <li id="progress-fullWeight" class="active"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="progress-hand" class=""> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>å
¥åºå¼ä»</p> |
| | | </li> |
| | | <li id="progress-emptyWeight" class=""> |
| | | <li id="ck-progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="progress-cardBack"> |
| | | <li id="ck-progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>åºåºå¼ä»</p> |
| | | </li> |
| | | <li id="ck-progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="ck-progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-banli.png}"/> |
| | | </span> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | |
| | | <form class="layui-form" action="" id="form-data" |
| | | lay-filter="form-data"> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="id"> |
| | | <label class="layui-form-label">éè-åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="id" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="progress"> |
| | | <label class="layui-form-label">éè-æµç¨èç¹</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="progress" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="type"> |
| | | <label class="layui-form-label">éè-éç¥åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="noticeId" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="foodLocationId"> |
| | | <label class="layui-form-label">éè-产å°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="foodLocationId" |
| | | autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="noticeId"> |
| | | <label class="layui-form-label">éè-ç±»å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="type" th:value="${type}" |
| | | autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="foodType"> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red" id="depotIdLabel">è£
å¸ä»åº</label> |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ°´å</label> |
| | | <label class="layui-form-label">æ°´ å</label> |
| | | <div class="layui-input-block"> |
| | | <input id="perWet" type="text" name="perWet" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ£é</label> |
| | | <label class="layui-form-label">æ£ é</label> |
| | | <div class="layui-input-block"> |
| | | <input id="deOther" type="text" name="deOther" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">åä»·</label> |
| | | <label class="layui-form-label">å ä»·</label> |
| | | <div class="layui-input-block"> |
| | | <input id="price" type="text" name="price" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <label class="layui-form-label">æ è´¨</label> |
| | | <div class="layui-input-block"> |
| | | <input id="perImpurity" type="text" name="perImpurity" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">å
¥åºéé</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="recordWeight" placeholder="èªå¨è®¡ç®" |
| | | <input type="text" name="recordWeight" placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" |
| | | autocomplete="off" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">ç»ç®éé</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="settleWeight" placeholder="èªå¨è®¡ç®" |
| | | <input type="text" name="settleWeight" placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" |
| | | autocomplete="off" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-col-xs12"> |
| | | <div style="height: 40px"> |
| | | <input type="button" value="读身份è¯" style="height: 34px;line-height: 34px;right: 120px;" |
| | | <input type="button" value="读身份è¯" |
| | | style="height: 34px;line-height: 34px;right: 120px;" |
| | | class="rkbk-search-btn layui-btn" onclick="flushIdCard()"> |
| | | <input type="button" value="读车ç" style="height: 34px;line-height: 34px" |
| | | class="rkbk-search-btn layui-btn" onclick="flushData(null,null)"> |
| | | class="rkbk-search-btn layui-btn" onclick="flushPlateNum()"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">æ¿è¿äºº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userName1" placeholder="请è¾å
¥" class="layui-input"> |
| | | <input type="text" name="userName" placeholder="请è¾å
¥" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">身份è¯å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userId1" id="userId1" placeholder="请è¾å
¥" |
| | | <input type="text" name="userId" id="userId" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">车çå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="plateNum1" id="plateNum1" placeholder="请è¾å
¥" |
| | | <input type="text" name="plateNum" id="plateNum" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | </script> |
| | | |
| | | <script th:src="@{/ajax/libs/layui-ruoyi/layui.js}"></script> |
| | | <script th:src="@{/ajax/libs/layui/layui.js}"></script> |
| | | <script th:src="@{/js/jquery.min.js}"></script> |
| | | <script th:src="@{/common/constant.js}"></script> |
| | | <script th:src="@{/common/igds-common.js}"></script> |
| | |
| | | <meta name="renderer" content="webkit"> |
| | | <title>åºå
¥åºç®¡ç-åºåºç®ææä½</title> |
| | | |
| | | <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui-ruoyi/css/layui.css}"/> |
| | | <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui/css/layui.css}"/> |
| | | <link rel="stylesheet" type="text/css" th:href="@{/inout/inout-style.css}"> |
| | | |
| | | <!--ä½¿ç¨æå°æä»¶ éèå½åæä»¶ --> |
| | |
| | | } |
| | | |
| | | .rkbk-search-input { |
| | | background: #FFFFFF; |
| | | background: #e7eaec !important; |
| | | } |
| | | .kccz-left-box1 { |
| | | padding: 1px 20px 10px 20px; |
| | | } |
| | | .kccz-left-box2 { |
| | | height: 512px; |
| | | height: 520px; |
| | | } |
| | | .text-info{ |
| | | margin: 0 0 20px 0; |
| | |
| | | |
| | | </div> |
| | | <!--l-container end--> |
| | | <script th:inline="javascript"> |
| | | //æµç¨ç¯è |
| | | var inoutProgress = [[${inoutProgress}]]; |
| | | var progress = [[${progress}]]; |
| | | var deptId = [[${deptId}]]; |
| | | var listDepot = [[${listDepot}]]; |
| | | var weightEditTag = [[${weightEditTag}]]; |
| | | var listFoodVariety = [[${listFoodVariety}]]; |
| | | //userId |
| | | var userId = [[${loginUser.loginName}]]; |
| | | //åºå
¥åºç±»å |
| | | var type = [[${type}]]; |
| | | var companyId = [[${loginUser.companyId}]]; |
| | | |
| | | <script th:src="@{/ajax/libs/layui-ruoyi/layui.js}"></script> |
| | | //å°ç£
ä¿¡æ¯ |
| | | var weightDto = [[${weightDto}]]; |
| | | |
| | | //è¿ç¨æå头 |
| | | var snapDto1 = [[${snapDto1}]]; |
| | | var snapDto2 = [[${snapDto2}]]; |
| | | var snapDto3 = [[${snapDto3}]]; |
| | | //é»è®¤æ¥è¯¢æ¶é´ |
| | | var startTime = [[${startTime}]]; |
| | | var endTime = [[${endTime}]]; |
| | | </script> |
| | | |
| | | <script th:src="@{/ajax/libs/layui/layui.js}"></script> |
| | | <script th:src="@{/js/jquery.min.js}"></script> |
| | | <script th:src="@{/common/constant.js}"></script> |
| | | <script th:src="@{/common/igds-common.js}"></script> |
| | |
| | | <script th:src="@{/inout/video-play.js}"></script> |
| | | <script th:src="@{/inout/weight.js}"></script> |
| | | <script th:src="@{/inout/inout-weight2.js}"></script> |
| | | |
| | | <script th:inline="javascript"> |
| | | //æµç¨ç¯è |
| | | var inoutProgress = [[${inoutProgress}]]; |
| | | //åºåºç¼ç |
| | | var deptId = [[${deptId}]]; |
| | | //ä»åºå表 |
| | | var listDepot = [[${listDepot}]]; |
| | | //ä¸å¡æ¥éª¤ |
| | | var bizType = [[${bizType}]]; |
| | | //userId |
| | | var userId = [[${loginUser.loginName}]]; |
| | | //åºå
¥åºç±»å |
| | | var type = [[${type}]]; |
| | | var companyId = [[${loginUser.companyId}]]; |
| | | //åç§ |
| | | var listFoodVariety = [[${listFoodVariety}]]; |
| | | //å½åæµç¨ |
| | | var progress = [[${progress}]]; |
| | | //å°ç£
ä¿¡æ¯ |
| | | var weightDto = [[${weightDto}]]; |
| | | |
| | | //æææåæº |
| | | var snapDto1 = [[${snapDto1}]]; |
| | | var snapDto2 = [[${snapDto2}]]; |
| | | var snapDto3 = [[${snapDto3}]]; |
| | | //é»è®¤æ¥è¯¢æ¶é´ |
| | | var startTime = [[${startTime}]]; |
| | | var endTime = [[${endTime}]]; |
| | | </script> |
| | | |
| | | <!-- å¼¹åºéç¥å --> |
| | | <div class="layui-tab-content" id="listNotice" style="display: none;"> |
| | |
| | | </div> |
| | | <!-- æµç¨å¼å¯¼ --> |
| | | <div class="rk-step-wrap fr" style="padding: unset;border-bottom: unset"> |
| | | <ul class="rk-step"> |
| | | <li id="progress-register" class="active rk-step-first"> |
| | | <ul class="rk-step" id="rk_progress" style="display: none;"> |
| | | <li id="rk-progress-register" class="rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-dengji.png}"/> |
| | | </span> |
| | | <p>å
¥åºç»è®°</p> |
| | | </li> |
| | | <li id="rk-progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="rk-progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>å
¥åºå¼ä»</p> |
| | | </li> |
| | | <li id="rk-progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="rk-progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-banli.png}"/> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | | <ul class="rk-step" id="ck_progress" style="display: none;"> |
| | | <li id="ck-progress-register" class="rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-dengji.png}"/> |
| | | </span> |
| | | <p>å
¥åºç»è®°</p> |
| | | <p>åºåºç»è®°</p> |
| | | </li> |
| | | <li id="progress-fullWeight"> |
| | | <li id="ck-progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="ck-progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>åºåºå¼ä»</p> |
| | | </li> |
| | | <li id="ck-progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="progress-hand" class=""> |
| | | <li id="ck-progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>å
¥åºå¼ä»</p> |
| | | </li> |
| | | <li id="progress-emptyWeight" class=""> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{/img/web/inout/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | <img th:src="@{/img/web/inout/icon-banli.png}"/> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | <form class="layui-form" action="" id="form-data" |
| | | lay-filter="form-data"> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="id"> |
| | | <label class="layui-form-label">éè-åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="id" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="progress"> |
| | | <label class="layui-form-label">éè-æµç¨èç¹</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="progress" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="type"> |
| | | <label class="layui-form-label">éè-éç¥åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="noticeId" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="foodLocationId"> |
| | | <label class="layui-form-label">éè-产å°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="foodLocationId" |
| | | autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="noticeId"> |
| | | <label class="layui-form-label">éè-ç±»å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="type" th:value="${type}" |
| | | autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item display-none"> |
| | | <input type="text" name="foodType"> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red" id="depotIdLabel">è£
å¸ä»åº</label> |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ°´å</label> |
| | | <label class="layui-form-label">æ°´ å</label> |
| | | <div class="layui-input-block"> |
| | | <input id="perWet" type="text" name="perWet" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ£é</label> |
| | | <label class="layui-form-label">æ£ é</label> |
| | | <div class="layui-input-block"> |
| | | <input id="deOther" type="text" name="deOther" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">åä»·</label> |
| | | <label class="layui-form-label">å ä»·</label> |
| | | <div class="layui-input-block"> |
| | | <input id="price" type="text" name="price" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <label class="layui-form-label">æ è´¨</label> |
| | | <div class="layui-input-block"> |
| | | <input id="perImpurity" type="text" name="perImpurity" autocomplete="off" |
| | | placeholder="请è¾å
¥" class="layui-input weight"> <em |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">å
¥åºéé</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="recordWeight" placeholder="èªå¨è®¡ç®" |
| | | <input type="text" name="recordWeight" placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" |
| | | autocomplete="off" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">ç»ç®éé</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="settleWeight" placeholder="èªå¨è®¡ç®" |
| | | <input type="text" name="settleWeight" placeholder="èªå¨è®¡ç®ï¼ä¸å¯ç¼è¾" |
| | | autocomplete="off" class="layui-input rkbk-search-input" |
| | | disabled> <em class="kccz-data-dw">KG</em> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-col-xs12"> |
| | | <div style="height: 40px" id="btn_register"> |
| | | <input type="button" value="读身份è¯" style="height: 34px;line-height: 34px;right: 120px;width: 100px" |
| | | <input type="button" value="读身份è¯" |
| | | style="height: 34px;line-height: 34px;right: 120px;width: 100px;" |
| | | class="rkbk-search-btn layui-btn" onclick="flushIdCard()"> |
| | | <input type="button" value="读车ç" style="height: 34px;line-height: 34px;width: 100px" |
| | | class="rkbk-search-btn layui-btn" onclick="flushData(null,null)"> |
| | | <input type="button" value="读车ç" |
| | | style="height: 34px;line-height: 34px;width: 100px;" |
| | | class="rkbk-search-btn layui-btn" onclick="flushPlateNum()"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">æ¿è¿äºº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userName1" placeholder="请è¾å
¥" class="layui-input"> |
| | | <input type="text" name="userName" placeholder="请è¾å
¥" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">身份è¯å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="userId1" id="userId1" placeholder="请è¾å
¥" |
| | | <input type="text" name="userId" id="userId" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label color-red">车çå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="plateNum1" id="plateNum1" placeholder="请è¾å
¥" |
| | | <input type="text" name="plateNum" id="plateNum" placeholder="请è¾å
¥" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs8" style="padding-left: 50px;color: #2ab5ad;margin-top: -5px"> |
| | | <div class="layui-col-xs8" style="padding-left: 50px;color: #2ab5ad;"> |
| | | 说æï¼ |
| | | <span style="color: #2ab5ad;">1. åé=æ¯é-ç®éï¼å
¥åºéé=ç»ç®éé=åé-æ£éï¼</span> |
| | | <span style="color: #2ab5ad;"> |
| | | 1. åé=æ¯é-ç®éï¼å
¥åºéé=ç»ç®éé=åé-æ£éï¼ |
| | | </span> |
| | | </div> |
| | | </form> |
| | | </div> |