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
5ec24008
Commit
5ec24008
authored
Oct 18, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
胶起材料的接口调试
parent
94b7ef88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
25 deletions
+47
-25
header.vue
...s/src/views/taskExecution/components/LacClaims/header.vue
+47
-25
No files found.
applications/dee-mes/src/views/taskExecution/components/LacClaims/header.vue
View file @
5ec24008
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
align=
"center"
align=
"center"
/>
/>
<el-table-column
<el-table-column
prop=
"
dxProcess
Material.resCode"
prop=
"
ext
Material.resCode"
align=
"center"
align=
"center"
label=
"物料编码"
label=
"物料编码"
:width=
"120"
:width=
"120"
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
show-overflow-tooltip
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
prop=
"
dxProcess
Material.modelNo"
prop=
"
ext
Material.modelNo"
align=
"center"
align=
"center"
label=
"牌号/规格/GPM号"
label=
"牌号/规格/GPM号"
:width=
"200"
:width=
"200"
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
show-overflow-tooltip
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
prop=
"
dxProcess
Material.resName"
prop=
"
ext
Material.resName"
align=
"center"
align=
"center"
label=
"材料名称"
label=
"材料名称"
:min-width=
"120"
:min-width=
"120"
...
@@ -65,14 +65,14 @@
...
@@ -65,14 +65,14 @@
show-overflow-tooltip
show-overflow-tooltip
/>
/>
<el-table-column
<el-table-column
prop=
"
dxProcess
Material.resType2.typeName"
prop=
"
ext
Material.resType2.typeName"
align=
"center"
align=
"center"
label=
"类型"
label=
"类型"
:width=
"90"
:width=
"90"
sortable
sortable
/>
/>
<el-table-column
<el-table-column
prop=
"
dxProcessMaterial.u
nit.unitCode"
prop=
"
extMaterial.extU
nit.unitCode"
align=
"center"
align=
"center"
label=
"单位"
label=
"单位"
:width=
"90"
:width=
"90"
...
@@ -173,23 +173,46 @@ export default {
...
@@ -173,23 +173,46 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
this
.
tableData
=
[]
this
.
tableData
=
[]
const
params
=
{
const
params
=
{
pageFrom
:
this
.
tablePagination
.
currentPage
,
'pageFrom'
:
this
.
tablePagination
.
currentPage
,
pageSize
:
this
.
tablePagination
.
pageSize
,
'pageSize'
:
this
.
tablePagination
.
pageSize
,
indices
:
[
'StorageRequestItem'
],
'searchItems'
:
{
searchItems
:
{
'children'
:
[],
items
:
[
'items'
:
[
{
{
fieldName
:
'aoId'
,
'fieldName'
:
'extSupporting.extProcessPlan.id'
,
operator
:
'EQ'
,
'operator'
:
'EQ'
,
value
:
this
.
$parent
.
$parent
.
$parent
.
$parent
.
headerData
.
aoId
// 'value': 249231383474000
'value'
:
this
.
$parent
.
$parent
.
$parent
.
$parent
.
headerData
.
aoId
}
}
],
],
operator
:
'AND'
'operator'
:
'AND'
}
},
'openProps'
:
[
{
'name'
:
'inStorageRequestItems'
},
{
'name'
:
'extMaterial'
,
'openProps'
:
[
{
'name'
:
'resType2'
},
{
'name'
:
'extUnit'
}
]
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
}
// 发送请求
// 发送请求
post
(
post
(
'/
StorageRequestItem/getStorageReqItemByAoId
'
,
'/
ExtSupportingItem/findSupportingItemMaterialByAO
'
,
params
params
)
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -238,6 +261,9 @@ export default {
...
@@ -238,6 +261,9 @@ export default {
case
' invalid'
:
case
' invalid'
:
label
=
'已失效'
label
=
'已失效'
break
break
case
null
:
label
=
'未申请'
break
default
:
default
:
label
=
''
label
=
''
}
}
...
@@ -245,7 +271,7 @@ export default {
...
@@ -245,7 +271,7 @@ export default {
},
},
rowClick
(
row
)
{
rowClick
(
row
)
{
this
.
rowData
=
row
this
.
rowData
=
row
this
.
$parent
.
$parent
.
$parent
.
$refs
.
footer
.
getTableData
(
this
.
rowData
.
id
)
//
this.$parent.$parent.$parent.$refs.footer.getTableData(this.rowData.id)
},
},
/**
/**
* 胶漆使用申请
* 胶漆使用申请
...
@@ -253,10 +279,8 @@ export default {
...
@@ -253,10 +279,8 @@ export default {
applyStorageReqItem
(
row
)
{
applyStorageReqItem
(
row
)
{
var
that
=
this
var
that
=
this
post
(
post
(
'/StorageRequestItem/applyStorageReqItem'
,
`/ExtSupportingItem/deal/supportingItem?extSupportingItemVOId=
${
that
.
rowData
.
id
}
&applyState=true`
,
{
{}
id
:
that
.
rowData
.
id
// 问题id
}
)
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
if
(
res
.
message
.
includes
(
'成功'
))
{
...
@@ -283,10 +307,8 @@ export default {
...
@@ -283,10 +307,8 @@ export default {
cancelApplyStorageReqItem
()
{
cancelApplyStorageReqItem
()
{
var
that
=
this
var
that
=
this
post
(
post
(
'/StorageRequestItem/cancelApplyStorageReqItem'
,
`/ExtSupportingItem/deal/supportingItem?extSupportingItemVOId=
${
that
.
rowData
.
id
}
&applyState=false`
,
{
{}
id
:
that
.
rowData
.
id
// 问题id
}
)
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
if
(
res
.
message
.
includes
(
'成功'
))
{
...
...
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