|
@@ -22,7 +22,7 @@
|
|
<el-tabs v-model="activeSource">
|
|
<el-tabs v-model="activeSource">
|
|
<el-tab-pane v-for="(item,index) of sourceConfig" :key="index" :label="item.title" :name="'source'+index">
|
|
<el-tab-pane v-for="(item,index) of sourceConfig" :key="index" :label="item.title" :name="'source'+index">
|
|
<bill-module :propConfig="item" :ref="'source_'+index" @clickHandle="clickHandle($event,'source_'+index)" @search="search($event,'source_'+index)"
|
|
<bill-module :propConfig="item" :ref="'source_'+index" @clickHandle="clickHandle($event,'source_'+index)" @search="search($event,'source_'+index)"
|
|
- @resert="resert('source_'+index)" />
|
|
|
|
|
|
+ @resert="resert('source_'+index)" @pagination="paginationChange($event,'source_'+index)" @detail="detail($event,'source_'+index)" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
@@ -55,17 +55,17 @@
|
|
<!-- 草稿箱 -->
|
|
<!-- 草稿箱 -->
|
|
<div class="bill-box" v-if="draftsBoxConfig" :class="{'on-show':showTab == 'draftsBox'}">
|
|
<div class="bill-box" v-if="draftsBoxConfig" :class="{'on-show':showTab == 'draftsBox'}">
|
|
<bill-module :propConfig="draftsBoxConfig" ref="draftsBox" @clickHandle="clickHandle($event,'draftsBox')" @search="search($event,'draftsBox')"
|
|
<bill-module :propConfig="draftsBoxConfig" ref="draftsBox" @clickHandle="clickHandle($event,'draftsBox')" @search="search($event,'draftsBox')"
|
|
- @resert="resert('draftsBox')" />
|
|
|
|
|
|
+ @resert="resert('draftsBox')" @pagination="paginationChange($event,'draftsBox')" @detail="detail($event,'draftsBox')" />
|
|
</div>
|
|
</div>
|
|
<!-- 综合查询 -->
|
|
<!-- 综合查询 -->
|
|
<div class="bill-box" v-if="allConfig" :class="{'on-show':showTab == 'all'}">
|
|
<div class="bill-box" v-if="allConfig" :class="{'on-show':showTab == 'all'}">
|
|
<bill-module :propConfig="allConfig" ref="all" @clickHandle="clickHandle($event,'all')" @search="search($event,'all')"
|
|
<bill-module :propConfig="allConfig" ref="all" @clickHandle="clickHandle($event,'all')" @search="search($event,'all')"
|
|
- @resert="resert('all')" />
|
|
|
|
|
|
+ @resert="resert('all')" @pagination="paginationChange($event,'all')" @detail="detail($event,'all')" />
|
|
</div>
|
|
</div>
|
|
<!-- 回收站 -->
|
|
<!-- 回收站 -->
|
|
<div class="bill-box" v-if="recycleBinConfig" :class="{'on-show':showTab == 'recycleBin'}">
|
|
<div class="bill-box" v-if="recycleBinConfig" :class="{'on-show':showTab == 'recycleBin'}">
|
|
<bill-module :propConfig="recycleBinConfig" ref="recycleBin" @clickHandle="clickHandle($event,'recycleBin')" @search="search($event,'recycleBin')"
|
|
<bill-module :propConfig="recycleBinConfig" ref="recycleBin" @clickHandle="clickHandle($event,'recycleBin')" @search="search($event,'recycleBin')"
|
|
- @resert="resert('recycleBin')" />
|
|
|
|
|
|
+ @resert="resert('recycleBin')" @pagination="paginationChange($event,'recycleBin')" @detail="detail($event,'recycleBin')" />
|
|
</div>
|
|
</div>
|
|
<!-- 插槽 -->
|
|
<!-- 插槽 -->
|
|
<div class="bill-box" v-for="(item,index) of customs" :key="index" :class="{'on-show':showTab == item.name}">
|
|
<div class="bill-box" v-for="(item,index) of customs" :key="index" :class="{'on-show':showTab == item.name}">
|
|
@@ -189,6 +189,49 @@ export default class ByBill extends VueViews {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //设置引单表格数据
|
|
|
|
+ setSourceTableData(n:any,data:Array<any>){
|
|
|
|
+ const code = 'source_'+n;
|
|
|
|
+ if(this.$refs[code]){
|
|
|
|
+ (this.$refs[code] as any)[0]?.setTableValue(data)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //获取引单表格数据
|
|
|
|
+ getSourceTableData(n:any){
|
|
|
|
+ let d:Array<any>=[];
|
|
|
|
+ const code = 'source_'+n;
|
|
|
|
+ if(this.$refs[code]){
|
|
|
|
+ d = (this.$refs[code] as any)[0]?.getTableValue()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //获取引单表格选中数据
|
|
|
|
+ getSourceTableSelectData(n:any){
|
|
|
|
+ let d:Array<any>=[];
|
|
|
|
+ const code = 'source_'+n;
|
|
|
|
+ if(this.$refs[code]){
|
|
|
|
+ d = (this.$refs[code] as any)[0]?.getTableValue()
|
|
|
|
+ }
|
|
|
|
+ return d;
|
|
|
|
+ }
|
|
|
|
+ //获取引单搜索数据
|
|
|
|
+ getSourceSearchData(n:any){
|
|
|
|
+ let d:any = {};
|
|
|
|
+ const code = 'source_'+n;
|
|
|
|
+ if(this.$refs[code]){
|
|
|
|
+ d = (this.$refs[code] as any)[0]?.getSearchValue()
|
|
|
|
+ }
|
|
|
|
+ return d;
|
|
|
|
+ }
|
|
|
|
+ //设置引单分页
|
|
|
|
+ setSourcePage(n:any,page:any){
|
|
|
|
+ const code = 'source_'+n;
|
|
|
|
+ if(this.$refs[code]){
|
|
|
|
+ (this.$refs[code] as any)[0]?.setPage(page)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
//获取表格数据
|
|
//获取表格数据
|
|
getTableData(n:string){
|
|
getTableData(n:string){
|
|
let d:Array<any> = [];
|
|
let d:Array<any> = [];
|
|
@@ -205,7 +248,7 @@ export default class ByBill extends VueViews {
|
|
}
|
|
}
|
|
return d;
|
|
return d;
|
|
}
|
|
}
|
|
- //获取搜索数据数据
|
|
|
|
|
|
+ //获取搜索数据
|
|
getSearchValue(n:string){
|
|
getSearchValue(n:string){
|
|
let d:any = {};
|
|
let d:any = {};
|
|
if(this.$refs[n]){
|
|
if(this.$refs[n]){
|
|
@@ -259,6 +302,10 @@ export default class ByBill extends VueViews {
|
|
paginationChange(page:any,n:string){
|
|
paginationChange(page:any,n:string){
|
|
this.$emit('pagination',{page,type:n})
|
|
this.$emit('pagination',{page,type:n})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ detail(row:any,n:string){
|
|
|
|
+ this.$emit('detail',{row,type:n})
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|