Compare commits

..

No commits in common. '08133e715307062dbf61698040af4a2cdd0fb1e5' and 'b85dc8c03e87050edb48b8a178aeacf3aaa09ec7' have entirely different histories.

  1. 10
      ant-design-vue-jeecg/src/views/productrecord/ProductRecordList.vue
  2. 13
      ant-design-vue-jeecg/src/views/productrecord/modules/ProductRecordForm.vue
  3. 2
      ant-design-vue-jeecg/src/views/sensor/modules/SensorForm.vue
  4. 20
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/productrecord/controller/ProductRecordController.java
  5. 88
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/productrecord/entity/ProductRecord.java

@ -11,7 +11,7 @@
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="工单编号">
<j-popup placeholder="请选择工单编号" v-model="queryParam.orderCode" code="findgdbh" org-fields="id,orders_num" dest-fields="order_id,order_code" :field="getPopupField('order_id,order_code')" :multi="true"/>
<j-search-select-tag placeholder="请选择工单编号" v-model="queryParam.orderCode" dict="findgdbh,order_id,order_code,id,orders_num"/>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
@ -157,7 +157,7 @@
{
title:'工单编号',
align:"center",
dataIndex: 'orderId_dictText'
dataIndex: 'orderId'
},
{
title:'生产开始时间',
@ -201,7 +201,7 @@
}
},
created() {
this.getSuperFieldList();
this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
@ -215,8 +215,8 @@
let fieldList=[];
fieldList.push({type:'sel_search',value:'stationId',text:'工位',dictTable:'station', dictText:'station_name', dictCode:'id'})
fieldList.push({type:'popup',value:'stationName',text:'工位', popup:{code:'findgw',field:'id',orgFields:'id',destFields:'station_id'}})
fieldList.push({type:'popup',value:'orderCode',text:'工单编号', popup:{code:'findgdbh',field:'id',orgFields:'id',destFields:'order_id'}})
fieldList.push({type:'sel_search',value:'orderId',text:'工单编号',dictTable:'work_order', dictText:'product_code', dictCode:'id'})
fieldList.push({type:'sel_search',value:'orderCode',text:'工单编号',dictTable:'findgdbh', dictText:'order_id,order_code', dictCode:'id,orders_num'})
fieldList.push({type:'popup',value:'orderId',text:'工单编号', popup:{code:'work_order',field:'id',orgFields:'id',destFields:'product_code'}})
fieldList.push({type:'datetime',value:'workTime',text:'生产开始时间'})
fieldList.push({type:'datetime',value:'offTime',text:'生产结束时间'})
fieldList.push({type:'string',value:'duration',text:'时长',dictCode:''})

@ -13,20 +13,12 @@
code="findgw"
:multi="true"
@input="popupCallback"
/>
/>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="工单编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orderCode">
<j-popup
v-model="model.orderCode"
field="orderCode"
org-fields="id,orders_num"
dest-fields="orderId,orderCode"
code="findgdbh"
:multi="true"
@input="popupCallback"
/>
<j-search-select-tag v-model="model.orderCode" dict="findgdbh,order_id,order_code,id,orders_num" />
</a-form-model-item>
</a-col>
<a-col :span="24">
@ -54,6 +46,7 @@
</j-form-container>
</a-spin>
</template>
<script>
import { httpAction, getAction } from '@/api/manage'

@ -10,7 +10,7 @@
</a-col>
<a-col :span="24">
<a-form-model-item label="车间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workshopId">
<j-search-select-tag v-model="model.workshopId" dict="sys_depart,depart_name,id" disabled/>
<j-search-select-tag v-model="model.workshopId" dict="sys_depart,depart_name,id" />
</a-form-model-item>
</a-col>
<a-col :span="24">

@ -21,7 +21,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.productrecord.utils.quartz;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
@ -52,16 +51,15 @@ public class ProductRecordController extends JeecgController<ProductRecord, IPro
@Autowired
private IProductRecordService productRecordService;
/**
* 分页列表查询
*
* @param productRecord
* @param pageNo
* @param pageSize
* @param req
* @return
*/
/**
* 分页列表查询
*
* @param productRecord
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "生产记录表-分页列表查询")
@ApiOperation(value="生产记录表-分页列表查询", notes="生产记录表-分页列表查询")
@GetMapping(value = "/list")

@ -32,66 +32,66 @@ import lombok.experimental.Accessors;
public class ProductRecord implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private java.lang.String id;
/**创建人*/
private String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private java.lang.String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createTime;
/**更新人*/
private Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private java.lang.String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
private String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private java.util.Date updateTime;
/**所属部门*/
private Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode;
/**工位*/
@Excel(name = "工位", width = 15, dictTable = "station", dicText = "station_name", dicCode = "id")
@Dict(dictTable = "station", dicText = "station_name", dicCode = "id")
private String sysOrgCode;
/**工位*/
@Excel(name = "工位", width = 15, dictTable = "station", dicText = "station_name", dicCode = "id")
@Dict(dictTable = "station", dicText = "station_name", dicCode = "id")
@ApiModelProperty(value = "工位")
private java.lang.String stationId;
/**工位*/
@Excel(name = "工位", width = 15)
private String stationId;
/**工位*/
@Excel(name = "工位", width = 15)
@ApiModelProperty(value = "工位")
private java.lang.String stationName;
/**工单编号*/
@Excel(name = "工单编号", width = 15)
private String stationName;
/**工单编号*/
@Excel(name = "工单编号", width = 15, dictTable = "findgdbh", dicText = "order_id,order_code", dicCode = "id,orders_num")
@Dict(dictTable = "findgdbh", dicText = "order_id,order_code", dicCode = "id,orders_num")
@ApiModelProperty(value = "工单编号")
private java.lang.String orderCode;
/**工单编号*/
@Excel(name = "工单编号", width = 15, dictTable = "work_order", dicText = "product_code", dicCode = "id")
@Dict(dictTable = "work_order", dicText = "product_code", dicCode = "id")
private String orderCode;
/**工单编号*/
@Excel(name = "工单编号", width = 15)
@ApiModelProperty(value = "工单编号")
private java.lang.String orderId;
/**生产开始时间*/
@Excel(name = "生产开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
private String orderId;
/**生产开始时间*/
@Excel(name = "生产开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "生产开始时间")
private java.util.Date workTime;
/**生产结束时间*/
@Excel(name = "生产结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
private Date workTime;
/**生产结束时间*/
@Excel(name = "生产结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "生产结束时间")
private java.util.Date offTime;
/**时长*/
@Excel(name = "时长", width = 15)
private Date offTime;
/**时长*/
@Excel(name = "时长", width = 15)
@ApiModelProperty(value = "时长")
private java.lang.String duration;
/**状态*/
@Excel(name = "状态", width = 15, dicCode = "cgqzt")
@Dict(dicCode = "cgqzt")
private String duration;
/**状态*/
@Excel(name = "状态", width = 15, dicCode = "cgqzt")
@Dict(dicCode = "cgqzt")
@ApiModelProperty(value = "状态")
private java.lang.String status;
private String status;
}

Loading…
Cancel
Save