| | |
| | | @PropertyDef(label = "è´¨æ£æ¶é´") |
| | | private Date checkTime; |
| | | |
| | | @Column(name = "SAMPLE_USER_") |
| | | @Column(name = "SAMPLE_USER_", length = 50) |
| | | @PropertyDef(label = "æ¦æ ·äºº") |
| | | private String sampleUser; |
| | | |
| | |
| | | @PropertyDef(label = "æ¦æ ·æ¶é´") |
| | | private Date sampleTime; |
| | | |
| | | @Column(name = "SAMPLE_TYPE_") |
| | | @Column(name = "SAMPLE_TYPE_", length = 1) |
| | | @PropertyDef(label = "æ¦æ ·æ¹å¼", description = "0-人工ï¼1=èªå¨ï¼2=æºè½éæº") |
| | | private Date sampleType; |
| | | private String sampleType; |
| | | |
| | | @Column(name = "CHECK_ID_") |
| | | @Column(name = "CHECK_ID_", length = 12) |
| | | @PropertyDef(label = "è´¨æ£åå·") |
| | | private String checkId; |
| | | |
| | |
| | | @PropertyDef(label = "ç©ºè½¦ç§°éæ¶é´") |
| | | private Date emptyWeightTime; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_USER_") |
| | | @Column(name = "EMPTY_WEIGHT_USER_", length = 50) |
| | | @PropertyDef(label = "空车称é人") |
| | | private String emptyWeightUser; |
| | | |
| | |
| | | @PropertyDef(label = "ç»ç®éé¢", description = "åä½ï¼å
") |
| | | private Double settleMoney = 0.00; |
| | | |
| | | @Column(name = "SETTLE_ID_") |
| | | @Column(name = "SETTLE_ID_", length = 50) |
| | | @PropertyDef(label = "ç»ç®åå·", description = "妿æ¯å车ç»ç®å¿
å¡«") |
| | | private String settleId; |
| | | |
| | |
| | | @PropertyDef(label = "å
è£
ç©", description = "1ï¼éº»è¢2ï¼ç¼ç»è¢3ï¼æ£è£
9ï¼å
¶ä»") |
| | | private String bzw; |
| | | |
| | | @Column(name = "dbz", length = 2) |
| | | @Column(name = "dbz") |
| | | @PropertyDef(label = "åå
é", description = "åä½ï¼å
¬æ¤") |
| | | private Double dbz; |
| | | |
| | | @Column(name = "bzbjs", length = 2) |
| | | @Column(name = "bzbjs") |
| | | @PropertyDef(label = "å
ä»¶æ°", description = "åä½ï¼ä»¶") |
| | | private int bzbjs; |
| | | |
| | |
| | | import com.ld.igds.data.Page; |
| | | import com.ld.igds.data.PageResponse; |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import com.ld.igds.inout.dto.InoutGateDto; |
| | | import com.ld.igds.inout.dto.InoutParam; |
| | | import com.ld.igds.inout.dto.*; |
| | | import com.ld.igds.inout.manager.InoutCommonManager; |
| | | import com.ld.igds.inout.manager.InoutManager; |
| | | import com.ld.igds.io.dto.WeightDto; |
| | |
| | | "åå°å¼å¸¸ï¼" + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¦æ ·é¡µé¢ |
| | | * |
| | | * @param sort 表示使ç¨çåºå
¥åºè®¾å¤é
å¥å·ï¼ä¸ä¼ éé»è®¤ä¸º1 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/in-sample") |
| | | public ModelAndView inSample(HttpServletRequest httpRequest, @RequestParam(value = "sort", required = false) String sort) { |
| | | if (StringUtils.isEmpty(sort)) { |
| | | sort = commonManager.getInoutWeightByClient(httpRequest); |
| | | } |
| | | ModelAndView view = new ModelAndView(); |
| | | // ä»åºå表å䏿æ¡ä½¿ç¨ |
| | | List<Depot> listDepot = commonManager.listDepot(true); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | |
| | | view.addObject("bizType", BizType.INOUT_IN.getCode()); |
| | | view.addObject("type", InoutConstant.TYPE_IN); |
| | | view.addObject("deptId", deptId); |
| | | |
| | | //å
¥åºæµç¨ |
| | | String inoutProgress = inoutCommonManager.getInoutProgressConf(user.getCompanyId(), deptId, InoutConstant.TYPE_IN); |
| | | view.addObject("inoutProgress", inoutProgress); |
| | | |
| | | // å½åæµç¨èç¹ |
| | | view.addObject("progress", InoutConstant.PROGRESS_CHECK); |
| | | |
| | | // ç²®é£åç§ä¸ææ¡ |
| | | List<DicTrigger> listFoodVariety = inoutCommonManager.getDicTrigger( |
| | | Constant.TRIGGER_PARENT_FOOD_VARIETY, user.getCompanyId()); |
| | | view.addObject("listFoodVariety", listFoodVariety); |
| | | |
| | | // ç²®é£ççº§ä¸ææ¡ |
| | | List<DicTrigger> listFoodLevel = inoutCommonManager.getDicTrigger( |
| | | Constant.TRIGGER_PARENT_FOOD_LEVEL, user.getCompanyId()); |
| | | view.addObject("listFoodLevel", listFoodLevel); |
| | | |
| | | view.addObject("endTime", |
| | | DateFormatUtils.format(new Date(), "yyyy-MM-dd")); |
| | | view.addObject("startTime", DateFormatUtils.format( |
| | | DateUtil.getNewByDay(null, -10), "yyyy-MM-dd")); |
| | | |
| | | // è·ååºå
¥åºé
ç½®ä¿¡æ¯ |
| | | List<InoutConf> listInoutConf = inoutCommonManager.getListInoutConf(user.getCompanyId(), deptId); |
| | | |
| | | // è·åæ¦æ ·æºä¿¡æ¯ |
| | | InoutConf conf = inoutCommonManager.getInoutConf(listInoutConf, sort, InoutConstant.CONF_TYPE_20, InoutConstant.PROGRESS_CHECK, 1); |
| | | view.addObject("checkDto", conf); |
| | | view.setViewName("admin/inout/in-sample"); |
| | | return view; |
| | | } |
| | | |
| | | /** |
| | | * å页è·åæ¦æ ·è®°å½ä¿¡æ¯ |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/page-sample-data") |
| | | public PageResponse<Page<InoutCheckData>> pageSampleData(@RequestBody InoutCheckParam param) { |
| | | return inoutManager.pageSampleData(param); |
| | | } |
| | | |
| | | /** |
| | | * æ¦æ ·é¡µé¢æäº¤ |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @RequestMapping("/update-sample") |
| | | public PageResponse<InoutCheckData> updateSample(@RequestBody InoutCheckData data) { |
| | | try { |
| | | return inoutManager.updateSampleData(data); |
| | | } catch (Exception e) { |
| | | log.error("åå°å¼å¸¸:{}", e); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), |
| | | "åå°å¼å¸¸ï¼" + e.getMessage(), null); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ld.igds.inout.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * åºå
¥åºæ¦æ ·æ°æ®å°è£
|
| | | * |
| | | * @author czt |
| | | * @date 2023-05-30 16:25 |
| | | */ |
| | | @Data |
| | | public class InoutCheckData implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | //æµæ°´å· |
| | | private String id; |
| | | |
| | | //ç»ç»ç¼ç |
| | | private String companyId; |
| | | |
| | | //åºåºç¼ç |
| | | private String deptId; |
| | | |
| | | //åºå
¥åºç±»å,IN=å
¥åºï¼OUT=åºåº |
| | | private String type; |
| | | |
| | | //æµç¨è¿åº¦ |
| | | private String progress; |
| | | |
| | | //æ°æ®ç¶æ |
| | | private String recordStatus; |
| | | |
| | | //æºæ
§å¡å· |
| | | private String intelCard; |
| | | |
| | | //ç»è®°æ¶é´ |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date registerTime; |
| | | |
| | | //ç»è®°äºº |
| | | private String registerUser; |
| | | |
| | | //车è¹å· |
| | | private String plateNum; |
| | | |
| | | //æ¦æ ·äºº |
| | | private String sampleUser; |
| | | |
| | | //æ¦æ ·æ¶é´ |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date sampleTime; |
| | | |
| | | //æ¦æ ·æ¹å¼ï¼0-人工ï¼1=èªå¨ï¼2=æºè½éæº |
| | | private String sampleType; |
| | | |
| | | //è´¨æ£åå· |
| | | private String checkId; |
| | | |
| | | //æ¦æ ·ç¶æ |
| | | private String sampleStatus; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ld.igds.inout.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.ld.igds.data.BaseParam; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * åºå
¥åº-æ¦æ ·åæ° |
| | | * |
| | | * @author czt |
| | | * @date 2023-05-30 18:10 |
| | | * |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class InoutCheckParam extends BaseParam { |
| | | |
| | | public String plateNum;// 车çå· |
| | | |
| | | private String id;// æµæ°´å· |
| | | |
| | | private String progress;// å½åæå¨æµç¨ |
| | | |
| | | private String type;// ä¸å¡æ°æ®ç±»åï¼åºåºæè
å
¥åº |
| | | |
| | | private String checkId;// åéªåå· |
| | | |
| | | private String sampleStatus; //æ¦æ ·ç¶æ |
| | | } |
| | |
| | | import com.ld.igds.file.CoreFileService; |
| | | import com.ld.igds.file.dto.FileData; |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import com.ld.igds.inout.dto.InoutGateDto; |
| | | import com.ld.igds.inout.dto.InoutParam; |
| | | import com.ld.igds.inout.dto.*; |
| | | import com.ld.igds.inout.service.InoutService; |
| | | import com.ld.igds.m.service.InoutCommonService; |
| | | import com.ld.igds.models.Depot; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "æ§è¡æå", data); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ¡ä»¶è·åæ¦æ ·æ°æ® |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public PageResponse<Page<InoutCheckData>> pageSampleData(InoutCheckParam param) { |
| | | |
| | | if (StringUtils.isEmpty(param.getCompanyId())) { |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(param.getDeptId())) { |
| | | param.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | //è¥æ¥è¯¢æ¡ä»¶ä¸ºå·²æ¦æ ·ï¼åæµç¨ç½®ç©ºï¼è¥æªæ¦æ ·ï¼åæµç¨ä¸å¤çï¼ä»ä¸ºæ¦æ ·åéªæµç¨(CHECK) |
| | | if ("SAMPLE".equals(param.getSampleStatus())) { |
| | | param.setProgress(null); |
| | | } |
| | | |
| | | //è·åæ¦æ ·æ°æ® |
| | | Page<InoutCheckData> sampleList = inoutService.pageSampleData(param); |
| | | |
| | | |
| | | if (null == sampleList.getRecords() || sampleList.getRecords().isEmpty()) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_2000.getCode(), |
| | | "è·åå°æ°æ®ä¿¡æ¯ä¸ºç©º"); |
| | | } |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000, sampleList); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public PageResponse<InoutCheckData> updateSampleData(InoutCheckData data) throws Exception { |
| | | |
| | | // è·åä¸å¡æ°æ®ä¿¡æ¯ |
| | | InoutParam param = new InoutParam(); |
| | | param.setCompanyId(data.getCompanyId()); |
| | | param.setId(data.getId()); |
| | | InoutData curData = inoutService.inoutProgressQuery(param); |
| | | if (null == curData) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), |
| | | "没æè·åå°å
¥åºä¸å¡æ°æ®ä¿¡æ¯ï¼æ´æ°å¤±è´¥", data); |
| | | } |
| | | if (InoutConstant.PROGRESS_RECORD.equals(curData.getProgress())) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), |
| | | "å½åæµç¨å·²ç»ç»æï¼ä¸æ¯æä¿®æ¹"); |
| | | } |
| | | |
| | | //æ¦æ ·ä¿¡æ¯ |
| | | curData.setSampleTime(data.getSampleTime()); |
| | | curData.setSampleType(data.getSampleType()); |
| | | curData.setSampleUser(data.getSampleUser()); |
| | | |
| | | String msg = inoutService.updateSampleData(curData); |
| | | |
| | | if (null != msg) { |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), msg); |
| | | } |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "æ§è¡æå"); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ld.igds.inout.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.ld.igds.inout.dto.InoutCheckData; |
| | | import com.ld.igds.inout.dto.InoutCheckParam; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åºå
¥åº-æ¦æ ·åéªæ¥è¯¢ |
| | | * @author czt |
| | | * @date 2023-05-30 17:45 |
| | | */ |
| | | public interface InoutCheckMapper { |
| | | |
| | | /** |
| | | * å页è·åæ¦æ ·æ°æ® |
| | | * |
| | | * @param page |
| | | * @param param |
| | | * @return |
| | | */ |
| | | List<InoutCheckData> pageSampleData(@Param("page") Page<InoutCheckData> page, |
| | | @Param("param") InoutCheckParam param); |
| | | |
| | | |
| | | /** |
| | | * æ´æ°æ¦æ ·æ°æ® |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | int updateSampleData(@Param("data") InoutData data); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | int checkExist(InoutParam param); |
| | | |
| | | /** |
| | | * å页è·åæ¦æ ·æ°æ® |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | Page<InoutCheckData> pageSampleData(InoutCheckParam param); |
| | | |
| | | /** |
| | | * æ´æ°æ¦æ ·ä¿¡æ¯ |
| | | * @param data |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | String updateSampleData(InoutData data); |
| | | } |
| | |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import com.ld.igds.inout.dto.InoutParam; |
| | | import com.ld.igds.inout.dto.InoutCheckData; |
| | | import com.ld.igds.inout.dto.InoutCheckParam; |
| | | import com.ld.igds.inout.mapper.InoutCheckMapper; |
| | | import com.ld.igds.inout.mapper.InoutRecordMapper; |
| | | import com.ld.igds.inout.service.InoutService; |
| | | import com.ld.igds.io.constant.OrderRespEnum; |
| | |
| | | |
| | | @Resource |
| | | private InoutRecordMapper inoutMapper; |
| | | @Resource |
| | | private InoutCheckMapper inoutCheckMapper; |
| | | @Resource |
| | | private RedisUtil redisUtil; |
| | | @Resource |
| | |
| | | public String buildInoutKey(String deptId, String key, String type, String bizId) { |
| | | return Constant.APP_NAME + ":" + deptId + ":" + key + ":" + type + ":" + bizId; |
| | | } |
| | | |
| | | @Override |
| | | public Page<InoutCheckData> pageSampleData(InoutCheckParam param) { |
| | | |
| | | //设置起å§åæªæ¢æ¶é´ |
| | | if (null != param.getStart()) { |
| | | param.setStart(DateUtil.getCurZero(param.getStart())); |
| | | } |
| | | if (null != param.getEnd()) { |
| | | param.setEnd(DateUtil.getNextZero(param.getEnd())); |
| | | } |
| | | |
| | | // 设置车ç忣éªåæ®çæ¨¡ç³æ¥è¯¢ |
| | | if (StringUtils.isNotEmpty(param.getPlateNum())) { |
| | | param.setPlateNum("%" + param.getPlateNum() + "%"); |
| | | } |
| | | if (StringUtils.isNotEmpty(param.getCheckId())) { |
| | | param.setCheckId("%" + param.getCheckId() + "%"); |
| | | } |
| | | |
| | | Page<InoutCheckData> page = new Page<>(param.getPage(), param.getLimit()); |
| | | page.setSearchCount(true); |
| | | |
| | | List<InoutCheckData> records = inoutCheckMapper.pageSampleData(page, param); |
| | | page.setRecords(records); |
| | | |
| | | return page; |
| | | } |
| | | |
| | | @Override |
| | | public String updateSampleData(InoutData data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setCompanyId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | int num = inoutCheckMapper.updateSampleData(data); |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.ld.igds.inout.mapper.InoutCheckMapper"> |
| | | |
| | | <select id="pageSampleData" resultType="com.ld.igds.inout.dto.InoutCheckData" |
| | | parameterType="com.ld.igds.inout.dto.InoutCheckParam"> |
| | | select |
| | | ID_ as id, |
| | | COMPANY_ID_ as companyId, |
| | | DEPT_ID_ as deptId, |
| | | TYPE_ as type, |
| | | PROGRESS_ as progress, |
| | | RECORD_STATUS_ as recordStatus, |
| | | INTEL_CARD_ as intelCard, |
| | | REGISTER_TIME_ as registerTime, |
| | | REGISTER_USER_ as registerUser, |
| | | PLATE_NUM_ as plateNum, |
| | | SAMPLE_USER_ as sampleUser, |
| | | SAMPLE_TIME_ as sampleTime, |
| | | SAMPLE_TYPE_ as sampleType, |
| | | CHECK_ID_ as checkId, |
| | | IF(ISNULL(SAMPLE_TIME_),'NONE','SAMPLE') AS sampleStatus |
| | | from |
| | | D_INOUT_RECORD |
| | | <where> |
| | | <if test="param.companyId != null and param.companyId != '' ">AND COMPANY_ID_ = #{param.companyId}</if> |
| | | <if test="param.deptId != null and param.deptId != '' ">AND DEPT_ID_ = #{param.deptId}</if> |
| | | <if test="param.checkId != null and param.checkId != '' ">AND CHECK_ID_ like #{param.checkId}</if> |
| | | <if test="param.plateNum != null and param.plateNum != '' ">AND PLATE_NUM_ like #{param.plateNum}</if> |
| | | <if test="param.progress != null and param.progress != '' ">AND PROGRESS_ = #{param.progress}</if> |
| | | <if test="param.start != null">AND REGISTER_TIME_ <![CDATA[ >= ]]>#{param.start,jdbcType=TIMESTAMP}</if> |
| | | <if test="param.end != null">AND REGISTER_TIME_ <![CDATA[ <= ]]>#{param.end,jdbcType=TIMESTAMP}</if> |
| | | <if test="param.sampleStatus != null and param.sampleStatus == 'NONE' ">AND SAMPLE_TIME_ IS NULL</if> |
| | | <if test="param.sampleStatus != null and param.sampleStatus != 'NONE' ">AND SAMPLE_TIME_ IS NOT NULL</if> |
| | | </where> |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | ORDER BY REGISTER_TIME_ |
| | | </select> |
| | | |
| | | <update id="updateSampleData" parameterType="com.ld.igds.inout.dto.InoutData"> |
| | | update D_INOUT_RECORD set |
| | | <if test="data.sampleUser != null">SAMPLE_USER_ = #{data.sampleUser},</if> |
| | | <if test="data.sampleTime != null">SAMPLE_TIME_ = #{data.sampleTime},</if> |
| | | <if test="data.sampleType != null">SAMPLE_TYPE_ = #{data.sampleType},</if> |
| | | TYPE_ = #{data.type} |
| | | where |
| | | COMPANY_ID_ =#{data.companyId} |
| | | and ID_ =#{data.id} |
| | | </update> |
| | | |
| | | </mapper> |
| | |
| | | <if test="data.completeTime != null">COMPLETE_TIME_ = #{data.completeTime},</if> |
| | | <if test="data.completeUser != null">COMPLETE_USER_ = #{data.completeUser},</if> |
| | | <if test="data.remarks != null">REMARKS_ = #{data.remarks},</if> |
| | | <if test="data.curStorage != null">CUR_STORAGE_ = #{data.curStorage},</if> |
| | | <if test="data.foodType != null">FOOD_TYPE_ = #{data.foodType},</if> |
| | | <if test="data.price != null">PRICE_ = #{data.price},</if> |
| | | <if test="data.settleMoney != null">SETTLE_MONEY_ = #{data.settleMoney},</if> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //å½åèç¹ å
¥åºè´¨æ£ |
| | | var layer; |
| | | var form; |
| | | var table; |
| | | var page = 1; |
| | | var limit = 10; |
| | | var curSampleData = null;// å½åç¼è¾æ°æ® |
| | | var curCheckItems = null;// å½åæ°æ®çæ£æ¥é¡¹ä¿¡æ¯ |
| | | |
| | | $(function () { |
| | | layui.use(['layer', 'laydate', 'form', 'table'], function () { |
| | | layer = layui.layer; |
| | | form = layui.form; |
| | | table = layui.table; |
| | | var laydate = layui.laydate; |
| | | |
| | | laydate.render({ |
| | | elem: '#start', |
| | | theme: '#7b8e9f', |
| | | value: startTime |
| | | }); |
| | | |
| | | laydate.render({ |
| | | elem: '#end', |
| | | theme: '#7b8e9f', |
| | | value: endTime |
| | | }); |
| | | |
| | | laydate.render({ |
| | | elem: '#foodYear', |
| | | theme: '#7b8e9f', |
| | | type: 'year', |
| | | }); |
| | | |
| | | // åå§åè¡¨åæ°æ® |
| | | renderTable(); |
| | | |
| | | // çå¬è¡å·¥å
·äºä»¶ |
| | | table.on('tool(tableData)', function (obj) { |
| | | if (obj.event === 'edit') { |
| | | //å±ç¤ºæ°æ® |
| | | showDetail(obj); |
| | | } |
| | | }); |
| | | |
| | | //çå¬ç²®é£åç§ |
| | | layui.form.on('select(select_foodVariety)', function (data) { |
| | | updateFoodVariety(data.value); |
| | | }); |
| | | |
| | | //çå¬åéªç»æåå¡«åæ°æ®,å¹¶ç»åºæç¤ºç»æ |
| | | table.on('edit(tableCheckItem)', function (obj) { |
| | | getResult(obj); |
| | | }); |
| | | }); |
| | | |
| | | //æ¾ç¤ºå
¥åºæµç¨ |
| | | showProgress(); |
| | | |
| | | // åå§åWebSocket |
| | | initInoutWS(deptId, bizType, progress, userId); |
| | | }); |
| | | |
| | | |
| | | // socketä¿¡æ¯è¿åèç |
| | | function socketOnMessage(packet) { |
| | | layer.alert(packet.data); |
| | | window.parent.sysNotify(packet.data); |
| | | } |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | */ |
| | | function flushData() { |
| | | var index = layer.load(); |
| | | var param = form.val("form-param"); |
| | | |
| | | table.reload('tableData', { |
| | | url: "../../basic/inout/page-sample-data", |
| | | where: param |
| | | }); |
| | | |
| | | $("thead tr").css({ |
| | | "border-bottom": "2px solid #53adce", |
| | | "background": "#eff4f6" |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | |
| | | /** |
| | | * 渲æè¡¨åæ°æ® |
| | | */ |
| | | function renderTable() { |
| | | var param = form.val("form-param"); |
| | | // æ¸
ç©ºæ°æ® |
| | | $("#tableData").empty(); |
| | | table.render({ |
| | | elem: '#tableData', |
| | | url: '../../basic/inout/page-sample-data', |
| | | page: true, |
| | | limit: limit, |
| | | even: true, |
| | | method: 'POST', |
| | | contentType: "application/json;charset=UTF-8", |
| | | cols: [[{ |
| | | field: 'checkId', |
| | | title: 'è´¨æ£åå·', |
| | | style: 'color: #f67d06;font-weight: bold' |
| | | }, { |
| | | field: 'plateNum', |
| | | title: '车è¹å·', |
| | | width: '15%', |
| | | style: 'font-weight: bold' |
| | | }, { |
| | | field: 'registerTime', |
| | | title: 'ç»è®°æ¶é´', |
| | | width: '15%' |
| | | }, { |
| | | field: 'sampleUser', |
| | | title: 'æ¦æ ·äºº', |
| | | width: '15%' |
| | | }, { |
| | | field: 'sampleTime', |
| | | title: 'æ¦æ ·æ¶é´', |
| | | width: '15%' |
| | | }, { |
| | | field: 'sampleType', |
| | | title: 'æ¦æ ·ç±»å', |
| | | width: '10%', |
| | | templet: function (item) { |
| | | if (item.sampleType == null) { |
| | | return "å
¶ä»"; |
| | | } |
| | | if (item.sampleType == '0') { |
| | | return "人工"; |
| | | } |
| | | if (item.sampleType == '1') { |
| | | return "èªå¨"; |
| | | } |
| | | if (item.sampleType == '2') { |
| | | return "æºè½éæº"; |
| | | } |
| | | } |
| | | }, { |
| | | field: 'sampleStatus', |
| | | title: 'æ¯å¦æ¦æ ·', |
| | | width: '10%', |
| | | templet: function (item) { |
| | | if (item.sampleStatus == null) { |
| | | return "æªæ¦æ ·"; |
| | | } |
| | | if (item.sampleStatus == 'NONE') { |
| | | return "æªæ¦æ ·"; |
| | | } |
| | | if (item.sampleStatus == 'SAMPLE') { |
| | | return "å·²æ¦æ ·"; |
| | | } |
| | | } |
| | | }, { |
| | | field: '', |
| | | title: 'æä½', |
| | | width: '10%', |
| | | toolbar: "#barControl" |
| | | }]], |
| | | where: param, |
| | | parseData: function (res) { |
| | | if ("0000" == res.code) { |
| | | return { |
| | | "code": "0", |
| | | "msg": res.msg, |
| | | "count": res.data.total, |
| | | "data": res.data.records |
| | | } |
| | | } else { |
| | | return { |
| | | "code": "1", |
| | | "msg": res.msg |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | $("thead tr").css({ |
| | | "border-bottom": "2px solid #53adce", |
| | | "background": "#eff4f6" |
| | | }); |
| | | } |
| | | |
| | | // è¡¨åæ¸
空 |
| | | function resetForm() { |
| | | $("#form-param")[0].reset(); |
| | | form.render(); |
| | | }; |
| | | |
| | | //æ ¹æ®å¡«ååéªæ°æ®,ç»åºæéæ¯å¦åæ ¼ |
| | | function getResult(obj) { |
| | | var data = obj.data; |
| | | //å¡«åçæ°æ®å¼ |
| | | var newValue = data.value; |
| | | //æ åå¼ |
| | | var limit = data.upperLimit; |
| | | //è¿ç®ç¬¦ |
| | | var symbol = data.operaSymbol; |
| | | |
| | | if (symbol && limit) { |
| | | if (">=" == symbol) { |
| | | if (newValue < limit) { |
| | | data.remarks = "ä¸åæ ¼"; |
| | | } else { |
| | | data.remarks = "åæ ¼"; |
| | | } |
| | | } |
| | | if ("<=" == symbol) { |
| | | if (newValue > limit) { |
| | | data.remarks = "ä¸åæ ¼"; |
| | | } else { |
| | | data.remarks = "åæ ¼"; |
| | | } |
| | | } |
| | | if ("==" == symbol) { |
| | | if (newValue != limit) { |
| | | data.remarks = "ä¸åæ ¼"; |
| | | } else { |
| | | data.remarks = "åæ ¼"; |
| | | } |
| | | } |
| | | } |
| | | obj.update(data); |
| | | //æ ¹æ®åéªç»ææéæ¯å¦åæ ¼ |
| | | updateCheckResultTip(); |
| | | } |
| | | |
| | | //æ ¹æ®éæ©ä»åºæ¾ç¤ºç²®é£åç§ |
| | | function updateFoodVariety(foodVariety) { |
| | | if (null == foodVariety || "" == foodVariety) return; |
| | | form.val("form-detail", { |
| | | foodVariety: foodVariety |
| | | }); |
| | | form.render(); |
| | | |
| | | flushCheckItem(foodVariety); |
| | | } |
| | | |
| | | |
| | | // æ ¹æ®æ¨¡å¼å¯å¨å¼å§æ¦æ · |
| | | function checkExe(type) { |
| | | checkDto.type = type; |
| | | var param = JSON.stringify(checkDto); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../api/check/check-exe", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | layer.alert(result.msg); |
| | | } else { |
| | | layer.msg("æä½å½ä»¤åéæåï¼"); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.alert("åå°å¼å¸¸ï¼æä½å½ä»¤åé失败ï¼"); |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | // å
³éæ¦æ ·æºå¨ |
| | | function checkStop() { |
| | | var param = JSON.stringify(checkDto); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../api/check/stop", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | layer.alert(result.msg); |
| | | } else { |
| | | layer.msg("æä½å½ä»¤åéæåï¼"); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.alert("åå°å¼å¸¸ï¼æä½å½ä»¤åé失败ï¼"); |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | // æ¦æ ·æºå¤ä½ |
| | | function checkReset() { |
| | | var param = JSON.stringify(checkDto); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../api/check/reset", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | layer.alert(result.msg); |
| | | } else { |
| | | layer.msg("æä½å½ä»¤åéæåï¼"); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.alert("åå°å¼å¸¸ï¼æä½å½ä»¤åé失败ï¼"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // æ¦æ ·æºè§£é¤æ¥å |
| | | function checkResetStop() { |
| | | var param = JSON.stringify(checkDto); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../api/check/reset-stop", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: param, |
| | | success: function (result) { |
| | | layer.close(index); |
| | | if (result.code != "0000") { |
| | | layer.alert(result.msg); |
| | | } else { |
| | | layer.msg("æä½å½ä»¤åéæåï¼"); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.alert("åå°å¼å¸¸ï¼æä½å½ä»¤åé失败ï¼"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //éèä¿¡æ¯--æ¿æ¢ä¸º* |
| | | function replaceStr(str) { |
| | | if (!str) { |
| | | return ""; |
| | | } |
| | | var split = str.split(""); |
| | | |
| | | if (split.length == 1) { |
| | | return "*"; |
| | | } |
| | | if (split.length == 2 || split.length == 3) { |
| | | return str.slice(0, 1) + "**" |
| | | } |
| | | return str.slice(0, 1) + "***" + str.slice(split.length - 1); |
| | | } |
| | | |
| | | function showDetail(obj) { |
| | | curSampleData = obj.data; |
| | | |
| | | // èµå¼ |
| | | form.val("form-detail", curSampleData); |
| | | form.render(); |
| | | |
| | | layer.open({ |
| | | type: 1, |
| | | title: "æ¦æ ·ä¿¡æ¯", |
| | | area: ['900px', '400px'], |
| | | shade: 0, |
| | | content: $('#checkDetail'), |
| | | btnAlign: 'c', |
| | | btn: ['ä¿åæäº¤', 'å
³éåæ¶'], |
| | | yes: function () { |
| | | // æ´æ°å°é¡µé¢ |
| | | var data = form.val("form-detail"); |
| | | obj.update(data); |
| | | // åå¹¶æ´æ°ç¶åç¼è¾æ°æ® |
| | | Object.assign(curSampleData, data); |
| | | |
| | | submit(); |
| | | }, btn2: function () { |
| | | layer.closeAll(); |
| | | }, |
| | | closeBtn: 0 |
| | | }); |
| | | } |
| | | |
| | | // å½å宿 |
| | | function submit() { |
| | | |
| | | if (!curSampleData.sampleUser) { |
| | | layer.alert("请è¾å
¥æ¦æ ·äººï¼ï¼"); |
| | | return; |
| | | } |
| | | if (!curSampleData.sampleTime) { |
| | | layer.alert("请è¾å
¥æ¦æ ·æ¶é´ï¼ï¼"); |
| | | return; |
| | | } |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/update-sample", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(curSampleData), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | layer.close(index); |
| | | notify(result.msg, result.data); |
| | | } else { |
| | | layer.closeAll(); |
| | | curSampleData = null; |
| | | notify("æ°æ®æäº¤æå", result.data); |
| | | flushData(); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.close(index); |
| | | layer.alert("æäº¤å¤±è´¥ï¼è¯·éæ°å°è¯ï¼"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ§å¶æµç¨ç¯èæ¾ç¤º |
| | | function showProgress() { |
| | | if (!inoutProgress) { |
| | | return; |
| | | } |
| | | if (inoutProgress.indexOf("REGISTER") == -1) { |
| | | $("#progress-register").css("display", "none"); |
| | | } |
| | | if (inoutProgress.indexOf("CHECK") == -1) { |
| | | $("#progress-check").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"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å¼¹åºæéæ¡ |
| | | * @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)); |
| | | } |
| | | $("#resultIntelCard").text(data.intelCard); |
| | | |
| | | 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']}); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!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" type="text/css" |
| | | th:href="@{../../static/plugins/layui/css/layui.css?v=2.5.5}"> |
| | | <link rel="stylesheet" type="text/css" |
| | | th:href="@{../../static/admin/inout/style.css}"> |
| | | |
| | | <style type="text/css"> |
| | | .qyzj-tabBox { |
| | | margin-top: 0px !important; |
| | | overflow: hidden; |
| | | width: 100%; |
| | | } |
| | | |
| | | #layui-table-page1 { |
| | | text-align: right !important; |
| | | } |
| | | |
| | | .display-none { |
| | | display: none; |
| | | } |
| | | |
| | | .control-btn { |
| | | height: 35px; |
| | | line-height: 30px; |
| | | background-color: #f67d06; |
| | | } |
| | | |
| | | .tip-red { |
| | | text-align: right; |
| | | padding-left: 40px; |
| | | font-size: 16px; |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | thead span { |
| | | font-weight: bold |
| | | } |
| | | |
| | | #label1, #label4, #label5 { |
| | | color: red; |
| | | } |
| | | |
| | | .layui-select-disabled .layui-disabled { |
| | | color: #000 !important; |
| | | } |
| | | |
| | | .layui-table td { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .rk-step-wrap { |
| | | padding: 0px; |
| | | border-bottom: 0px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .qyzj-btnbox { |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .qyzj-btnbox .rkbk-quick { |
| | | margin-top: 13px; |
| | | } |
| | | |
| | | .qyzj-con { |
| | | margin-top: 10px; |
| | | background: #dee6ec; |
| | | } |
| | | |
| | | .rkbk-search-input { |
| | | background: #FFF !important; |
| | | } |
| | | |
| | | .rkbk-search-input.bg-date { |
| | | background: #FFF !important; |
| | | } |
| | | |
| | | thead span { |
| | | font-weight: bold |
| | | } |
| | | |
| | | .red { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .layui-select-disabled .layui-disabled { |
| | | color: #000 !important; |
| | | } |
| | | |
| | | .layui-table td { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .layui-elem-quote { |
| | | padding: 10px; |
| | | color: blue; |
| | | } |
| | | </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 type="button" class="rkbk-quick-btn layui-btn btn-violet" |
| | | onclick="checkExe('big')"> |
| | | <i><img th:src="@{../../static/images/icon-hyd.png}"/></i>å¤§è½¦æ¦æ · |
| | | </button> |
| | | <button type="button" class="rkbk-quick-btn layui-btn btn-violet" |
| | | onclick="checkExe('small')"> |
| | | <i><img th:src="@{../../static/images/icon-hyd.png}"/></i>å°è½¦æ¦æ · |
| | | </button> |
| | | <button class="rkbk-quick-btn layui-btn btn-blue" |
| | | onclick="checkReset()"> |
| | | <i><img th:src="@{../../static/images/icon-fuwei.png}"/></i>æ¦æ ·å¤ä½ |
| | | </button> |
| | | <button class="rkbk-quick-btn layui-btn btn-red" |
| | | onclick="checkStop()"> |
| | | <i><img th:src="@{../../static/images/icon-stop.png}"/></i>æ¦æ ·æ¥å |
| | | </button> |
| | | <button class="rkbk-quick-btn layui-btn btn-blue" |
| | | onclick="checkResetStop()"> |
| | | <i><img th:src="@{../../static/images/icon-fuwei.png}"/></i>æ¥åå¤ä½ |
| | | </button> |
| | | </div> |
| | | <!--æµç¨å¼å¯¼--> |
| | | <div class="rk-step-wrap fr"> |
| | | <ul class="rk-step"> |
| | | <li id="progress-register" class="active rk-step-first"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{../../static/images/icon-dengji.png}"/> |
| | | </span> |
| | | <p>å
¥åºç»è®°</p> |
| | | </li> |
| | | <li id="progress-check" class="active"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{../../static/images/icon-zhijian.png}"/> |
| | | </span> |
| | | <p>æ¦æ ·è´¨æ£</p> |
| | | </li> |
| | | <li id="progress-fullWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{../../static/images/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>满车称é</p> |
| | | </li> |
| | | <li id="progress-hand"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{../../static/images/icon-xiehuo.png}"/> |
| | | </span> |
| | | <p>å
¥åºå¼ä»</p> |
| | | </li> |
| | | <li id="progress-emptyWeight"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{../../static/images/icon-chengzhong.png}"/> |
| | | </span> |
| | | <p>空车称é</p> |
| | | </li> |
| | | <li id="progress-cardBack"> |
| | | <span class="rk-step-span"> |
| | | <img th:src="@{../../static/images/icon-banli.png}"/> |
| | | </span> |
| | | <p>离åºç¡®è®¤</p> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="qyzj-con radius-6"> |
| | | <div class="qyzj-con-top layui-row"> |
| | | <form class="layui-form" action="" id="form-param" lay-filter="form-param"> |
| | | |
| | | <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-form-item display-none"> |
| | | <label class="layui-form-label">éè-æµç¨</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="progress" th:value="${progress}" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">è´¨æ£åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="checkId" placeholder="请è¾å
¥" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">车è¹å·</label> |
| | | <div class="layui-input-block rkbk-selBox"> |
| | | <input type="text" name="plateNum" placeholder="请è¾å
¥" autocomplete="off" |
| | | class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">èµ·å§æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="start" placeholder="请è¾å
¥" |
| | | autocomplete="off" |
| | | class="layui-input rkbk-search-input bg-date" id="start"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æªæ¢æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="end" placeholder="请è¾å
¥" |
| | | autocomplete="off" |
| | | class="layui-input rkbk-search-input bg-date" id="end"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">æ¯å¦æ¦æ ·</label> |
| | | <div class="layui-input-block rkbk-selBox"> |
| | | <select name="sampleStatus"> |
| | | <option value="NONE" selected>æªæ¦æ ·</option> |
| | | <option value="SAMPLE">å·²æ¦æ ·</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3 layui-text-right"> |
| | | <input type="button" value="æ¥è¯¢/å·æ°" |
| | | class="qyzj-top-btn layui-btn btn-blue" onclick="flushData()"/> |
| | | <input type="button" value="æ¸
空æ¡ä»¶" |
| | | class="qyzj-top-btn layui-btn btn-red" onclick="resetForm()"/> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | <div class="qyzj-tabBox"> |
| | | <table class="layui-table" lay-skin="nob" id="tableData" |
| | | lay-filter="tableData"> |
| | | <colgroup> |
| | | <col width="10%"> |
| | | <col width="10%"> |
| | | <col width="15%"> |
| | | <col width="10%"> |
| | | <col width="10%"> |
| | | <col width="15%"> |
| | | <col width="10%"> |
| | | <col width=""> |
| | | </colgroup> |
| | | <thead> |
| | | <tr class="qyzj-table-tit"> |
| | | <th>è´¨æ£åå·</th> |
| | | <th>车è¹å·</th> |
| | | <th>ç»è®°æ¶é´</th> |
| | | <th>æ¯å¦æ¦æ ·</th> |
| | | <th>æ¦æ ·äºº</th> |
| | | <th>æ¦æ ·æ¶é´</th> |
| | | <th>æ¦æ ·ç±»å</th> |
| | | <th>æä½</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script th:inline="javascript"> |
| | | var progress = [[${progress}]]; |
| | | var listDepot = [[${listDepot}]]; |
| | | //ä¸å¡æ¥éª¤ |
| | | var bizType = [[${bizType}]]; |
| | | //åºå
¥åºç±»å |
| | | var type = [[${type}]]; |
| | | //userId |
| | | var userId = [[${loginUser.username}]]; |
| | | |
| | | var checkUser = [[${loginUser.cname}]]; |
| | | |
| | | var companyId = [[${loginUser.companyId}]]; |
| | | //åç§ |
| | | var listFoodVariety = [[${listFoodVariety}]]; |
| | | var startTime = [[${startTime}]]; |
| | | var endTime = [[${endTime}]]; |
| | | //æ¦æ ·æºä¿¡æ¯ |
| | | var checkDto = [[${checkDto}]]; |
| | | |
| | | //æå±ååº |
| | | var deptId = [[${deptId}]]; |
| | | |
| | | var inoutProgress = [[${inoutProgress}]]; |
| | | |
| | | </script> |
| | | |
| | | |
| | | <script th:src="@{../../static/plugins/layui/layui.js}"></script> |
| | | <script th:src="@{../../static/js/jquery.min.js}"></script> |
| | | <script th:src="@{../../static/js/constant.js}"></script> |
| | | <script th:src="@{../../static/js/igds-common.js}"></script> |
| | | <script th:src="@{../../static/admin/inout/in-sample.js}"></script> |
| | | |
| | | <script type="text/html" id="barControl"> |
| | | <a class="layui-btn control-btn" lay-event="edit">æ¦æ ·ç¡®è®¤</a> |
| | | </script> |
| | | </body> |
| | | |
| | | <!-- åéªä¿¡æ¯ï¼å
æ¬åºæ¬ä¿¡æ¯ååéªç»æ --> |
| | | <div class="layui-tab-content" id="checkDetail" style="display: none;"> |
| | | <!-- 表ååºæ¬ä¿¡æ¯ --> |
| | | <form class="layui-form" id="form-detail" lay-filter="form-detail"> |
| | | |
| | | <div class="layui-col-xs6" style="display: none;"> |
| | | <div class="layui-form-item"> |
| | | <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> |
| | | |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">è´¨æ£åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="checkId" autocomplete="off" |
| | | class="layui-input rkbk-search-input" disabled=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">车 ç å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="plateNum" autocomplete="off" |
| | | class="layui-input rkbk-search-input" disabled=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">ç»è®°æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="registerTime" autocomplete="off" |
| | | class="layui-input rkbk-search-input" disabled=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label red">æ¦æ ·äººå</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="sampleUser" autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label red">æ¦æ ·æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="sampleTime" autocomplete="off" class="layui-input rkbk-search-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label red">æ¦æ ·æ¹å¼</label> |
| | | <div class="layui-input-block"> |
| | | <input type="radio" name="sampleType" value="0" title="人工" checked> |
| | | <input type="radio" name="sampleType" value="1" title="èªå¨"> |
| | | <input type="radio" name="sampleType" value="2" title="æºè½éæº"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs12"> |
| | | <blockquote class="layui-elem-quote"> |
| | | <div> |
| | | <span style="font-weight: bold; margin-right: 10px;">夿³¨ï¼æ¦æ ·æ¶é´éæäºç»è®°æ¶é´</span> |
| | | </div> |
| | | </blockquote> |
| | | </div> |
| | | </form> |
| | | </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> |
| | | <tr> |
| | | <td>æºæ
§å¡å·</td> |
| | | <td id="resultIntelCard" style="font-weight: bold;"></td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | </html> |