描述打印数据获取接口
URL{你的ERP域名}/xprint/aapi_xprint/index
HTTP请求方式post
是否需要登录true
字段 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
appid | true | string | 应用id |
sign | true | string | 应用签名[参见签名规则] |
token | true | string | 用户登录接口获取的token |
nonce_str | true | string | 随机字符串 |
mdl_snid | true | string | 当前模块的 mdl_snid |
actions | true | string | 打印:print 设计模板:xprinttpl |
tpl_id | false | int | 打印模板的_id |
prefix | false | string | 单据前缀 |
order_code | false | string | 单据的唯一编号 |
output[field] | false | array | 导出的字段数组,支持的字段,参考对应列表接口返回的xlist数据字段名如:cname=>'真实姓名'这种格式的数组 |
total[] | false | array | 需要合计的字段数组,支持的字段,参考对应列表接口返回的xlist数据字段名如:cxum,price,只支持数字型字段的合计这种格式的数组 |
字段 | 类型及范围 | 说明 |
---|---|---|
status | string | 状态 y=成功 n=失败 |
info | html | 提示信息 |
data | array | 返回的数据 |
TIPS获取要打印的数据信息列表,一般用于单据类的打印