md
This commit is contained in:
parent
cf3bed37a3
commit
13dd1cfc46
@ -9,8 +9,12 @@
|
|||||||
<el-tab-pane label="收货入仓" name="wsInPanel" v-if="showWsInPanel" closable>
|
<el-tab-pane label="收货入仓" name="wsInPanel" v-if="showWsInPanel" closable>
|
||||||
<WarehouseStockIn :key="selectInNo" :inNo="selectInNo"></WarehouseStockIn>
|
<WarehouseStockIn :key="selectInNo" :inNo="selectInNo"></WarehouseStockIn>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.inNo" :label="'进仓单:'+item.inNo" closable >
|
<!-- <el-tab-pane v-for="(item, index) in billTabs" :key="index" :name="item.inNo" :label="'进仓单:'+item.inNo" closable >
|
||||||
<WarehouseInBatchPanel :inNo="item.inNo"></WarehouseInBatchPanel>
|
<WarehouseInBatchPanel :inNo="item.inNo"></WarehouseInBatchPanel>
|
||||||
|
</el-tab-pane> -->
|
||||||
|
|
||||||
|
<el-tab-pane label="查看进仓详情" name="wsInView" v-if="openViewForm" closable >
|
||||||
|
<WarehouseInBatchPanel :key="'batchView_'+selectInNo" :inNo="selectInNo"></WarehouseInBatchPanel>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@ -38,6 +42,8 @@ export default {
|
|||||||
billTabs:[],
|
billTabs:[],
|
||||||
showWsInPanel:false,
|
showWsInPanel:false,
|
||||||
selectInNo:null,
|
selectInNo:null,
|
||||||
|
|
||||||
|
openViewForm:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -51,20 +57,30 @@ export default {
|
|||||||
this.showWsInPanel=true;
|
this.showWsInPanel=true;
|
||||||
this.activeTab='wsInPanel';
|
this.activeTab='wsInPanel';
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectBill(item) {
|
onSelectBill(item) {
|
||||||
let old=this.billTabs.find(mItem=>mItem.inNo==item.inNo);
|
// let old=this.billTabs.find(mItem=>mItem.inNo==item.inNo);
|
||||||
if(old){
|
// if(old){
|
||||||
this.activeTab=item.inNo;
|
// this.activeTab=item.inNo;
|
||||||
}else{
|
// }else{
|
||||||
this.billTabs.push(item);
|
// this.billTabs.push(item);
|
||||||
this.activeTab=item.inNo;
|
// this.activeTab=item.inNo;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
this.selectInNo=item.inNo;
|
||||||
|
this.openViewForm=true;
|
||||||
|
this.activeTab='wsInView';
|
||||||
},
|
},
|
||||||
removeTab(targetName) {
|
removeTab(targetName) {
|
||||||
if(targetName=='wsInPanel'){
|
if(targetName=='wsInPanel'){
|
||||||
this.showWsInPanel=false;
|
this.showWsInPanel=false;
|
||||||
this.activeTab="billList";
|
this.activeTab="billList";
|
||||||
}else{
|
}
|
||||||
|
else if(targetName=='wsInView'){
|
||||||
|
this.openViewForm=false;
|
||||||
|
this.activeTab="billList";
|
||||||
|
}
|
||||||
|
else{
|
||||||
var self=this;
|
var self=this;
|
||||||
let tabs = self.billTabs;
|
let tabs = self.billTabs;
|
||||||
self.billTabs = tabs.filter(tab => tab.inNo !== targetName);
|
self.billTabs = tabs.filter(tab => tab.inNo !== targetName);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user