|
@@ -9,7 +9,9 @@
|
|
|
<el-button type="primary" plain @click="setSourcePage">设置引单1分页</el-button><br/>
|
|
|
<el-button type="primary" plain @click="setSmtValue">设置已提交数据</el-button><br/>
|
|
|
<el-button type="primary" plain @click="setSmtPage">设置已提交分页</el-button><br/>
|
|
|
- <el-button type="primary" plain @click="setdraftsBoxValue">设置草稿箱数据</el-button>
|
|
|
+ <el-button type="primary" plain @click="setdraftsBoxValue">设置草稿箱数据</el-button><br/>
|
|
|
+ <el-button type="primary" plain @click="setBillTableData">设置单据表格1数据</el-button><br/>
|
|
|
+ <el-button type="primary" plain @click="getBillTableSelectData">获取单据表格1数据</el-button><br/>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -21,7 +23,7 @@ import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
export default class BillDemo extends Vue {
|
|
|
config:any={
|
|
|
attr:{
|
|
|
- activeName:'smt'
|
|
|
+ // activeName:'smt'
|
|
|
},
|
|
|
source:[{
|
|
|
title:'引单1',
|
|
@@ -337,7 +339,20 @@ export default class BillDemo extends Vue {
|
|
|
mounted(){
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ setBillTableData(){
|
|
|
+ let data:Array<any>=[{
|
|
|
+ id:1,
|
|
|
+ name:'张三11111',
|
|
|
+ },{
|
|
|
+ id:2,
|
|
|
+ name:'李四',
|
|
|
+ }];
|
|
|
+ (this.$refs.bill as any).setBillTableValue(data,0);
|
|
|
+ }
|
|
|
+ getBillTableSelectData(){
|
|
|
+ const d = (this.$refs.bill as any).getBillTableSelect(0);
|
|
|
+ console.log('单据表格1已选数据:',d);
|
|
|
+ }
|
|
|
search(parames:any){
|
|
|
console.log('搜索回传参数',parames);
|
|
|
}
|