1.0.1 • Published 11 months ago

invoice-details v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

xui

介绍

  • 发票详情 --- 此页面由多个子组件组合而成,发票详情,单据关联,单据行关联。

gitlab 地址

http://gitlab.kingxunlian.com/front-end/component/kts-Invoice-details

使用方法

/**
 * uuid是必须传入的 单据uuid 子组件内部会用来查询单据详情,用来渲染里面内容的。
 * fileTo 这个是用来跳转到附件页面的 此函数默认有一个id参数,用来跳转页面用。
 * actions 是发票行的各种自定义的操作dom结构,比如你可以传入如下代码:
 * <span onClick={() => this.onShowConnectLine(record)}>关联</span>
 * close 是单据关联的关闭函数,这个采用模态框的visible来关闭显示关联弹框
 * itemLine 是和行关联组件(ConnectLinePanel)特有的,行关联存在多条行数据。只有当你的发票详情有行关联操作的时候会使用,表示当前被选中的行数据
*/
<InvoicePanel uuid={documentUuid} fileTo={this.linkTo} actions={this.actionHander} />
<ConnectPanel uuid={documentUuid} close={this.onClose} />
<ConnectLinePanel uuid={documentUuid} itemLine={this.state.itemLine}  onCloseConnectLine={this.onCloseConnectLine} />