Merge remote-tracking branch 'origin/master'
已重命名2个文件
已添加24个文件
已修改23个文件
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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>"; |
| | | } |
| | |
| | | // æµç¨-夿¡ï¼è¡¨ç¤ºæµç¨æ´ä½å®æå夿¡ï¼ |
| | | public static final String PROGRESS_RECORD = "RECORD"; |
| | | |
| | | // æ°æ®ç¶æ-æ£å¸¸ |
| | | public static final String RECORD_STATUS_NORMAL = "NORMAL"; |
| | | |
| | | // æ°æ®ç¶æ-è¡¥å½ |
| | | public static final String RECORD_STATUS_ADD = "ADD"; |
| | | // æ°æ®ç¶æ-å·²å é¤ |
| | | public static final String RECORD_STATUS_DEL = "DEL"; |
| | | |
| | | /** |
| | | * åºå
¥åºé
ç½®çç±»å 10 = 车çè¯å« |
| | | */ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 = ""; |
| | | |
| | | |
| | | } |
| | |
| | | /** |
| | | * æå±åå |
| | | */ |
| | | private String contractName; |
| | | private String contract; |
| | | |
| | | } |
| | |
| | | |
| | | private String depotId; |
| | | |
| | | private String key; |
| | | |
| | | private String deptId;// æå±ååº |
| | | |
| | | private String customerName;// 客æ·åç§° |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 id; |
| | | |
| | | @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; |
| | | |
| | | @Column(name = "file_path", columnDefinition = "varchar(200) COMMENT 'æä»¶å
¨è·¯å¾'") |
| | | @TableField("file_path") |
| | | private String filePath; |
| | | |
| | | } |
| | |
| | | @TableField("settle_money") |
| | | private Double settleMoney = 0.00; |
| | | |
| | | @Column(name = "settle_id", columnDefinition = "varchar(40) COMMENT 'ç»ç®åå·'") |
| | | @TableField("settle_id") |
| | | private String settleId; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Column(name = "settle_time", columnDefinition = "datetime COMMENT 'ç»ç®æ¶é´'") |
| | | @TableField("settle_time") |
| | |
| | | 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; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.fzzy.igds.domain.FileInfo; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/12/05 15:48 |
| | | */ |
| | | @Mapper |
| | | public interface FileMapper extends BaseMapper<FileInfo> { |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®IDæ¥è¯¢åºåºä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Dept getDeptById(String id) { |
| | | |
| | | return coreDeptMapper.selectById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ææ´æ°åºåºä¿¡æ¯ |
| | | * @param sysDept |
| | | * @param isAdd |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.fzzy.igds.domain.FileInfo; |
| | | import com.fzzy.igds.mapper.FileMapper; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.config.FrameworkConfig; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import javax.annotation.Resource; |
| | | import javax.imageio.ImageIO; |
| | | import java.awt.*; |
| | | import java.awt.image.BufferedImage; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/12/4 17:36 |
| | | */ |
| | | @Service |
| | | public class FileService { |
| | | |
| | | @Resource |
| | | private FileMapper fileMapper; |
| | | |
| | | /** |
| | | * 弿¥æ§è¡éä»¶ä¿å |
| | | * @param files éä»¶ä¿¡æ¯ |
| | | * @param bizId ä¸å¡id |
| | | * @param bizTag æ ç¾ |
| | | * @param pathTag æä»¶è·¯å¾æ è¯ |
| | | */ |
| | | @Async |
| | | public void saveInoutFiles(List<FileInfo> files, String bizId, String bizTag, String pathTag) { |
| | | |
| | | if (null == files || files.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | for (FileInfo data : files) { |
| | | // å¦ææ²¡æéä»¶åç§°ï¼åä¸ä¿åéä»¶ä¿¡æ¯ |
| | | if (StringUtils.isBlank(data.getFileName())) { |
| | | continue; |
| | | } |
| | | |
| | | data.setId(ContextUtil.generateId()); |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | |
| | | //æä»¶å
¨è·¯å¾ |
| | | String filePath = getFileSavePath(pathTag) + data.getFileName(); |
| | | filePath = filePath.replace(FrameworkConfig.getProfile(), "/profile/"); |
| | | data.setFilePath(filePath); |
| | | |
| | | if (StringUtils.isNotEmpty(bizId)) { |
| | | data.setBizId(bizId); |
| | | } |
| | | if (StringUtils.isNotEmpty(bizTag)) { |
| | | data.setBizTag(bizTag); |
| | | } |
| | | |
| | | data.setCreateTime(new Date()); |
| | | data.setCreateBy(ContextUtil.getLoginUserName()); |
| | | |
| | | data.setUpdateTime(new Date()); |
| | | data.setUpdateBy(ContextUtil.getLoginUserName()); |
| | | fileMapper.insert(data); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢æ°æ® |
| | | * @param companyId |
| | | * @param deptId |
| | | * @param bizId |
| | | * @return |
| | | */ |
| | | public List<FileInfo> listFile(String companyId, String deptId, String bizId, String bizTag) { |
| | | QueryWrapper<FileInfo> queryWrapper = new QueryWrapper<>(); |
| | | if (StringUtils.isNotBlank(companyId)) { |
| | | queryWrapper.eq("company_id", companyId); |
| | | } |
| | | if (StringUtils.isNotBlank(deptId)) { |
| | | queryWrapper.eq("dept_id", deptId); |
| | | } |
| | | if (StringUtils.isNotBlank(bizId)) { |
| | | queryWrapper.eq("biz_id", bizId); |
| | | } |
| | | if (StringUtils.isNotBlank(bizTag)) { |
| | | queryWrapper.eq("biz_tag", bizTag); |
| | | } |
| | | return fileMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param id |
| | | */ |
| | | public void delFile(String id) { |
| | | fileMapper.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºå
¥åºæä»¶è·¯å¾ |
| | | * @param pathTag |
| | | * @return |
| | | */ |
| | | public String getFileSavePath(String pathTag) { |
| | | if(StringUtils.isBlank(pathTag)){ |
| | | pathTag = "COMMON"; |
| | | } |
| | | if("INOUT".equals(pathTag)) return getInoutFilePath(); |
| | | if("PATROL".equals(pathTag)) return getPatrolFilePath(); |
| | | if("DEPT".equals(pathTag)) return getDeptFilePath(); |
| | | |
| | | return getCommonFilePath(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºå
¥åºæä»¶è·¯å¾ |
| | | * @return |
| | | */ |
| | | public String getPatrolFilePath() { |
| | | String basePath = FrameworkConfig.getProfile() + "INOUT/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/"; |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * è·ååºå
¥åºæä»¶è·¯å¾ |
| | | * @return |
| | | */ |
| | | public String getInoutFilePath() { |
| | | String basePath = FrameworkConfig.getProfile() + "INOUT/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/"; |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * è·ååºåºè·¯å¾ä¸æä»¶ |
| | | * @return |
| | | */ |
| | | public String getDeptFilePath() { |
| | | |
| | | String basePath = FrameworkConfig.getProfile() + "IMG/"+ FrameworkConfig.getCompanyId() + "/SECURITY/"; |
| | | |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * è·åå
Œ
±è·¯å¾ |
| | | * @return |
| | | */ |
| | | public String getCommonFilePath() { |
| | | |
| | | String basePath = FrameworkConfig.getProfile() + "COMMON/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/"; |
| | | |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * å缩å¾ç |
| | | * |
| | | * @param filePath å缩åè·¯å¾ |
| | | * @param scale å缩æ¯ä¾ |
| | | * @param outputPath å缩åè·¯å¾ |
| | | * @throws IOException |
| | | */ |
| | | public void compressedImage(String filePath, double scale, String outputPath) throws IOException { |
| | | BufferedImage bufferedImage = ImageIO.read(new File(filePath)); |
| | | int newWidth = (int) (bufferedImage.getWidth() * scale); |
| | | int newHeight = (int) (bufferedImage.getHeight() * scale); |
| | | |
| | | //å建å缩åçå¾ç |
| | | BufferedImage compressedImage = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB); |
| | | Graphics2D graphics2D = compressedImage.createGraphics(); |
| | | |
| | | //ç»å¶åå§å¾çå°å缩åçå¾çä¸ |
| | | graphics2D.drawImage(bufferedImage, 0, 0, newWidth, newHeight, null); |
| | | graphics2D.dispose(); |
| | | |
| | | ImageIO.write(compressedImage, "jpg", new File(outputPath)); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢ |
| | | * @param companyId |
| | | * @param deptId |
| | | * @param completeStatus |
| | | * @return |
| | | */ |
| | | public List<InoutNoticeIn> getNoticeIn(String companyId, String deptId, String completeStatus) { |
| | | public List<InoutNoticeIn> getNoticeIn(NoticeParam param) { |
| | | |
| | | QueryWrapper<InoutNoticeIn> queryWrapper = new QueryWrapper<>(); |
| | | if(StringUtils.isNotBlank(companyId)){ |
| | | queryWrapper.eq("company_id", companyId); |
| | | if(StringUtils.isNotBlank(param.getCompanyId())){ |
| | | queryWrapper.eq("company_id", param.getCompanyId()); |
| | | } |
| | | if(StringUtils.isNotBlank(deptId)){ |
| | | queryWrapper.eq("dept_id", deptId); |
| | | if(StringUtils.isNotBlank(param.getDeptId())){ |
| | | queryWrapper.eq("dept_id", param.getDeptId()); |
| | | } |
| | | if(StringUtils.isNotBlank(completeStatus)){ |
| | | queryWrapper.eq("complete_status", completeStatus); |
| | | if(StringUtils.isNotBlank(param.getCompleteStatus())){ |
| | | queryWrapper.eq("complete_status", param.getCompleteStatus()); |
| | | } |
| | | if(StringUtils.isNotBlank(param.getKey())){ |
| | | queryWrapper.like("name", param.getKey()); |
| | | } |
| | | queryWrapper.orderByDesc("create_time"); |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public List<InoutNoticeIn> listNoticeIn(String companyId, String deptId) { |
| | | return this.getNoticeIn(companyId, deptId, Constant.COMPLETE_STATUS_NONE); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param companyId |
| | | * @return |
| | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | return this.getNoticeIn(companyId, null, Constant.COMPLETE_STATUS_NONE); |
| | | NoticeParam param = new NoticeParam(); |
| | | param.setCompanyId(companyId); |
| | | param.setCompleteStatus(Constant.COMPLETE_STATUS_NONE); |
| | | return this.getNoticeIn(param); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢ |
| | | * @param companyId |
| | | * @param deptId |
| | | * @param completeStatus |
| | | * @return |
| | | */ |
| | | public List<InoutNoticeOut> getNoticeOut(String companyId, String deptId, String completeStatus) { |
| | | |
| | | public List<InoutNoticeOut> getNoticeOut(NoticeParam param) { |
| | | QueryWrapper<InoutNoticeOut> queryWrapper = new QueryWrapper<>(); |
| | | if(StringUtils.isNotBlank(companyId)){ |
| | | queryWrapper.eq("company_id", companyId); |
| | | if(StringUtils.isNotBlank(param.getCompanyId())){ |
| | | queryWrapper.eq("company_id", param.getCompanyId()); |
| | | } |
| | | if(StringUtils.isNotBlank(deptId)){ |
| | | queryWrapper.eq("dept_id", deptId); |
| | | if(StringUtils.isNotBlank(param.getDeptId())){ |
| | | queryWrapper.eq("dept_id", param.getDeptId()); |
| | | } |
| | | if(StringUtils.isNotBlank(completeStatus)){ |
| | | queryWrapper.eq("complete_status", completeStatus); |
| | | if(StringUtils.isNotBlank(param.getCompleteStatus())){ |
| | | queryWrapper.eq("complete_status", param.getCompleteStatus()); |
| | | } |
| | | if(StringUtils.isNotBlank(param.getKey())){ |
| | | queryWrapper.like("name", param.getKey()); |
| | | } |
| | | queryWrapper.orderByDesc("create_time"); |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ® |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public List<InoutNoticeOut> listNoticeOut(String companyId, String deptId) { |
| | | return this.getNoticeOut(companyId, deptId, Constant.COMPLETE_STATUS_NONE); |
| | | } |
| | | |
| | | /** |
| | | * Mybatis-plus è·åä¿¡æ¯ |
| | | * @param companyId |
| | | * @return |
| | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | return this.getNoticeOut(companyId, null,Constant.COMPLETE_STATUS_NONE); |
| | | NoticeParam param = new NoticeParam(); |
| | | param.setCompanyId(companyId); |
| | | param.setCompleteStatus(Constant.COMPLETE_STATUS_NONE); |
| | | return this.getNoticeOut(param); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.fzzy.igds.bill.InoutBill; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.FoodVariety; |
| | | import com.fzzy.igds.constant.RedisConst; |
| | | import com.fzzy.igds.data.InoutData; |
| | | import com.fzzy.igds.data.InoutParam; |
| | | import com.fzzy.igds.data.InoutPrintBill; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.domain.InoutRecord; |
| | | import com.fzzy.igds.mapper.InoutRecordMapper; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.igds.utils.DateUtil; |
| | | import com.fzzy.igds.utils.NumberUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.text.DecimalFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | @Resource |
| | | private InoutRecordMapper inoutRecordMapper; |
| | | @Resource |
| | | private FileService fileService; |
| | | @Resource |
| | | private SysDeptService sysDeptService; |
| | | @Resource |
| | | private DepotService depotService; |
| | | @Resource |
| | | private RedisCache redisCache; |
| | | |
| | | /** |
| | |
| | | * @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.like("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()); |
| | |
| | | if (null != param.getEnd()) { |
| | | queryWrapper.le("create_time", DateUtil.getNextZero(param.getEnd())); |
| | | } |
| | | queryWrapper.eq("record_status", "NORMAL"); //æ£å¸¸ç¶æçåå |
| | | queryWrapper.eq("record_status", Constant.RECORD_STATUS_NORMAL); //æ£å¸¸ç¶æçåå |
| | | queryWrapper.or(); |
| | | queryWrapper.eq("record_status", Constant.RECORD_STATUS_ADD); //è¡¥å½ååçåå |
| | | queryWrapper.orderByDesc("create_time"); |
| | | |
| | | return queryWrapper; |
| | |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®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); |
| | | } |
| | | |
| | | /** |
| | |
| | | queryWrapper.eq("plate_num", plateNum); |
| | | queryWrapper.ne("progress", Constant.PROGRESS_RECORD); |
| | | queryWrapper.eq("record_status", "NORMAL"); |
| | | queryWrapper.or(); |
| | | queryWrapper.eq("record_status", Constant.RECORD_STATUS_ADD); //è¡¥å½ååçåå |
| | | |
| | | return inoutRecordMapper.selectCount(queryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * æå¨è¡¥å |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String handAddInoutRecord(InoutData data) { |
| | | |
| | | //è¡¥åæ°æ®ç´æ¥å°ç»æç¶æ |
| | | data.setRecordStatus(Constant.RECORD_STATUS_ADD); |
| | | data.setProgress(Constant.PROGRESS_RECORD); |
| | | if(null != data.getPerWet() && data.getPerWet() > 0){ |
| | | data.setCheckStatus(Constant.STATUS_CHECK); |
| | | } |
| | | String loginUser = ContextUtil.getLoginUserName(); |
| | | if (StringUtils.isEmpty(data.getRegisterUser())) { |
| | | data.setRegisterUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getFullWeightUser())) { |
| | | data.setFullWeightUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getEmptyWeightUser())) { |
| | | data.setEmptyWeightUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getHandleUser())) { |
| | | data.setHandleUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getCompleteUser())) { |
| | | data.setCompleteUser(loginUser); |
| | | } |
| | | |
| | | if (null == data.getCompleteTime()) { |
| | | data.setCompleteTime(new Date()); |
| | | } |
| | | |
| | | InoutRecord record = new InoutRecord(); |
| | | BeanUtils.copyProperties(data, record); |
| | | //ä¿å |
| | | int num = this.addInoutRecord(record); |
| | | |
| | | //éä»¶å¤ç |
| | | fileService.saveInoutFiles(data.getFiles(), record.getId(), null, "INOUT"); |
| | | |
| | | if (num > 0) { |
| | | return null; |
| | | } else { |
| | | return "ä¿å失败ï¼"; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | //updateInoutCache(data); |
| | | return num; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * å¼å¸¸ç»æ¢ |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String errorInoutData(InoutRecord data) { |
| | | |
| | | InoutParam param = new InoutParam(); |
| | | param.setId(data.getId()); |
| | | data = this.selectOne(param); |
| | | if (Constant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return "å½åä¿¡æ¯å·²åå¼å¸¸å¤çï¼ä¸æ¯æé夿§è¡ï¼"; |
| | | } |
| | | |
| | | String msg = " äº" + DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm") + " 被 " + ContextUtil.getLoginUserName() + " æ§è¡ç»æ¢ï¼åå ï¼" + data.getRemarks(); |
| | | |
| | | data.setRemarks(msg); |
| | | data.setProgress(Constant.PROGRESS_RECORD); |
| | | data.setRecordStatus(Constant.RECORD_STATUS_DEL); |
| | | data.setCompleteTime(new Date()); |
| | | |
| | | int i = this.updateInoutRecord(data); |
| | | |
| | | //TODO å é¤ç¼å |
| | | |
| | | if(i > 0){ |
| | | return null; |
| | | }else { |
| | | return "æä½å¤±è´¥ï¼"; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¥åºè¿ç£
åæ°æ®ä¿¡æ¯ |
| | | * |
| | | * @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()); |
| | | |
| | | 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()); |
| | | |
| | | 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()); |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | <!-- <dependency> |
| | | <groupId>commons-lang</groupId> |
| | | <artifactId>commons-lang</artifactId> |
| | | <version>2.6</version> |
| | | </dependency>--> |
| | | <dependency> |
| | | <groupId>com.bstek.dorado</groupId> |
| | | <artifactId>dorado-uploader</artifactId> |
| | | <version>1.0.20</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <artifactId>slf4j-jcl</artifactId> |
| | | <groupId>org.slf4j</groupId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <artifactId>slf4j-log4j12</artifactId> |
| | | <groupId>org.slf4j</groupId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <artifactId>log4j</artifactId> |
| | | <groupId>log4j</groupId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <artifactId>slf4j-jdk14</artifactId> |
| | | <groupId>org.slf4j</groupId> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.commons</groupId> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.utils.Base64Util; |
| | | import com.fzzy.igds.domain.FileInfo; |
| | | import com.fzzy.igds.service.FileService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description æä»¶ä¸ä¼ |
| | | * @Author CZT |
| | | * @Date 2025/11/29 11:02 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class FilePR { |
| | | |
| | | @Resource |
| | | private FileService fileService; |
| | | |
| | | /** |
| | | * filePR#parseExcel |
| | | * |
| | | * @param fileName |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public String parseExcel(String fileName) { |
| | | return fileName; |
| | | } |
| | | |
| | | /** |
| | | * filePR#listFile æ ¹æ®æ¡ä»¶è·ååè¡¨æ°æ® |
| | | * |
| | | * @param bizId |
| | | * @param bizId |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<FileInfo> listFile(String bizId) { |
| | | if (null == bizId){ |
| | | return null; |
| | | } |
| | | |
| | | return fileService.listFile(ContextUtil.getCompanyId(),ContextUtil.subDeptId(null), bizId, null); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * filePR#getImg |
| | | * è·åå¾çä¿¡æ¯ |
| | | * |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public Map<String, String> getImg(FileInfo file) { |
| | | Map<String, String> result = new HashMap<String, String>(); |
| | | result.put("code", "SUCCESS"); |
| | | String basePath = fileService.getFileSavePath("COMMON"); |
| | | |
| | | String imgData = Base64Util.getImageStr(basePath + file.getFileName()); |
| | | |
| | | if (null == imgData) { |
| | | result.put("code", "ERROR"); |
| | | } |
| | | result.put("data", imgData); |
| | | return result; |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds; |
| | | |
| | | import com.bstek.dorado.uploader.UploadFile; |
| | | import com.bstek.dorado.uploader.annotation.FileResolver; |
| | | import com.fzzy.igds.service.FileService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * @Description Dorado7 éä»¶ä¸ä¼ å
Œ
±ç®¡çå± |
| | | * @Author CZT |
| | | * @Date 2025/12/05 10:05 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class FileUploadManage { |
| | | |
| | | @Resource |
| | | private FileService fileService; |
| | | |
| | | /** |
| | | * ä¸ä¼ åºåºé¸ç°å¾ |
| | | * fileUploadManage#imgFile |
| | | * |
| | | * @param file |
| | | * @param parameter |
| | | * @return |
| | | */ |
| | | @FileResolver |
| | | public String imgFile(UploadFile file, Map<String, Object> parameter) { |
| | | |
| | | String fileId = null; |
| | | try { |
| | | |
| | | String basePath = fileService.getFileSavePath("DEPT"); |
| | | |
| | | fileId = "aerial-" + ContextUtil.subDeptId(null) |
| | | + file.getFileName().substring( |
| | | file.getFileName().lastIndexOf(".")); |
| | | |
| | | file.transferTo(new File(basePath + fileId)); |
| | | |
| | | } catch (IllegalStateException e) { |
| | | e.printStackTrace(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | return fileId; |
| | | } |
| | | |
| | | /** |
| | | * ä¸ä¼ åºå
¥åºéä»¶ |
| | | * fileUploadManage#inoutFile |
| | | * |
| | | * @param file |
| | | * @param parameter |
| | | * @return |
| | | */ |
| | | @FileResolver |
| | | public String inoutFile(UploadFile file, Map<String, Object> parameter) { |
| | | //æµç¨ |
| | | String bizTag = (String) parameter.get("bizTag"); |
| | | String newFileName = null; |
| | | try { |
| | | String basePath = fileService.getFileSavePath("INOUT"); |
| | | // è·åæ°çID |
| | | newFileName = DateFormatUtils.format(new Date(), "yyyyMMddHHmmss"); |
| | | if(StringUtils.isNotEmpty(bizTag)){ |
| | | newFileName = bizTag + "_" + newFileName; |
| | | } |
| | | // æä»¶åç¼å |
| | | String suffixName = file.getFileName().substring(file.getFileName().lastIndexOf(".")); |
| | | // åææ°çæä»¶å |
| | | |
| | | newFileName = newFileName + suffixName; |
| | | file.transferTo(new File(basePath + newFileName)); |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return newFileName; |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.InoutData; |
| | | import com.fzzy.igds.data.InoutParam; |
| | | import com.fzzy.igds.domain.InoutRecord; |
| | | import com.fzzy.igds.service.InoutRecordService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description åºå
¥åºè¯¦å页é¢ç®¡ç |
| | | * @Author CZT |
| | | * @Date 2025/12/05 10:40 |
| | | */ |
| | | @Component |
| | | public class InoutDataPR { |
| | | |
| | | @Resource |
| | | private InoutRecordService inoutRecordService; |
| | | |
| | | /** |
| | | * inoutDataPR#pageInoutData |
| | | * |
| | | * @param page |
| | | * @param param |
| | | * @throws Exception |
| | | */ |
| | | @DataProvider |
| | | public void pageInoutData(Page<InoutRecord> page, InoutParam param) { |
| | | com.baomidou.mybatisplus.extension.plugins.pagination.Page<InoutRecord> corePage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(page.getPageNo(), page.getPageSize()); |
| | | |
| | | if(null == param) { |
| | | param = new InoutParam(); |
| | | } |
| | | inoutRecordService.listPageInout(corePage, param); |
| | | |
| | | // éæ°å°è£
|
| | | page.setEntities(corePage.getRecords()); |
| | | page.setEntityCount(Integer.parseInt(String.valueOf(corePage.getTotal()))); |
| | | } |
| | | |
| | | /** |
| | | * ä¿ååºå
¥åºæ°æ® inoutDataPR#saveInoutData |
| | | */ |
| | | @DataResolver |
| | | public String saveInoutData(InoutRecord data) { |
| | | if (Constant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return "ç³»ç»ï¼å·²ç»å é¤çæ°æ®ä¸æ¯æä¿®æ¹ï¼"; |
| | | } |
| | | if (!Constant.PROGRESS_RECORD.equals(data.getProgress())) { |
| | | return "ç³»ç»ï¼æªç»ææµç¨çæ°æ®ä¸æ¯æä¿®æ¹ï¼"; |
| | | } |
| | | int i = inoutRecordService.updateInoutRecord(data); |
| | | if (i > 0) { |
| | | return null; |
| | | } else { |
| | | return "ä¿å失败ï¼"; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * inoutDataPR#errorInoutData åºå
¥åºæ°æ®æ§è¡ å¼å¸¸ç»æ¢ |
| | | * |
| | | * @param data |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | public String errorInoutData(InoutRecord data) { |
| | | return inoutRecordService.errorInoutData(data); |
| | | } |
| | | |
| | | /** |
| | | * inoutDataPR#printWeightBill è·åæå°åä¿¡æ¯ |
| | | * |
| | | * @param data |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Expose |
| | | public String printWeightBill(InoutRecord data) { |
| | | if (Constant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return "å é¤çæ°æ®ä¸æ¯ææå°ï¼"; |
| | | } |
| | | if (!Constant.PROGRESS_RECORD.equals(data.getProgress())) { |
| | | return "æªå®æçæ°æ®ä¸æ¯ææå°ï¼"; |
| | | } |
| | | |
| | | if (Constant.TYPE_IN.equals(data.getType())) { |
| | | return inoutRecordService.inWeightBill(data); |
| | | } else { |
| | | return inoutRecordService.outWeightBill(data); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * inoutDataPR#initDataByHand æ°å¢ |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public InoutData initDataByHand(String type) { |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | InoutData data = new InoutData(); |
| | | data.setCompanyId(user.getCompanyId()); |
| | | data.setRegisterTime(new Date()); |
| | | data.setType(type); |
| | | data.setRegisterUser(user.getUserName()); |
| | | data.setDeptId(ContextUtil.subDeptId(user)); |
| | | data.setCheckUser(user.getUserName()); |
| | | data.setProgress(Constant.PROGRESS_RECORD); |
| | | data.setRecordStatus(Constant.RECORD_STATUS_ADD); |
| | | return data; |
| | | } |
| | | |
| | | /** |
| | | * è¡¥å inoutDataPR#addData |
| | | */ |
| | | @DataResolver |
| | | public String addData(InoutData data) { |
| | | if (data.getSettleWeight() <= 0.0) { |
| | | return "ç³»ç»ï¼ç»ç®ééå¿
须大äº0"; |
| | | } |
| | | |
| | | return inoutRecordService.handAddInoutRecord(data); |
| | | } |
| | | |
| | | /** |
| | | * inoutDataPR#printWeightBill è·åæå°åä¿¡æ¯ |
| | | * |
| | | * @param data |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Expose |
| | | public String printWeightBillHand(InoutData data) { |
| | | if (Constant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return "å é¤çæ°æ®ä¸æ¯ææå°ï¼"; |
| | | } |
| | | if (!Constant.PROGRESS_RECORD.equals(data.getProgress())) { |
| | | return "æªå®æçæ°æ®ä¸æ¯ææå°ï¼"; |
| | | } |
| | | |
| | | if (Constant.TYPE_IN.equals(data.getType())) { |
| | | return inoutRecordService.inWeightBill(data); |
| | | } else { |
| | | return inoutRecordService.outWeightBill(data); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.data.InoutData</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">åæ®å·</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="progress"> |
| | | <Property></Property> |
| | | <Property name="label">æµç¨è¿åº¦</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("PROCESS_STATUS_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordStatus"> |
| | | <Property></Property> |
| | | <Property name="label">æ°æ®ç¶æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("RECORD_STATUS")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkStatus"> |
| | | <Property></Property> |
| | | <Property name="label">æ¦æ ·ç»æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("CHECK_STATUS")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="registerTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">ç»è®°æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="registerUser"> |
| | | <Property></Property> |
| | | <Property name="label">ç»è®°äººå</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userName"> |
| | | <Property></Property> |
| | | <Property name="label">æ¿è¿äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userId"> |
| | | <Property></Property> |
| | | <Property name="label">身份è¯å·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userContact"> |
| | | <Property></Property> |
| | | <Property name="label">èç³»æ¹å¼</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userAddress"> |
| | | <Property></Property> |
| | | <Property name="label">æ¿è¿äººå°å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="plateNum"> |
| | | <Property></Property> |
| | | <Property name="label">车çå·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerName"> |
| | | <Property></Property> |
| | | <Property name="label">徿¥åä½</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£äº§å°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodYear"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£å¹´ä»½</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deOther"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ£é</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">满车称é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullWeightTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">满车称æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullWeightUser"> |
| | | <Property></Property> |
| | | <Property name="label">满车称é人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="emptyWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">空车称é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="emptyWeightTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">空车称æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="emptyWeightUser"> |
| | | <Property></Property> |
| | | <Property name="label">空车称é人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="netWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">åé</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ç»ç®åé</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">å
¥åºéé</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="handleStart"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å¼ä»å¼å§æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="handleEnd"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å¼ä»ç»ææ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="handleUser"> |
| | | <Property></Property> |
| | | <Property name="label">å¼ä»æä½äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="completeTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">宿æ¶é´</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="completeUser"> |
| | | <Property></Property> |
| | | <Property name="label">å®æç¡®è®¤äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨ä¿¡æ¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ååº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#getAllData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">kqmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">è£
å¸ä»åº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">åºå
¥åºç±»å</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">åºåº</Property> |
| | | <Property name="value">OUT</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å
¥åº</Property> |
| | | <Property name="value">IN</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£ç级</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerFoodLevel").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkUser"> |
| | | <Property></Property> |
| | | <Property name="label">è´¨æ£äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="price"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="label">ç²®é£å®ä»·</Property> |
| | | <Property name="displayFormat">0.00 å
/å
¬æ¤</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="noticeId"> |
| | | <Property></Property> |
| | | <Property name="label">éç¥åç¼ç </Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocationId"> |
| | | <Property></Property> |
| | | <Property name="label">产å°å称代ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">è´¨æ£æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="perWet"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ°´å</Property> |
| | | <Property name="displayFormat">0.00 %</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="perImpurity"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æè´¨</Property> |
| | | <Property name="displayFormat">0.00 %</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleMoney"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ç»ç®éé¢</Property> |
| | | <Property name="displayFormat">0.00 å
</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleTag"> |
| | | <Property></Property> |
| | | <Property name="label">æ¯å¦ç»ç®</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">æªç»ç®</Property> |
| | | <Property name="value">N</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å·²ç»ç®</Property> |
| | | <Property name="value">Y</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">ç»ç®æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å建æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createBy"> |
| | | <Property></Property> |
| | | <Property name="label">å建人</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateBy"> |
| | | <Property></Property> |
| | | <Property name="label">æ´æ°äºº</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <Reference name="files"> |
| | | <Property name="dataProvider">filePR#listFile</Property> |
| | | <Property name="dataType">[dtFileData]</Property> |
| | | <Property name="parameter">$${this.id}</Property> |
| | | </Reference> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">var TYPE = "${request.getParameter('type')}";
 |
| | | var PROGRESS = "WEIGHT_TAG";
 |
| | | 
 |
| | | /**
 |
| | | * å·æ°é¡µé¢
 |
| | | */
 |
| | | flush = function(){
 |
| | | view.get("#btnSave").set("disabled",false);
 |
| | | view.get("#btnPrintWeigh").set("disabled",true);
 |
| | | view.get("#dsMain").set("parameter",TYPE).flushAsync();
 |
| | | };
 |
| | | flush();
 |
| | | 
 |
| | | /**
 |
| | | * æ°æ®ä¿åæäº¤
 |
| | | */
 |
| | | save = function(){
 |
| | | var data = view.get("#dsMain.data");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $alert("æ°æ®éªè¯å¤±è´¥ï¼è¯·æ¥çãåºç¡ä¿¡æ¯ããæ¦æ ·åéªä¿¡æ¯ãä¸çº¢è²æéï¼");
 |
| | | return;
 |
| | | }
 |
| | | var netWeight = data.get("netWeight");
 |
| | | if(netWeight <= 0){
 |
| | | $alert("æ°æ®éªè¯å¤±è´¥ï¼ãåºç¡ä¿¡æ¯ã-ç»ç®ééå¿
须大äº0ï¼");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert("ä¿å失败ï¼"+result);
 |
| | | }else{
 |
| | | view.get("#btnSave").set("disabled",true);
 |
| | | view.get("#btnPrintWeigh").set("disabled",false);
 |
| | | $alert("ä¿åæåï¼å¯ä»¥è¿è¡æå°åéæ°ææ°è¡¨åï¼");
 |
| | | flush();
 |
| | | 
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | 
 |
| | | /**
 |
| | | * èªå¨è®¡ç®
 |
| | | * @param name
 |
| | | */
 |
| | | deAutoByWeight = function () {
 |
| | | 
 |
| | | var curData = view.get("#dsMain.data:#");
 |
| | | var fullWeight = curData.get("fullWeight");
 |
| | | var emptyWeight = curData.get("emptyWeight");
 |
| | | //æ£éä¿¡æ¯
 |
| | | var deOther = curData.get("deOther");
 |
| | | 
 |
| | | if (fullWeight == 0 || emptyWeight == 0) {
 |
| | | return;
 |
| | | }
 |
| | | // åé
 |
| | | var netWeight = Number(fullWeight) - Number(emptyWeight);
 |
| | | 
 |
| | | if (netWeight <= 0) {
 |
| | | $notify("åéå°äº0ï¼å½åç§°éåå¨é»è¾é®é¢");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | /** å
¥åºéé = åé - æ»æ£é */
 |
| | | recordWeight = Number(netWeight) - Number(deOther);
 |
| | | 
 |
| | | /** ç»ç®éé = åé - æ»æ£é + å¢é */
 |
| | | settleWeight = Number(recordWeight);
 |
| | | 
 |
| | | curData.set("netWeight", netWeight);
 |
| | | curData.set("settleWeight", settleWeight);
 |
| | | curData.set("recordWeight", recordWeight);
 |
| | | };
 |
| | | //å é¤éä»¶
 |
| | | delFile = function(){
 |
| | | var entity = view.get("#dgFiles").getCurrentItem();
 |
| | | view.get("#ajaxDelFile").set("parameter",{
 |
| | | fileName:entity.get("fileName"),
 |
| | | createTime:entity.get("createTime")
 |
| | | }).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | entity.remove();
 |
| | | $alert("å 餿åï¼");
 |
| | | }
 |
| | | });
 |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <Property name="javaScriptFile">./static/js/plugins/lodop/LodopFuncs.js</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">dtMain</Property> |
| | | <Property name="dataProvider">inoutDataPR#initDataByHand</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <ToolBar> |
| | | <ToolBarButton id="btnSave"> |
| | | <ClientEvent name="onClick">save();</ClientEvent> |
| | | <Property name="caption">æäº¤ä¿å</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton id="btnPrintWeigh"> |
| | | <ClientEvent name="onClick">printWeight();</ClientEvent> |
| | | <Property name="caption">æå°è¿ç£
å</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="disabled">true</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">flush();</ClientEvent> |
| | | <Property name="caption">å·æ°é¡µé¢</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | </Container> |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <TabControl id="tabControlMain" layoutConstraint="left"> |
| | | <Property name="width">1300</Property> |
| | | <ControlTab> |
| | | <Property name="caption">åºç¡ä¿¡æ¯</Property> |
| | | <Property name="iconClass">fa fa-download</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="name">tabCommon</Property> |
| | | <Container> |
| | | <FieldSet layoutConstraint="padding:2" layout="padding:5"> |
| | | <Property name="caption">åºæ¬ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- ç³»ç»èªå¨çæ --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="label">è£
å¸ä»åº</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userName</Property> |
| | | <Property name="property">userName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userId</Property> |
| | | <Property name="property">userId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">perWet</Property> |
| | | <Property name="property">perWet</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userContact</Property> |
| | | <Property name="property">userContact</Property> |
| | | <Property name="label">èç³»çµè¯</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">perImpurity</Property> |
| | | <Property name="property">perImpurity</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddDicArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="label">客æ·åç§°</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="editable">false</Property> |
| | | <Property name="trigger">ddNotice</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">noticeId</Property> |
| | | <Property name="property">noticeId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layoutConstraint="padding:2" layout="padding:5"> |
| | | <Property name="caption">ç§°éä¿¡æ¯ï¼åä½ï¼KGï¼</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,50,*,50,*,50</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent> |
| | | <Property name="name">fullWeight</Property> |
| | | <Property name="property">fullWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightTime</Property> |
| | | <Property name="property">fullWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightUser</Property> |
| | | <Property name="property">fullWeightUser</Property> |
| | | <Property name="label">满车称é人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent> |
| | | <Property name="name">emptyWeight</Property> |
| | | <Property name="property">emptyWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightTime</Property> |
| | | <Property name="property">emptyWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightUser</Property> |
| | | <Property name="property">emptyWeightUser</Property> |
| | | <Property name="label">空车称é人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent> |
| | | <Property name="name">deOther</Property> |
| | | <Property name="property">deOther</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">settleWeight</Property> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layoutConstraint="padding:2" layout="padding:5"> |
| | | <Property name="caption">å
¶ä»ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">settleMoney</Property> |
| | | <Property name="property">settleMoney</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">settleTime</Property> |
| | | <Property name="property">settleTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Container> |
| | | </ControlTab> |
| | | </TabControl> |
| | | <TabControl id="tabControlImage" layoutConstraint="left"> |
| | | <Property name="width">370</Property> |
| | | <ControlTab id="tabImage"> |
| | | <Property name="name">tabImage</Property> |
| | | <Property name="caption">åºå
¥åºè¿ç¨è®°å½</Property> |
| | | <FieldSet layoutConstraint="padding:10" layout="padding:5"> |
| | | <Buttons> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.PROGRESS = "WEIGHT_EMPTY";
 |
| | | </ClientEvent> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | <Property name="action">uploadImg</Property> |
| | | <Property name="caption">空车称ç
§ç</Property> |
| | | <Property name="width">110</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.PROGRESS = "WEIGHT_FULL";
 |
| | | </ClientEvent> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | <Property name="action">uploadImg1</Property> |
| | | <Property name="caption">满车称ç
§ç</Property> |
| | | <Property name="width">110</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.PROGRESS = "HANDLE";</ClientEvent> |
| | | <Property name="caption">å¼ä»ç
§ç</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | <Property name="action">uploadImg2</Property> |
| | | <Property name="width">110</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <DataGrid id="dgFiles"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="dataPath">#.files</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="bizTag"> |
| | | <Property name="property">bizTag</Property> |
| | | <Property name="visible">false</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fileName"> |
| | | <Property name="property">fileName</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javascript:;' onClick='delFile()'>å é¤</a>";
 |
| | | </ClientEvent> |
| | | <Property name="property">fileId</Property> |
| | | <Property name="name">fileId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">æä½</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="width">80</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | </FieldSet> |
| | | </ControlTab> |
| | | </TabControl> |
| | | </Container> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">inoutDataPR#addData</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æäº¤ä¹ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxPrint"> |
| | | <Property name="service">inoutDataPR#printWeightBillHand</Property> |
| | | <Property name="executingMessage">æ£å¨æ§è¡æå°â¦â¦</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddNotice"> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">noticeId=id,customerName=customerName</Property> |
| | | <Property name="minWidth">1000</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsNotice"> |
| | | <Property name="dataProvider">inoutNoticePR#queryNoticeByKey</Property> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="type">${request.getParameter('type')}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataType">[dtNoticeDto]</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key3"> |
| | | <Property name="blankText"> -- 客æ·åç§°æç¼ç --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key3.value");
 |
| | | var type = "${request.getParameter('type')}";
 |
| | | view.get("#dsNotice").set("parameter",{key: key,type: type}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsNotice</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="width">240</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="year"> |
| | | <Property name="property">year</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="contract"> |
| | | <Property name="property">contract</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <CustomDropDown id="ddDicArea"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name,foodLocationId=code</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsDicArea"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | <Property name="pageSize">1000</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -åç§°æç®æ¼ï¼åäº¬å¸ bjs -</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsDicArea").set("parameter",{key:key}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsDicArea.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddDicArea").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsDicArea.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddDicArea").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsDicArea</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsDicArea</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <UploadAction id="uploadImg"> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
; |
| | | var bizTag = "EMPTY";
 |
| | | self.set("parameter",{
 |
| | | bizTag: bizTag
 |
| | | })</ClientEvent> |
| | | <ClientEvent name="onFileUploaded">//éä»¶ä¸ä¼ 宿忷»å ä¸å¡æ°æ®
 |
| | | var mainData = view.get("#dsMain.data");
 |
| | | var fileName = arg.returnValue;
 |
| | | var files = mainData.get("files");
 |
| | | files.insert({bizTag:view.PROGRESS,fileName:fileName,createTime:new Date()});</ClientEvent> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | if(data){
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "EMPTY";
 |
| | | self.set("parameter",{
 |
| | | bizTag:bizTag
 |
| | | })
 |
| | | }</ClientEvent> |
| | | <Property name="maxFileSize">20MB</Property> |
| | | <Property name="successMessage">ä¸ä¼ æå</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="fileResolver">fileUploadManage#inoutFile</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <UploadAction id="uploadImg1"> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | 
 |
| | | var bizTag = "FULL";
 |
| | | self.set("parameter",{
 |
| | | bizTag: bizTag
 |
| | | })</ClientEvent> |
| | | <ClientEvent name="onFileUploaded">//éä»¶ä¸ä¼ 宿忷»å ä¸å¡æ°æ®
 |
| | | var mainData = view.get("#dsMain.data");
 |
| | | var fileName = arg.returnValue;
 |
| | | var files = mainData.get("files");
 |
| | | files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | if(data){
 |
| | | var bizTag = "FULL";
 |
| | | self.set("parameter",{
 |
| | | bizTag:bizTag
 |
| | | })
 |
| | | }</ClientEvent> |
| | | <Property name="maxFileSize">20MB</Property> |
| | | <Property name="successMessage">ä¸ä¼ æå</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="fileResolver">fileUploadManage#inoutFile</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <UploadAction id="uploadImg2"> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | 
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "HANDLE";
 |
| | | self.set("parameter",{
 |
| | | bizTag: bizTag
 |
| | | })</ClientEvent> |
| | | <ClientEvent name="onFileUploaded">//éä»¶ä¸ä¼ 宿忷»å ä¸å¡æ°æ®
 |
| | | var mainData = view.get("#dsMain.data");
 |
| | | var fileName = arg.returnValue;
 |
| | | var files = mainData.get("files");
 |
| | | files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | if(data){
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "HANDLE";
 |
| | | self.set("parameter",{
 |
| | | bizTag:bizTag
 |
| | | })
 |
| | | }</ClientEvent> |
| | | <Property name="maxFileSize">20MB</Property> |
| | | <Property name="successMessage">ä¸ä¼ æå</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="fileResolver">fileUploadManage#inoutFile</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <AjaxAction id="ajaxDelFile"> |
| | | <Property name="service">fileUploadManage#delInoutFile</Property> |
| | | <Property name="async">true</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.domain.InoutRecord</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">åæ®å·</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="progress"> |
| | | <Property></Property> |
| | | <Property name="label">æµç¨è¿åº¦</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("PROCESS_STATUS_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordStatus"> |
| | | <Property></Property> |
| | | <Property name="label">æ°æ®ç¶æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("RECORD_STATUS")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkStatus"> |
| | | <Property></Property> |
| | | <Property name="label">æ¦æ ·ç»æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("CHECK_STATUS")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="registerTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">ç»è®°æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="registerUser"> |
| | | <Property></Property> |
| | | <Property name="label">ç»è®°äººå</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userName"> |
| | | <Property></Property> |
| | | <Property name="label">æ¿è¿äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userId"> |
| | | <Property></Property> |
| | | <Property name="label">身份è¯å·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userContact"> |
| | | <Property></Property> |
| | | <Property name="label">èç³»æ¹å¼</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userAddress"> |
| | | <Property></Property> |
| | | <Property name="label">æ¿è¿äººå°å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="plateNum"> |
| | | <Property></Property> |
| | | <Property name="label">车çå·</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerName"> |
| | | <Property></Property> |
| | | <Property name="label">徿¥åä½</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£äº§å°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodYear"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£å¹´ä»½</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deOther"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ£é</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">满车称é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullWeightTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">满车称æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullWeightUser"> |
| | | <Property></Property> |
| | | <Property name="label">满车称é人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="emptyWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">空车称é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="emptyWeightTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">空车称æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="emptyWeightUser"> |
| | | <Property></Property> |
| | | <Property name="label">空车称é人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="netWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">åé</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ç»ç®åé</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">å
¥åºéé</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="handleStart"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å¼ä»å¼å§æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="handleEnd"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å¼ä»ç»ææ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="handleUser"> |
| | | <Property></Property> |
| | | <Property name="label">å¼ä»æä½äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="completeTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">宿æ¶é´</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="completeUser"> |
| | | <Property></Property> |
| | | <Property name="label">å®æç¡®è®¤äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨ä¿¡æ¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ååº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#getAllData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">kqmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">è£
å¸ä»åº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">åºå
¥åºç±»å</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">åºåº</Property> |
| | | <Property name="value">OUT</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å
¥åº</Property> |
| | | <Property name="value">IN</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£ç级</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerFoodLevel").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkUser"> |
| | | <Property></Property> |
| | | <Property name="label">è´¨æ£äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="price"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="label">ç²®é£å®ä»·</Property> |
| | | <Property name="displayFormat">0.00 å
/å
¬æ¤</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="noticeId"> |
| | | <Property></Property> |
| | | <Property name="label">éç¥åç¼ç </Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocationId"> |
| | | <Property></Property> |
| | | <Property name="label">产å°å称代ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">è´¨æ£æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="perWet"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ°´å</Property> |
| | | <Property name="displayFormat">0.00 %</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="perImpurity"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æè´¨</Property> |
| | | <Property name="displayFormat">0.00 %</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleMoney"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ç»ç®éé¢</Property> |
| | | <Property name="displayFormat">0.00 å
</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleTag"> |
| | | <Property></Property> |
| | | <Property name="label">æ¯å¦ç»ç®</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">æªç»ç®</Property> |
| | | <Property name="value">N</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å·²ç»ç®</Property> |
| | | <Property name="value">Y</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="settleTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">ç»ç®æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å建æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createBy"> |
| | | <Property></Property> |
| | | <Property name="label">å建人</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateBy"> |
| | | <Property></Property> |
| | | <Property name="label">æ´æ°äºº</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtQuery"> |
| | | <Property name="creationType">com.fzzy.igds.data.InoutParam</Property> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">åºå
¥åºç±»å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ååº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">è£
å¸ä»åº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="plateNum"> |
| | | <Property name="label">车çå·å·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="progress"> |
| | | <Property></Property> |
| | | <Property name="label">æµç¨è¿åº¦</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("PROCESS_STATUS_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordStatus"> |
| | | <Property></Property> |
| | | <Property name="label">åæ®ç¶æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("RECORD_STATUS")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="label">å¼å§æ¶é´</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="label">æªæ¢æ¶é´</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">var TYPE = "${request.getParameter('type')}";
 |
| | | var EDIT = "${request.getParameter('edit')}";
 |
| | | var deptId = window.parent.DEPT_ID;//ç¶é¡µé¢ä¸çååºç¼ç 
 |
| | | 
 |
| | | //妿editæå¼è¡¨ç¤ºéèADDåç¼è¾æé®
 |
| | | if(EDIT){
 |
| | | view.get("#btnEdit").set("visible",false);
 |
| | | view.get("#btnDel").set("visible",false);
 |
| | | }
 |
| | | 
 |
| | | if("OUT" == TYPE){
 |
| | | view.get("#recordWeight").set("caption","åºåºéé");
 |
| | | }else{
 |
| | | view.get("#recordWeight").set("caption","å
¥åºéé");
 |
| | | }
 |
| | | 
 |
| | | //é»è®¤æ¥è¯¢æ¥è¯¢ææ¡ä»¶
 |
| | | view.get("#dsQuery").insert({
 |
| | | type:TYPE,
 |
| | | deptId:deptId
 |
| | | });
 |
| | | 
 |
| | | //æ¥è¯¢
 |
| | | query = function(){
 |
| | | var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();
 |
| | | };
 |
| | | query();
 |
| | | 
 |
| | | 
 |
| | | //ç¼è¾ï¼åªææµç¨ç»æçæå¯ä»¥ä¿®æ¹
 |
| | | edit = function(){
 |
| | | 
 |
| | | var select = view.get("#dataGridMain").get("selection");
 |
| | | if(select){
 |
| | | console.log(select);
 |
| | | view.get("#dialogMain").show();;
 |
| | | }else{
 |
| | | $notify("è¯·éæ©éè¦ä¿®æ¹çæ°æ®â¦â¦");
 |
| | | } 
 |
| | | };
 |
| | | 
 |
| | | 
 |
| | | //å¼å¸¸æä½
 |
| | | showAbnormal = function(){ 
 |
| | | var select = view.get("#dataGridMain").get("selection");
 |
| | | if(select){
 |
| | | view.get("#dialogAbnormal").show();
 |
| | | view.get("#textAbnormal").set("value",null);
 |
| | | }else{
 |
| | | $notify("è¯·éæ©æ°æ®â¦â¦");
 |
| | | } 
 |
| | | };
 |
| | | 
 |
| | | //追踪
 |
| | | showImg = function(){
 |
| | | 
 |
| | | var select = view.get("#dataGridMain").get("selection");
 |
| | | if(select){
 |
| | | var user = encodeURIComponent(select.get("userName"));
 |
| | | var plateNum = encodeURIComponent(select.get("plateNum"));
 |
| | | 
 |
| | | view.get("#iFrameImg").set("path", "./basic/inout/inout-img?id=" + select.get("id")+"&plateNum="+plateNum+"&user="+user);
 |
| | | view.get("#dialogImg").show();
 |
| | | }else{
 |
| | | $notify("è¯·éæ©æ°æ®â¦â¦");
 |
| | | }
 |
| | | };
 |
| | | 
 |
| | | //å¼å¸¸æ§è¡
 |
| | | todoError = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | var textError = view.get("#textAbnormal.text");
 |
| | | if(!textError){
 |
| | | $alert("请说æå¼å¸¸ç»æ¢åå ï¼ï¼");
 |
| | | return;
 |
| | | }
 |
| | | data.set("remarks",textError);
 |
| | | view.get("#ajaxError").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | data.remove();
 |
| | | view.get("#dialogAbnormal").close();
 |
| | | $alert("æ§è¡æåï¼èªå¨å·æ°æ°æ®ï¼");
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | /**
 |
| | | * æå°è¿ç£
å
 |
| | | */
 |
| | | printBill = function (htmlStr) {
 |
| | | var LODOP = CLODOP;
 |
| | | LODOP.PRINT_INIT("ç§°éå");
 |
| | | LODOP.SET_PRINT_PAGESIZE(1, 2100, 1400, "A4");
 |
| | | //LODOP.SET_PRINT_PAGESIZE(1, 0, '90mm', "A4");
 |
| | | LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
 |
| | | LODOP.PREVIEW();
 |
| | | };
 |
| | | 
 |
| | | //æå°è¿ç£
å
 |
| | | printWeight = function () {
 |
| | | var data = view.get("#dataGridMain").get("selection");
 |
| | | if (!data) return;
 |
| | | if ("DEL" == data.get("recordStatus")) {
 |
| | | $alert("å¼å¸¸å¤ççä¿¡æ¯ä¸æ¯ææå°ï¼");
 |
| | | return;
 |
| | | }
 |
| | | if ("RECORD" != data.get("progress")) {
 |
| | | $alert("æµç¨æªå®æä¸æ¯ææå°ï¼");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#ajaxPrint").set("parameter", data).execute(function (result) {
 |
| | | printBill(result);
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | /**
 |
| | | * èªå¨è®¡ç®
 |
| | | * @param name
 |
| | | */
 |
| | | deAutoByWeight = function () {
 |
| | | 
 |
| | | var curData = view.get("#dsMain.data:#");
 |
| | | var fullWeight = curData.get("fullWeight");
 |
| | | var emptyWeight = curData.get("emptyWeight");
 |
| | | //æ£éä¿¡æ¯
 |
| | | var deOther = curData.get("deOther");
 |
| | | 
 |
| | | if (fullWeight == 0 || emptyWeight == 0) {
 |
| | | return;
 |
| | | }
 |
| | | // åé
 |
| | | var netWeight = Number(fullWeight) - Number(emptyWeight);
 |
| | | 
 |
| | | if (netWeight <= 0) {
 |
| | | $notify("åéå°äº0ï¼å½åç§°éåå¨é»è¾é®é¢");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | /** å
¥åºéé = åé - æ»æ£é */
 |
| | | recordWeight = Number(netWeight) - Number(deOther);
 |
| | | 
 |
| | | /** ç»ç®éé = åé - æ»æ£é + å¢é */
 |
| | | settleWeight = Number(recordWeight);
 |
| | | 
 |
| | | curData.set("netWeight", netWeight);
 |
| | | curData.set("settleWeight", settleWeight);
 |
| | | curData.set("recordWeight", recordWeight);
 |
| | | };
 |
| | | </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <Property name="javaScriptFile">./static/js/plugins/lodop/LodopFuncs.js</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="pageSize">20</Property> |
| | | <Property name="dataProvider">inoutDataPR#pageInoutData</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <Property name="dataType">dtQuery</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*,90,90</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- æ¯ææ¨¡ç³ --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Property name="trigger">defaultDateDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Property name="trigger">defaultDateDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">query();
 |
| | | </ClientEvent> |
| | | <Property name="caption">æç´¢</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">btn-q1</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var type ="${request.getParameter('type')}";
 |
| | | var deptId = window.parent.DEPT_ID;//ç¶é¡µé¢ä¸çååºç¼ç 
 |
| | | view.get("#dsQuery").setData({type:type,deptId:deptId});</ClientEvent> |
| | | <Property name="caption">éç½®</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | </AutoForm> |
| | | </Container> |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <ToolBar> |
| | | <ToolBarButton id="btnEdit"> |
| | | <ClientEvent name="onClick">edit();</ClientEvent> |
| | | <Property name="caption">ä¿®æ¹</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="iconClass">fa fa-pencil-square-o</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton id="btnDel"> |
| | | <ClientEvent name="onClick">showAbnormal();</ClientEvent> |
| | | <Property name="caption">å¼å¸¸æä½</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="width">100</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">showImg();</ClientEvent> |
| | | <Property name="caption">è¿ç¨è¿½è¸ª</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="iconClass">fa fa-picture-o</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var data = view.get("#dataGridMain").get("selection");
 |
| | | if (!data) {
 |
| | | $alert("请å
éæ©æ°æ®ï¼");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | printWeight();
 |
| | | </ClientEvent> |
| | | <Property name="caption">æå°è¿ç£
å</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridMain" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | </RowNumColumn> |
| | | <DataColumn name="id"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.dom.style.color = "#f67d06";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="plateNum"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">plateNum</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">130</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">徿¥åä½</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotId"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">110</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fullWeight"> |
| | | <Property name="property">fullWeight</Property> |
| | | <Property name="caption">æ¯é</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="emptyWeight"> |
| | | <Property name="property">emptyWeight</Property> |
| | | <Property name="caption">ç®é</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deOther"> |
| | | <Property name="property">deOther</Property> |
| | | <Property name="caption">æ£é</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="settleWeight"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn id="recordWeight"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="visible">true</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | </DataColumn> |
| | | <DataColumn name="progress"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">progress</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">80</Property> |
| | | </DataColumn> |
| | | <DataColumn name="completeTime"> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">åæ®ä¿¡æ¯</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="showCaptionBar">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $notify("æ°æ®æ ¡éªå¤±è´¥ï¼ï¼");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("æ°æ®æ§è¡å®æï¼ï¼");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®ä¿å</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").close();</ClientEvent> |
| | | <Property name="caption">åæ¶æä½</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">åºæ¬ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="label">è£
å¸ä»åº</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userName</Property> |
| | | <Property name="property">userName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userId</Property> |
| | | <Property name="property">userId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">perWet</Property> |
| | | <Property name="property">perWet</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userContact</Property> |
| | | <Property name="property">userContact</Property> |
| | | <Property name="label">èç³»çµè¯</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">perImpurity</Property> |
| | | <Property name="property">perImpurity</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddDicArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="label">客æ·åç§°</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="editable">false</Property> |
| | | <Property name="trigger">ddNotice</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">noticeId</Property> |
| | | <Property name="property">noticeId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">ç§°éä¿¡æ¯ï¼åä½ï¼KGï¼</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,50,*,50,*,50</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent> |
| | | <Property name="name">fullWeight</Property> |
| | | <Property name="property">fullWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightTime</Property> |
| | | <Property name="property">fullWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightUser</Property> |
| | | <Property name="property">fullWeightUser</Property> |
| | | <Property name="label">满车称é人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent> |
| | | <Property name="name">emptyWeight</Property> |
| | | <Property name="property">emptyWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightTime</Property> |
| | | <Property name="property">emptyWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightUser</Property> |
| | | <Property name="property">emptyWeightUser</Property> |
| | | <Property name="label">空车称é人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent> |
| | | <Property name="name">deOther</Property> |
| | | <Property name="property">deOther</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">settleWeight</Property> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">å
¶ä»ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">settleMoney</Property> |
| | | <Property name="property">settleMoney</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">settleTime</Property> |
| | | <Property name="property">settleTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogImg"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="height">95%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">æµç¨è¿½æº¯å±ç¤º</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <IFrame id="iFrameImg"> |
| | | <Property name="width">100%</Property> |
| | | </IFrame> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogAbnormal" layout="regionPadding:5"> |
| | | <Property name="width">450</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">å¼å¸¸æä½åå </Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">todoError();</ClientEvent> |
| | | <Property name="caption">å¼å¸¸ç»æ¢</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").close();</ClientEvent> |
| | | <Property name="caption">åæ¶æä½</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <TextArea id="textAbnormal"> |
| | | <Property name="height">165</Property> |
| | | </TextArea> |
| | | <AutoForm> |
| | | <Property name="cols">*</Property> |
| | | <Label layoutConstraint="colSpan:1"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">å¼å¸¸ç»æ¢ï¼ä¸å¡æ°æ®æµç¨ç»æï¼ééä¿¡æ¯ä¸è¿è¡ç»è®¡è®¡ç®ã</Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:1"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">å 餿ä½ï¼ä¸å¡æ°æ®è¢«å é¤ä¸ä¸ç»è®¡ï¼åªä¿çæ¥å¿è®°å½ã</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">inoutDataPR#saveInoutData</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="ajaxError"> |
| | | <Property name="dataResolver">inoutDataPR#errorInoutData</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxPrint"> |
| | | <Property name="service">inoutDataPR#printWeightBill</Property> |
| | | <Property name="executingMessage">æ£å¨æ§è¡æå°â¦â¦</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddNotice"> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">noticeId=id,customerName=customerName</Property> |
| | | <Property name="minWidth">1000</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsNotice"> |
| | | <Property name="dataProvider">inoutNoticePR#queryNoticeByKey</Property> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="type">${request.getParameter('type')}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataType">[dtNoticeDto]</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key3"> |
| | | <Property name="blankText"> -- 客æ·åç§°æç¼ç --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key3.value");
 |
| | | var type = "${request.getParameter('type')}";
 |
| | | view.get("#dsNotice").set("parameter",{key: key,type: type}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsNotice</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="width">240</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="year"> |
| | | <Property name="property">year</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="contract"> |
| | | <Property name="property">contract</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <CustomDropDown id="ddDicArea"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name,foodLocationId=code</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsDicArea"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | <Property name="pageSize">1000</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -åç§°æç®æ¼ï¼åäº¬å¸ bjs -</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsDicArea").set("parameter",{key:key}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsDicArea.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddDicArea").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsDicArea.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddDicArea").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsDicArea</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsDicArea</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <YearDropDown id="yearDropDown"/> |
| | | </View> |
| | | </ViewConfig> |
| | |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.NoticeDto; |
| | | import com.fzzy.igds.data.NoticeParam; |
| | | import com.fzzy.igds.service.InoutNoticeService; |
| | | import com.fzzy.igds.domain.InoutNoticeIn; |
| | | import com.fzzy.igds.domain.InoutNoticeOut; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | return "fail"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * inoutNoticePR#queryNoticeByKey æ ¹æ®åæ°æ¥è¯¢åºå
¥åºéç¥åï¼ç¨äºæå¨è¡¥åæ¶ï¼éæ©éç¥å |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<NoticeDto> queryNoticeByKey(Map<String, Object> param) { |
| | | if (param == null) { |
| | | return null; |
| | | } |
| | | String type = (String)param.get("type"); |
| | | if (StringUtils.isEmpty(type)) { |
| | | return null; |
| | | } |
| | | List<NoticeDto> list = new ArrayList<>(); |
| | | NoticeDto dto; |
| | | |
| | | NoticeParam noticeParam = new NoticeParam(); |
| | | noticeParam.setCompanyId(ContextUtil.getCompanyId()); |
| | | noticeParam.setDeptId(ContextUtil.subDeptId(null)); |
| | | noticeParam.setCompleteStatus(Constant.COMPLETE_STATUS_NONE); |
| | | String key = (String)param.get("key"); |
| | | if (StringUtils.isNotEmpty(key)) { |
| | | noticeParam.setKey(key); |
| | | } |
| | | |
| | | if (Constant.TYPE_IN.equals(type)) { |
| | | List<InoutNoticeIn> listIn = inoutNoticeService.getNoticeIn(noticeParam); |
| | | if (null != listIn && listIn.size() > 0) { |
| | | for (InoutNoticeIn inoutNoticeIn : listIn) { |
| | | dto = new NoticeDto(); |
| | | BeanUtils.copyProperties(inoutNoticeIn, dto); |
| | | list.add(dto); |
| | | } |
| | | } |
| | | } |
| | | if (Constant.TYPE_OUT.equals(type)) { |
| | | List<InoutNoticeOut> listOut = inoutNoticeService.getNoticeOut(noticeParam); |
| | | if (null != listOut && listOut.size() > 0) { |
| | | for (InoutNoticeOut inoutNoticeOut : listOut) { |
| | | dto = new NoticeDto(); |
| | | BeanUtils.copyProperties(inoutNoticeOut, dto); |
| | | list.add(dto); |
| | | } |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | } |
| | |
| | | <Property name="label">æ§è¡æ¶é´3</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtNoticeDto"> |
| | | <Property name="creationType">com.fzzy.igds.data.NoticeDto</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">ééåç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">éç¥ååç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">ææ¶ä»åº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerName"> |
| | | <Property></Property> |
| | | <Property name="label">æ¶/å货客æ·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodType"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="year"> |
| | | <Property></Property> |
| | | <Property name="label">年份</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="targetNumber"> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="completeNumber"> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="completeTime"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="unitName"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="contract"> |
| | | <Property></Property> |
| | | <Property name="label">æå±åå</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtFileData"> |
| | | <Property name="creationType">com.fzzy.igds.domain.FileInfo</Property> |
| | | <PropertyDef name="fileId"> |
| | | <Property></Property> |
| | | <Property name="label">éä»¶ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼å·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bizId"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸å¡ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bizTag"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸å¡æ ç¾</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fileName"> |
| | | <Property></Property> |
| | | <Property name="label">æä»¶åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="filePath"> |
| | | <Property></Property> |
| | | <Property name="label">æä»¶è·¯å¾</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å建æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createBy"> |
| | | <Property></Property> |
| | | <Property name="label">å建人</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateBy"> |
| | | <Property></Property> |
| | | <Property name="label">æ´æ°äºº</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.getFileSavePath("INOUT"); |
| | | |
| | | // è·åæ°ç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.fzzy.igds.service.InoutNoticeService; |
| | | import com.fzzy.igds.service.InoutRecordService; |
| | | import com.fzzy.igds.service.*; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.igds.utils.SystemUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | 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.*; |
| | |
| | | private RedisCache redisCache; |
| | | @Resource |
| | | private InoutConfService inoutConfService; |
| | | @Resource |
| | | private FileService fileService; |
| | | @Resource |
| | | private InoutRecordService inoutRecordService; |
| | | @Resource |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®é
ç½®è·ååºå
¥åºçé
ç½®åæ° |
| | | * |
| | | * @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); |
| | | // } |
| | | //éä»¶å¤ç |
| | | fileService.saveInoutFiles(data.getFiles(), data.getId(), curProgress, "INOUT"); |
| | | |
| | | 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); |
| | | if(Constant.PROGRESS_RECORD.equals(nextProgress)){ |
| | | //æµç¨ç»ææ¶ï¼è®¾ç½®å®ææ¶é´åå®æäºº |
| | | data.setCompleteTime(new Date()); |
| | | data.setCompleteUser(ContextUtil.getLoginUserName()); |
| | | } |
| | | //ç§°éæ°æ®æ´æ° |
| | | 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); |
| | | // } |
| | | //éä»¶å¤ç |
| | | fileService.saveInoutFiles(data.getFiles(), data.getId(), curProgress, "INOUT"); |
| | | |
| | | 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); |
| | | // } |
| | | //éä»¶å¤ç |
| | | fileService.saveInoutFiles(data.getFiles(), data.getId(), curProgress, "INOUT"); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "æäº¤æå", data); |
| | | } |
| | |
| | | |
| | | /** |
| | | * å页æ¥è¯¢æ°æ® |
| | | * |
| | | * @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.setCompanyId(user.getCompanyId()); |
| | | } |
| | | param.setDeptId(ContextUtil.subDeptId(user)); |
| | | |
| | | List<InoutNoticeIn> list = inoutNoticeService.getNoticeIn(param.getCompanyId(), param.getDeptId(),Constant.COMPLETE_STATUS_NONE); |
| | | param.setCompleteStatus(Constant.COMPLETE_STATUS_NONE); |
| | | List<InoutNoticeIn> list = inoutNoticeService.getNoticeIn(param); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æ¥è¯¢ç»æä¸ºç©ºï¼"); |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | |
| | | param.setCompanyId(user.getCompanyId()); |
| | | } |
| | | param.setDeptId(ContextUtil.subDeptId(user)); |
| | | |
| | | List<InoutNoticeOut> list = inoutNoticeService.getNoticeOut(param.getCompanyId(), param.getDeptId(),Constant.COMPLETE_STATUS_NONE); |
| | | param.setCompleteStatus(Constant.COMPLETE_STATUS_NONE); |
| | | List<InoutNoticeOut> list = inoutNoticeService.getNoticeOut(param); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), "æ¥è¯¢ç»æä¸ºç©ºï¼"); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.sys.manager.print; |
| | | |
| | | import com.fzzy.igds.domain.InoutRecord; |
| | | import com.fzzy.igds.service.InoutRecordService; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @Description åæ®æå° |
| | | * @Author CZT |
| | | * @Date 2025/12/4 9:27 |
| | | */ |
| | | @Component |
| | | public class PrintManager { |
| | | |
| | | @Resource |
| | | private InoutRecordService inoutRecordService; |
| | | |
| | | /** |
| | | * è·åå
¥åºè¿ç£
åæ°æ®ä¿¡æ¯ |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String inWeightBill(InoutRecord data) { |
| | | return inoutRecordService.inWeightBill( data); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºåºè¿ç£
å |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String outWeightBill(InoutRecord data) { |
| | | |
| | | return inoutRecordService.outWeightBill( data); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | //ç§°é-å
æ¬ç©ºè½¦å满车称é |
| | | 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() { |
| | | $("#form-data")[0].reset(); |
| | | form.render(); |
| | | //ç»è®°æé®æ¾å¼ |
| | | $("#btn_register").css("display", "block"); |
| | | $("#text-info").removeClass("text-info"); |
| | | //ç§°éæä½å¼¹çª |
| | | var pro = 'ç»è®°'; |
| | | var pro = 'ç»è®°ç§°é'; |
| | | recordData = null; |
| | | updateEditAndProgress(); |
| | | flushPage(); |
| | | layer.open({ |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ¾ç¤ºæµç¨æä½å¼¹çª |
| | | function showWindows(progress) { |
| | | |
| | | //ç»è®°æé®æ¾å¼ |
| | | /** |
| | | * ç§°éå¼¹çª |
| | | * @param progress |
| | | */ |
| | | function showWindows() { |
| | | $("#form-data")[0].reset(); |
| | | form.render(); |
| | | //ç»è®°æé®éè |
| | | $("#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) { |
| | | $("#form-data")[0].reset(); |
| | | form.render(); |
| | | } |
| | | } |
| | | 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("车çè¯å«å¤±è´¥ï¼"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * å¼¹åºæéæ¡ |
| | |
| | | } |
| | | $("#resultIntelCard").text(data.intelCard); |
| | | |
| | | layer.open({ |
| | | var indexNotify = layer.open({ |
| | | type: 1, |
| | | offset: ['150px', '200px'], |
| | | area: '450px;', |
| | |
| | | btn: ['ç¡®å®'], |
| | | content: $('#dialog-from-notify'), |
| | | yes: function (index) { |
| | | layer.closeAll(); |
| | | layer.close(indexNotify); |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | * å
¥åº-ç§°éèªå¨è®¡ç® |
| | | * @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> |
| | |
| | | <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" |
| | | placeholder="å°ç£
èªå¨å¸¦å
¥" class="layui-input weight rkbk-search-input" |
| | | disabled> |
| | | <em |
| | | class="kccz-data-dw">KG</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="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> |
| | |
| | | <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" |
| | | placeholder="å°ç£
èªå¨å¸¦å
¥" class="layui-input weight rkbk-search-input" |
| | | disabled> |
| | | <em |
| | | class="kccz-data-dw">KG</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="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> |