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
3380e6ce
Commit
3380e6ce
authored
Jul 21, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化
parent
c5024746
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
202 additions
and
139 deletions
+202
-139
ErpClientController.java
...com/maintain/business/controller/ErpClientController.java
+8
-0
ErpMalfunctionProjectController.java
.../business/controller/ErpMalfunctionProjectController.java
+8
-0
ErpMaterialBo.java
...n/java/com/maintain/business/domain/bo/ErpMaterialBo.java
+0
-2
ErpMaterialCheckServiceImpl.java
...in/business/service/impl/ErpMaterialCheckServiceImpl.java
+68
-21
ErpWarehouseServiceImpl.java
...intain/business/service/impl/ErpWarehouseServiceImpl.java
+1
-0
JimuReportTokenService.java
...va/com/maintain/common/helper/JimuReportTokenService.java
+8
-3
SysDeptMapper.xml
...system/src/main/resources/mapper/system/SysDeptMapper.xml
+1
-1
client.js
maintain-ui/src/api/business/client.js
+9
-0
malfunctionProject.js
maintain-ui/src/api/business/malfunctionProject.js
+10
-1
index.vue
maintain-ui/src/views/business/car/index.vue
+11
-14
index.vue
maintain-ui/src/views/business/examineProject/index.vue
+0
-16
index.vue
maintain-ui/src/views/business/maintainProject/index.vue
+6
-23
index.vue
maintain-ui/src/views/business/materialCheck/index.vue
+62
-50
index.vue
maintain-ui/src/views/business/materialPutaway/index.vue
+8
-8
index.vue
maintain-ui/src/views/business/siteWarehouse/index.vue
+2
-0
No files found.
maintain-business/src/main/java/com/maintain/business/controller/ErpClientController.java
View file @
3380e6ce
...
...
@@ -57,6 +57,14 @@ public class ErpClientController extends BaseController {
return
iErpClientService
.
queryPageList
(
bo
,
pageQuery
);
}
/**
* 查询客户信息-客户列表
*/
@GetMapping
(
"/listAll"
)
public
R
<
List
<
ErpClientVo
>>
list
(
ErpClientBo
bo
)
{
return
R
.
ok
(
iErpClientService
.
queryList
(
bo
));
}
/**
* 客户信息-客户导入模板下载
*/
...
...
maintain-business/src/main/java/com/maintain/business/controller/ErpMalfunctionProjectController.java
View file @
3380e6ce
...
...
@@ -51,6 +51,14 @@ public class ErpMalfunctionProjectController extends BaseController {
return
iErpMalfunctionProjectService
.
queryPageList
(
bo
,
pageQuery
);
}
/**
* 查询故障项目列表
*/
@GetMapping
(
"/listAll"
)
public
R
<
List
<
ErpMalfunctionProjectVo
>>
listAll
(
ErpMalfunctionProjectBo
bo
)
{
return
R
.
ok
(
iErpMalfunctionProjectService
.
queryList
(
bo
));
}
/**
* 故障项目导入模板下载
*/
...
...
maintain-business/src/main/java/com/maintain/business/domain/bo/ErpMaterialBo.java
View file @
3380e6ce
...
...
@@ -54,8 +54,6 @@ public class ErpMaterialBo extends BaseEntity {
/**
* 仓库ID
*/
@NotNull
(
message
=
"仓库不能为空"
,
groups
=
{
AddGroup
.
class
,
EditGroup
.
class
})
private
Long
warehouseId
;
/**
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpMaterialCheckServiceImpl.java
View file @
3380e6ce
...
...
@@ -29,9 +29,12 @@ import com.maintain.business.domain.vo.ErpMaterialCheckVo;
import
com.maintain.business.service.IErpMaterialCheckService
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
static
net
.
sf
.
jsqlparser
.
parser
.
feature
.
Feature
.
update
;
/**
* 物资盘点Service业务层处理
*
...
...
@@ -146,17 +149,51 @@ public class ErpMaterialCheckServiceImpl implements IErpMaterialCheckService {
/**
* 修改物资盘点
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Boolean
updateByBo
(
ErpMaterialCheckBo
bo
)
{
ErpMaterialCheck
update
=
BeanUtil
.
toBean
(
bo
,
ErpMaterialCheck
.
class
);
validEntityBeforeSave
(
update
);
SysDept
sysDept
=
deptMapper
.
selectVoById
(
update
.
getDeptId
());
update
.
setDeptName
(
sysDept
.
getDeptName
());
ErpWarehouseVo
warehouseVo
=
warehouseMapper
.
selectVoById
(
update
.
getWarehouseId
());
update
.
setWarehouseName
(
warehouseVo
.
getName
());
SysUser
sysUser
=
userMapper
.
selectVoById
(
update
.
getTaskUserId
());
update
.
setTaskUserName
(
sysUser
.
getNickName
());
return
baseMapper
.
updateById
(
update
)
>
0
;
ErpMaterialCheck
materialCheck
=
baseMapper
.
selectById
(
bo
.
getId
());
materialCheck
.
setTaskName
(
bo
.
getTaskName
());
materialCheck
.
setTaskStartTime
(
bo
.
getTaskStartTime
());
materialCheck
.
setRemark
(
bo
.
getRemark
());
if
(!
bo
.
getDeptId
().
equals
(
materialCheck
.
getDeptId
()))
{
/* 车间变更 */
SysDept
sysDept
=
deptMapper
.
selectVoById
(
bo
.
getDeptId
());
materialCheck
.
setDeptId
(
sysDept
.
getDeptId
());
materialCheck
.
setDeptName
(
sysDept
.
getDeptName
());
/* 仓库变更 */
ErpWarehouse
warehouse
=
warehouseMapper
.
selectById
(
bo
.
getWarehouseId
());
materialCheck
.
setWarehouseId
(
warehouse
.
getId
());
materialCheck
.
setWarehouseName
(
warehouse
.
getName
());
/* 仓库盘点状态变更 */
warehouse
.
setIsCheck
(
IsEnableStatus
.
YES
.
getCode
());
warehouseMapper
.
updateById
(
warehouse
);
/* 原仓库状态变更 */
ErpWarehouse
erpWarehouse
=
new
ErpWarehouse
();
erpWarehouse
.
setId
(
materialCheck
.
getWarehouseId
());
erpWarehouse
.
setIsCheck
(
IsEnableStatus
.
NO
.
getCode
());
}
/* 盘点人存在变更 */
if
(!
bo
.
getTaskUserId
().
equals
(
materialCheck
.
getTaskUserId
()))
{
SysUser
sysUser
=
userMapper
.
selectVoById
(
bo
.
getTaskUserId
());
materialCheck
.
setTaskUserId
(
sysUser
.
getUserId
());
materialCheck
.
setTaskUserName
(
sysUser
.
getNickName
());
}
boolean
flag
=
baseMapper
.
updateById
(
materialCheck
)
>
0
;
if
(
flag
)
{
/* 删除旧绑定 */
LambdaQueryWrapper
<
ErpMaterialCheckInfo
>
lambdaQuery
=
Wrappers
.
lambdaQuery
();
lambdaQuery
.
eq
(
ErpMaterialCheckInfo:
:
getCheckId
,
bo
.
getId
());
checkInfoMapper
.
delete
(
lambdaQuery
);
/* 创建新绑定 */
checkInfoMapper
.
insertBatch
(
bo
.
getCheckInfoList
().
stream
().
map
(
item
->
{
ErpMaterialCheckInfo
checkInfo
=
BeanUtil
.
toBean
(
item
,
ErpMaterialCheckInfo
.
class
);
checkInfo
.
setId
(
null
);
checkInfo
.
setCheckId
(
bo
.
getId
());
return
checkInfo
;
}).
collect
(
Collectors
.
toList
()));
}
return
flag
;
}
/**
...
...
@@ -172,14 +209,9 @@ public class ErpMaterialCheckServiceImpl implements IErpMaterialCheckService {
materialCheck
.
setTaskEndTime
(
new
Date
());
materialCheck
.
setCheckState
(
CheckState
.
TWO
.
getCode
());
// 将盘点的仓库状态改为 否
ErpWarehouse
warehouse
=
warehouseMapper
.
selectById
(
bo
.
getWarehouseId
());
ErpWarehouse
warehouse
=
warehouseMapper
.
selectById
(
materialCheck
.
getWarehouseId
());
warehouse
.
setIsCheck
(
IsEnableStatus
.
NO
.
getCode
());
warehouseMapper
.
updateById
(
warehouse
);
// 将盘点所在仓库下的物料是否盘点状态更改为 是
// LambdaUpdateWrapper<ErpMaterial> materialLambdaUpdateWrapper = Wrappers.lambdaUpdate();
// materialLambdaUpdateWrapper.eq(ErpMaterial::getWarehouseId, materialCheck.getWarehouseId());
// materialLambdaUpdateWrapper.set(ErpMaterial::getIsCheck, IsEnableStatus.NO.getCode());
// materialMapper.update(materialLambdaUpdateWrapper);
boolean
flag
=
baseMapper
.
updateById
(
materialCheck
)
>
0
;
if
(
flag
)
{
List
<
ErpMaterialPutawayInfo
>
putawayInfoList
=
new
ArrayList
<>();
...
...
@@ -195,17 +227,22 @@ public class ErpMaterialCheckServiceImpl implements IErpMaterialCheckService {
ErpMaterial
material
=
materialMapper
.
selectById
(
item
.
getMaterialId
());
/* 查询物料库存 */
ErpMaterialInventoryRecordVo
recordVo
=
materialInventoryRecordMapper
.
queryMaterialByWarehouseIdAndMaterialId
(
bo
.
getWarehouseId
(),
item
.
getMaterialId
());
/* 如果recordVo为空,说明改物料没有过库存变动记录数据,默认给0 */
BigDecimal
inventory
=
new
BigDecimal
(
"0"
);
if
(
null
!=
recordVo
)
{
inventory
=
recordVo
.
getInventory
();
}
// 判断盘盈或盘亏 盘盈则新增入库、盘亏新增出库
if
(
item
.
getResultState
().
equals
(
CheckInfoState
.
ONE
.
getCode
()))
{
ErpMaterialPutawayInfo
putawayInfo
=
BeanUtil
.
toBean
(
material
,
ErpMaterialPutawayInfo
.
class
);
putawayInfo
.
setPutawayNumber
(
item
.
getCheckNum
().
subtract
(
recordVo
.
getInventory
()
));
putawayInfo
.
setMaterialId
(
recordVo
.
getMaterialId
());
putawayInfo
.
setPutawayNumber
(
item
.
getCheckNum
().
subtract
(
inventory
));
putawayInfo
.
setMaterialId
(
item
.
getMaterialId
());
putawayInfo
.
setId
(
null
);
putawayInfoList
.
add
(
putawayInfo
);
}
else
if
(
item
.
getResultState
().
equals
(
CheckInfoState
.
TWO
.
getCode
()))
{
ErpMaterialPickingInfo
pickingInfo
=
BeanUtil
.
toBean
(
material
,
ErpMaterialPickingInfo
.
class
);
pickingInfo
.
setCollectNumber
(
recordVo
.
getInventory
()
.
subtract
(
item
.
getCheckNum
()));
pickingInfo
.
setMaterialId
(
recordVo
.
getMaterialId
());
pickingInfo
.
setCollectNumber
(
inventory
.
subtract
(
item
.
getCheckNum
()));
pickingInfo
.
setMaterialId
(
item
.
getMaterialId
());
pickingInfo
.
setId
(
null
);
pickingInfoList
.
add
(
pickingInfo
);
}
...
...
@@ -286,9 +323,19 @@ public class ErpMaterialCheckServiceImpl implements IErpMaterialCheckService {
*/
@Override
public
Boolean
deleteWithValidByIds
(
Collection
<
Long
>
ids
,
Boolean
isValid
)
{
if
(
isValid
){
//TODO 做一些业务上的校验,判断是否需要校验
/* 删除盘点明细 */
LambdaQueryWrapper
<
ErpMaterialCheckInfo
>
lambdaQueryWrapper
=
Wrappers
.
lambdaQuery
();
lambdaQueryWrapper
.
in
(
ErpMaterialCheckInfo:
:
getCheckId
,
ids
);
checkInfoMapper
.
delete
(
lambdaQueryWrapper
);
/* 仓库盘点状态变更 */
List
<
ErpMaterialCheckVo
>
checkVoList
=
baseMapper
.
selectVoBatchIds
(
ids
);
List
<
Long
>
collect
=
checkVoList
.
stream
().
map
(
ErpMaterialCheckVo:
:
getWarehouseId
).
collect
(
Collectors
.
toList
());
if
(!
collect
.
isEmpty
())
{
LambdaUpdateWrapper
<
ErpWarehouse
>
updateWrapper
=
Wrappers
.
lambdaUpdate
();
updateWrapper
.
in
(
ErpWarehouse:
:
getId
,
collect
).
set
(
ErpWarehouse:
:
getIsCheck
,
CheckInfoState
.
ONE
.
getCode
());
warehouseMapper
.
update
(
updateWrapper
);
}
/* 删除盘点单 */
return
baseMapper
.
deleteBatchIds
(
ids
)
>
0
;
}
}
maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseServiceImpl.java
View file @
3380e6ce
...
...
@@ -73,6 +73,7 @@ public class ErpWarehouseServiceImpl implements IErpWarehouseService {
lqw
.
eq
(
bo
.
getDeptId
()
!=
null
,
ErpWarehouse:
:
getDeptId
,
bo
.
getDeptId
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getDeptName
()),
ErpWarehouse:
:
getDeptName
,
bo
.
getDeptName
());
lqw
.
in
(!
deptList
.
isEmpty
(),
ErpWarehouse:
:
getCreateDeptId
,
deptList
.
stream
().
map
(
SysDept:
:
getDeptId
).
collect
(
Collectors
.
toList
()));
lqw
.
orderByDesc
(
ErpWarehouse:
:
getCreateTime
);
return
lqw
;
}
...
...
maintain-common/src/main/java/com/maintain/common/helper/JimuReportTokenService.java
View file @
3380e6ce
package
com
.
maintain
.
common
.
helper
;
import
com.maintain.common.core.domain.model.LoginUser
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.modules.jmreport.api.JmReportTokenServiceI
;
import
org.springframework.stereotype.Component
;
...
...
@@ -21,6 +22,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
@Override
public
String
getUsername
(
String
s
)
{
System
.
out
.
println
(
"---------call---------getUsername-----------------------"
);
return
""
;
}
...
...
@@ -31,8 +33,8 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
@Override
public
String
getToken
(
HttpServletRequest
request
)
{
//
System.out.println("---------call---------getToken-----------------------");
return
"token令牌"
;
System
.
out
.
println
(
"---------call---------getToken-----------------------"
);
return
request
.
getHeader
(
"token"
)
;
}
/**
* Token校验
...
...
@@ -41,7 +43,8 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
@Override
public
Boolean
verifyToken
(
String
token
)
{
//System.out.println("---------verify-----Token---------------");
System
.
out
.
println
(
"---------verify-----Token---------------"
);
System
.
out
.
println
(
token
);
return
true
;
}
...
...
@@ -53,6 +56,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
@Override
public
String
[]
getRoles
(
String
token
)
{
System
.
out
.
println
(
"---------call---------getRoles-----------------------"
);
return
new
String
[]{
"admin"
,
"lowdeveloper"
,
"dbadeveloper"
};
}
...
...
@@ -64,6 +68,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
@Override
public
String
[]
getPermissions
(
String
token
)
{
System
.
out
.
println
(
"---------call---------getPermissions-----------------------"
);
return
new
String
[]{
"drag:datasource:testConnection"
,
"onl:drag:clear:recovery"
,
"drag:analysis:sql"
,
"drag:design:getTotalData"
};
}
}
maintain-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
3380e6ce
...
...
@@ -38,7 +38,7 @@
</select>
<select
id=
"selectChildrenDeptById"
parameterType=
"Long"
resultMap=
"SysDeptResult"
>
select * from sys_dept where (find_in_set(#{deptId}, ancestors) or dept_id = #{deptId}) and status = 0
select * from sys_dept where (find_in_set(#{deptId}, ancestors) or dept_id = #{deptId}) and status = 0
and del_flag = 0
</select>
</mapper>
maintain-ui/src/api/business/client.js
View file @
3380e6ce
...
...
@@ -9,6 +9,15 @@ export function listClient(query) {
})
}
// 查询客户信息-客户列表
export
function
listClientAll
(
query
)
{
return
request
({
url
:
'
/business/client/listAll
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询客户信息-客户详细
export
function
getClient
(
id
)
{
return
request
({
...
...
maintain-ui/src/api/business/malfunctionProject.js
View file @
3380e6ce
...
...
@@ -9,6 +9,15 @@ export function listMalfunctionProject(query) {
})
}
// 查询故障项目列表
export
function
listMalfunctionProjectAll
(
query
)
{
return
request
({
url
:
'
/business/malfunctionProject/listAll
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询故障项目详细
export
function
getMalfunctionProject
(
id
)
{
return
request
({
...
...
@@ -49,4 +58,4 @@ export function getMalfunctionCode() {
url
:
'
/business/malfunctionProject/getMalfunctionCode
'
,
method
:
'
get
'
})
}
\ No newline at end of file
}
maintain-ui/src/views/business/car/index.vue
View file @
3380e6ce
...
...
@@ -149,7 +149,7 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"手机号"
prop=
"phone"
>
<el-select
v-model=
"form.phone"
filterable
:filter-method=
"getPhone"
@
change=
"setPhone"
>
<el-select
v-model=
"form.phone"
filterable
@
change=
"setPhone"
>
<el-option
v-for=
"(item,index) in phoneList"
:key=
"index"
:label=
"item.phone"
:value=
"item.phone"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -169,7 +169,7 @@
v-for=
"item in dict.type.client_type"
:key=
"item.value"
:label=
"item.label"
:value=
"
parseInt(item.value)
"
:value=
"
item.value
"
/>
</el-select>
</el-form-item>
...
...
@@ -345,7 +345,7 @@
<
script
>
import
{
listCar
,
getCar
,
delCar
,
addCar
,
updateCar
}
from
"
@/api/business/car
"
;
import
{
listClient
}
from
"
@/api/business/client
"
;
import
{
listClient
,
listClientAll
}
from
"
@/api/business/client
"
;
import
{
listVehicleModel
,
getVehicleModel
}
from
"
@/api/business/vehicleModel
"
;
import
{
imageUpload
}
from
"
@/api/system/oss
"
import
{
formatDate
}
from
"
@/utils/index
"
...
...
@@ -445,8 +445,6 @@ export default {
},
created
()
{
this
.
getList
();
this
.
getPhone
();
this
.
getCode
()
},
methods
:
{
/** 查询客户信息-车辆列表 */
...
...
@@ -502,6 +500,8 @@ export default {
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"
添加车辆信息
"
;
this
.
getCode
()
this
.
getPhone
();
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -510,7 +510,8 @@ export default {
this
.
form
.
clientType
=
row
.
clientType
this
.
open
=
true
;
this
.
title
=
"
修改车辆信息
"
;
console
.
log
(
'
this.form
'
,
this
.
form
)
this
.
getCode
()
this
.
getPhone
();
if
(
row
.
carTypeId
)
{
getVehicleModel
(
row
.
carTypeId
).
then
(
res
=>
{
this
.
form
.
carTypeId
=
res
.
data
.
id
;
...
...
@@ -582,17 +583,13 @@ export default {
},
getPhone
(
e
){
console
.
log
(
e
);
listClient
({
pageSize
:
40
,
pageNum
:
1
,
phone
:
e
}).
then
(
res
=>
{
listClient
All
({
phone
:
e
}).
then
(
res
=>
{
let
arr
=
[]
res
.
rows
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
if
(
item
.
phone
){
let
a
=
item
.
phone
.
split
(
'
;
'
);
let
a
=
item
.
phone
.
split
(
'
;
'
);
a
.
forEach
(
item1
=>
{
arr
.
push
({
...
item
,
phone
:
item1
,
type
:
typeof
item
.
type
==
'
number
'
?
''
+
item
.
type
:
item
.
type
,
})
arr
.
push
({...
item
,
phone
:
item1
,
type
:
typeof
item
.
type
==
'
number
'
?
''
+
item
.
type
:
item
.
type
,})
})
}
})
...
...
maintain-ui/src/views/business/examineProject/index.vue
View file @
3380e6ce
...
...
@@ -195,20 +195,12 @@
<el-table-column
label=
"车型编码"
align=
"center"
prop=
"carTypeCode"
/>
<el-table-column
label=
"车辆品牌"
align=
"center"
prop=
"carBrand"
/>
<el-table-column
label=
"型号"
align=
"center"
prop=
"carModel"
/>
<el-table-column
label=
"配置"
align=
"center"
prop=
"carConfiguration"
/>
<el-table-column
label=
"颜色"
align=
"center"
prop=
"carColour"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"type"
>
<
template
slot-scope=
"scope"
>
{{
tableSelect
(
scope
.
row
.
type
,
dict
.
type
.
cheliangleixing
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"能耗类型"
align=
"center"
prop=
"expendType"
>
<
template
slot-scope=
"scope"
>
{{
tableSelect
(
scope
.
row
.
expendType
,
dict
.
type
.
nenghaoleixing
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"底盘型号"
align=
"center"
prop=
"chassisNumber"
/>
<el-table-column
label=
"发动机型号/电机型号"
align=
"center"
prop=
"motorNumber"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -263,20 +255,12 @@
<el-table-column
label=
"车型编码"
align=
"center"
prop=
"carTypeCode"
/>
<el-table-column
label=
"车辆品牌"
align=
"center"
prop=
"carBrand"
/>
<el-table-column
label=
"型号"
align=
"center"
prop=
"carModel"
/>
<el-table-column
label=
"配置"
align=
"center"
prop=
"carConfiguration"
/>
<el-table-column
label=
"颜色"
align=
"center"
prop=
"carColour"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"type"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.cheliangleixing"
:value=
"scope.row.type"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"能耗类型"
align=
"center"
prop=
"expendType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.nenghaoleixing"
:value=
"scope.row.expendType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"底盘型号"
align=
"center"
prop=
"chassisNumber"
/>
<el-table-column
label=
"发动机型号/电机型号"
align=
"center"
prop=
"motorNumber"
min-width=
"130px"
/>
</el-table>
<pagination
v-show=
"total1>0"
...
...
maintain-ui/src/views/business/maintainProject/index.vue
View file @
3380e6ce
...
...
@@ -48,24 +48,6 @@
v-hasPermi=
"['business:maintainProject:export']"
>
导出
</el-button>
</el-col>
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!-- type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handleStencil"-->
<!-- v-hasPermi="['business:maintainProject:export']"-->
<!-- >导出上传模板
</el-button>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<FileUploader-->
<!-- uploadUrl="/business/maintainProject/importData "-->
<!-- uploadButtonText="导入"-->
<!-- v-hasPermi="['business:maintainProject:import']"-->
<!-- @refreshTable="getList"-->
<!-- />-->
<!--
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
...
...
@@ -193,7 +175,7 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"关联故障项目"
prop=
"malfunctionProjectList"
>
<el-select
v-model=
"form.malfunctionProjectList"
placeholder=
"请选择关联故障项目(多选)"
style=
"width: 100%;"
multiple
>
<el-select
v-model=
"form.malfunctionProjectList"
filterable
placeholder=
"请选择关联故障项目(多选)"
style=
"width: 100%;"
multiple
>
<el-option
v-for=
"item in guanlianList"
:key=
"item.id"
:value=
"item.id"
:label=
"item.malfunctionName"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -254,7 +236,7 @@
<
script
>
import
{
listMaintainProject
,
getMaintainProject
,
delMaintainProject
,
addMaintainProject
,
updateMaintainProject
}
from
"
@/api/business/maintainProject
"
;
import
{
listMalfunctionProject
}
from
"
@/api/business/malfunctionProject
"
;
import
{
listMalfunctionProject
,
listMalfunctionProjectAll
}
from
"
@/api/business/malfunctionProject
"
;
import
{
formatDate
}
from
"
@/utils/index
"
import
{
getProjectType
}
from
"
@/api/business/projectType
"
;
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
...
...
@@ -376,8 +358,8 @@ export default {
},
methods
:
{
getGuanlian
(){
listMalfunctionProject
({
pageNum
:
1
,
pageSize
:
99
,
}
).
then
(
res
=>
{
this
.
guanlianList
=
res
.
rows
;
listMalfunctionProject
All
(
).
then
(
res
=>
{
this
.
guanlianList
=
res
.
data
;
})
},
/** 查询维修项目列表 */
...
...
@@ -411,7 +393,8 @@ export default {
createTime
:
formatDate
(
new
Date
().
getTime
()),
updateBy
:
undefined
,
updateTime
:
undefined
,
isDelete
:
undefined
isDelete
:
undefined
,
malfunctionProjectList
:
[]
};
this
.
resetForm
(
"
form
"
);
},
...
...
maintain-ui/src/views/business/materialCheck/index.vue
View file @
3380e6ce
...
...
@@ -104,30 +104,31 @@
<
dict
-
tag
:
options
=
"
dict.type.check_state
"
:
value
=
"
scope.row.checkState
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
备注
"
align
=
"
center
"
prop
=
"
remark
"
/>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
class
-
name
=
"
small-padding fixed-width
"
>
<
el
-
table
-
column
label
=
"
备注
"
align
=
"
center
"
prop
=
"
remark
"
show
-
overflow
-
tooltip
/>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
width
=
"
200px
"
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
=
"
['business:materialCheck:edit']
"
-->
<!--
>
修改
<
/el-button>--
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-document
"
@
click
=
"
handleDetail(scope.row)
"
>
详情
<
/el-button
>
<!--
<
el
-
button
-->
<!--
size
=
"
mini
"
-->
<!--
type
=
"
text
"
-->
<!--
icon
=
"
el-icon-delete
"
-->
<!--
:
disabled
=
"
scope.row.state === 1
"
-->
<!--
@
click
=
"
handleDelete(scope.row)
"
-->
<!--
v
-
hasPermi
=
"
['business:materialCheck:remove']
"
-->
<!--
>
删除
<
/el-button>--
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
:
disabled
=
"
scope.row.state === 1
"
@
click
=
"
handleUpdate(scope.row)
"
v
-
hasPermi
=
"
['business:materialCheck:edit']
"
>
修改
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-delete
"
:
disabled
=
"
scope.row.state === 1
"
@
click
=
"
handleDelete(scope.row)
"
v
-
hasPermi
=
"
['business:materialCheck:remove']
"
>
删除
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
...
...
@@ -274,6 +275,13 @@
<
dict
-
tag
:
options
=
"
dict.type.check_info_state
"
:
value
=
"
scope.row.resultState
"
/>
<
/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-delete
"
@
click
=
"
handleRowDelete(scope.row)
"
>
移除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
div
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
:
loading
=
"
buttonLoading
"
type
=
"
primary
"
@
click
=
"
submitForm
"
>
保
存
<
/el-button
>
...
...
@@ -284,9 +292,6 @@
<!--
物料列表对话框
-->
<
el
-
dialog
title
=
"
选择盘点物料
"
:
visible
.
sync
=
"
open2
"
width
=
"
65%
"
append
-
to
-
body
>
<
el
-
form
:
model
=
"
queryMaterialParams
"
ref
=
"
queryMaterialForm
"
size
=
"
small
"
:
inline
=
"
true
"
v
-
show
=
"
showSearch
"
label
-
width
=
"
80px
"
>
<!--
<
el
-
form
-
item
label
=
"
仓库
"
prop
=
"
warehouseId
"
>-->
<!--
<
el
-
input
v
-
model
=
"
queryMaterialParams.warehouseId
"
placeHolder
=
"
请选择仓库
"
/>-->
<!--
<
/el-form-item>--
>
<
el
-
form
-
item
label
=
"
物资编码
"
prop
=
"
materialCode
"
>
<
el
-
input
v
-
model
=
"
queryMaterialParams.materialCode
"
...
...
@@ -328,7 +333,13 @@
<
el
-
table
-
column
label
=
"
销售价
"
align
=
"
center
"
prop
=
"
sellingPrice
"
/>
<
el
-
table
-
column
label
=
"
库存
"
align
=
"
center
"
prop
=
"
inventory
"
/>
<
/el-table
>
<
pagination
v
-
show
=
"
materialTotal>0
"
:
total
=
"
materialTotal
"
:
page
.
sync
=
"
queryMaterialParams.pageNum
"
:
limit
.
sync
=
"
queryMaterialParams.pageSize
"
@
pagination
=
"
getMaterialList
"
/>
<
pagination
v
-
show
=
"
materialTotal>0
"
:
total
=
"
materialTotal
"
:
page
.
sync
=
"
queryMaterialParams.pageNum
"
:
limit
.
sync
=
"
queryMaterialParams.pageSize
"
@
pagination
=
"
getMaterialList
"
/>
<
div
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
confirmSelection
"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"
cancelMaterial
"
>
取
消
<
/el-button
>
...
...
@@ -347,24 +358,19 @@
<
el
-
descriptions
-
item
label
=
"
任务开始时间
"
>
{{
form
.
taskStartTime
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"
任务结束时间
"
>
{{
form
.
taskEndTime
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"
任务执行人
"
>
{{
form
.
taskUserName
}}
<
/el-descriptions-item
>
<!--
<
el
-
descriptions
-
item
label
=
"
出库仓库
"
>
本仓库
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
label
=
"
入库仓库
"
>
本仓库
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
label
=
"
出库方式
"
>
盘亏
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
label
=
"
出库类型
"
>
基本出库
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
label
=
"
入库方式
"
>
盘盈
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
label
=
"
入库类型
"
>-->
<!--
<
dict
-
tag
:
options
=
"
dict.type.check_type
"
:
value
=
"
form.checkType
"
/>-->
<!--
<
/el-descriptions-item>--
>
<
el
-
descriptions
-
item
label
=
"
盘点状态
"
>
<
dict
-
tag
:
options
=
"
dict.type.check_state
"
:
value
=
"
form.checkState
"
/>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
label
=
"
备注
"
>
{{
form
.
remark
}}
<
/el-descriptions-item
>
<
/el-descriptions
>
<
span
style
=
"
font-weight: bold; font-size: 18px
"
>
盘点明细
<
/span
>
<
el
-
divider
/>
<
el
-
table
:
data
=
"
form.checkInfoList
"
>
<
el
-
table
-
column
label
=
"
供应商
"
align
=
"
center
"
prop
=
"
vendorName
"
/>
<
el
-
table
-
column
label
=
"
物资编码
"
align
=
"
center
"
prop
=
"
materialCode
"
/>
<
el
-
table
-
column
label
=
"
物资名称
"
align
=
"
center
"
prop
=
"
materialName
"
/>
<
el
-
table
-
column
label
=
"
物资规格
"
align
=
"
center
"
prop
=
"
materialSpecifications
"
/>
<
el
-
table
-
column
label
=
"
物资单位
"
align
=
"
center
"
prop
=
"
materialUnit
"
/>
<
el
-
table
-
column
label
=
"
供应商
"
align
=
"
center
"
prop
=
"
vendorName
"
/>
<
el
-
table
-
column
label
=
"
质保期
"
align
=
"
center
"
prop
=
"
materialWarrantyPeriod
"
/>
<
el
-
table
-
column
label
=
"
库存
"
align
=
"
center
"
prop
=
"
inventory
"
/>
<
el
-
table
-
column
label
=
"
实盘数量
"
align
=
"
center
"
prop
=
"
checkNum
"
width
=
"
140px
"
/>
...
...
@@ -391,7 +397,7 @@ import {
import
Treeselect
from
'
@riophae/vue-treeselect
'
import
'
@riophae/vue-treeselect/dist/vue-treeselect.css
'
import
{
getSiteTree
}
from
'
@/api/business/unit
'
import
{
listSiteWarehouse
}
from
'
@/api/business/siteWarehouse
'
import
{
listSiteWarehouse
,
listWarehouseAll
}
from
'
@/api/business/siteWarehouse
'
import
{
customListAll
,
listMaterial
}
from
'
@/api/business/material
'
import
{
formatDate
}
from
'
@/utils
'
...
...
@@ -523,20 +529,18 @@ export default {
handleDeptChange
(
e
){
this
.
form
.
warehouseId
=
undefined
this
.
warehouseList
=
[]
/** 查询仓库列表 */
listSiteWarehouse
({
deptId
:
e
.
deptId
,
pageNum
:
0
,
pageSize
:
100
}
).
then
(
response
=>
{
this
.
warehouseList
=
response
.
rows
;
}
);
this
.
form
.
checkInfoList
=
[]
this
.
materialList
=
[];
this
.
warehouseId
=
undefined
;
/** 查询仓库列表 */
listWarehouseAll
({
deptId
:
e
.
deptId
}
).
then
(
response
=>
{
this
.
warehouseList
=
response
.
data
;
}
);
}
,
// 仓库变更
warehouseChange
(
i
d
)
{
warehouseChange
(
warehouseI
d
)
{
this
.
infoLoading
=
true
this
.
form
.
checkInfoList
=
[]
this
.
warehouseId
=
id
;
customListAll
({
...
this
.
queryMaterialParams
,
warehouseId
:
this
.
warehouseId
}
).
then
(
response
=>
{
customListAll
({
...
this
.
queryMaterialParams
,
warehouseId
}
).
then
(
response
=>
{
this
.
materialList
=
response
.
rows
;
this
.
materialTotal
=
response
.
total
;
this
.
infoLoading
=
false
...
...
@@ -613,7 +617,7 @@ export default {
/** 打开物料列表 */
openMaterialModel
()
{
if
(
!
this
.
warehouseId
)
{
if
(
!
this
.
form
.
warehouseId
)
{
this
.
$modal
.
msgError
(
"
请先选择要盘点的仓库
"
);
return
}
...
...
@@ -633,7 +637,7 @@ export default {
/** 查询物资列表 */
getMaterialList
()
{
this
.
materialLoading
=
true
;
customListAll
({
...
this
.
queryMaterialParams
,
warehouseId
:
this
.
warehouseId
}
).
then
(
response
=>
{
customListAll
({
...
this
.
queryMaterialParams
,
warehouseId
:
this
.
form
.
warehouseId
}
).
then
(
response
=>
{
this
.
materialList
=
response
.
rows
;
this
.
materialTotal
=
response
.
total
;
this
.
materialLoading
=
false
;
...
...
@@ -651,17 +655,23 @@ export default {
}
,
// 多选框选中数据
handleMaterialSelectionChange
(
selection
)
{
console
.
log
(
'
selection
'
,
selection
)
this
.
tempSelection
=
selection
console
.
log
(
'
tempSelection
'
,
this
.
tempSelection
)
}
,
/* 确定选中数据 */
confirmSelection
()
{
console
.
log
(
'
this.tempSelection
'
,
this
.
tempSelection
)
console
.
log
(
'
this.form.checkInfoList
'
,
this
.
form
.
checkInfoList
)
this
.
form
.
checkInfoList
=
this
.
tempSelection
.
map
(
item
=>
{
return
item
this
.
tempSelection
.
forEach
(
item
=>
{
if
(
!
this
.
form
.
checkInfoList
.
some
(
existing
=>
existing
.
materialId
===
item
.
materialId
))
{
this
.
form
.
checkInfoList
.
push
(
item
);
}
}
);
this
.
open2
=
false
;
}
,
/* 移除按钮操作 */
handleRowDelete
(
row
)
{
this
.
form
.
checkInfoList
=
this
.
form
.
checkInfoList
.
filter
(
item
=>
{
return
item
.
materialId
!==
row
.
materialId
}
)
this
.
open2
=
false
}
,
// 取消按钮
cancelMaterial
()
{
...
...
@@ -684,6 +694,11 @@ export default {
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"
修改物资盘点
"
;
this
.
getDeptTree
()
/** 查询仓库列表 */
listWarehouseAll
({
deptId
:
this
.
form
.
deptId
}
).
then
(
response
=>
{
this
.
warehouseList
=
response
.
data
;
}
);
}
);
}
,
/** 提交按钮 */
...
...
@@ -710,9 +725,6 @@ export default {
this
.
buttonLoading
=
false
;
}
);
}
else
{
this
.
form
.
checkInfoList
=
this
.
form
.
checkInfoList
.
map
(
item
=>
{
return
{
...
item
,
materialId
:
item
.
id
}
}
)
addMaterialCheck
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
...
...
maintain-ui/src/views/business/materialPutaway/index.vue
View file @
3380e6ce
...
...
@@ -387,8 +387,8 @@ import {
updateMaterialPutaway
}
from
'
@/api/business/materialPutaway
'
import
{
typeTree
}
from
'
@/api/business/materialType
'
import
{
listSiteWarehouse
}
from
'
@/api/business/siteWarehouse
'
import
{
listMaterialVendor
}
from
'
@/api/business/materialVendor
'
import
{
listSiteWarehouse
,
listWarehouseAll
}
from
'
@/api/business/siteWarehouse
'
import
{
listMaterialVendor
,
listMaterialVendorAll
}
from
'
@/api/business/materialVendor
'
import
{
listMaterial
}
from
'
@/api/business/material
'
import
{
formatDate
}
from
'
@/utils
'
...
...
@@ -525,14 +525,14 @@ export default {
}
,
/** 查询仓库列表 */
getWarehouseList
()
{
list
SiteWarehouse
({
pageNum
:
0
,
pageSize
:
100
}
).
then
(
response
=>
{
this
.
warehouseList
=
response
.
rows
;
list
WarehouseAll
(
).
then
(
response
=>
{
this
.
warehouseList
=
response
.
data
;
}
);
}
,
/** 查询物资供应商列表 */
getVendorList
()
{
listMaterialVendor
({
pageNum
:
0
,
pageSize
:
100
}
).
then
(
response
=>
{
this
.
materialVendorList
=
response
.
rows
;
listMaterialVendor
All
(
).
then
(
response
=>
{
this
.
materialVendorList
=
response
.
data
;
}
);
}
,
/** 打开物料列表 */
...
...
@@ -653,7 +653,7 @@ export default {
this
.
open
=
true
;
this
.
title
=
"
添加物料入库
"
;
this
.
getWarehouseList
()
this
.
getVendorList
()
//
this.getVendorList()
}
,
/** 详情按钮操作 */
handleDetail
(
row
)
{
...
...
@@ -675,7 +675,7 @@ export default {
this
.
open
=
true
;
this
.
title
=
"
修改物料入库
"
;
this
.
getWarehouseList
()
this
.
getVendorList
()
//
this.getVendorList()
}
);
}
,
/** 提交按钮 */
...
...
maintain-ui/src/views/business/siteWarehouse/index.vue
View file @
3380e6ce
...
...
@@ -334,6 +334,7 @@ export default {
this
.
reset
()
this
.
open
=
true
;
this
.
title
=
"
添加仓库
"
;
this
.
getTree
()
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -344,6 +345,7 @@ export default {
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"
修改仓库
"
;
this
.
getTree
()
});
},
/** 提交按钮 */
...
...
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