Commit 22587e94 authored by jingnan's avatar jingnan 👀

CAS计划下达增加已下达未下达页签

parent 7ad2a913
......@@ -123,8 +123,10 @@
</span>
</div>
<div v-show="currTab && currTab.configName==='CasAssemble'" class="background" style="height:calc(100% - 40px);">
<dee-tab :is-lazy="false" :tabs="casTabItems" :show-swipe="false" :is-detail="false" @tabClick="tabClickCAS">
<div slot="0" style="height:100%; box-sizing: border-box">
<dee-as-com
ref="detailComExtCas"
ref="detailComExtCasWXD"
:basic-data="{activeNodeData,requestParams}"
:lay-config="{
typeName: 'ExtCas',
......@@ -133,6 +135,20 @@
@row-click="rowClickErp($event,'CAS')"
/>
</div>
<div slot="1" style="height:100%; box-sizing: border-box">
<dee-as-com
ref="detailComExtCasYXD"
:basic-data="{activeNodeData,requestParams}"
:lay-config="{
typeName: 'ExtCas',
layKey: 'casAssembleListsConfirm'
}"
@row-click="rowClickErp($event,'CAS')"
/>
</div>
</dee-tab>
</div>
</div>
</div>
......@@ -209,6 +225,17 @@ export default {
// id: '2'
// }
],
casTabItems: [
{
name: '未下达',
id: '0'
},
{
name: '已下达',
id: '1'
}
],
activeTabCAS: '0',
layConfig: {
typeName: 'JoExecutePlan',
layKey: 'stationPlanUnConfirmList'
......@@ -684,6 +711,12 @@ export default {
this.getRightTableData(this.activeNodeData.level !== 4 ? this.activeNodeData : null)
})
},
tabClickCAS(val) {
this.activeTabCAS = val.index
this.$nextTick(() => {
this.getRightTableData(this.activeNodeData)
})
},
handleNodeClick(data, node) {
this.requestParams = []
if (data.name !== '转移工作包') {
......@@ -788,8 +821,14 @@ export default {
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)
if (this.activeTabCAS === '0') {
if (this.$refs.detailComExtCasWXD.$refs.asCom && this.$refs.detailComExtCasWXD.$refs.asCom.getData) {
this.$refs.detailComExtCasWXD.$refs.asCom.getData(data)
}
} else if (this.activeTabCAS === '1') {
if (this.$refs.detailComExtCasYXD.$refs.asCom && this.$refs.detailComExtCasYXD.$refs.asCom.getData) {
this.$refs.detailComExtCasYXD.$refs.asCom.getData(data)
}
}
} else {
if (this.activeTab === '0') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment