批量更新自定义字段
PUT
/system-field/batch
接口描述
用于批量更新自定义字段。
请求头
参数名
类型
描述
必填
Device-Type
string
设备类型,示例:web
必填
Authorization
string
Token,示例:fafaf139-37b8-4d1e-abc3-65d9901697c5
必填
请求参数
application/json参数名
类型
描述
必填
type
string
分类,示例:erp_purchase_contract,可选值:{"crm_customer":"客户","erp_purchase_contract":"采购合同","erp_purchase_order":"采购单","erp_before_payment":"预付款","erp_tax_payment":"付税款","erp_after_payment":"付尾款","erp_godown_entry":"入库单","erp_purchase_return_order":"采购退货单","erp_sale_order":"销售订单","erp_sale_return_order":"销售退货单","erp_outbound_order":"出库单","erp_returned_money":"回款单","erp_payment":"付款单","erp_invoice":"发票"}
必填
id
int
自定义字段ID,示例:0,说明:为真时更新否则新增
可选
field
string(50)
字段名,示例:contract_no
必填
name
string(25)
标识名,示例:合同号
必填
form_type
string(25)
字段类型,示例:text
必填
default_value
string(255)
默认值,示例:<空字符串>
可选
min_length
int
字符串类字段的最小长度,示例:0,默认:0
可选
max_length
int
字符串类字段的最大长度,示例:0,默认:0
可选
is_unique
int
是否唯一,示例:1,可选值:{"0":"否","1":"是"},默认:0
可选
is_require
int
是否必填,示例:1,可选值:{"0":"否","1":"是"},默认:0
可选
input_tips
string(100)
输入提示,示例:,默认:<空字符串>
可选
placeholder
string(100)
占位符,示例:,默认:<空字符串>
可选
options
string
选项内容,示例:,默认:<空字符串>,说明:字段类型为选项时必填*
可选
sort
int
排序,示例:0
可选
style_percent
int
字段宽度百分比,示例:50,默认:100
可选
form_position
string
坐标,示例:,格式:X坐标,Y坐标
可选
precisions
int
小数精度,示例:0,默认:0
可选
min_num_restrict
int
数字类字段的最小数,示例:0,默认:0
可选
max_num_restrict
int
数字类字段的最大数,示例:0,默认:0
可选
status
int
状态,示例:1,可选值:{"0":"隐藏","1":"显示"},默认:1
可选
响应参数
application/json参数名
类型
描述
必填
field
string
字段名,示例:contract_no
必填
name
string
标识名,示例:合同号
必填
form_type
string
字段类型,示例:text
必填
default_value
string
默认值,示例:
必填
min_length
int
字符串类字段的最小长度,示例:0
必填
max_length
int
字符串类字段的最大长度,示例:0
必填
is_unique
int
是否唯一,示例:1,值:{"0":"否","1":"是"}
必填
is_require
int
是否必填,示例:1,值:{"0":"否","1":"是"}
必填
input_tips
string
输入提示,示例:
必填
placeholder
string
占位符,示例:
必填
options
string
选项内容,示例:
必填
sort
int
排序,示例:0
必填
style_percent
int
字段宽度百分比,示例:50
必填
form_position
string
坐标,示例:
必填
precisions
int
小数精度,示例:0,默认:0
必填
min_num_restrict
int
数字类字段的最小数,示例:0
必填
max_num_restrict
int
数字类字段的最大数,示例:0
必填
status
int
状态,示例:1,值:{"0":"隐藏","1":"显示"}
必填
type
string
分类,示例:erp_purchase_contract,可选值:{"crm_customer":"客户","erp_purchase_contract":"采购合同","erp_purchase_order":"采购单","erp_before_payment":"预付款","erp_tax_payment":"付税款","erp_after_payment":"付尾款","erp_godown_entry":"入库单","erp_purchase_return_order":"采购退货单","erp_sale_order":"销售订单","erp_sale_return_order":"销售退货单","erp_outbound_order":"出库单","erp_returned_money":"回款单","erp_payment":"付款单","erp_invoice":"发票"}
必填
create_time
string
创建时间,示例:2021-09-24 14:39:24
必填
update_time
string
更新时间,示例:2021-09-24 14:39:24
必填
id
string
自定义字段ID,示例:1
必填