领料表单excel上传
POST
/materials-receive/upload-excel请求参数
Body 参数multipart/form-data
file
file
可选
示例值:
cmMtdXBsb2FkLTE3MDk3NzMxNDU0NjctMg==/领料表excel.xlsx
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
消息提示
data
object
必需
0
array [object {10}]
sheet
示例
{
"code": 20000,
"message": "成功",
"data": {
"0": [
{
"unit": "只",
"receive_user": ":喜羊羊",
"materials_type": "10斤",
"receive_time": "2024-03-05T00:00:00",
"description": "养",
"remark": "要小白兔",
"repay_num": 0,
"dept": "软件部",
"materials_name": "兔子",
"receive_num": 2
},
{
"unit": "个",
"receive_user": ":喜羊羊",
"materials_type": "50g",
"receive_time": "2024-03-05T00:00:00",
"description": "给白雪公主",
"remark": "要香香甜甜的",
"repay_num": 0,
"dept": "软件部",
"materials_name": "苹果",
"receive_num": 1
},
{
"unit": "个",
"receive_user": ":喜羊羊",
"materials_type": "500g",
"receive_time": "2024-03-05T00:00:00",
"description": "西瓜榨汁",
"remark": "一起送给白雪公主",
"repay_num": 0,
"dept": "软件部",
"materials_name": "西瓜",
"receive_num": 2
}
]
}
}
最后修改时间: 10 个月前