Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
刘照晖
DC-TOM
Commits
5061aa12
Commit
5061aa12
authored
May 31, 2025
by
liqiuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(*): 更改所属区域
parent
621d9565
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
100 deletions
+62
-100
AboutView.vue
src/views/AboutView/AboutView.vue
+0
-2
myAgency.vue
src/views/closeManage/myAgency.vue
+29
-49
myDone.vue
src/views/closeManage/myDone.vue
+33
-49
No files found.
src/views/AboutView/AboutView.vue
View file @
5061aa12
...
...
@@ -159,8 +159,6 @@ import { useRoute, useRouter } from "vue-router";
import
{
getDataFun
,
postDataJSON
}
from
"@/request/method.js"
;
import
moment
from
"moment"
;
const
route
=
useRoute
();
const
router
=
useRouter
();
const
route
=
useRoute
();
...
...
src/views/closeManage/myAgency.vue
View file @
5061aa12
...
...
@@ -8,15 +8,15 @@
<el-form-item
label=
"发生位置:"
>
<el-input
v-model=
"formInline.keyword"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"所属
区域
:"
>
<el-select
v-model=
"formInline.
branchFactoryIds
"
<el-form-item
label=
"所属
工序
:"
>
<el-select
v-model=
"formInline.
productionLineId
"
placeholder=
"请选择"
style=
"width: 180px"
>
<el-option
v-for=
"(item, index) in basicConfiguration.
branchFactory
List"
:key=
"item.
branchFactory
Id"
:label=
"item.
branchFactory
"
:value=
"item.
branchFactory
Id"
<el-option
v-for=
"(item, index) in basicConfiguration.
productLine
List"
:key=
"item.
productionLine
Id"
:label=
"item.
productionLineName
"
:value=
"item.
productionLine
Id"
/>
</el-select>
</el-form-item>
...
...
@@ -135,9 +135,9 @@
<div
class=
"label-title"
>
告警信息
</div>
<div
class=
"alarm-content"
>
<div
class=
"content-item"
>
<span
class=
"name"
>
所属
区域
:
</span>
<span
class=
"name"
>
所属
工序
:
</span>
<span
class=
"value"
>
{{
workSheetDetail?.
branchFactory
|| "--"
workSheetDetail?.
productionLine
|| "--"
}}
</span>
</div>
<div
class=
"content-item"
>
...
...
@@ -818,7 +818,7 @@ const dispatchHandle = async (url,param) => {
const
basicConfiguration
=
reactive
({
ticketEventName
:
[{
name
:
'全部'
,
id
:
''
}],
eventTypeList
:
[],
branchFactoryList
:
[{
branchFactory
:
'全部'
,
branchFactoryId
:
''
}],
productLineList
:
[{
productionLineName
:
'全部'
,
productionLineId
:
''
}],
deviceList
:
[]
});
...
...
@@ -1026,11 +1026,11 @@ const tableColumns = ref([
width
:
'10%'
},
{
prop
:
'
branchFactory'
,
label
:
'所属区域
'
,
width
:
'10%'
},
prop
:
'
productionLine'
,
label
:
'所属工序
'
,
width
:
'10%'
},
{
prop
:
'warnTypeName'
,
label
:
'类型'
,
width
:
'10%'
},
{
prop
:
'createTime'
,
label
:
'发生时间'
,
width
:
'10%'
},
{
prop
:
'desc'
,
label
:
'闭环状态'
,
width
:
'10%'
},
{
prop
:
'
person
'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'
handleUser
'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'level'
,
label
:
'级别'
,
width
:
'5%'
},
{
prop
:
"operation"
,
...
...
@@ -1039,33 +1039,8 @@ const tableColumns = ref([
},
]);
const
permissionBranchFactory
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'branchFactoryList'
))
||
[];
const
customerId
=
getToken
(
'customerId'
);
const
getBranchTypeList
=
()
=>
{
const
url
=
'/transaction/getBranchFactory'
;
const
params
=
{
customerId
}
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
1
)
{
const
branchFactory
=
res
.
data
;
if
(
permissionBranchFactory
.
length
===
0
)
{
basicConfiguration
.
branchFactoryList
=
[];
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
basicConfiguration
.
branchFactoryList
=
basicConfiguration
.
branchFactoryList
.
concat
(
branchFactory
);
}
else
{
basicConfiguration
.
branchFactoryList
=
branchFactory
.
filter
((
item
)
=>
permissionBranchFactory
.
includes
(
item
.
branchFactoryId
)
);
basicConfiguration
.
branchFactoryList
.
unshift
({
branchFactory
:
'全部'
,
branchFactoryId
:
''
});
}
}
});
}
const
getWarnAndTicketConfigMap
=
()
=>
{
const
url
=
'/system/getWarnAndTicketConfigMap'
;
const
params
=
{
...
...
@@ -1091,18 +1066,6 @@ let realBtn = '';
const
searchData
=
()
=>
{
currentPage
.
value
=
1
;
pageSize
.
value
=
20
;
if
(
!
formInline
.
value
.
branchFactoryIds
)
{
if
(
permissionBranchFactory
.
length
===
0
)
{
realBtn
=
-
1
;
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
realBtn
=
''
;
}
else
{
realBtn
=
permissionBranchFactory
.
join
(
','
);
}
}
else
{
realBtn
=
formInline
.
value
.
branchFactoryIds
;
}
getTableData
();
}
...
...
@@ -1130,6 +1093,17 @@ const getTableData = ()=> {
total
.
value
=
res
.
data
.
total
;
disposeType
(
list
);
tableData
.
value
=
list
;
tableData
.
value
.
forEach
(
item
=>
{
item
.
handleUser
=
''
;
item
.
handleUsers
.
forEach
((
ele
,
eIndex
)
=>
{
if
(
eIndex
>
0
)
{
item
.
handleUser
+=
','
+
ele
.
userName
;
}
else
{
item
.
handleUser
+=
ele
.
userName
;
}
});
});
}
});
}
...
...
@@ -1214,7 +1188,7 @@ const disposeWorkSheetDetail = (obj)=> {
}
onMounted
(()
=>
{
get
BranchTypeList
();
get
ProDuctLine
();
getWarnAndTicketConfigMap
();
getDeviceType
();
searchData
();
...
...
@@ -1223,6 +1197,12 @@ onMounted(()=>{
const
formModel
=
ref
({
selectReason
:
[],
});
const
getProDuctLine
=
()
=>
{
const
url
=
'/transaction/getProductionLine'
;
getData
(
url
).
then
(
res
=>
{
basicConfiguration
.
productLineList
=
res
.
data
;
});
}
const
currentPage
=
ref
(
1
);
...
...
src/views/closeManage/myDone.vue
View file @
5061aa12
...
...
@@ -8,15 +8,15 @@
<el-form-item
label=
"发生位置:"
>
<el-input
v-model=
"formInline.keyword"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"所属
区域
:"
>
<el-select
v-model=
"formInline.
branchFactoryIds
"
<el-form-item
label=
"所属
工序
:"
>
<el-select
v-model=
"formInline.
productionLineId
"
placeholder=
"请选择"
style=
"width: 180px"
>
<el-option
v-for=
"(item, index) in basicConfiguration.
branchFactory
List"
:key=
"item.
branchFactory
Id"
:label=
"item.
branchFactory
"
:value=
"item.
branchFactory
Id"
<el-option
v-for=
"(item, index) in basicConfiguration.
productLine
List"
:key=
"item.
productionLine
Id"
:label=
"item.
productionLineName
"
:value=
"item.
productionLine
Id"
/>
</el-select>
</el-form-item>
...
...
@@ -77,14 +77,14 @@
<span
class=
"view-btn"
@
click=
"handleView(row)"
>
查看
</span>
<span
class=
"table-btn"
>
|
</span>
<!--
<span
class=
"table-btn"
>
|
</span>
<span
class=
"view-btn"
@
click=
"handleReject(row)"
>
驳回
</span>
<span
class=
"table-btn"
>
|
</span>
<span
class=
"view-btn"
@
click=
"changeBag(row)"
>
更换布袋
</span>
</span>
-->
</
template
>
</common-table>
</div>
...
...
@@ -123,9 +123,9 @@
<div
class=
"label-title"
>
告警信息
</div>
<div
class=
"alarm-content"
>
<div
class=
"content-item"
>
<span
class=
"name"
>
所属
区域
:
</span>
<span
class=
"name"
>
所属
工序
:
</span>
<span
class=
"value"
>
{{
workSheetDetail.
branchFactory
|| "--"
workSheetDetail.
productionLine
|| "--"
}}
</span>
</div>
<div
class=
"content-item"
>
...
...
@@ -901,12 +901,19 @@ const getIndex = (index) => {
const
basicConfiguration
=
reactive
({
ticketEventName
:
[],
branchFactoryList
:
[{
branchFactory
:
"全部"
,
branchFactoryId
:
""
}
],
deviceList
:
[]
deviceList
:
[
],
productLineList
:
[{
productionLineName
:
'全部'
,
productionLineId
:
''
}],
});
const
workSheetDetail
=
ref
(
null
);
const
getProDuctLine
=
()
=>
{
const
url
=
'/transaction/getProductionLine'
;
getData
(
url
).
then
(
res
=>
{
basicConfiguration
.
productLineList
=
res
.
data
;
});
}
const
getColor
=
computed
(()
=>
{
return
(
level
)
=>
{
if
(
level
==
2
)
{
...
...
@@ -1074,11 +1081,11 @@ const tableColumns = ref([
width
:
'10%'
},
{
prop
:
'
branchFactory'
,
label
:
'所属区域
'
,
width
:
'10%'
},
prop
:
'
productionLine'
,
label
:
'所属工序
'
,
width
:
'10%'
},
{
prop
:
'warnTypeName'
,
label
:
'类型'
,
width
:
'10%'
},
{
prop
:
'createTime'
,
label
:
'发生时间'
,
width
:
'10%'
},
{
prop
:
'desc'
,
label
:
'闭环状态'
,
width
:
'10%'
},
{
prop
:
'
person
'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'
handleUser
'
,
label
:
'处理人'
,
width
:
'10%'
},
{
prop
:
'level'
,
label
:
'级别'
,
width
:
'5%'
},
{
prop
:
"operation"
,
...
...
@@ -1087,32 +1094,10 @@ const tableColumns = ref([
},
]);
const
permissionBranchFactory
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'branchFactoryList'
))
||
[];
const
customerId
=
getToken
(
'customerId'
);
const
getBranchTypeList
=
()
=>
{
const
url
=
'/transaction/getBranchFactory'
;
const
params
=
{
customerId
}
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
1
)
{
const
branchFactory
=
res
.
data
;
if
(
permissionBranchFactory
.
length
===
0
)
{
basicConfiguration
.
branchFactoryList
=
[];
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
basicConfiguration
.
branchFactoryList
=
basicConfiguration
.
branchFactoryList
.
concat
(
branchFactory
);
}
else
{
basicConfiguration
.
branchFactoryList
=
branchFactory
.
filter
((
item
)
=>
permissionBranchFactory
.
includes
(
item
.
branchFactoryId
)
);
basicConfiguration
.
branchFactoryList
.
unshift
({
branchFactory
:
'全部'
,
branchFactoryId
:
''
});
}
}
const
customerId
=
getToken
(
'customerId'
);
});
}
const
getWarnAndTicketConfigMap
=
()
=>
{
const
url
=
'/system/getWarnAndTicketConfigMap'
;
...
...
@@ -1133,17 +1118,6 @@ const searchData = ()=>{
currentPage
.
value
=
1
;
pageSize
.
value
=
20
;
if
(
!
formInline
.
value
.
branchFactoryIds
)
{
if
(
permissionBranchFactory
.
length
===
0
)
{
realBtn
=
-
1
;
}
else
if
(
permissionBranchFactory
.
length
===
1
&&
permissionBranchFactory
[
0
]
==
0
)
{
realBtn
=
''
;
}
else
{
realBtn
=
permissionBranchFactory
.
join
(
','
);
}
}
else
{
realBtn
=
formInline
.
value
.
branchFactoryIds
;
}
getTableData
();
}
...
...
@@ -1173,6 +1147,16 @@ const getTableData = ()=> {
total
.
value
=
res
.
data
.
total
;
disposeType
(
list
);
tableData
.
value
=
list
;
tableData
.
value
.
forEach
(
item
=>
{
item
.
handleUser
=
''
;
item
.
handleUsers
.
forEach
((
ele
,
eIndex
)
=>
{
if
(
eIndex
>
0
)
{
item
.
handleUser
+=
','
+
ele
.
userName
;
}
else
{
item
.
handleUser
+=
ele
.
userName
;
}
});
});
}
});
}
...
...
@@ -1224,7 +1208,7 @@ const getDeviceType =() => {
}
onMounted
(()
=>
{
get
BranchTypeList
();
get
ProDuctLine
();
getWarnAndTicketConfigMap
();
getDeviceType
();
searchData
();
...
...
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