1. 移动端
闽东实验室
  • 移动端
    • 移动端注册
      POST
    • 移动登录
      POST
    • 业务员手机号
      GET
    • 实验室字典
      GET
    • 闽东实验室人员
      GET
    • 根据手机号或姓名查询用户
      GET
    • 委托列表
      GET
    • 报告列表
      GET
    • 新增委托
      POST
    • 查询委托详情
      GET
    • 编辑委托详情
      POST
    • 获取检测项目
      GET
    • 委托单签名
      POST
    • 查看样品编号
      GET
    • 系统通知
      GET
    • 更新用户系统消息阅读状态
      PUT
    • 发送系统公告
      POST
    • 获取项目分类
      GET
    • 检验项目类别-批量获取子数据
      GET
    • 获取产品名称
      GET
    • 查询公司列表
      GET
    • 获取小程序太阳码scene值
      GET
    • 设置小程序太阳码scene值
      POST
    • 根据用户账号查询用户信息
      GET
    • 更新评审员
      POST
    • 根据部门编码获取部门信息
      GET
  1. 移动端

新增委托

开发中
POST
entrust/slEntrust/add

请求参数

Authorization
在 header 添加参数
X-Access-Token
示例:
X-Access-Token: ********************
Body 参数application/json

示例
{
  "discountMode": "0",
  "totalProductPrice": "1.00",
  "singleDiscountPrice": "1.00",
  "totalPrice": "0",
  "amountPaid": "1000",
  "category": "2",
  "projectClass": "1646810958690275330",
  "sampleWitness": "陈先生",
  "sampleWitnessId": "见证人证书编号",
  "sampleWitnessTel": "18250154602",
  "paymentMethod": "1",
   "entrustStatus":1,
   "entrustOrderMethod":1,
  "slEntrustInfoList": [
    {
      "entrustUnit": "福建小东海委托有限公司",
      "entrustPerson": "陈生",
      "address": "大东海",
      "tel": "18250154602",
      "projectName": "古田县第七中学教学楼建设工程",
      "projectItem": "工程部位",
      "supervisionUnit": "福建小东海监理有限公司",
      "constructionUnit": "福建小东海建设有限公司",
      "witnessSupervision": "贝乐虎",
      "witnessConstruction": "贝乐虎"
    }
  ],
  "slSampleList": [
    {
      "pileNumber": "1号",
      "component": "哈哈哈",
      "designValue": "3",
      "remake": "样品状态说明",
      "specialRequirement": "样品加工",
      "disposal": "1",
      "status": "2",
      "sampleHandling": "0",
      "sampleStatus": "0",
      "sampleDate": "2023-04-19"
    }
  ],
  "slEntrustRequirementList": [
    {
      "testProduct": "1647829515045728258",
      "detectionProperty": "2",
      "testBasis": "1",
      "decisionBasis": "1",
      "testItemOther": "其他检测需求",
      "testItems": "[{\"detectionItem\":\"\",\"basis\":\"\",\"basisCode\":\"GB/T 50124-2019\",\"limitRange\":\"111\",\"unitPrice\":\"1\",\"num\":\"1\",\"itemDiscount\":\"1\",\"remake\":\"备注\",\"id\":\"row_12\"}]"
    }
  ],
  "slEntrustOtherList": [
    {
      "reportsNum": 3,
      "reportDelivery": "1",
      "reportDate": "2023-04-29",
      "entrustMode": "1",
      "remake": "其他约定或说明"
    }
  ],
  "slEntrustSignList": [
    {
      "signingMode": "2"
    }
  ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'entrust/slEntrust/add' \
--header 'X-Access-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "discountMode": "0",
  "totalProductPrice": "1.00",
  "singleDiscountPrice": "1.00",
  "totalPrice": "0",
  "amountPaid": "1000",
  "category": "2",
  "projectClass": "1646810958690275330",
  "sampleWitness": "陈先生",
  "sampleWitnessId": "见证人证书编号",
  "sampleWitnessTel": "18250154602",
  "paymentMethod": "1",
   "entrustStatus":1,
   "entrustOrderMethod":1,
  "slEntrustInfoList": [
    {
      "entrustUnit": "福建小东海委托有限公司",
      "entrustPerson": "陈生",
      "address": "大东海",
      "tel": "18250154602",
      "projectName": "古田县第七中学教学楼建设工程",
      "projectItem": "工程部位",
      "supervisionUnit": "福建小东海监理有限公司",
      "constructionUnit": "福建小东海建设有限公司",
      "witnessSupervision": "贝乐虎",
      "witnessConstruction": "贝乐虎"
    }
  ],
  "slSampleList": [
    {
      "pileNumber": "1号",
      "component": "哈哈哈",
      "designValue": "3",
      "remake": "样品状态说明",
      "specialRequirement": "样品加工",
      "disposal": "1",
      "status": "2",
      "sampleHandling": "0",
      "sampleStatus": "0",
      "sampleDate": "2023-04-19"
    }
  ],
  "slEntrustRequirementList": [
    {
      "testProduct": "1647829515045728258",
      "detectionProperty": "2",
      "testBasis": "1",
      "decisionBasis": "1",
      "testItemOther": "其他检测需求",
      "testItems": "[{\"detectionItem\":\"\",\"basis\":\"\",\"basisCode\":\"GB/T 50124-2019\",\"limitRange\":\"111\",\"unitPrice\":\"1\",\"num\":\"1\",\"itemDiscount\":\"1\",\"remake\":\"备注\",\"id\":\"row_12\"}]"
    }
  ],
  "slEntrustOtherList": [
    {
      "reportsNum": 3,
      "reportDelivery": "1",
      "reportDate": "2023-04-29",
      "entrustMode": "1",
      "remake": "其他约定或说明"
    }
  ],
  "slEntrustSignList": [
    {
      "signingMode": "2"
    }
  ]
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{}
修改于 2023-05-10 09:27:31
上一页
报告列表
下一页
查询委托详情
Built with