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
c76818ee
You need to sign in or sign up before continuing.
Commit
c76818ee
authored
Jul 28, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化
parent
f051971d
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
131 additions
and
75 deletions
+131
-75
SysDeptController.java
...com/maintain/web/controller/system/SysDeptController.java
+2
-2
ErpMaterialPicking.java
...java/com/maintain/business/domain/ErpMaterialPicking.java
+4
-0
ErpGroupServiceImpl.java
...m/maintain/business/service/impl/ErpGroupServiceImpl.java
+1
-1
ErpMaterialPickingServiceImpl.java
.../business/service/impl/ErpMaterialPickingServiceImpl.java
+1
-0
ErpRepairFormServiceImpl.java
...ntain/business/service/impl/ErpRepairFormServiceImpl.java
+1
-1
ErpWarehouseServiceImpl.java
...intain/business/service/impl/ErpWarehouseServiceImpl.java
+1
-1
DeptType.java
...mon/src/main/java/com/maintain/common/enums/DeptType.java
+28
-0
SysDeptMapper.java
...c/main/java/com/maintain/system/mapper/SysDeptMapper.java
+1
-1
ISysDeptService.java
...ain/java/com/maintain/system/service/ISysDeptService.java
+1
-1
SysDeptServiceImpl.java
.../com/maintain/system/service/impl/SysDeptServiceImpl.java
+2
-2
SysDeptMapper.xml
...system/src/main/resources/mapper/system/SysDeptMapper.xml
+3
-0
unit.js
maintain-ui/src/api/business/unit.js
+4
-3
index.vue
maintain-ui/src/views/business/examineProject/index.vue
+15
-13
index.vue
maintain-ui/src/views/business/maintainCause/index.vue
+7
-7
index.vue
maintain-ui/src/views/business/maintainProject/index.vue
+10
-18
index.vue
maintain-ui/src/views/business/malfunctionProject/index.vue
+7
-1
index.vue
maintain-ui/src/views/business/materialCheck/index.vue
+2
-2
index.vue
maintain-ui/src/views/business/materialStock/index.vue
+19
-7
index.vue
maintain-ui/src/views/business/projectType/index.vue
+12
-3
info.vue
maintain-ui/src/views/business/repairForm/info.vue
+2
-4
index.vue
maintain-ui/src/views/business/siteGroup/index.vue
+2
-2
index.vue
maintain-ui/src/views/business/siteWarehouse/index.vue
+2
-2
index.vue
maintain-ui/src/views/business/user/index.vue
+2
-2
index.vue
maintain-ui/src/views/business/warehouseLocation/index.vue
+2
-2
No files found.
maintain-admin/src/main/java/com/maintain/web/controller/system/SysDeptController.java
View file @
c76818ee
...
...
@@ -48,8 +48,8 @@ public class SysDeptController extends BaseController {
*/
@SaCheckPermission
(
"system:dept:list"
)
@GetMapping
(
"/current/list"
)
public
R
<
List
<
SysDept
>>
getCurrentDeptList
()
{
List
<
SysDept
>
depts
=
deptService
.
selectCurrentDeptList
();
public
R
<
List
<
SysDept
>>
getCurrentDeptList
(
SysDept
dept
)
{
List
<
SysDept
>
depts
=
deptService
.
selectCurrentDeptList
(
dept
);
return
R
.
ok
(
depts
);
}
...
...
maintain-business/src/main/java/com/maintain/business/domain/ErpMaterialPicking.java
View file @
c76818ee
...
...
@@ -92,5 +92,9 @@ public class ErpMaterialPicking extends BaseEntity {
* 出库时间
*/
private
Date
outTime
;
/**
* 创建部门(数据权限)
*/
private
Long
createDeptId
;
}
maintain-business/src/main/java/com/maintain/business/service/impl/ErpGroupServiceImpl.java
View file @
c76818ee
...
...
@@ -64,7 +64,7 @@ public class ErpGroupServiceImpl implements IErpGroupService {
}
private
LambdaQueryWrapper
<
ErpGroup
>
buildQueryWrapper
(
ErpGroupBo
bo
)
{
List
<
SysDept
>
deptList
=
deptMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
());
List
<
SysDept
>
deptList
=
deptMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
()
,
null
);
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
LambdaQueryWrapper
<
ErpGroup
>
lqw
=
Wrappers
.
lambdaQuery
();
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getCode
()),
ErpGroup:
:
getCode
,
bo
.
getCode
());
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpMaterialPickingServiceImpl.java
View file @
c76818ee
...
...
@@ -151,6 +151,7 @@ public class ErpMaterialPickingServiceImpl implements IErpMaterialPickingService
add
.
setReceiveTime
(
new
Date
());
BigDecimal
moneyTotal
=
bo
.
getMaterialList
().
stream
().
map
(
ErpMaterialPickingInfoBo:
:
getMoney
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
add
.
setOutMoney
(
moneyTotal
);
add
.
setCreateDeptId
(
LoginHelper
.
getUserId
());
validEntityBeforeSave
(
add
);
boolean
flag
=
baseMapper
.
insert
(
add
)
>
0
;
if
(
flag
)
{
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpRepairFormServiceImpl.java
View file @
c76818ee
...
...
@@ -177,7 +177,7 @@ public class ErpRepairFormServiceImpl implements IErpRepairFormService {
}
private
QueryWrapper
<
ErpRepairForm
>
buildCustomQueryWrapper
(
ErpRepairFormBo
bo
)
{
List
<
SysDept
>
sysDeptList
=
deptMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
());
List
<
SysDept
>
sysDeptList
=
deptMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
()
,
null
);
QueryWrapper
<
ErpRepairForm
>
query
=
Wrappers
.
query
();
query
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getRepairNumber
()),
"erf.repair_number"
,
bo
.
getRepairNumber
())
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseServiceImpl.java
View file @
c76818ee
...
...
@@ -64,7 +64,7 @@ public class ErpWarehouseServiceImpl implements IErpWarehouseService {
}
private
LambdaQueryWrapper
<
ErpWarehouse
>
buildQueryWrapper
(
ErpWarehouseBo
bo
)
{
List
<
SysDept
>
deptList
=
deptMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
());
List
<
SysDept
>
deptList
=
deptMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
()
,
null
);
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
LambdaQueryWrapper
<
ErpWarehouse
>
lqw
=
Wrappers
.
lambdaQuery
();
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getCode
()),
ErpWarehouse:
:
getCode
,
bo
.
getCode
());
...
...
maintain-common/src/main/java/com/maintain/common/enums/DeptType.java
0 → 100644
View file @
c76818ee
package
com
.
maintain
.
common
.
enums
;
import
lombok.Getter
;
/**
* 用户状态
*
* @author maintain
*/
@Getter
public
enum
DeptType
{
ONE
(
"1"
,
"总公司"
),
TWO
(
"2"
,
"分公司"
),
THREE
(
"3"
,
"车队"
),
FOUR
(
"4"
,
"车间"
),
FIVE
(
"5"
,
"总公司管理部门"
),
SIX
(
"6"
,
"分公司管理部门"
),
SEVEN
(
"7"
,
"维修点"
);
private
final
String
code
;
private
final
String
info
;
DeptType
(
String
code
,
String
info
)
{
this
.
code
=
code
;
this
.
info
=
info
;
}
}
maintain-system/src/main/java/com/maintain/system/mapper/SysDeptMapper.java
View file @
c76818ee
...
...
@@ -43,6 +43,6 @@ public interface SysDeptMapper extends BaseMapperPlus<SysDeptMapper, SysDept, Sy
* @param deptId 部门ID
* @return 选中部门列表
*/
List
<
SysDept
>
selectChildrenDeptById
(
@Param
(
"deptId"
)
Long
deptId
);
List
<
SysDept
>
selectChildrenDeptById
(
@Param
(
"deptId"
)
Long
deptId
,
@Param
(
"type"
)
String
type
);
}
maintain-system/src/main/java/com/maintain/system/service/ISysDeptService.java
View file @
c76818ee
...
...
@@ -24,7 +24,7 @@ public interface ISysDeptService {
*
* @return 部门信息集合
*/
List
<
SysDept
>
selectCurrentDeptList
();
List
<
SysDept
>
selectCurrentDeptList
(
SysDept
dept
);
/**
* 查询部门树结构信息
...
...
maintain-system/src/main/java/com/maintain/system/service/impl/SysDeptServiceImpl.java
View file @
c76818ee
...
...
@@ -75,8 +75,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
* @return 部门信息集合
*/
@Override
public
List
<
SysDept
>
selectCurrentDeptList
()
{
return
baseMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
());
public
List
<
SysDept
>
selectCurrentDeptList
(
SysDept
dept
)
{
return
baseMapper
.
selectChildrenDeptById
(
LoginHelper
.
getDeptId
()
,
dept
.
getType
()
);
}
/**
...
...
maintain-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
c76818ee
...
...
@@ -39,6 +39,9 @@
<select
id=
"selectChildrenDeptById"
parameterType=
"Long"
resultMap=
"SysDeptResult"
>
select * from sys_dept where (find_in_set(#{deptId}, ancestors) or dept_id = #{deptId}) and status = 0 and del_flag = 0
<if
test=
"type != null"
>
and type = #{type}
</if>
</select>
</mapper>
maintain-ui/src/api/business/unit.js
View file @
c76818ee
...
...
@@ -52,9 +52,10 @@ export function getUnitTree(id) {
}
// 查询维修站点-单位-站点树结构
export
function
get
SiteTree
(
id
)
{
export
function
get
CurrentDeptTree
(
query
)
{
return
request
({
url
:
'
/system/dept/current/list
'
,
method
:
'
get
'
method
:
'
get
'
,
params
:
query
})
}
\ No newline at end of file
}
maintain-ui/src/views/business/examineProject/index.vue
View file @
c76818ee
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"115px"
>
<el-form-item
label=
"分类名称"
prop=
"typeName"
>
<el-input
v-model=
"queryParams.typeName"
placeholder=
"请输入分类名称"
clearable
@
keyup.enter.native=
"handleQuery"
/
>
</el-form-item
>
<!--
<el-form-item
label=
"分类名称"
prop=
"typeName"
>
--
>
<!--
<el-input-->
<!-- v-model="queryParams.typeName"-->
<!-- placeholder="请输入分类名称"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />--
>
<!--
</el-form-item>
--
>
<el-form-item
label=
"检验项目编号"
prop=
"examineCode"
>
<el-input
v-model=
"queryParams.examineCode"
...
...
@@ -31,7 +31,7 @@
</el-form-item>
</el-form>
<projectType
type=
"3"
ref=
"projectType"
v-if=
"type==1"
>
<projectType
type=
"3"
ref=
"projectType"
@
child-click=
"handleNodeClick"
v-if=
"type==1"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
...
...
@@ -374,12 +374,8 @@ export default {
pageNum
:
1
,
pageSize
:
10
,
typeId
:
undefined
,
typeName
:
undefined
,
examineCode
:
undefined
,
examineName
:
undefined
,
isGeneral
:
undefined
,
state
:
undefined
,
isDelete
:
undefined
,
},
// 表单参数
form
:
{
...
...
@@ -460,6 +456,11 @@ export default {
};
this
.
resetForm
(
"
form
"
);
},
/** 节点点击 */
handleNodeClick
(
item
)
{
this
.
queryParams
.
typeId
=
item
.
id
;
this
.
getList
();
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
...
...
@@ -468,6 +469,7 @@ export default {
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
queryParams
.
typeId
=
undefined
;
this
.
handleQuery
();
},
// 多选框选中数据
...
...
maintain-ui/src/views/business/maintainCause/index.vue
View file @
c76818ee
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
12
0px"
>
<el-form-item
label=
"维修原因
"
prop=
"maintainCauseName
"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
8
0px"
>
<el-form-item
label=
"维修原因
编号"
prop=
"maintainCauseCode"
label-width=
"120px
"
>
<el-input
v-model=
"queryParams.maintainCause
Nam
e"
placeholder=
"请输入维修原因"
v-model=
"queryParams.maintainCause
Cod
e"
placeholder=
"请输入维修原因
编号
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"维修原因
编号"
prop=
"maintainCauseCod
e"
>
<el-form-item
label=
"维修原因
"
prop=
"maintainCauseNam
e"
>
<el-input
v-model=
"queryParams.maintainCause
Cod
e"
placeholder=
"请输入维修原因
编号
"
v-model=
"queryParams.maintainCause
Nam
e"
placeholder=
"请输入维修原因"
clearable
@
keyup.enter.native=
"handleQuery"
/>
...
...
maintain-ui/src/views/business/maintainProject/index.vue
View file @
c76818ee
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"80px"
>
<el-form-item
label=
"项目类别"
prop=
"projectCode"
>
<Treeselect
v-model=
"queryParams.typeId"
:options=
"$refs.projectType?$refs.projectType.treeData:[]"
placeholder=
"请选择"
:props=
"
{value:'id'}" :show-count="true" style="width:200px;" /
>
</el-form-item
>
<!--
<el-form-item
label=
"项目类别"
prop=
"projectCode"
>
--
>
<!--
<Treeselect
v-model=
"queryParams.typeId"
:options=
"$refs.projectType?$refs.projectType.treeData:[]"
placeholder=
"请选择"
:props=
"
{value:'id'}" :show-count="true" style="width:200px;" />--
>
<!--
</el-form-item>
--
>
<el-form-item
label=
"项目编号"
prop=
"projectCode"
>
<el-input
v-model=
"queryParams.projectCode"
...
...
@@ -26,7 +26,7 @@
</el-form-item>
</el-form>
<projectType
type=
"1"
ref=
"projectType"
v-if=
"type==1"
>
<projectType
type=
"1"
ref=
"projectType"
@
child-click=
"handleNodeClick"
v-if=
"type==1"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
...
...
@@ -300,15 +300,8 @@ export default {
pageNum
:
1
,
pageSize
:
10
,
typeId
:
undefined
,
typeName
:
undefined
,
projectCode
:
undefined
,
projectName
:
undefined
,
standardManHour
:
undefined
,
standardPrice
:
undefined
,
warrantyPeriod
:
undefined
,
technicalSpecification
:
undefined
,
state
:
undefined
,
isDelete
:
undefined
},
// 表单参数
form
:
{},
...
...
@@ -405,14 +398,8 @@ export default {
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
queryParams
=
{
pageNum
:
1
,
pageSize
:
this
.
queryParams
.
pageSize
,
typeId
:
undefined
,
projectCode
:
undefined
,
projectName
:
undefined
,
},
this
.
resetForm
(
"
queryForm
"
);
this
.
queryParams
.
typeId
=
undefined
;
this
.
handleQuery
();
},
// 多选框选中数据
...
...
@@ -422,6 +409,11 @@ export default {
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 节点点击 */
handleNodeClick
(
item
)
{
this
.
queryParams
.
typeId
=
item
.
id
;
this
.
getList
();
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
...
...
maintain-ui/src/views/business/malfunctionProject/index.vue
View file @
c76818ee
...
...
@@ -22,7 +22,7 @@
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<projectType
type=
"2"
ref=
"projectType"
v-if=
"type==1"
>
<projectType
type=
"2"
ref=
"projectType"
@
child-click=
"handleNodeClick"
v-if=
"type==1"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
...
...
@@ -357,6 +357,11 @@ export default {
};
this
.
resetForm
(
"
form
"
);
},
/** 节点点击 */
handleNodeClick
(
item
)
{
this
.
queryParams
.
typeId
=
item
.
id
;
this
.
getList
();
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
...
...
@@ -365,6 +370,7 @@ export default {
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
queryParams
.
typeId
=
undefined
;
this
.
handleQuery
();
},
// 多选框选中数据
...
...
maintain-ui/src/views/business/materialCheck/index.vue
View file @
c76818ee
...
...
@@ -462,7 +462,7 @@ import {
}
from
'
@/api/business/materialCheck
'
import
Treeselect
from
'
@riophae/vue-treeselect
'
import
'
@riophae/vue-treeselect/dist/vue-treeselect.css
'
import
{
get
Site
Tree
}
from
'
@/api/business/unit
'
import
{
get
CurrentDept
Tree
}
from
'
@/api/business/unit
'
import
{
listSiteWarehouse
,
listWarehouseAll
}
from
'
@/api/business/siteWarehouse
'
import
{
customListAll
,
customListAllByWarehouseId
,
listMaterial
}
from
'
@/api/business/material
'
import
{
formatDate
}
from
'
@/utils
'
...
...
@@ -571,7 +571,7 @@ export default {
}
);
}
,
getDeptTree
(){
get
Site
Tree
().
then
(
response
=>
{
get
CurrentDept
Tree
().
then
(
response
=>
{
this
.
deptTreeData
=
this
.
handleTree
(
response
.
data
,
"
deptId
"
)
}
);
}
,
...
...
maintain-ui/src/views/business/materialStock/index.vue
View file @
c76818ee
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"仓库名称"
prop=
"warehouseName"
>
<el-input
v-model=
"queryParams.warehouseName"
placeholder=
"请输入仓库名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-form-item
label=
"仓库名称"
prop=
"warehouseId"
>
<el-select
v-model=
"queryParams.warehouseId"
filterable
placeholder=
"选择仓库"
clearable
>
<el-option
v-for=
"item in warehouseList"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"物资编码"
prop=
"materialCode"
>
<el-input
...
...
@@ -143,6 +145,7 @@
import
{
listByMaterialId
,
listMaterialInventory
}
from
"
@/api/business/material
"
;
import
Treeselect
from
'
@riophae/vue-treeselect
'
import
'
@riophae/vue-treeselect/dist/vue-treeselect.css
'
import
{
listWarehouseAll
}
from
"
@/api/business/siteWarehouse
"
;
export
default
{
name
:
"
Material
"
,
...
...
@@ -168,6 +171,8 @@ export default {
total
:
0
,
// 物资表格数据
materialList
:
[],
// 仓库列表
warehouseList
:
[],
// 物料入库明细表格数据
materialPutawayInfoList
:
[],
// 物料退货明细表格数据
...
...
@@ -196,6 +201,7 @@ export default {
},
created
()
{
this
.
getList
();
this
.
getWarehouseList
();
},
methods
:
{
/** 查询物资列表 */
...
...
@@ -207,6 +213,12 @@ export default {
this
.
loading
=
false
;
});
},
/** 仓库列表 */
getWarehouseList
()
{
listWarehouseAll
().
then
(
response
=>
{
this
.
warehouseList
=
response
.
data
;
});
},
/** 物资分类更改 */
// materialTypeIdChange() {
// this.$refs.form.clearValidate('materialTypeId')
...
...
maintain-ui/src/views/business/projectType/index.vue
View file @
c76818ee
...
...
@@ -22,7 +22,9 @@
ref="tree"
node-key="id"
default-expand-all
highlight-current>
highlight-current
@node-click="treeDataChange"
>
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }" @mouseenter="showIcons(node)" @mouseleave="hideIcons(node)">
<span>
{{
node
.
label
}}
</span>
<span
class=
"tree-node-icons"
v-show=
"node.showIcons"
v-if=
"data.id !== 1 && data.id !== 2 && data.id !== 3"
>
...
...
@@ -134,10 +136,17 @@ export default {
};
this
.
resetForm
(
"
form
"
);
},
/** 点击事件 */
treeDataChange
(
item
)
{
this
.
form
=
{
type
:
this
.
type
,
parentId
:
item
.
id
}
this
.
$emit
(
"
child-click
"
,
item
);
},
/** 新增按钮操作 */
handleAdd
(
data
)
{
console
.
log
(
'
data
'
,
data
)
this
.
form
=
{
type
:
this
.
type
,
parentId
:
data
.
id
}
if
(
data
.
id
)
{
console
.
log
(
'
data
'
,
data
)
this
.
form
=
{
type
:
this
.
type
,
parentId
:
data
.
id
}
}
this
.
open
=
true
;
this
.
title
=
`添加
${
this
.
type
==
1
?
'
维修
'
:
this
.
type
==
2
?
'
故障
'
:
this
.
type
==
3
?
'
检验
'
:
this
.
type
}
项目分类`
;
},
...
...
maintain-ui/src/views/business/repairForm/info.vue
View file @
c76818ee
...
...
@@ -476,7 +476,7 @@ import malfunctionProject from '../malfunctionProject/index'
import
{
listCar
}
from
'
@/api/business/car
'
import
{
listClient
}
from
'
@/api/business/client
'
import
{
listMaintainCause
}
from
'
@/api/business/maintainCause
'
import
{
get
Site
Tree
}
from
'
@/api/business/unit
'
import
{
get
CurrentDept
Tree
}
from
'
@/api/business/unit
'
import
{
listSiteGroup
}
from
'
@/api/business/siteGroup
'
import
{
getVehicleModel
}
from
'
@/api/business/vehicleModel
'
import
repairFormProject
from
'
@/views/business/repairFormProject/index.vue
'
...
...
@@ -724,8 +724,6 @@ export default {
}
else
{
this
.
deliveryForm
.
deliveryTime
=
formatDate
(
new
Date
().
getTime
())
}
})
},
/** 查询人员-人员列表 */
...
...
@@ -769,7 +767,7 @@ export default {
})
},
getTreeData
(){
get
SiteTree
(
).
then
(
response
=>
{
get
CurrentDeptTree
({
type
:
4
}
).
then
(
response
=>
{
this
.
treeData
=
this
.
handleTree
(
response
.
data
,
"
deptId
"
)
});
},
...
...
maintain-ui/src/views/business/siteGroup/index.vue
View file @
c76818ee
...
...
@@ -173,7 +173,7 @@ import { listSiteGroup, getSiteGroup, delSiteGroup, addSiteGroup, updateSiteGrou
import
{
listDept
}
from
"
@/api/system/dept
"
;
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
"
@riophae/vue-treeselect/dist/vue-treeselect.css
"
;
import
{
get
Site
Tree
}
from
"
@/api/business/unit
"
;
import
{
get
CurrentDept
Tree
}
from
"
@/api/business/unit
"
;
import
{
getToken
}
from
'
@/utils/auth
'
export
default
{
...
...
@@ -279,7 +279,7 @@ export default {
// listDept().then(response => {
// this.treeData = this.handleTree(response.data, "deptId");
// });
get
SiteTree
(
).
then
(
response
=>
{
get
CurrentDeptTree
({
type
:
4
}
).
then
(
response
=>
{
this
.
treeData
=
this
.
handleTree
(
response
.
data
,
"
deptId
"
)
});
},
...
...
maintain-ui/src/views/business/siteWarehouse/index.vue
View file @
c76818ee
...
...
@@ -167,7 +167,7 @@
<
script
>
import
{
listSiteWarehouse
,
getSiteWarehouse
,
delSiteWarehouse
,
addSiteWarehouse
,
updateSiteWarehouse
}
from
"
@/api/business/siteWarehouse
"
;
import
{
listDept
}
from
"
@/api/system/dept
"
;
import
{
get
Site
Tree
}
from
"
@/api/business/unit
"
;
import
{
get
CurrentDept
Tree
}
from
"
@/api/business/unit
"
;
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
"
@riophae/vue-treeselect/dist/vue-treeselect.css
"
;
import
{
getToken
}
from
'
@/utils/auth
'
...
...
@@ -277,7 +277,7 @@ export default {
// listDept().then(response => {
// this.treeData = this.handleTree(response.data, "deptId");
// });
get
Site
Tree
().
then
(
response
=>
{
get
CurrentDept
Tree
().
then
(
response
=>
{
this
.
treeData
=
this
.
handleTree
(
response
.
data
,
"
deptId
"
)
});
},
...
...
maintain-ui/src/views/business/user/index.vue
View file @
c76818ee
...
...
@@ -235,7 +235,7 @@
<
script
>
import
{
listUser
,
getUser
,
delUser
,
addUser
,
updateUser
,
getUserCode
}
from
"
@/api/business/user
"
;
import
{
get
Site
Tree
}
from
"
@/api/business/unit
"
;
import
{
get
CurrentDept
Tree
}
from
"
@/api/business/unit
"
;
import
{
listSiteGroup
}
from
"
@/api/business/siteGroup
"
;
import
{
listPost
}
from
"
@/api/business/post
"
;
import
{
formatDate
}
from
"
@/utils/index
"
...
...
@@ -354,7 +354,7 @@ export default {
},
methods
:
{
getSiteTre
(){
get
Site
Tree
().
then
(
response
=>
{
get
CurrentDept
Tree
().
then
(
response
=>
{
this
.
siteLists
=
this
.
handleTree
(
response
.
data
,
"
deptId
"
)
});
},
...
...
maintain-ui/src/views/business/warehouseLocation/index.vue
View file @
c76818ee
...
...
@@ -210,7 +210,7 @@ import {
}
from
'
@/api/business/warehouseLocation
'
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
"
@riophae/vue-treeselect/dist/vue-treeselect.css
"
;
import
{
get
Site
Tree
}
from
'
@/api/business/unit
'
import
{
get
CurrentDept
Tree
}
from
'
@/api/business/unit
'
import
{
listSiteWarehouse
}
from
'
@/api/business/siteWarehouse
'
import
{
parseTime
}
from
'
../../../utils/ruoyi
'
import
{
typeTree
}
from
'
../../../api/business/materialType
'
...
...
@@ -313,7 +313,7 @@ export default {
}
,
methods
:
{
getDeptTree
(){
get
Site
Tree
().
then
(
response
=>
{
get
CurrentDept
Tree
().
then
(
response
=>
{
this
.
treeData
=
this
.
handleTree
(
response
.
data
,
"
deptId
"
)
}
);
}
,
...
...
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