Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maintain_service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘帅
maintain_service
Commits
f4301f1e
Commit
f4301f1e
authored
Jul 12, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增入库明细
2.调整入库单字段命名
parent
0b661e8b
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
373 additions
and
442 deletions
+373
-442
ErpMaterialPutawayInfoController.java
...business/controller/ErpMaterialPutawayInfoController.java
+1
-1
ErpMaterialPutaway.java
...java/com/maintain/business/domain/ErpMaterialPutaway.java
+1
-1
ErpMaterialPutawayBo.java
...com/maintain/business/domain/bo/ErpMaterialPutawayBo.java
+1
-1
ErpMaterialPutawayInfoBo.java
...maintain/business/domain/bo/ErpMaterialPutawayInfoBo.java
+5
-0
ErpMaterialPutawayInfoVo.java
...maintain/business/domain/vo/ErpMaterialPutawayInfoVo.java
+46
-10
ErpMaterialPutawayVo.java
...com/maintain/business/domain/vo/ErpMaterialPutawayVo.java
+1
-1
ErpMaterialPutawayInfoMapper.java
...aintain/business/mapper/ErpMaterialPutawayInfoMapper.java
+23
-0
IErpMaterialPutawayInfoService.java
...tain/business/service/IErpMaterialPutawayInfoService.java
+5
-0
ErpMaterialCheckServiceImpl.java
...in/business/service/impl/ErpMaterialCheckServiceImpl.java
+1
-1
ErpMaterialPutawayInfoServiceImpl.java
...iness/service/impl/ErpMaterialPutawayInfoServiceImpl.java
+31
-2
ErpMaterialPutawayServiceImpl.java
.../business/service/impl/ErpMaterialPutawayServiceImpl.java
+2
-2
ErpMaterialPutawayInfoMapper.xml
...rc/main/resources/mapper/ErpMaterialPutawayInfoMapper.xml
+26
-6
ErpMaterialPutawayMapper.xml
...ss/src/main/resources/mapper/ErpMaterialPutawayMapper.xml
+1
-4
index.vue
maintain-ui/src/views/business/materialPutaway/index.vue
+149
-177
index.vue
maintain-ui/src/views/business/materialPutawayInfo/index.vue
+76
-229
index.vue
maintain-ui/src/views/business/pickingReturn/index.vue
+4
-7
No files found.
maintain-business/src/main/java/com/maintain/business/controller/ErpMaterialPutawayInfoController.java
View file @
f4301f1e
...
@@ -43,7 +43,7 @@ public class ErpMaterialPutawayInfoController extends BaseController {
...
@@ -43,7 +43,7 @@ public class ErpMaterialPutawayInfoController extends BaseController {
@SaCheckPermission
(
"business:materialPutawayInfo:list"
)
@SaCheckPermission
(
"business:materialPutawayInfo:list"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
<
ErpMaterialPutawayInfoVo
>
list
(
ErpMaterialPutawayInfoBo
bo
,
PageQuery
pageQuery
)
{
public
TableDataInfo
<
ErpMaterialPutawayInfoVo
>
list
(
ErpMaterialPutawayInfoBo
bo
,
PageQuery
pageQuery
)
{
return
iErpMaterialPutawayInfoService
.
q
ueryPageList
(
bo
,
pageQuery
);
return
iErpMaterialPutawayInfoService
.
customQ
ueryPageList
(
bo
,
pageQuery
);
}
}
/**
/**
...
...
maintain-business/src/main/java/com/maintain/business/domain/ErpMaterialPutaway.java
View file @
f4301f1e
...
@@ -41,7 +41,7 @@ public class ErpMaterialPutaway extends BaseEntity {
...
@@ -41,7 +41,7 @@ public class ErpMaterialPutaway extends BaseEntity {
/**
/**
* 入库单号
* 入库单号
*/
*/
private
String
putaway
Number
;
private
String
putaway
Code
;
/**
/**
* 入库类型(1铺货入库 2盘盈入库)
* 入库类型(1铺货入库 2盘盈入库)
*/
*/
...
...
maintain-business/src/main/java/com/maintain/business/domain/bo/ErpMaterialPutawayBo.java
View file @
f4301f1e
...
@@ -46,7 +46,7 @@ public class ErpMaterialPutawayBo extends BaseEntity {
...
@@ -46,7 +46,7 @@ public class ErpMaterialPutawayBo extends BaseEntity {
/**
/**
* 入库单号
* 入库单号
*/
*/
private
String
putaway
Number
;
private
String
putaway
Code
;
/**
/**
* 入库类型(1铺货入库 2盘盈入库)
* 入库类型(1铺货入库 2盘盈入库)
...
...
maintain-business/src/main/java/com/maintain/business/domain/bo/ErpMaterialPutawayInfoBo.java
View file @
f4301f1e
...
@@ -32,6 +32,11 @@ public class ErpMaterialPutawayInfoBo extends BaseEntity {
...
@@ -32,6 +32,11 @@ public class ErpMaterialPutawayInfoBo extends BaseEntity {
*/
*/
private
Long
putawayId
;
private
Long
putawayId
;
/**
* 入库单号
*/
private
String
putawayCode
;
/**
/**
* 物资分类ID
* 物资分类ID
*/
*/
...
...
maintain-business/src/main/java/com/maintain/business/domain/vo/ErpMaterialPutawayInfoVo.java
View file @
f4301f1e
...
@@ -3,6 +3,7 @@ package com.maintain.business.domain.vo;
...
@@ -3,6 +3,7 @@ package com.maintain.business.domain.vo;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
com.alibaba.excel.annotation.ExcelIgnoreUnannotated
;
import
com.alibaba.excel.annotation.ExcelIgnoreUnannotated
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.maintain.common.annotation.ExcelDictFormat
;
import
com.maintain.common.annotation.ExcelDictFormat
;
import
com.maintain.common.convert.ExcelDictConvert
;
import
com.maintain.common.convert.ExcelDictConvert
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -26,43 +27,61 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
...
@@ -26,43 +27,61 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
/**
/**
* 明细主键
* 明细主键
*/
*/
@ExcelProperty
(
value
=
"明细主键"
)
private
Long
id
;
private
Long
id
;
/**
/**
* 入库单ID
* 入库单ID
*/
*/
@ExcelProperty
(
value
=
"入库单ID"
)
private
Long
putawayId
;
private
Long
putawayId
;
/**
* 订单单号
*/
@ExcelProperty
(
value
=
"订单单号"
)
private
String
orderNumber
;
/**
* 到货单号
*/
@ExcelProperty
(
value
=
"到货单号"
)
private
String
arrivalNumber
;
/**
* 入库单号
*/
@ExcelProperty
(
value
=
"入库单号"
)
private
String
putawayCode
;
/**
* 入库类型
*/
@ExcelProperty
(
value
=
"入库类型"
,
converter
=
ExcelDictConvert
.
class
)
@ExcelDictFormat
(
dictType
=
"putaway_type"
)
private
String
putawayType
;
/**
/**
* 物资分类ID
* 物资分类ID
*/
*/
@ExcelProperty
(
value
=
"物资分类ID"
)
private
Long
materialTypeId
;
private
Long
materialTypeId
;
/**
/**
* 物资分类名称
* 物资分类名称
*/
*/
@ExcelProperty
(
value
=
"物资分类名称"
)
private
String
materialTypeName
;
private
String
materialTypeName
;
/**
/**
* 仓库货位ID
* 仓库货位ID
*/
*/
@ExcelProperty
(
value
=
"仓库货位ID"
)
private
Long
warehouseLocationId
;
private
Long
warehouseLocationId
;
/**
/**
* 仓库货位类型
* 仓库货位类型
*/
*/
@ExcelProperty
(
value
=
"仓库货位类型"
)
private
String
warehouseLocationType
;
private
String
warehouseLocationType
;
/**
/**
* 供应商ID
* 供应商ID
*/
*/
@ExcelProperty
(
value
=
"供应商ID"
)
private
Long
vendorId
;
private
Long
vendorId
;
/**
/**
...
@@ -74,7 +93,6 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
...
@@ -74,7 +93,6 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
/**
/**
* 物料ID
* 物料ID
*/
*/
@ExcelProperty
(
value
=
"物料ID"
)
private
Long
materialId
;
private
Long
materialId
;
/**
/**
...
@@ -104,8 +122,7 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
...
@@ -104,8 +122,7 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
/**
/**
* 质保期(月)
* 质保期(月)
*/
*/
@ExcelProperty
(
value
=
"质保期"
,
converter
=
ExcelDictConvert
.
class
)
@ExcelProperty
(
value
=
"质保期(月)"
)
@ExcelDictFormat
(
readConverterExp
=
"月="
)
private
Integer
materialWarrantyPeriod
;
private
Integer
materialWarrantyPeriod
;
/**
/**
...
@@ -141,15 +158,34 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
...
@@ -141,15 +158,34 @@ public class ErpMaterialPutawayInfoVo implements Serializable {
/**
/**
* 是否存在退货(0否 1是)
* 是否存在退货(0否 1是)
*/
*/
@ExcelProperty
(
value
=
"是否存在退货"
,
converter
=
ExcelDictConvert
.
class
)
@ExcelDictFormat
(
dictType
=
"sys_is_enable"
)
private
Integer
isReturns
;
private
Integer
isReturns
;
/**
/**
* 已退数量
* 已退数量
*/
*/
@ExcelProperty
(
value
=
"已退数量"
)
private
BigDecimal
returnedNumber
;
private
BigDecimal
returnedNumber
;
/**
/**
* 状态(1登记中 2已入库)
* 状态(1登记中 2已入库)
*/
*/
@ExcelProperty
(
value
=
"状态"
,
converter
=
ExcelDictConvert
.
class
)
@ExcelDictFormat
(
dictType
=
"putaway_info_state"
)
private
Integer
state
;
private
Integer
state
;
/**
* 创建人
*/
@ExcelProperty
(
value
=
"创建人"
)
private
String
createBy
;
/**
* 创建时间
*/
@ExcelProperty
(
value
=
"创建时间"
)
@ColumnWidth
(
20
)
private
Date
createTime
;
}
}
maintain-business/src/main/java/com/maintain/business/domain/vo/ErpMaterialPutawayVo.java
View file @
f4301f1e
...
@@ -49,7 +49,7 @@ public class ErpMaterialPutawayVo implements Serializable {
...
@@ -49,7 +49,7 @@ public class ErpMaterialPutawayVo implements Serializable {
* 入库单号
* 入库单号
*/
*/
@ExcelProperty
(
value
=
"入库单号"
)
@ExcelProperty
(
value
=
"入库单号"
)
private
String
putaway
Number
;
private
String
putaway
Code
;
/**
/**
* 入库类型(1采购入库 2铺货入库)
* 入库类型(1采购入库 2铺货入库)
...
...
maintain-business/src/main/java/com/maintain/business/mapper/ErpMaterialPutawayInfoMapper.java
View file @
f4301f1e
package
com
.
maintain
.
business
.
mapper
;
package
com
.
maintain
.
business
.
mapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.maintain.business.domain.ErpMaterialPutawayInfo
;
import
com.maintain.business.domain.ErpMaterialPutawayInfo
;
import
com.maintain.business.domain.ErpRepairForm
;
import
com.maintain.business.domain.bo.ErpMaterialPutawayInfoBo
;
import
com.maintain.business.domain.vo.ErpMaterialPutawayInfoVo
;
import
com.maintain.business.domain.vo.ErpMaterialPutawayInfoVo
;
import
com.maintain.business.domain.vo.ErpRepairFormVo
;
import
com.maintain.common.core.mapper.BaseMapperPlus
;
import
com.maintain.common.core.mapper.BaseMapperPlus
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* 物料入库明细Mapper接口
* 物料入库明细Mapper接口
...
@@ -12,4 +21,18 @@ import com.maintain.common.core.mapper.BaseMapperPlus;
...
@@ -12,4 +21,18 @@ import com.maintain.common.core.mapper.BaseMapperPlus;
*/
*/
public
interface
ErpMaterialPutawayInfoMapper
extends
BaseMapperPlus
<
ErpMaterialPutawayInfoMapper
,
ErpMaterialPutawayInfo
,
ErpMaterialPutawayInfoVo
>
{
public
interface
ErpMaterialPutawayInfoMapper
extends
BaseMapperPlus
<
ErpMaterialPutawayInfoMapper
,
ErpMaterialPutawayInfo
,
ErpMaterialPutawayInfoVo
>
{
/**
* 自定义分页查询
* @param page
* @param queryWrapper
* @return
*/
Page
<
ErpMaterialPutawayInfoVo
>
customQueryPageList
(
@Param
(
"page"
)
Page
<
ErpMaterialPutawayInfo
>
page
,
@Param
(
Constants
.
WRAPPER
)
Wrapper
<
ErpMaterialPutawayInfo
>
queryWrapper
);
/**
* 自定义查询
* @param queryWrapper
*/
List
<
ErpMaterialPutawayInfoVo
>
customQueryList
(
@Param
(
Constants
.
WRAPPER
)
Wrapper
<
ErpMaterialPutawayInfo
>
queryWrapper
);
}
}
maintain-business/src/main/java/com/maintain/business/service/IErpMaterialPutawayInfoService.java
View file @
f4301f1e
...
@@ -27,6 +27,11 @@ public interface IErpMaterialPutawayInfoService {
...
@@ -27,6 +27,11 @@ public interface IErpMaterialPutawayInfoService {
*/
*/
TableDataInfo
<
ErpMaterialPutawayInfoVo
>
queryPageList
(
ErpMaterialPutawayInfoBo
bo
,
PageQuery
pageQuery
);
TableDataInfo
<
ErpMaterialPutawayInfoVo
>
queryPageList
(
ErpMaterialPutawayInfoBo
bo
,
PageQuery
pageQuery
);
/**
* 查询物料入库明细列表(自定义分页查询)
*/
TableDataInfo
<
ErpMaterialPutawayInfoVo
>
customQueryPageList
(
ErpMaterialPutawayInfoBo
bo
,
PageQuery
pageQuery
);
/**
/**
* 查询物料入库明细列表
* 查询物料入库明细列表
*/
*/
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpMaterialCheckServiceImpl.java
View file @
f4301f1e
...
@@ -210,7 +210,7 @@ public class ErpMaterialCheckServiceImpl implements IErpMaterialCheckService {
...
@@ -210,7 +210,7 @@ public class ErpMaterialCheckServiceImpl implements IErpMaterialCheckService {
});
});
if
(!
putawayInfoList
.
isEmpty
())
{
if
(!
putawayInfoList
.
isEmpty
())
{
ErpMaterialPutaway
putaway
=
new
ErpMaterialPutaway
();
ErpMaterialPutaway
putaway
=
new
ErpMaterialPutaway
();
putaway
.
setPutaway
Number
(
RedisUtils
.
generateNextNumber
(
"RK"
));
putaway
.
setPutaway
Code
(
RedisUtils
.
generateNextNumber
(
"RK"
));
putaway
.
setPutawayType
(
PutawayType
.
TWO
.
getCode
());
putaway
.
setPutawayType
(
PutawayType
.
TWO
.
getCode
());
putaway
.
setPutawayTime
(
new
Date
());
putaway
.
setPutawayTime
(
new
Date
());
putaway
.
setState
(
PutawayState
.
TWO
.
getCode
());
putaway
.
setState
(
PutawayState
.
TWO
.
getCode
());
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpMaterialPutawayInfoServiceImpl.java
View file @
f4301f1e
package
com
.
maintain
.
business
.
service
.
impl
;
package
com
.
maintain
.
business
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.maintain.business.domain.ErpRepairForm
;
import
com.maintain.business.domain.bo.ErpRepairFormBo
;
import
com.maintain.business.domain.vo.ErpRepairFormVo
;
import
com.maintain.common.core.domain.entity.SysDept
;
import
com.maintain.common.helper.LoginHelper
;
import
com.maintain.common.utils.StringUtils
;
import
com.maintain.common.utils.StringUtils
;
import
com.maintain.common.core.page.TableDataInfo
;
import
com.maintain.common.core.page.TableDataInfo
;
import
com.maintain.common.core.domain.PageQuery
;
import
com.maintain.common.core.domain.PageQuery
;
...
@@ -18,6 +24,7 @@ import com.maintain.business.service.IErpMaterialPutawayInfoService;
...
@@ -18,6 +24,7 @@ import com.maintain.business.service.IErpMaterialPutawayInfoService;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.stream.Collectors
;
/**
/**
* 物料入库明细Service业务层处理
* 物料入库明细Service业务层处理
...
@@ -49,15 +56,37 @@ public class ErpMaterialPutawayInfoServiceImpl implements IErpMaterialPutawayInf
...
@@ -49,15 +56,37 @@ public class ErpMaterialPutawayInfoServiceImpl implements IErpMaterialPutawayInf
return
TableDataInfo
.
build
(
result
);
return
TableDataInfo
.
build
(
result
);
}
}
/**
* 查询物料入库明细列表(自定义分页查询)
*
* @param bo
* @param pageQuery
*/
@Override
public
TableDataInfo
<
ErpMaterialPutawayInfoVo
>
customQueryPageList
(
ErpMaterialPutawayInfoBo
bo
,
PageQuery
pageQuery
)
{
Page
<
ErpMaterialPutawayInfoVo
>
carVoPage
=
baseMapper
.
customQueryPageList
(
pageQuery
.
build
(),
this
.
buildCustomQueryWrapper
(
bo
));
return
TableDataInfo
.
build
(
carVoPage
);
}
/**
/**
* 查询物料入库明细列表
* 查询物料入库明细列表
*/
*/
@Override
@Override
public
List
<
ErpMaterialPutawayInfoVo
>
queryList
(
ErpMaterialPutawayInfoBo
bo
)
{
public
List
<
ErpMaterialPutawayInfoVo
>
queryList
(
ErpMaterialPutawayInfoBo
bo
)
{
LambdaQueryWrapper
<
ErpMaterialPutawayInfo
>
lqw
=
buildQueryWrapper
(
bo
);
return
baseMapper
.
customQueryList
(
this
.
buildCustomQueryWrapper
(
bo
));
return
baseMapper
.
selectVoList
(
lqw
);
}
private
QueryWrapper
<
ErpMaterialPutawayInfo
>
buildCustomQueryWrapper
(
ErpMaterialPutawayInfoBo
bo
)
{
QueryWrapper
<
ErpMaterialPutawayInfo
>
query
=
Wrappers
.
query
();
query
.
like
(
null
!=
bo
.
getPutawayCode
(),
"emp.putaway_number"
,
bo
.
getPutawayCode
())
.
like
(
null
!=
bo
.
getVendorName
(),
"empi.vendor_name"
,
bo
.
getVendorName
())
.
like
(
null
!=
bo
.
getMaterialCode
(),
"empi.material_code"
,
bo
.
getMaterialCode
())
.
like
(
null
!=
bo
.
getMaterialName
(),
"empi.material_name"
,
bo
.
getMaterialName
());
query
.
orderByDesc
(
"empi.create_time"
);
return
query
;
}
}
private
LambdaQueryWrapper
<
ErpMaterialPutawayInfo
>
buildQueryWrapper
(
ErpMaterialPutawayInfoBo
bo
)
{
private
LambdaQueryWrapper
<
ErpMaterialPutawayInfo
>
buildQueryWrapper
(
ErpMaterialPutawayInfoBo
bo
)
{
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
LambdaQueryWrapper
<
ErpMaterialPutawayInfo
>
lqw
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
ErpMaterialPutawayInfo
>
lqw
=
Wrappers
.
lambdaQuery
();
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpMaterialPutawayServiceImpl.java
View file @
f4301f1e
...
@@ -81,7 +81,7 @@ public class ErpMaterialPutawayServiceImpl implements IErpMaterialPutawayService
...
@@ -81,7 +81,7 @@ public class ErpMaterialPutawayServiceImpl implements IErpMaterialPutawayService
LambdaQueryWrapper
<
ErpMaterialPutaway
>
lqw
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
ErpMaterialPutaway
>
lqw
=
Wrappers
.
lambdaQuery
();
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getOrderNumber
()),
ErpMaterialPutaway:
:
getOrderNumber
,
bo
.
getOrderNumber
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getOrderNumber
()),
ErpMaterialPutaway:
:
getOrderNumber
,
bo
.
getOrderNumber
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getArrivalNumber
()),
ErpMaterialPutaway:
:
getArrivalNumber
,
bo
.
getArrivalNumber
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getArrivalNumber
()),
ErpMaterialPutaway:
:
getArrivalNumber
,
bo
.
getArrivalNumber
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getPutaway
Number
()),
ErpMaterialPutaway:
:
getPutawayNumber
,
bo
.
getPutawayNumber
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getPutaway
Code
()),
ErpMaterialPutaway:
:
getPutawayCode
,
bo
.
getPutawayCode
());
lqw
.
eq
(
StringUtils
.
isNotBlank
(
bo
.
getPutawayType
()),
ErpMaterialPutaway:
:
getPutawayType
,
bo
.
getPutawayType
());
lqw
.
eq
(
StringUtils
.
isNotBlank
(
bo
.
getPutawayType
()),
ErpMaterialPutaway:
:
getPutawayType
,
bo
.
getPutawayType
());
lqw
.
eq
(
bo
.
getPutawayTime
()
!=
null
,
ErpMaterialPutaway:
:
getPutawayTime
,
bo
.
getPutawayTime
());
lqw
.
eq
(
bo
.
getPutawayTime
()
!=
null
,
ErpMaterialPutaway:
:
getPutawayTime
,
bo
.
getPutawayTime
());
lqw
.
eq
(
bo
.
getPutawayMoney
()
!=
null
,
ErpMaterialPutaway:
:
getPutawayMoney
,
bo
.
getPutawayMoney
());
lqw
.
eq
(
bo
.
getPutawayMoney
()
!=
null
,
ErpMaterialPutaway:
:
getPutawayMoney
,
bo
.
getPutawayMoney
());
...
@@ -102,7 +102,7 @@ public class ErpMaterialPutawayServiceImpl implements IErpMaterialPutawayService
...
@@ -102,7 +102,7 @@ public class ErpMaterialPutawayServiceImpl implements IErpMaterialPutawayService
public
Boolean
insertByBo
(
ErpMaterialPutawayBo
bo
)
{
public
Boolean
insertByBo
(
ErpMaterialPutawayBo
bo
)
{
ErpMaterialPutaway
add
=
BeanUtil
.
toBean
(
bo
,
ErpMaterialPutaway
.
class
);
ErpMaterialPutaway
add
=
BeanUtil
.
toBean
(
bo
,
ErpMaterialPutaway
.
class
);
validEntityBeforeSave
(
add
);
validEntityBeforeSave
(
add
);
add
.
setPutaway
Number
(
RedisUtils
.
generateNextNumber
(
"RK"
));
add
.
setPutaway
Code
(
RedisUtils
.
generateNextNumber
(
"RK"
));
ErpWarehouseVo
warehouseVo
=
warehouseMapper
.
selectVoById
(
add
.
getWarehouseId
());
ErpWarehouseVo
warehouseVo
=
warehouseMapper
.
selectVoById
(
add
.
getWarehouseId
());
add
.
setWarehouseName
(
warehouseVo
.
getName
());
add
.
setWarehouseName
(
warehouseVo
.
getName
());
add
.
setCreateDeptId
(
LoginHelper
.
getDeptId
());
add
.
setCreateDeptId
(
LoginHelper
.
getDeptId
());
...
...
maintain-business/src/main/resources/mapper/ErpMaterialPutawayInfoMapper.xml
View file @
f4301f1e
...
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.maintain.business.mapper.ErpMaterialPutawayInfoMapper"
>
<mapper
namespace=
"com.maintain.business.mapper.ErpMaterialPutawayInfoMapper"
>
<resultMap
type=
"com.maintain.business.domain.
ErpMaterialPutawayInf
o"
id=
"ErpMaterialPutawayInfoResult"
>
<resultMap
type=
"com.maintain.business.domain.
vo.ErpMaterialPutawayInfoV
o"
id=
"ErpMaterialPutawayInfoResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"putawayId"
column=
"putaway_id"
/>
<result
property=
"putawayId"
column=
"putaway_id"
/>
<result
property=
"materialTypeId"
column=
"material_type_id"
/>
<result
property=
"materialTypeId"
column=
"material_type_id"
/>
...
@@ -24,15 +24,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -24,15 +24,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"putawayNumber"
column=
"putaway_number"
/>
<result
property=
"putawayNumber"
column=
"putaway_number"
/>
<result
property=
"putawayPrice"
column=
"putaway_price"
/>
<result
property=
"putawayPrice"
column=
"putaway_price"
/>
<result
property=
"putawayMoney"
column=
"putaway_money"
/>
<result
property=
"putawayMoney"
column=
"putaway_money"
/>
<result
property=
"returnNumber"
column=
"return_number"
/>
<result
property=
"returnedNumber"
column=
"returned_number"
/>
<result
property=
"returnPrice"
column=
"return_price"
/>
<result
property=
"returnMoney"
column=
"return_money"
/>
<result
property=
"state"
column=
"state"
/>
<result
property=
"state"
column=
"state"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"orderNumber"
column=
"order_number"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"arrivalNumber"
column=
"arrival_number"
/>
<result
property=
"putawayCode"
column=
"putaway_code"
/>
<result
property=
"putawayType"
column=
"putaway_type"
/>
</resultMap>
</resultMap>
<sql
id=
"materialPutawayInfoResultVoSql"
>
SELECT
empi.id, empi.vendor_id, empi.vendor_name, empi.material_id, empi.material_code, empi.material_name,
empi.material_specifications, empi.material_unit, empi.material_warranty_period, empi.reference_price,
empi.selling_price, empi.putaway_number, empi.putaway_price, empi.putaway_money, empi.is_returns, empi.returned_number,
empi.state, empi.create_by, empi.create_time, emp.order_number, emp.arrival_number, emp.putaway_code,
emp.putaway_type
FROM erp_material_putaway_info empi
LEFT JOIN erp_material_putaway emp ON empi.putaway_id = emp.id
</sql>
<select
id=
"customQueryPageList"
resultType=
"com.maintain.business.domain.vo.ErpMaterialPutawayInfoVo"
>
<include
refid=
"materialPutawayInfoResultVoSql"
/>
${ew.getCustomSqlSegment}
</select>
<select
id=
"customQueryList"
resultType=
"com.maintain.business.domain.vo.ErpMaterialPutawayInfoVo"
>
<include
refid=
"materialPutawayInfoResultVoSql"
/>
${ew.getCustomSqlSegment}
</select>
</mapper>
</mapper>
maintain-business/src/main/resources/mapper/ErpMaterialPutawayMapper.xml
View file @
f4301f1e
...
@@ -8,13 +8,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -8,13 +8,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"orderNumber"
column=
"order_number"
/>
<result
property=
"orderNumber"
column=
"order_number"
/>
<result
property=
"arrivalNumber"
column=
"arrival_number"
/>
<result
property=
"arrivalNumber"
column=
"arrival_number"
/>
<result
property=
"putaway
Number"
column=
"putaway_number
"
/>
<result
property=
"putaway
Code"
column=
"putaway_code
"
/>
<result
property=
"putawayType"
column=
"putaway_type"
/>
<result
property=
"putawayType"
column=
"putaway_type"
/>
<result
property=
"putawayTime"
column=
"putaway_time"
/>
<result
property=
"putawayTime"
column=
"putaway_time"
/>
<result
property=
"putawayMoney"
column=
"putaway_money"
/>
<result
property=
"putawayMoney"
column=
"putaway_money"
/>
<result
property=
"returnNumber"
column=
"return_number"
/>
<result
property=
"returnTime"
column=
"return_time"
/>
<result
property=
"returnMoney"
column=
"return_money"
/>
<result
property=
"warehouseId"
column=
"warehouse_id"
/>
<result
property=
"warehouseId"
column=
"warehouse_id"
/>
<result
property=
"warehouseName"
column=
"warehouse_name"
/>
<result
property=
"warehouseName"
column=
"warehouse_name"
/>
<result
property=
"vendorId"
column=
"vendor_id"
/>
<result
property=
"vendorId"
column=
"vendor_id"
/>
...
...
maintain-ui/src/views/business/materialPutaway/index.vue
View file @
f4301f1e
This diff is collapsed.
Click to expand it.
maintain-ui/src/views/business/materialPutawayInfo/index.vue
View file @
f4301f1e
This diff is collapsed.
Click to expand it.
maintain-ui/src/views/business/pickingReturn/index.vue
View file @
f4301f1e
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"80px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"80px"
>
<el-form-item
label=
"退料单号"
prop=
"returnNumber"
>
<el-form-item
label=
"退料单号"
prop=
"returnNumber"
>
<el-input
<el-input
v-model=
"queryParams.returnNumber"
v-model=
"queryParams.returnNumber"
...
@@ -191,8 +190,8 @@
...
@@ -191,8 +190,8 @@
<
span
style
=
"
font-weight: bold; font-size: 18px
"
>
退料明细
<
/span
>
<
span
style
=
"
font-weight: bold; font-size: 18px
"
>
退料明细
<
/span
>
<
el
-
divider
/>
<
el
-
divider
/>
<
el
-
table
:
data
=
"
form.pickingInfoList
"
>
<
el
-
table
:
data
=
"
form.pickingInfoList
"
>
<
el
-
table
-
column
label
=
"
分类名称
"
align
=
"
center
"
prop
=
"
materialTypeName
"
/
>
<!--
<
el
-
table
-
column
label
=
"
分类名称
"
align
=
"
center
"
prop
=
"
materialTypeName
"
/>--
>
<
el
-
table
-
column
label
=
"
货位类型
"
align
=
"
center
"
prop
=
"
warehouseLocationType
"
/
>
<!--
<
el
-
table
-
column
label
=
"
货位类型
"
align
=
"
center
"
prop
=
"
warehouseLocationType
"
/>--
>
<
el
-
table
-
column
label
=
"
供应商
"
align
=
"
center
"
prop
=
"
vendorName
"
/>
<
el
-
table
-
column
label
=
"
供应商
"
align
=
"
center
"
prop
=
"
vendorName
"
/>
<
el
-
table
-
column
label
=
"
物资编码
"
align
=
"
center
"
prop
=
"
materialCode
"
/>
<
el
-
table
-
column
label
=
"
物资编码
"
align
=
"
center
"
prop
=
"
materialCode
"
/>
<
el
-
table
-
column
label
=
"
物资名称
"
align
=
"
center
"
prop
=
"
materialName
"
/>
<
el
-
table
-
column
label
=
"
物资名称
"
align
=
"
center
"
prop
=
"
materialName
"
/>
...
@@ -226,8 +225,8 @@
...
@@ -226,8 +225,8 @@
<
span
style
=
"
font-weight: bold; font-size: 18px
"
>
退料明细
<
/span
>
<
span
style
=
"
font-weight: bold; font-size: 18px
"
>
退料明细
<
/span
>
<
el
-
divider
/>
<
el
-
divider
/>
<
el
-
table
:
data
=
"
form.pickingInfoList
"
>
<
el
-
table
:
data
=
"
form.pickingInfoList
"
>
<
el
-
table
-
column
label
=
"
分类名称
"
align
=
"
center
"
prop
=
"
materialTypeName
"
/
>
<!--
<
el
-
table
-
column
label
=
"
分类名称
"
align
=
"
center
"
prop
=
"
materialTypeName
"
/>--
>
<
el
-
table
-
column
label
=
"
货位类型
"
align
=
"
center
"
prop
=
"
warehouseLocationType
"
/
>
<!--
<
el
-
table
-
column
label
=
"
货位类型
"
align
=
"
center
"
prop
=
"
warehouseLocationType
"
/>--
>
<
el
-
table
-
column
label
=
"
供应商
"
align
=
"
center
"
prop
=
"
vendorName
"
/>
<
el
-
table
-
column
label
=
"
供应商
"
align
=
"
center
"
prop
=
"
vendorName
"
/>
<
el
-
table
-
column
label
=
"
物资编码
"
align
=
"
center
"
prop
=
"
materialCode
"
/>
<
el
-
table
-
column
label
=
"
物资编码
"
align
=
"
center
"
prop
=
"
materialCode
"
/>
<
el
-
table
-
column
label
=
"
物资名称
"
align
=
"
center
"
prop
=
"
materialName
"
/>
<
el
-
table
-
column
label
=
"
物资名称
"
align
=
"
center
"
prop
=
"
materialName
"
/>
...
@@ -236,9 +235,7 @@
...
@@ -236,9 +235,7 @@
<
el
-
table
-
column
label
=
"
质保期
"
align
=
"
center
"
prop
=
"
materialWarrantyPeriod
"
/>
<
el
-
table
-
column
label
=
"
质保期
"
align
=
"
center
"
prop
=
"
materialWarrantyPeriod
"
/>
<
el
-
table
-
column
label
=
"
退料数量
"
align
=
"
center
"
prop
=
"
collectNumber
"
/>
<
el
-
table
-
column
label
=
"
退料数量
"
align
=
"
center
"
prop
=
"
collectNumber
"
/>
<
/el-table
>
<
/el-table
>
<
/el-dialog
>
<
/el-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment