add: 生产车间信息
This commit is contained in:
@@ -2,6 +2,7 @@ package org.nl.wms.service.basedata.dao;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -16,7 +17,7 @@ import java.io.Serializable;
|
|||||||
**/
|
**/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@Table(name="md_base_workshop")
|
@TableName("md_base_workshop")
|
||||||
public class Workshop implements Serializable {
|
public class Workshop implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@@ -32,10 +33,10 @@ public class Workshop implements Serializable {
|
|||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
@ApiModelProperty(value = "是否启用")
|
@ApiModelProperty(value = "是否启用")
|
||||||
private String isUsed;
|
private Boolean isUsed;
|
||||||
|
|
||||||
@ApiModelProperty(value = "是否删除")
|
@ApiModelProperty(value = "是否删除")
|
||||||
private String isDelete;
|
private Boolean isDelete;
|
||||||
|
|
||||||
@ApiModelProperty(value = "创建人")
|
@ApiModelProperty(value = "创建人")
|
||||||
private String createId;
|
private String createId;
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ public class WorkshopServiceImpl extends ServiceImpl< WorkshopMapper, Workshop>
|
|||||||
String nickName = SecurityUtils.getCurrentNickName();
|
String nickName = SecurityUtils.getCurrentNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
entity.setWorkshopCode(IdUtil.getSnowflake(1, 1).nextIdStr());
|
|
||||||
entity.setCreateId(currentUserId);
|
entity.setCreateId(currentUserId);
|
||||||
entity.setCreateName(nickName);
|
entity.setCreateName(nickName);
|
||||||
entity.setCreateTime(now);
|
entity.setCreateTime(now);
|
||||||
|
|||||||
@@ -5,8 +5,12 @@
|
|||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0"
|
<el-dialog
|
||||||
:title="crud.status.title" width="500px"
|
:close-on-click-modal="false"
|
||||||
|
:before-close="crud.cancelCU"
|
||||||
|
:visible.sync="crud.status.cu > 0"
|
||||||
|
:title="crud.status.title"
|
||||||
|
width="500px"
|
||||||
>
|
>
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="80px">
|
||||||
<el-form-item label="车间编码">
|
<el-form-item label="车间编码">
|
||||||
@@ -18,9 +22,6 @@
|
|||||||
<el-form-item label="备注">
|
<el-form-item label="备注">
|
||||||
<el-input v-model="form.remark" style="width: 370px;" />
|
<el-input v-model="form.remark" style="width: 370px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否启用">
|
|
||||||
<el-input v-model="form.isUsed" style="width: 370px;"/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
||||||
@@ -28,19 +29,36 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;"
|
<el-table
|
||||||
|
ref="table"
|
||||||
|
v-loading="crud.loading"
|
||||||
|
:data="crud.data"
|
||||||
|
size="mini"
|
||||||
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column prop="workshopCode" label="车间编码"
|
<el-table-column
|
||||||
|
prop="workshopCode"
|
||||||
|
label="车间编码"
|
||||||
:min-width="flexWidth('workshopCode',crud.data,'车间编码')"
|
:min-width="flexWidth('workshopCode',crud.data,'车间编码')"
|
||||||
/>
|
/>
|
||||||
<el-table-column prop="workshopName" label="车间名称 "
|
<el-table-column
|
||||||
|
prop="workshopName"
|
||||||
|
label="车间名称 "
|
||||||
:min-width="flexWidth('workshopName',crud.data,'车间名称 ')"
|
:min-width="flexWidth('workshopName',crud.data,'车间名称 ')"
|
||||||
/>
|
/>
|
||||||
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
|
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
|
||||||
<el-table-column prop="isUsed" label="是否启用" :min-width="flexWidth('isUsed',crud.data,'是否启用')"/>
|
<el-table-column prop="isUsed" label="是否启用" :min-width="flexWidth('isUsed',crud.data,'是否启用')">
|
||||||
<el-table-column prop="isDelete" label="是否删除" :min-width="flexWidth('isDelete',crud.data,'是否删除')"/>
|
<template slot-scope="scope">
|
||||||
|
{{scope.row.isUsed?'是':'否'}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="isDelete" label="是否删除" :min-width="flexWidth('isDelete',crud.data,'是否删除')">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{scope.row.isDelete?'是':'否'}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="createName" label="创建人" :min-width="flexWidth('createName',crud.data,'创建人')" />
|
<el-table-column prop="createName" label="创建人" :min-width="flexWidth('createName',crud.data,'创建人')" />
|
||||||
<el-table-column prop="createTime" label="创建时间" :min-width="flexWidth('createTime',crud.data,'创建时间')" />
|
<el-table-column prop="createTime" label="创建时间" :min-width="flexWidth('createTime',crud.data,'创建时间')" />
|
||||||
<el-table-column prop="updateName" label="修改人" :min-width="flexWidth('updateName',crud.data,'修改人')" />
|
<el-table-column prop="updateName" label="修改人" :min-width="flexWidth('updateName',crud.data,'修改人')" />
|
||||||
@@ -72,8 +90,8 @@ const defaultForm = {
|
|||||||
workshopCode: null,
|
workshopCode: null,
|
||||||
workshopName: null,
|
workshopName: null,
|
||||||
remark: null,
|
remark: null,
|
||||||
isUsed: null,
|
isUsed: true,
|
||||||
isDelete: null,
|
isDelete: false,
|
||||||
createId: null,
|
createId: null,
|
||||||
createName: null,
|
createName: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user