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
689ec9fb
Commit
689ec9fb
authored
Nov 22, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
台账界面入厂验收单修改
parent
e697694c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
21 deletions
+54
-21
index.vue
...eComponents/components/JobResponseInTestProcess/index.vue
+54
-21
No files found.
applications/dee-mes/src/privateComponents/components/JobResponseInTestProcess/index.vue
View file @
689ec9fb
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
<!--
<div
v-if=
"!allDisabled"
class=
"sub-title"
style=
"padding-bottom: 12px;"
>
<!--
<div
v-if=
"!allDisabled"
class=
"sub-title"
style=
"padding-bottom: 12px;"
>
物料检验详情
物料检验详情
</div>
-->
</div>
-->
<equipmen-check-no
v-if=
"type==='AirEquipment'"
ref=
"AirEquipment"
:basic-data=
"basicData"
:job-response-in-test-data=
"data"
/>
<equipmen-check-no
v-if=
"type==='AirEquipment'"
ref=
"AirEquipment"
:basic-data=
"basicData
.fromInventory?jobOrderInfo:basicData
"
:job-response-in-test-data=
"data"
/>
<outSource-check-no
v-if=
"type==='OutSource'"
ref=
"OutSource"
:basic-data=
"basicData"
:job-response-in-test-data=
"data"
/>
<outSource-check-no
v-if=
"type==='OutSource'"
ref=
"OutSource"
:basic-data=
"basicData
.fromInventory?jobOrderInfo:basicData
"
:job-response-in-test-data=
"data"
/>
<material-check-no
v-if=
"type==='Material'"
ref=
"Material"
:basic-data=
"basicData"
:job-response-in-test-data=
"data"
/>
<material-check-no
v-if=
"type==='Material'"
ref=
"Material"
:basic-data=
"basicData
.fromInventory?jobOrderInfo:basicData
"
:job-response-in-test-data=
"data"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -37,7 +37,8 @@ export default {
...
@@ -37,7 +37,8 @@ export default {
data
:
null
,
data
:
null
,
basicDataId
:
null
,
basicDataId
:
null
,
inventoryReqId
:
null
,
inventoryReqId
:
null
,
allDisabled
:
that
.
basicData
.
allDisabled
allDisabled
:
that
.
basicData
.
allDisabled
,
jobOrderInfo
:
null
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -58,29 +59,61 @@ export default {
...
@@ -58,29 +59,61 @@ export default {
// 初始化数据
// 初始化数据
},
},
mounted
()
{
mounted
()
{
if
(
this
.
basicData
.
fromInventory
)
{
this
.
basicData
.
jobResponseId
&&
this
.
getJobOrderInfo
(
this
.
basicData
.
jobResponseId
)
}
else
{
this
.
basicDataId
=
this
.
basicData
.
id
this
.
basicDataId
=
this
.
basicData
.
id
this
.
inventoryReqId
=
this
.
basicData
.
inventoryReqId
this
.
inventoryReqId
=
this
.
basicData
.
inventoryReqId
this
.
getInventoryRequest
(
this
.
basicData
.
inventoryReqId
)
this
.
getInventoryRequest
(
this
.
basicData
.
inventoryReqId
)
}
},
},
methods
:
{
methods
:
{
getJobOrderInfo
(
jobResponseId
)
{
const
param
=
{
'pageFrom'
:
1
,
'pageSize'
:
1
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[
{
'fieldName'
:
'id'
,
'operator'
:
'EQ'
,
'value'
:
jobResponseId
}
],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'jobOrder'
,
'pageFrom'
:
1
,
'pageSize'
:
9999
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
post
(
'JobResponseInStorage/search'
,
param
).
then
(
res
=>
{
const
jobOrder
=
res
.
items
.
content
&&
res
.
items
.
content
[
0
]
&&
res
.
items
.
content
[
0
].
jobOrder
||
{}
this
.
basicDataId
=
jobOrder
.
id
this
.
inventoryReqId
=
jobOrder
.
inventoryReqId
this
.
jobOrderInfo
=
{
...
jobOrder
,
...
this
.
basicData
}
this
.
getInventoryRequest
(
jobOrder
.
inventoryReqId
)
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
getInventoryRequest
(
id
)
{
getInventoryRequest
(
id
)
{
if
(
!
id
)
return
if
(
!
id
)
return
get
(
`InventoryRequest/
${
id
}
`
).
then
(
res
=>
{
get
(
`InventoryRequest/
${
id
}
`
).
then
(
res
=>
{
const
type
=
res
.
items
.
billType
const
type
=
res
.
items
.
billType
// switch (type) {
// case '器材':
// case 'Material':
// this.type = 'Material'
// break
// case '机载设备':
// case 'AirEquipment':
// this.initData('AirEquipment')
// break
// case '外包产品':
// case 'OutSource':
// this.initData('OutSource')
// break
// }
if
(
!
type
)
return
this
.
$utils
.
showMessageWarning
(
'未查询到验收单信息!'
)
if
(
!
type
)
return
this
.
$utils
.
showMessageWarning
(
'未查询到验收单信息!'
)
this
.
initData
(
type
)
this
.
initData
(
type
)
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
...
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