|
@@ -159,6 +159,11 @@ export default class ByBill extends VueViews {
|
|
|
}
|
|
|
|
|
|
//工具栏
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param n1 方法
|
|
|
+ * @param n2 表示哪个表格的操作
|
|
|
+ */
|
|
|
clickHandle(n1:string,n2:string){
|
|
|
this.$emit(n1,n2)
|
|
|
}
|
|
@@ -206,12 +211,23 @@ export default class ByBill extends VueViews {
|
|
|
}
|
|
|
}
|
|
|
//设置单据表格数据
|
|
|
- setBillTableValue(value:any){
|
|
|
- if(this.$refs.billTable){
|
|
|
- (this.$refs.billTable as any).setValue(value);
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param value 表格值
|
|
|
+ * @param n 表示第几个表格,一般是下标值
|
|
|
+ */
|
|
|
+ setBillTableValue(value:any,n:number){
|
|
|
+ let code = 'billTable_'+n;
|
|
|
+ if(this.$refs[code]){
|
|
|
+ (this.$refs[code] as any)[0].setValue(value);
|
|
|
}
|
|
|
}
|
|
|
//设置tab表格数据
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param n
|
|
|
+ * @param data
|
|
|
+ */
|
|
|
setTabTableValue(n:string,data:Array<any>){
|
|
|
if(this.$refs[n]){
|
|
|
(this.$refs[n] as any).setTableValue(data);
|