Skip to main content

qiqi.page

page 模块提供跳转到指定界面的功能。

API

  • openForm(options): Promise<boolean> 打开单据卡片详情界面

options 对象属性如下:

参数说明类型默认值
mode模式 (View查看态, Edit编辑态, Create创建态)string-
id单据id, 对于查看态\编辑态必传string-
entityName业务对象的名称string
contextOrgId使用组织id, 对于受管控档案必传string
billTypeId单据类型idstring
  • demo
// 打开报销单查看态
qiqi.page.openForm({
id: 'xxxx',
mode: 'View',
entityName: 'Reimburse'
});


  • openReport(options): void 打开报表界面

options 对象属性如下:

参数说明类型默认值
groupId报表分组IDstring-
definitionId报表定义IDstring-
criterias查询条件数组array-
entityName业务对象名称(可选,没有entityName会有业务特殊扩展可能会走不到,查询没有问题,不强制要求)string-

其中 criterias 数组中的每个对象包含:

参数说明类型
operator操作符IEnumValue
fieldName字段名称string
fieldType字段类型string
value字段值对象object

value 对象属性:

参数说明类型
values值数组(多值时使用)array
value单个值any
from范围查询起始值any
to范围查询结束值any
unit相对时间单位string
offset相对时间偏移量number
length相对时间长度number
  • demo
// 打开报表
qiqi.page.openReport({
groupId: 'financial_reports',
definitionId: 'expense_summary',
entityName: 'Expense'
});
  • openVPage(options): void 打开VPage界面

options 对象属性如下:

参数说明类型默认值
pageId页面IDstring-
params页面参数对象Record<string, any>-
  • demo
// 打开VPage页面
qiqi.page.openVPage({
pageId: 'custom_page_001',
params: {
userId: '12345',
mode: 'edit'
}
});