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
01edb64e
Commit
01edb64e
authored
Jul 30, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP相关_CAS配套申请界面开发及接口联调
parent
0bcce179
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
136 deletions
+210
-136
index.vue
...s/assemblyPlanManagement/stationPlanMaintenance/index.vue
+36
-29
stationPlanList.vue
...PlanManagement/stationPlanMaintenance/stationPlanList.vue
+174
-107
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/index.vue
View file @
01edb64e
...
...
@@ -19,11 +19,12 @@
</div>
</
template
>
</dee-fold-pane>
<dee-tab
v-else
:tabs=
"tabItems"
:show-swipe=
"false"
:is-detail=
"false"
>
<div
slot=
"0"
style=
"height:100%;box-sizing:border-box"
>
<
!-- <
dee-tab v-else :tabs="tabItems" :show-swipe="false" :is-detail="false">
<div slot="0" style="height:100%;box-sizing:border-box">
-->
<dee-fold-pane
v-else
:min-percent=
"18"
:default-percent=
"18
"
:default-percent=
"defaultPercent
"
split=
"vertical"
class=
"detail-pane"
fold-direction=
"false"
...
...
@@ -36,7 +37,7 @@
:lay-config=
"layConfig"
@
row-click=
"rowClick"
/>
-->
<stationPlanList
:state-options=
"stateOptions"
@
getMissData=
"getMissData
"
/>
<stationPlanList
:state-options=
"stateOptions"
@
getMissData=
"getMissData"
@
switchMissPartsShow=
"switchMissPartsShow
"
/>
</div>
</
template
>
<
template
slot=
"paneR"
>
...
...
@@ -45,26 +46,28 @@
</div>
</
template
>
</dee-fold-pane>
</div
>
<div
slot=
"1"
style=
"height:100%;box-sizing:border-box"
>
<!-- </div> --
>
<!--
<div slot="1" style="height:100%;box-sizing:border-box">
<searchBar :state-options="stateOptions" @showStation="showStation" @search="search" />
<station v-show="headerShow" :state-options="stateOptions" :sorties-id="sortiesId" :form="form" @change="change" />
<gantt :form="form" :state-options="stateOptions" :class="[headerShow?'gantt-bar':'gantt-bar no-header']" />
</div>
</dee-tab>
</dee-tab>
-->
</div>
</template>
<
script
>
import
{
post
}
from
'@/utils/http'
import
searchBar
from
'./searchBar.vue'
import
station
from
'./station.vue'
import
gantt
from
'./gantt.vue'
//
import searchBar from './searchBar.vue'
//
import station from './station.vue'
//
import gantt from './gantt.vue'
import
missingParts
from
'./missingParts'
import
stationPlanList
from
'./stationPlanList'
import
materialSupporting
from
'./materialSupporting'
export
default
{
name
:
'DeeMesStationPlanMaintenance'
,
components
:
{
searchBar
,
station
,
gantt
,
missingParts
,
stationPlanList
,
materialSupporting
},
components
:
{
// searchBar, station, gantt,
missingParts
,
stationPlanList
,
materialSupporting
},
data
()
{
return
{
sortiesId
:
''
,
...
...
@@ -74,7 +77,8 @@ export default {
headerShow
:
true
,
basicData
:
{},
missInfo
:
{},
rowData
:
{}
rowData
:
{},
defaultPercent
:
18
}
},
computed
:
{
...
...
@@ -263,6 +267,9 @@ export default {
},
showStation
(
flag
)
{
this
.
headerShow
=
flag
},
switchMissPartsShow
(
data
)
{
this
.
defaultPercent
=
data
}
}
}
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/stationPlanList.vue
View file @
01edb64e
...
...
@@ -70,34 +70,43 @@
</
template
>
<
template
slot=
"paneR"
>
<div
class=
"right-container"
>
<div
class=
"detail-tabs"
>
<div
class=
"menu-tab-wrap"
>
<div
v-for=
"(item) in editableTabs"
:key=
"item.configName"
class=
"menu-tab-item"
@
click=
"changeTab(item)"
>
<span
:class=
"currTab && item.configName === currTab.configName ? 'link' : ''"
>
{{
item
.
name
}}
</span>
</div>
</div>
</div>
<div
class=
"detail-content"
>
<div
v-show=
"currTab && currTab.configName==='JoExecutePlanSend'"
style=
"height:calc(100% - 10px) "
>
<dee-tab
:is-lazy=
"false"
:tabs=
"tabItems"
:show-swipe=
"false"
:is-detail=
"false"
@
tabClick=
"tabClick"
>
<div
slot=
"0"
style=
"height:
100%; box-sizing: border-box"
>
<div
slot=
"0"
style=
"height:
100%; box-sizing: border-box"
>
<dee-as-com
ref=
"detailCom"
:key=
"layConfig.typeName"
:basic-data=
"
{activeNodeData,requestParams}"
:lay-config="layConfig"
table-height="calc(100vh - 20
0px)"
table-height="calc(100vh - 16
0px)"
@row-click="rowClick"
/>
</div>
<div
slot=
"1"
style=
"height:
100%; box-sizing: border-box"
>
<div
slot=
"1"
style=
"height:
100%; box-sizing: border-box"
>
<dee-as-com
ref=
"detailCom2"
:key=
"layConfig.typeName"
:basic-data=
"
{activeNodeData,requestParams}"
:lay-config="layConfig1"
table-height="calc(100vh - 20
0px)"
table-height="calc(100vh - 16
0px)"
@row-click="rowClick"
/>
</div>
<div
slot=
"2"
style=
"height:
100%; box-sizing: border-box"
>
<div
slot=
"2"
style=
"height:
100%; box-sizing: border-box"
>
<dee-as-com
ref=
"detailComSI2"
:key=
"layConfig2.typeName"
:basic-data=
"
{stateOptions}"
:lay-config="layConfig2"
table-height="calc(100vh - 20
0px)"
table-height="calc(100vh - 16
0px)"
@row-click="rowClickSpec"
/>
</div>
...
...
@@ -110,6 +119,19 @@
</span>
</span>
</div>
<div
v-show=
"currTab && currTab.configName==='CasAssemble'"
class=
"background"
style=
"height:calc(100% - 40px);"
>
<dee-as-com
ref=
"detailComExtCas"
:basic-data=
"
{activeNodeData,requestParams}"
:lay-config="{
typeName: 'ExtCas',
layKey: 'casAssembleLists'
}"
/>
</div>
</div>
</div>
</
template
>
</dee-fold-pane>
</div>
...
...
@@ -200,7 +222,22 @@ export default {
currentNodekey
:
''
,
areaUpdatingLists
:
{},
requestParams
:
[],
showSearchConditions
:
true
// 控制搜索条件是否显示
showSearchConditions
:
true
,
// 控制搜索条件是否显示
editableTabs
:
[{
id
:
1
,
name
:
'计划下达'
,
configName
:
'JoExecutePlanSend'
},
{
id
:
2
,
name
:
'CAS配套'
,
configName
:
'CasAssemble'
}],
currTab
:
{
id
:
1
,
name
:
'计划下达'
,
configName
:
'JoExecutePlanSend'
}
}
},
watch
:
{
...
...
@@ -534,44 +571,13 @@ export default {
this
.
treeData
[
0
].
children
[
0
].
children
[
0
].
level
=
3
this
.
activeNodeData
=
this
.
treeData
[
0
].
children
[
0
].
children
[
0
]
this
.
treeData
[
0
].
children
[
0
].
children
[
0
].
activeTab
=
this
.
activeTab
if
(
this
.
activeTab
===
'0'
)
{
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
this
.
treeData
[
0
].
children
[
0
].
children
[
0
])
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'1'
)
{
if
(
this
.
$refs
.
detailCom2
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
(
this
.
treeData
[
0
].
children
[
0
].
children
[
0
])
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'2'
)
{
if
(
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
&&
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
(
this
.
treeData
[
0
].
children
[
0
].
children
[
0
])
this
.
$emit
(
'getMissData'
,
null
)
}
}
this
.
treeData
[
0
].
children
[
0
].
children
[
0
].
searchStories
=
this
.
form
.
sortiesName
this
.
getRightTableData
(
this
.
treeData
[
0
].
children
[
0
].
children
[
0
])
})
}
else
{
this
.
activeNodeData
=
{}
this
.
activeNodeData
.
searchStories
=
this
.
form
.
sortiesName
this
.
$nextTick
(()
=>
{
if
(
this
.
activeTab
===
'0'
)
{
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
this
.
activeNodeData
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'1'
)
{
if
(
this
.
$refs
.
detailCom2
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
(
this
.
activeNodeData
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'2'
)
{
if
(
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
&&
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
(
this
.
activeNodeData
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
})
this
.
getRightTableData
(
this
.
activeNodeData
)
}
})
.
catch
((
err
)
=>
console
.
log
(
err
))
...
...
@@ -584,22 +590,7 @@ export default {
this
.
activeNodeData
.
activeTab
=
this
.
activeTab
this
.
activeNodeData
.
searchStories
=
this
.
form
.
sortiesName
this
.
$nextTick
(()
=>
{
if
(
this
.
activeTab
===
'0'
)
{
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
this
.
activeNodeData
.
level
!==
4
?
this
.
activeNodeData
:
null
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'1'
)
{
if
(
this
.
$refs
.
detailCom2
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
(
this
.
activeNodeData
.
level
!==
4
?
this
.
activeNodeData
:
null
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'2'
)
{
if
(
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
&&
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
(
this
.
activeNodeData
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
this
.
getRightTableData
(
this
.
activeNodeData
.
level
!==
4
?
this
.
activeNodeData
:
null
)
})
},
handleNodeClick
(
data
,
node
)
{
...
...
@@ -612,24 +603,7 @@ export default {
data
.
searchStories
=
this
.
form
.
sortiesName
this
.
activeNodeData
=
data
if
(
node
.
level
===
2
||
node
.
level
===
3
)
{
this
.
$nextTick
(()
=>
{
if
(
this
.
activeTab
===
'0'
)
{
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
data
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'1'
)
{
if
(
this
.
$refs
.
detailCom2
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
(
data
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'2'
)
{
if
(
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
&&
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
(
data
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
})
this
.
getRightTableData
(
data
)
}
if
(
node
.
level
===
4
)
{
this
.
requestParams
=
[
...
...
@@ -716,7 +690,16 @@ export default {
},
getCurrentData
(
data
)
{
if
(
data
.
level
===
2
||
data
.
level
===
3
)
{
this
.
getRightTableData
(
data
)
}
},
getRightTableData
(
data
)
{
this
.
$nextTick
(()
=>
{
if
(
this
.
currTab
&&
this
.
currTab
.
configName
===
'CasAssemble'
)
{
if
(
this
.
$refs
.
detailComExtCas
.
$refs
.
asCom
&&
this
.
$refs
.
detailComExtCas
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailComExtCas
.
$refs
.
asCom
.
getData
(
data
)
}
}
else
{
if
(
this
.
activeTab
===
'0'
)
{
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
data
)
...
...
@@ -733,8 +716,8 @@ export default {
this
.
$emit
(
'getMissData'
,
null
)
}
}
})
}
})
},
rowClick
(
data
)
{
this
.
$emit
(
'getMissData'
,
data
)
...
...
@@ -746,6 +729,12 @@ export default {
},
toggleSearchConditions
()
{
this
.
showSearchConditions
=
!
this
.
showSearchConditions
},
changeTab
(
val
)
{
this
.
currTab
=
val
this
.
getRightTableData
(
this
.
activeNodeData
)
const
percent
=
this
.
currTab
&&
this
.
currTab
.
configName
===
'CasAssemble'
?
0
:
18
this
.
$emit
(
'switchMissPartsShow'
,
percent
)
}
}
}
...
...
@@ -908,7 +897,85 @@ export default {
.right-container
{
position
:
relative
;
// width: 82%;
margin-left
:
20px
;
// margin-left: 20px;
height
:
100%
;
margin
:
8px
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
flex-start
;
background
:
#f1f4f5
;
.detail-tabs
{
height
:
100%
;
// overflow-y: scroll;
.menu-tab-wrap
{
width
:
38px
;
display
:
flex
;
justify-content
:
flex-start
;
flex-wrap
:
wrap
;
text-align
:
center
;
margin
:
6px
;
.menu-tab-item
{
background
:
#fff
;
padding
:
8px
10px
;
margin-bottom
:
10px
;
border
:
1px
solid
#dedede
;
border-radius
:
4px
;
cursor
:
pointer
;
writing-mode
:
tb
;
font-size
:
14px
;
.el-icon-close
{
margin-top
:
4px
;
}
}
}
}
.detail-content
{
width
:
100%
;
height
:
100%
;
background
:
#fff
;
overflow-y
:
auto
;
.task-name
{
font-weight
:
bold
;
}
.el-scrollbar__wrap
{
height
:
100%
;
}
.el-scrollbar__view
{
height
:
100%
;
}
.background
{
background
:
rgba
(
255
,
255
,
255
,
1
);
padding
:
12px
16px
;
}
.detaile-page
{
background
:
rgba
(
255
,
255
,
255
,
1
);
}
.el-dialog__body
{
padding
:
20px
20px
0
20px
;
}
.el-tabs__content
{
padding
:
0
8px
;
background
:
#fff
;
}
.dee-tools
{
margin-right
:
20px
!
important
;
margin-top
:
0
!
important
;
// background-color: #ebebeb;
// border: 1px solid #dedede;
height
:
30px
;
.icon
{
padding-left
:
10px
;
}
.icon-font
{
padding-right
:
10px
;
}
}
.flex-s
{
display
:
flex
;
justify-content
:
space-between
;
}
}
.areaUpdateTip
{
position
:
absolute
;
top
:
20px
;
...
...
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