jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/controller/DaPassingStationCollectionController.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,105 @@ package com.jcdm.main.da.passingStationCollection.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; import com.jcdm.main.da.passingStationCollection.domain.DaPassingStationCollection; import com.jcdm.main.da.passingStationCollection.service.IDaPassingStationCollectionService; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.jcdm.common.annotation.Log; import com.jcdm.common.core.controller.BaseController; import com.jcdm.common.core.domain.AjaxResult; import com.jcdm.common.enums.BusinessType; import com.jcdm.common.utils.poi.ExcelUtil; import com.jcdm.common.core.page.TableDataInfo; /** * 产åè¿ç«ééController * * @author yyt * @date 2023-12-12 */ @RestController @RequestMapping("/da/passingStationCollection") public class DaPassingStationCollectionController extends BaseController { @Autowired private IDaPassingStationCollectionService daPassingStationCollectionService; /** * æ¥è¯¢äº§åè¿ç«ééå表 */ @PreAuthorize("@ss.hasPermi('da:passingStationCollection:list')") @GetMapping("/list") public TableDataInfo list(DaPassingStationCollection daPassingStationCollection) { startPage(); List<DaPassingStationCollection> list = daPassingStationCollectionService.selectDaPassingStationCollectionList(daPassingStationCollection); return getDataTable(list); } /** * 导åºäº§åè¿ç«ééå表 */ @PreAuthorize("@ss.hasPermi('da:passingStationCollection:export')") @Log(title = "产åè¿ç«éé", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, DaPassingStationCollection daPassingStationCollection) { List<DaPassingStationCollection> list = daPassingStationCollectionService.selectDaPassingStationCollectionList(daPassingStationCollection); ExcelUtil<DaPassingStationCollection> util = new ExcelUtil<DaPassingStationCollection>(DaPassingStationCollection.class); util.exportExcel(response, list, "产åè¿ç«ééæ°æ®"); } /** * è·å产åè¿ç«éé详ç»ä¿¡æ¯ */ @PreAuthorize("@ss.hasPermi('da:passingStationCollection:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(daPassingStationCollectionService.selectDaPassingStationCollectionById(id)); } /** * æ°å¢äº§åè¿ç«éé */ @PreAuthorize("@ss.hasPermi('da:passingStationCollection:add')") @Log(title = "产åè¿ç«éé", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody DaPassingStationCollection daPassingStationCollection) { return toAjax(daPassingStationCollectionService.insertDaPassingStationCollection(daPassingStationCollection)); } /** * ä¿®æ¹äº§åè¿ç«éé */ @PreAuthorize("@ss.hasPermi('da:passingStationCollection:edit')") @Log(title = "产åè¿ç«éé", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody DaPassingStationCollection daPassingStationCollection) { return toAjax(daPassingStationCollectionService.updateDaPassingStationCollection(daPassingStationCollection)); } /** * å é¤äº§åè¿ç«éé */ @PreAuthorize("@ss.hasPermi('da:passingStationCollection:remove')") @Log(title = "产åè¿ç«éé", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(daPassingStationCollectionService.deleteDaPassingStationCollectionByIds(ids)); } } jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/domain/DaPassingStationCollection.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,292 @@ package com.jcdm.main.da.passingStationCollection.domain; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.jcdm.common.annotation.Excel; import com.jcdm.common.core.domain.BaseEntity; /** * 产åè¿ç«éé对象 da_passing_station_collection * * @author yyt * @date 2023-12-12 */ public class DaPassingStationCollection extends BaseEntity { private static final long serialVersionUID = 1L; /** 主é®id */ private Long id; /** å·¥åç¼å· */ @Excel(name = "å·¥åç¼å·") private String workOrderNo; /** æ»æåºåå· */ @Excel(name = "æ»æåºåå·") private String sfcCode; /** 产åç¼å· */ @Excel(name = "产åç¼å·") private String productCode; /** 产线ç¼å· */ @Excel(name = "产线ç¼å·") private String productionLine; /** å·¥ä½ç¼å· */ @Excel(name = "å·¥ä½ç¼å·") private String locationCode; /** 设å¤ç¼å· */ @Excel(name = "设å¤ç¼å·") private String equipmentNo; /** å ¥ç«æ¶é´ */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "å ¥ç«æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") private Date inboundTime; /** åºç«æ¶é´ */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "åºç«æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") private Date outboundTime; /** å ¥ç«æ¯å¦åæ ¼ */ @Excel(name = "å ¥ç«æ¯å¦åæ ¼") private String inRsSign; /** å ¥ç«NGåå */ @Excel(name = "å ¥ç«NGåå ") private String inMsgSign; /** åºç«æ¯å¦åæ ¼ */ @Excel(name = "åºç«æ¯å¦åæ ¼") private String outRsSign; /** åºç«NGåå */ @Excel(name = "åºç«NGåå ") private String outMsgSign; /** ééæ¶é´ */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "ééæ¶é´", width = 30, dateFormat = "yyyy-MM-dd") private Date collectionTime; /** é¢çå段1 */ private String spareField1; /** é¢çå段2 */ private String spareField2; /** å建ç¨æ· */ private String createUser; /** æ´æ¹ç¨æ· */ private String updateUser; /** èææ¶é´ */ @Excel(name = "èææ¶é´") private String beatTime; public void setId(Long id) { this.id = id; } public Long getId() { return id; } public void setWorkOrderNo(String workOrderNo) { this.workOrderNo = workOrderNo; } public String getWorkOrderNo() { return workOrderNo; } public void setSfcCode(String sfcCode) { this.sfcCode = sfcCode; } public String getSfcCode() { return sfcCode; } public void setProductCode(String productCode) { this.productCode = productCode; } public String getProductCode() { return productCode; } public void setProductionLine(String productionLine) { this.productionLine = productionLine; } public String getProductionLine() { return productionLine; } public void setLocationCode(String locationCode) { this.locationCode = locationCode; } public String getLocationCode() { return locationCode; } public void setEquipmentNo(String equipmentNo) { this.equipmentNo = equipmentNo; } public String getEquipmentNo() { return equipmentNo; } public void setInboundTime(Date inboundTime) { this.inboundTime = inboundTime; } public Date getInboundTime() { return inboundTime; } public void setOutboundTime(Date outboundTime) { this.outboundTime = outboundTime; } public Date getOutboundTime() { return outboundTime; } public void setInRsSign(String inRsSign) { this.inRsSign = inRsSign; } public String getInRsSign() { return inRsSign; } public void setInMsgSign(String inMsgSign) { this.inMsgSign = inMsgSign; } public String getInMsgSign() { return inMsgSign; } public void setOutRsSign(String outRsSign) { this.outRsSign = outRsSign; } public String getOutRsSign() { return outRsSign; } public void setOutMsgSign(String outMsgSign) { this.outMsgSign = outMsgSign; } public String getOutMsgSign() { return outMsgSign; } public void setCollectionTime(Date collectionTime) { this.collectionTime = collectionTime; } public Date getCollectionTime() { return collectionTime; } public void setSpareField1(String spareField1) { this.spareField1 = spareField1; } public String getSpareField1() { return spareField1; } public void setSpareField2(String spareField2) { this.spareField2 = spareField2; } public String getSpareField2() { return spareField2; } public void setCreateUser(String createUser) { this.createUser = createUser; } public String getCreateUser() { return createUser; } public void setUpdateUser(String updateUser) { this.updateUser = updateUser; } public String getUpdateUser() { return updateUser; } public void setBeatTime(String beatTime) { this.beatTime = beatTime; } public String getBeatTime() { return beatTime; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("workOrderNo", getWorkOrderNo()) .append("sfcCode", getSfcCode()) .append("productCode", getProductCode()) .append("productionLine", getProductionLine()) .append("locationCode", getLocationCode()) .append("equipmentNo", getEquipmentNo()) .append("inboundTime", getInboundTime()) .append("outboundTime", getOutboundTime()) .append("inRsSign", getInRsSign()) .append("inMsgSign", getInMsgSign()) .append("outRsSign", getOutRsSign()) .append("outMsgSign", getOutMsgSign()) .append("collectionTime", getCollectionTime()) .append("spareField1", getSpareField1()) .append("spareField2", getSpareField2()) .append("createUser", getCreateUser()) .append("createTime", getCreateTime()) .append("updateUser", getUpdateUser()) .append("updateTime", getUpdateTime()) .append("beatTime", getBeatTime()) .toString(); } } jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/mapper/DaPassingStationCollectionMapper.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,62 @@ package com.jcdm.main.da.passingStationCollection.mapper; import com.jcdm.main.da.passingStationCollection.domain.DaPassingStationCollection; import java.util.List; /** * 产åè¿ç«ééMapperæ¥å£ * * @author yyt * @date 2023-12-12 */ public interface DaPassingStationCollectionMapper { /** * æ¥è¯¢äº§åè¿ç«éé * * @param id 产åè¿ç«ééä¸»é® * @return 产åè¿ç«éé */ public DaPassingStationCollection selectDaPassingStationCollectionById(Long id); /** * æ¥è¯¢äº§åè¿ç«ééå表 * * @param daPassingStationCollection 产åè¿ç«éé * @return 产åè¿ç«éééå */ public List<DaPassingStationCollection> selectDaPassingStationCollectionList(DaPassingStationCollection daPassingStationCollection); /** * æ°å¢äº§åè¿ç«éé * * @param daPassingStationCollection 产åè¿ç«éé * @return ç»æ */ public int insertDaPassingStationCollection(DaPassingStationCollection daPassingStationCollection); /** * ä¿®æ¹äº§åè¿ç«éé * * @param daPassingStationCollection 产åè¿ç«éé * @return ç»æ */ public int updateDaPassingStationCollection(DaPassingStationCollection daPassingStationCollection); /** * å é¤äº§åè¿ç«éé * * @param id 产åè¿ç«ééä¸»é® * @return ç»æ */ public int deleteDaPassingStationCollectionById(Long id); /** * æ¹éå é¤äº§åè¿ç«éé * * @param ids éè¦å é¤çæ°æ®ä¸»é®éå * @return ç»æ */ public int deleteDaPassingStationCollectionByIds(Long[] ids); } jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/IDaPassingStationCollectionService.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,62 @@ package com.jcdm.main.da.passingStationCollection.service; import com.jcdm.main.da.passingStationCollection.domain.DaPassingStationCollection; import java.util.List; /** * 产åè¿ç«ééServiceæ¥å£ * * @author yyt * @date 2023-12-12 */ public interface IDaPassingStationCollectionService { /** * æ¥è¯¢äº§åè¿ç«éé * * @param id 产åè¿ç«ééä¸»é® * @return 产åè¿ç«éé */ public DaPassingStationCollection selectDaPassingStationCollectionById(Long id); /** * æ¥è¯¢äº§åè¿ç«ééå表 * * @param daPassingStationCollection 产åè¿ç«éé * @return 产åè¿ç«éééå */ public List<DaPassingStationCollection> selectDaPassingStationCollectionList(DaPassingStationCollection daPassingStationCollection); /** * æ°å¢äº§åè¿ç«éé * * @param daPassingStationCollection 产åè¿ç«éé * @return ç»æ */ public int insertDaPassingStationCollection(DaPassingStationCollection daPassingStationCollection); /** * ä¿®æ¹äº§åè¿ç«éé * * @param daPassingStationCollection 产åè¿ç«éé * @return ç»æ */ public int updateDaPassingStationCollection(DaPassingStationCollection daPassingStationCollection); /** * æ¹éå é¤äº§åè¿ç«éé * * @param ids éè¦å é¤ç产åè¿ç«éé主é®éå * @return ç»æ */ public int deleteDaPassingStationCollectionByIds(Long[] ids); /** * å é¤äº§åè¿ç«ééä¿¡æ¯ * * @param id 产åè¿ç«ééä¸»é® * @return ç»æ */ public int deleteDaPassingStationCollectionById(Long id); } jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/impl/DaPassingStationCollectionServiceImpl.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,96 @@ package com.jcdm.main.da.passingStationCollection.service.impl; import java.util.List; import com.jcdm.common.utils.DateUtils; import com.jcdm.main.da.passingStationCollection.domain.DaPassingStationCollection; import com.jcdm.main.da.passingStationCollection.mapper.DaPassingStationCollectionMapper; import com.jcdm.main.da.passingStationCollection.service.IDaPassingStationCollectionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * 产åè¿ç«ééServiceä¸å¡å±å¤ç * * @author yyt * @date 2023-12-12 */ @Service public class DaPassingStationCollectionServiceImpl implements IDaPassingStationCollectionService { @Autowired private DaPassingStationCollectionMapper daPassingStationCollectionMapper; /** * æ¥è¯¢äº§åè¿ç«éé * * @param id 产åè¿ç«ééä¸»é® * @return 产åè¿ç«éé */ @Override public DaPassingStationCollection selectDaPassingStationCollectionById(Long id) { return daPassingStationCollectionMapper.selectDaPassingStationCollectionById(id); } /** * æ¥è¯¢äº§åè¿ç«ééå表 * * @param daPassingStationCollection 产åè¿ç«éé * @return 产åè¿ç«éé */ @Override public List<DaPassingStationCollection> selectDaPassingStationCollectionList(DaPassingStationCollection daPassingStationCollection) { return daPassingStationCollectionMapper.selectDaPassingStationCollectionList(daPassingStationCollection); } /** * æ°å¢äº§åè¿ç«éé * * @param daPassingStationCollection 产åè¿ç«éé * @return ç»æ */ @Override public int insertDaPassingStationCollection(DaPassingStationCollection daPassingStationCollection) { daPassingStationCollection.setCreateTime(DateUtils.getNowDate()); return daPassingStationCollectionMapper.insertDaPassingStationCollection(daPassingStationCollection); } /** * ä¿®æ¹äº§åè¿ç«éé * * @param daPassingStationCollection 产åè¿ç«éé * @return ç»æ */ @Override public int updateDaPassingStationCollection(DaPassingStationCollection daPassingStationCollection) { daPassingStationCollection.setUpdateTime(DateUtils.getNowDate()); return daPassingStationCollectionMapper.updateDaPassingStationCollection(daPassingStationCollection); } /** * æ¹éå é¤äº§åè¿ç«éé * * @param ids éè¦å é¤ç产åè¿ç«ééä¸»é® * @return ç»æ */ @Override public int deleteDaPassingStationCollectionByIds(Long[] ids) { return daPassingStationCollectionMapper.deleteDaPassingStationCollectionByIds(ids); } /** * å é¤äº§åè¿ç«ééä¿¡æ¯ * * @param id 产åè¿ç«ééä¸»é® * @return ç»æ */ @Override public int deleteDaPassingStationCollectionById(Long id) { return daPassingStationCollectionMapper.deleteDaPassingStationCollectionById(id); } } jcdm-main/src/main/resources/mapper/da/passingStationCollection/DaPassingStationCollectionMapper.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,141 @@ <?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.jcdm.main.da.passingStationCollection.mapper.DaPassingStationCollectionMapper"> <resultMap type="DaPassingStationCollection" id="DaPassingStationCollectionResult"> <result property="id" column="id" /> <result property="workOrderNo" column="work_order_no" /> <result property="sfcCode" column="sfc_code" /> <result property="productCode" column="product_code" /> <result property="productionLine" column="production_line" /> <result property="locationCode" column="location_code" /> <result property="equipmentNo" column="equipment_no" /> <result property="inboundTime" column="inbound_time" /> <result property="outboundTime" column="outbound_time" /> <result property="inRsSign" column="in_rs_sign" /> <result property="inMsgSign" column="in_msg_sign" /> <result property="outRsSign" column="out_rs_sign" /> <result property="outMsgSign" column="out_msg_sign" /> <result property="collectionTime" column="collection_time" /> <result property="spareField1" column="spare_field_1" /> <result property="spareField2" column="spare_field_2" /> <result property="createUser" column="create_user" /> <result property="createTime" column="create_time" /> <result property="updateUser" column="update_user" /> <result property="updateTime" column="update_time" /> <result property="beatTime" column="beat_time" /> </resultMap> <sql id="selectDaPassingStationCollectionVo"> select id, work_order_no, sfc_code, product_code, production_line, location_code, equipment_no, inbound_time, outbound_time, in_rs_sign, in_msg_sign, out_rs_sign, out_msg_sign, collection_time, spare_field_1, spare_field_2, create_user, create_time, update_user, update_time, beat_time from da_passing_station_collection </sql> <select id="selectDaPassingStationCollectionList" parameterType="DaPassingStationCollection" resultMap="DaPassingStationCollectionResult"> <include refid="selectDaPassingStationCollectionVo"/> <where> <if test="workOrderNo != null and workOrderNo != ''"> and work_order_no = #{workOrderNo}</if> <if test="sfcCode != null and sfcCode != ''"> and sfc_code = #{sfcCode}</if> <if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if> <if test="productionLine != null and productionLine != ''"> and production_line = #{productionLine}</if> <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> <if test="equipmentNo != null and equipmentNo != ''"> and equipment_no = #{equipmentNo}</if> <if test="inboundTime != null "> and inbound_time = #{inboundTime}</if> <if test="outboundTime != null "> and outbound_time = #{outboundTime}</if> </where> </select> <select id="selectDaPassingStationCollectionById" parameterType="Long" resultMap="DaPassingStationCollectionResult"> <include refid="selectDaPassingStationCollectionVo"/> where id = #{id} </select> <insert id="insertDaPassingStationCollection" parameterType="DaPassingStationCollection"> insert into da_passing_station_collection <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">id,</if> <if test="workOrderNo != null">work_order_no,</if> <if test="sfcCode != null">sfc_code,</if> <if test="productCode != null">product_code,</if> <if test="productionLine != null">production_line,</if> <if test="locationCode != null">location_code,</if> <if test="equipmentNo != null">equipment_no,</if> <if test="inboundTime != null">inbound_time,</if> <if test="outboundTime != null">outbound_time,</if> <if test="inRsSign != null">in_rs_sign,</if> <if test="inMsgSign != null">in_msg_sign,</if> <if test="outRsSign != null">out_rs_sign,</if> <if test="outMsgSign != null">out_msg_sign,</if> <if test="collectionTime != null">collection_time,</if> <if test="spareField1 != null">spare_field_1,</if> <if test="spareField2 != null">spare_field_2,</if> <if test="createUser != null">create_user,</if> <if test="createTime != null">create_time,</if> <if test="updateUser != null">update_user,</if> <if test="updateTime != null">update_time,</if> <if test="beatTime != null">beat_time,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id},</if> <if test="workOrderNo != null">#{workOrderNo},</if> <if test="sfcCode != null">#{sfcCode},</if> <if test="productCode != null">#{productCode},</if> <if test="productionLine != null">#{productionLine},</if> <if test="locationCode != null">#{locationCode},</if> <if test="equipmentNo != null">#{equipmentNo},</if> <if test="inboundTime != null">#{inboundTime},</if> <if test="outboundTime != null">#{outboundTime},</if> <if test="inRsSign != null">#{inRsSign},</if> <if test="inMsgSign != null">#{inMsgSign},</if> <if test="outRsSign != null">#{outRsSign},</if> <if test="outMsgSign != null">#{outMsgSign},</if> <if test="collectionTime != null">#{collectionTime},</if> <if test="spareField1 != null">#{spareField1},</if> <if test="spareField2 != null">#{spareField2},</if> <if test="createUser != null">#{createUser},</if> <if test="createTime != null">#{createTime},</if> <if test="updateUser != null">#{updateUser},</if> <if test="updateTime != null">#{updateTime},</if> <if test="beatTime != null">#{beatTime},</if> </trim> </insert> <update id="updateDaPassingStationCollection" parameterType="DaPassingStationCollection"> update da_passing_station_collection <trim prefix="SET" suffixOverrides=","> <if test="workOrderNo != null">work_order_no = #{workOrderNo},</if> <if test="sfcCode != null">sfc_code = #{sfcCode},</if> <if test="productCode != null">product_code = #{productCode},</if> <if test="productionLine != null">production_line = #{productionLine},</if> <if test="locationCode != null">location_code = #{locationCode},</if> <if test="equipmentNo != null">equipment_no = #{equipmentNo},</if> <if test="inboundTime != null">inbound_time = #{inboundTime},</if> <if test="outboundTime != null">outbound_time = #{outboundTime},</if> <if test="inRsSign != null">in_rs_sign = #{inRsSign},</if> <if test="inMsgSign != null">in_msg_sign = #{inMsgSign},</if> <if test="outRsSign != null">out_rs_sign = #{outRsSign},</if> <if test="outMsgSign != null">out_msg_sign = #{outMsgSign},</if> <if test="collectionTime != null">collection_time = #{collectionTime},</if> <if test="spareField1 != null">spare_field_1 = #{spareField1},</if> <if test="spareField2 != null">spare_field_2 = #{spareField2},</if> <if test="createUser != null">create_user = #{createUser},</if> <if test="createTime != null">create_time = #{createTime},</if> <if test="updateUser != null">update_user = #{updateUser},</if> <if test="updateTime != null">update_time = #{updateTime},</if> <if test="beatTime != null">beat_time = #{beatTime},</if> </trim> where id = #{id} </update> <delete id="deleteDaPassingStationCollectionById" parameterType="Long"> delete from da_passing_station_collection where id = #{id} </delete> <delete id="deleteDaPassingStationCollectionByIds" parameterType="String"> delete from da_passing_station_collection where id in <foreach item="id" collection="array" open="(" separator="," close=")"> #{id} </foreach> </delete> </mapper> jcdm-ui/src/api/main/da/passingStationCollection/passingStationCollection.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,44 @@ import request from '@/utils/request' // æ¥è¯¢äº§åè¿ç«ééå表 export function listPassingStationCollection(query) { return request({ url: '/da/passingStationCollection/list', method: 'get', params: query }) } // æ¥è¯¢äº§åè¿ç«ééè¯¦ç» export function getPassingStationCollection(id) { return request({ url: '/da/passingStationCollection/' + id, method: 'get' }) } // æ°å¢äº§åè¿ç«éé export function addPassingStationCollection(data) { return request({ url: '/da/passingStationCollection', method: 'post', data: data }) } // ä¿®æ¹äº§åè¿ç«éé export function updatePassingStationCollection(data) { return request({ url: '/da/passingStationCollection', method: 'put', data: data }) } // å é¤äº§åè¿ç«éé export function delPassingStationCollection(id) { return request({ url: '/da/passingStationCollection/' + id, method: 'delete' }) } jcdm-ui/src/views/main/bs/material/index.vue
@@ -315,9 +315,9 @@ <el-form-item label="åä½" prop="unit"> <el-input v-model="form.unit" placeholder="请è¾å ¥åä½" /> </el-form-item> <el-form-item label="çæ¬" prop="matterVersion"> <el-input v-model="form.matterVersion" placeholder="请è¾å ¥çæ¬" /> </el-form-item> <!-- <el-form-item label="çæ¬" prop="matterVersion">--> <!-- <el-input v-model="form.matterVersion" placeholder="请è¾å ¥çæ¬" />--> <!-- </el-form-item>--> <el-form-item label="å¤æ³¨" prop="remarks"> <el-input v-model="form.remarks" placeholder="请è¾å ¥å¤æ³¨" /> </el-form-item> @@ -333,9 +333,9 @@ <el-form-item label="æ°æ®æ¥æº" prop="dataSource"> <el-input v-model="form.dataSource" placeholder="请è¾å ¥æ°æ®æ¥æº" /> </el-form-item> <el-form-item label="çæ¬" prop="version"> <el-input v-model="form.version" placeholder="请è¾å ¥çæ¬" /> </el-form-item> <!-- <el-form-item label="çæ¬" prop="version">--> <!-- <el-input v-model="form.version" placeholder="请è¾å ¥çæ¬" />--> <!-- </el-form-item>--> <el-form-item label="ç¶æ" prop="status"> <el-radio-group v-model="form.status"> <el-radio jcdm-ui/src/views/main/da/passingStationCollection/index.vue
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,417 @@ <template> <div class="app-container"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="å ¥ç«æ¶é´" prop="inboundTime"> <el-date-picker clearable v-model="queryParams.inboundTime" type="date" value-format="yyyy-MM-dd" placeholder="请éæ©å ¥ç«æ¶é´"> </el-date-picker> </el-form-item> <el-form-item label="åºç«æ¶é´" prop="outboundTime"> <el-date-picker clearable v-model="queryParams.outboundTime" type="date" value-format="yyyy-MM-dd" placeholder="请éæ©åºç«æ¶é´"> </el-date-picker> </el-form-item> <el-form-item> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">æç´¢</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">éç½®</el-button> </el-form-item> </el-form> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['da:passingStationCollection:add']" >æ°å¢</el-button> </el-col> <el-col :span="1.5"> <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['da:passingStationCollection:edit']" >ä¿®æ¹</el-button> </el-col> <el-col :span="1.5"> <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['da:passingStationCollection:remove']" >å é¤</el-button> </el-col> <el-col :span="1.5"> <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['da:passingStationCollection:export']" >导åº</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> <el-table v-loading="loading" :data="passingStationCollectionList" @selection-change="handleSelectionChange"> <el-table-column type="selection" width="55" align="center" /> <!-- <el-table-column label="主é®id" align="center" prop="id" />--> <el-table-column label="å·¥åç¼å·" align="center" prop="workOrderNo"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.workOrderNo"/>--> <!-- </template>--> </el-table-column> <el-table-column label="æ»æåºåå·" align="center" prop="sfcCode"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.sfcCode"/>--> <!-- </template>--> </el-table-column> <el-table-column label="产åç¼å·" align="center" prop="productCode"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.productCode"/>--> <!-- </template>--> </el-table-column> <el-table-column label="产线ç¼å·" align="center" prop="productionLine"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.productionLine"/>--> <!-- </template>--> </el-table-column> <el-table-column label="å·¥ä½ç¼å·" align="center" prop="locationCode"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.locationCode"/>--> <!-- </template>--> </el-table-column> <el-table-column label="设å¤ç¼å·" align="center" prop="equipmentNo"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.equipmentNo"/>--> <!-- </template>--> </el-table-column> <el-table-column label="å ¥ç«æ¶é´" align="center" prop="inboundTime" width="100"> <template slot-scope="scope"> <span>{{ parseTime(scope.row.inboundTime, '{y}-{m}-{d}') }}</span> </template> </el-table-column> <el-table-column label="åºç«æ¶é´" align="center" prop="outboundTime" width="100"> <template slot-scope="scope"> <span>{{ parseTime(scope.row.outboundTime, '{y}-{m}-{d}') }}</span> </template> </el-table-column> <el-table-column label="å ¥ç«æ¯å¦åæ ¼" align="center" prop="inRsSign"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.inRsSign"/>--> <!-- </template>--> </el-table-column> <el-table-column label="å ¥ç«NGåå " align="center" prop="inMsgSign"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.inMsgSign"/>--> <!-- </template>--> </el-table-column> <el-table-column label="åºç«æ¯å¦åæ ¼" align="center" prop="outRsSign"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.outRsSign"/>--> <!-- </template>--> </el-table-column> <el-table-column label="åºç«NGåå " align="center" prop="outMsgSign"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.outMsgSign"/>--> <!-- </template>--> </el-table-column> <el-table-column label="ééæ¶é´" align="center" prop="collectionTime" width="180"> <template slot-scope="scope"> <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d}') }}</span> </template> </el-table-column> <el-table-column label="èææ¶é´" align="center" prop="beatTime"> <!-- <template slot-scope="scope">--> <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.beatTime"/>--> <!-- </template>--> </el-table-column> <el-table-column label="æä½" align="center" class-name="small-padding fixed-width"> <template slot-scope="scope"> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['da:passingStationCollection:edit']" >ä¿®æ¹</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['da:passingStationCollection:remove']" >å é¤</el-button> </template> </el-table-column> </el-table> <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> <!-- æ·»å æä¿®æ¹äº§åè¿ç«éé对è¯æ¡ --> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form-item label="å·¥åç¼å·" prop="workOrderNo"> <el-input v-model="form.workOrderNo" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="æ»æåºåå·" prop="sfcCode"> <el-input v-model="form.sfcCode" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="产åç¼å·" prop="productCode"> <el-input v-model="form.productCode" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="产线ç¼å·" prop="productionLine"> <el-input v-model="form.productionLine" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="å·¥ä½ç¼å·" prop="locationCode"> <el-input v-model="form.locationCode" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="设å¤ç¼å·" prop="equipmentNo"> <el-input v-model="form.equipmentNo" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="å ¥ç«æ¶é´" prop="inboundTime"> <el-date-picker clearable v-model="form.inboundTime" type="date" value-format="yyyy-MM-dd" placeholder="请éæ©å ¥ç«æ¶é´"> </el-date-picker> </el-form-item> <el-form-item label="åºç«æ¶é´" prop="outboundTime"> <el-date-picker clearable v-model="form.outboundTime" type="date" value-format="yyyy-MM-dd" placeholder="请éæ©åºç«æ¶é´"> </el-date-picker> </el-form-item> <el-form-item label="å ¥ç«æ¯å¦åæ ¼" prop="inRsSign"> <el-input v-model="form.inRsSign" placeholder="请è¾å ¥å ¥ç«æ¯å¦åæ ¼" /> </el-form-item> <el-form-item label="å ¥ç«NGåå " prop="inMsgSign"> <el-input v-model="form.inMsgSign" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="åºç«æ¯å¦åæ ¼" prop="outRsSign"> <el-input v-model="form.outRsSign" placeholder="请è¾å ¥åºç«æ¯å¦åæ ¼" /> </el-form-item> <el-form-item label="åºç«NGåå " prop="outMsgSign"> <el-input v-model="form.outMsgSign" type="textarea" placeholder="请è¾å ¥å 容" /> </el-form-item> <el-form-item label="ééæ¶é´" prop="collectionTime"> <el-date-picker clearable v-model="form.collectionTime" type="date" value-format="yyyy-MM-dd" placeholder="请éæ©ééæ¶é´"> </el-date-picker> </el-form-item> <!-- <el-form-item label="é¢çå段1" prop="spareField1">--> <!-- <el-input v-model="form.spareField1" type="textarea" placeholder="请è¾å ¥å 容" />--> <!-- </el-form-item>--> <!-- <el-form-item label="é¢çå段2" prop="spareField2">--> <!-- <el-input v-model="form.spareField2" type="textarea" placeholder="请è¾å ¥å 容" />--> <!-- </el-form-item>--> <!-- <el-form-item label="å建ç¨æ·" prop="createUser">--> <!-- <el-input v-model="form.createUser" type="textarea" placeholder="请è¾å ¥å 容" />--> <!-- </el-form-item>--> <!-- <el-form-item label="æ´æ¹ç¨æ·" prop="updateUser">--> <!-- <el-input v-model="form.updateUser" type="textarea" placeholder="请è¾å ¥å 容" />--> <!-- </el-form-item>--> <el-form-item label="èææ¶é´" prop="beatTime"> <el-input v-model="form.beatTime" placeholder="请è¾å ¥èææ¶é´" /> </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> <el-button type="primary" @click="submitForm">ç¡® å®</el-button> <el-button @click="cancel">å æ¶</el-button> </div> </el-dialog> </div> </template> <script> import { listPassingStationCollection, getPassingStationCollection, delPassingStationCollection, addPassingStationCollection, updatePassingStationCollection } from "@/api/main/da/passingStationCollection/passingStationCollection"; export default { name: "PassingStationCollection", data() { return { // é®ç½©å± loading: true, // éä¸æ°ç» ids: [], // éå个ç¦ç¨ single: true, // éå¤ä¸ªç¦ç¨ multiple: true, // æ¾ç¤ºæç´¢æ¡ä»¶ showSearch: true, // æ»æ¡æ° total: 0, // 产åè¿ç«ééè¡¨æ ¼æ°æ® passingStationCollectionList: [], // å¼¹åºå±æ é¢ title: "", // æ¯å¦æ¾ç¤ºå¼¹åºå± open: false, // æ¥è¯¢åæ° queryParams: { pageNum: 1, pageSize: 10, workOrderNo: null, sfcCode: null, productCode: null, productionLine: null, locationCode: null, equipmentNo: null, inboundTime: null, outboundTime: null, }, // 表ååæ° form: {}, // 表åæ ¡éª rules: { id: [ { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } ], } }; }, created() { this.getList(); }, methods: { /** æ¥è¯¢äº§åè¿ç«ééå表 */ getList() { this.loading = true; listPassingStationCollection(this.queryParams).then(response => { this.passingStationCollectionList = response.rows; this.total = response.total; this.loading = false; }); }, // åæ¶æé® cancel() { this.open = false; this.reset(); }, // 表åéç½® reset() { this.form = { id: null, workOrderNo: null, sfcCode: null, productCode: null, productionLine: null, locationCode: null, equipmentNo: null, inboundTime: null, outboundTime: null, inRsSign: null, inMsgSign: null, outRsSign: null, outMsgSign: null, collectionTime: null, spareField1: null, spareField2: null, createUser: null, createTime: null, updateUser: null, updateTime: null, beatTime: null }; this.resetForm("form"); }, /** æç´¢æé®æä½ */ handleQuery() { this.queryParams.pageNum = 1; this.getList(); }, /** éç½®æé®æä½ */ resetQuery() { this.resetForm("queryForm"); this.handleQuery(); }, // å¤éæ¡éä¸æ°æ® handleSelectionChange(selection) { this.ids = selection.map(item => item.id) this.single = selection.length!==1 this.multiple = !selection.length }, /** æ°å¢æé®æä½ */ handleAdd() { this.reset(); this.open = true; this.title = "æ·»å 产åè¿ç«éé"; }, /** ä¿®æ¹æé®æä½ */ handleUpdate(row) { this.reset(); const id = row.id || this.ids getPassingStationCollection(id).then(response => { this.form = response.data; this.open = true; this.title = "ä¿®æ¹äº§åè¿ç«éé"; }); }, /** æ交æé® */ submitForm() { this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { updatePassingStationCollection(this.form).then(response => { this.$modal.msgSuccess("ä¿®æ¹æå"); this.open = false; this.getList(); }); } else { addPassingStationCollection(this.form).then(response => { this.$modal.msgSuccess("æ°å¢æå"); this.open = false; this.getList(); }); } } }); }, /** å é¤æé®æä½ */ handleDelete(row) { const ids = row.id || this.ids; this.$modal.confirm('æ¯å¦ç¡®è®¤å é¤äº§åè¿ç«ééç¼å·ä¸º"' + ids + '"çæ°æ®é¡¹ï¼').then(function() { return delPassingStationCollection(ids); }).then(() => { this.getList(); this.$modal.msgSuccess("å é¤æå"); }).catch(() => {}); }, /** 导åºæé®æä½ */ handleExport() { this.download('da/passingStationCollection/export', { ...this.queryParams }, `passingStationCollection_${new Date().getTime()}.xlsx`) } } }; </script>