文档
测试

选择采购合同产品列表

GET
/erp-purchase-contract-product/select

接口描述

用于获取选择采购合同产品列表。

请求头

参数名
类型
描述
必填
Device-Type
string
设备类型,示例:web
必填
Authorization
string
Token,示例:fafaf139-37b8-4d1e-abc3-65d9901697c5
必填

请求参数

参数名
类型
描述
必填
page
int
分页页码,示例:1,默认:1
可选
limit
int
分页数量,示例:10,默认:10
可选
contract_id
int
采购合同ID,示例:1
必填
could_purchase
int
能够采购,示例:1,可选值:{"1":"是"},说明:仅返回未采购完成的产品
可选

响应参数

application/json
参数名
类型
描述
必填
paging
object
分页对象
必填
total
int
数据总数,示例:1
必填
per_page
int
每页数量,示例:10
必填
current_page
int
当前一页页码,示例:1
必填
last_page
int
最后一页页码,示例:1
必填
data
array
数据列表
必填
id
int
采购合同产品ID,示例:1
必填
contract_id
int
采购合同ID,示例:1
必填
product_id
int
产品ID,示例:3
必填
product_spec_id
int
产品规格ID,示例:1
必填
name
string
产品名称,示例:厄瓜多尔去头虾
必填
quantity
int
数量,示例:50
必填
weight
string
重量,示例:540.00
必填
price
string
价格,示例:9.20
必填
amount
string
总值,示例:4968.00
必填
product
object
产品对象
必填
image
string
示例:
必填
name
string
示例:厄瓜多尔去头虾
必填
product_no
string
示例:163574626361840-1
必填
unit
string
示例:
必填
spec
array
数据列表
必填
name
string
示例:13/15
必填
operation_mode
string
示例:
必填
operation_num
int
示例:0
必填
category_spec_name
string
示例:规格
必填
operation_mode
string
示例:mul
必填
operation_num
float
示例:10.8
必填
spec_text
string
示例:规格:13/15;包装方式:6X1.8KG
必填
purchase_quantity
int
已采购数量,示例:50
必填
purchase_weight
string
已采购重量,示例:540.00
必填
to_purchase_quantity
int
待采购数量,示例:0
必填
to_purchase_weight
string
待采购重量,示例:0.00
必填