Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
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
TFMOM
TF-MOM-WEB
Commits
024c30d7
Commit
024c30d7
authored
Oct 09, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供外出库明细取值修改
parent
a17b65f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
8 deletions
+57
-8
index.vue
...vateComponents/components/OutStorageOfferDetail/index.vue
+57
-8
No files found.
applications/dee-mes/src/privateComponents/components/OutStorageOfferDetail/index.vue
View file @
024c30d7
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
if
(
this
.
basicData
.
id
)
{
if
(
this
.
basicData
.
id
)
{
this
.
getEditData
()
this
.
getEditData
(
this
.
basicData
.
id
)
}
}
},
},
methods
:
{
methods
:
{
...
@@ -270,14 +270,63 @@ export default {
...
@@ -270,14 +270,63 @@ export default {
})
})
})
})
},
},
getEditData
()
{
getEditData
(
id
)
{
const
data
=
this
.
basicData
.
inStorageRequestItems
const
params
=
{
data
.
forEach
(
item
=>
{
'pageFrom'
:
1
,
if
(
item
.
inventoryJobResponses
)
{
'pageSize'
:
999
,
item
.
allocatedAmount
=
this
.
sumArray
(
item
.
inventoryJobResponses
,
'allocatedAmount'
)
'searchItems'
:
{
}
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
'outStorageRequestId'
,
'operator'
:
'EQ'
,
'value'
:
id
}
],
'operator'
:
'AND'
}
],
'items'
:
[],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'extMaterial'
,
'openProps'
:
[
{
'name'
:
'extUnit'
},
{
'name'
:
'resType2'
}
]
},
{
'name'
:
'inventory'
},
{
'name'
:
'inventoryJobResponses'
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
this
.
$api
.
searchApi
(
`InStorageRequestItem`
,
params
).
then
(
res
=>
{
const
data
=
res
.
items
.
content
||
[]
data
.
forEach
(
item
=>
{
if
(
item
.
inventoryJobResponses
)
{
item
.
allocatedAmount
=
this
.
sumArray
(
item
.
inventoryJobResponses
,
'allocatedAmount'
)
}
})
this
.
tableData
=
data
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
})
this
.
tableData
=
data
},
},
sumArray
(
array
,
key
)
{
sumArray
(
array
,
key
)
{
let
sum
=
0
let
sum
=
0
...
...
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