Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
杨硕
template_vue
Commits
0eac70e5
Commit
0eac70e5
authored
Aug 03, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除菜单
parent
97217fa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
25 deletions
+51
-25
draw.vue
src/views/equipment/draw.vue
+50
-16
draw.vue
src/views/processManagement/draw.vue
+1
-9
No files found.
src/views/equipment/draw.vue
View file @
0eac70e5
...
@@ -339,10 +339,15 @@
...
@@ -339,10 +339,15 @@
<
script
>
<
script
>
import
{
listWbApply
,
deleteLogical
,
detailList
,
batchAddition
,
detail
}
from
'@/api/equipment/draw'
import
{
listWbApply
,
deleteLogical
,
detailList
,
batchAddition
,
detail
}
from
'@/api/equipment/draw'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getEquipment
}
from
'@/api/equipment/application'
export
default
{
export
default
{
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
ptype
:
''
,
pgx
:
''
,
prank
:
''
,
pissb
:
''
,
totalApplyDetail
:
0
,
totalApplyDetail
:
0
,
applyList
:
[],
applyList
:
[],
canceList
:
[],
canceList
:
[],
...
@@ -458,16 +463,7 @@ export default {
...
@@ -458,16 +463,7 @@ export default {
next
()
next
()
},
},
created
()
{
created
()
{
this
.
resetQuery
()
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
this
.
getList
()
this
.
getList
()
// this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
// this.statusOptions = response.data;
// });
},
},
methods
:
{
methods
:
{
handleCance
()
{
handleCance
()
{
...
@@ -507,7 +503,18 @@ export default {
...
@@ -507,7 +503,18 @@ export default {
/** 查询warehouse列表 */
/** 查询warehouse列表 */
getDeviceList
()
{
getDeviceList
()
{
this
.
loadingDetail
=
true
this
.
loadingDetail
=
true
detailList
(
this
.
queryParamsDetail
).
then
(
res
=>
{
const
obj
=
{
ptype
:
this
.
ptype
,
pgx
:
this
.
pgx
,
prank
:
this
.
prank
,
pissb
:
this
.
pissb
,
page
:
this
.
queryParamsDetail
.
page
,
rows
:
this
.
queryParamsDetail
.
rows
,
pn
:
this
.
queryParamsDetail
.
pn
,
lot
:
this
.
queryParams
.
lot
,
plocation
:
this
.
queryParams
.
plocation
}
getEquipment
(
obj
).
then
(
res
=>
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
this
.
totalDetail
=
res
.
total
this
.
totalDetail
=
res
.
total
this
.
detailApplyList
=
res
.
rows
this
.
detailApplyList
=
res
.
rows
...
@@ -515,16 +522,43 @@ export default {
...
@@ -515,16 +522,43 @@ export default {
})
})
},
},
handle
(
row
)
{
handle
(
row
)
{
console
.
log
(
'row'
,
row
)
this
.
applyId
=
row
.
businessId
this
.
applyId
=
row
.
businessId
this
.
title
=
'处理'
this
.
ptype
=
row
.
ptype
this
.
openHandle
=
!
this
.
openHandle
this
.
pgx
=
row
.
pgx
this
.
loadingDetail
=
true
this
.
prank
=
row
.
prank
detailList
(
this
.
queryParamsDetail
).
then
(
res
=>
{
this
.
pissb
=
row
.
pissb
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
const
obj
=
{
this
.
totalDetail
=
res
.
total
pn
:
row
.
pn
,
ptype
:
row
.
ptype
,
pgx
:
row
.
pgx
,
prank
:
row
.
prank
,
pissb
:
row
.
pissb
,
page
:
this
.
queryParamsDetail
.
page
,
rows
:
this
.
queryParamsDetail
.
rows
}
getEquipment
(
obj
).
then
(
res
=>
{
if
(
res
.
code
&&
res
.
code
===
null
)
{
this
.
$message
.
warning
(
res
.
message
)
}
console
.
log
(
'res'
)
if
(
res
.
rows
.
createDate
&&
res
.
rows
.
createDate
!==
null
)
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
}
this
.
detailApplyList
=
res
.
rows
this
.
detailApplyList
=
res
.
rows
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
true
})
})
// this.applyId = row.businessId
this
.
title
=
'处理'
// this.openHandle = !this.openHandle
this
.
loadingDetail
=
true
// detailList(this.queryParamsDetail).then(res => {
// res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
// this.totalDetail = res.total
// this.detailApplyList = res.rows
// this.loadingDetail = false
// })
},
},
// 获取所选行详情信息
// 获取所选行详情信息
handleDetail
(
row
)
{
handleDetail
(
row
)
{
...
...
src/views/processManagement/draw.vue
View file @
0eac70e5
...
@@ -462,16 +462,7 @@ export default {
...
@@ -462,16 +462,7 @@ export default {
next
()
next
()
},
},
created
()
{
created
()
{
this
.
resetQuery
()
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
}
this
.
getList
()
this
.
getList
()
// this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
// this.statusOptions = response.data;
// });
},
},
methods
:
{
methods
:
{
handleCance
()
{
handleCance
()
{
...
@@ -531,6 +522,7 @@ export default {
...
@@ -531,6 +522,7 @@ export default {
},
},
handle
(
row
)
{
handle
(
row
)
{
console
.
log
(
'row'
,
row
)
console
.
log
(
'row'
,
row
)
this
.
applyId
=
row
.
businessId
this
.
ptype
=
row
.
ptype
this
.
ptype
=
row
.
ptype
this
.
pgx
=
row
.
pgx
this
.
pgx
=
row
.
pgx
this
.
prank
=
row
.
prank
this
.
prank
=
row
.
prank
...
...
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