md
This commit is contained in:
parent
e628629289
commit
bb6cd5c349
@ -15,6 +15,10 @@
|
||||
<el-tab-pane label="账单详情" name="billDetail" v-if="showBillDetail" closable>
|
||||
<SiteConfirmSubBillListPanel :settleBillNo="curSettleBillNo"></SiteConfirmSubBillListPanel>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="开票详情" name="applyDetail" v-if="showApplyDetail" closable>
|
||||
<InvoiceDetailPanel :id="currApplyId"></InvoiceDetailPanel>
|
||||
</el-tab-pane>
|
||||
|
||||
<!-- <el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.applySeqNo" :label="'开票:'+item.applySeqNo" closable >
|
||||
<InvoiceDetailPanel :id="item.id"></InvoiceDetailPanel>
|
||||
</el-tab-pane> -->
|
||||
@ -50,7 +54,10 @@ export default {
|
||||
selectBillList:null,
|
||||
|
||||
curSettleBillNo:null,
|
||||
showBillDetail:false
|
||||
showBillDetail:false,
|
||||
|
||||
currApplyId:null,
|
||||
showApplyDetail:false
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -65,13 +72,17 @@ export default {
|
||||
this.activeTab="billDetail";
|
||||
},
|
||||
onSelectApply(item) {
|
||||
let old=this.billTabs.find(mItem=>mItem.applySeqNo==item.applySeqNo);
|
||||
if(old){
|
||||
this.activeTab=item.applySeqNo;
|
||||
}else{
|
||||
this.billTabs.push(item);
|
||||
this.activeTab=item.applySeqNo;
|
||||
}
|
||||
this.currApplyId=item.id;
|
||||
this.showApplyDetail=true;
|
||||
this.activeTab="applyDetail";
|
||||
|
||||
// let old=this.billTabs.find(mItem=>mItem.applySeqNo==item.applySeqNo);
|
||||
// if(old){
|
||||
// this.activeTab=item.applySeqNo;
|
||||
// }else{
|
||||
// this.billTabs.push(item);
|
||||
// this.activeTab=item.applySeqNo;
|
||||
// }
|
||||
},
|
||||
|
||||
onApply(billList){
|
||||
@ -100,6 +111,12 @@ export default {
|
||||
this.showBillDetail=false;
|
||||
this.activeTab="waitOpenBillList";
|
||||
}
|
||||
else if(targetName=='applyDetail'){
|
||||
this.currApplyId=null;
|
||||
this.showApplyDetail=false;
|
||||
this.activeTab="waitOpenBillList";
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user