Commit 22587e94 authored by jingnan's avatar jingnan 👀

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

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