3-费用明细列表导入
简要描述
- 导入 明细列表数据导入
-
权限标签
- 新建 by llz 2022-03-30 10:24:03 星期三
-
修改 by llz 2022-04-15 16:08:50 星期五 添加 添加请求参数projectId
请求URL
{URL}/prj/cost/detail/import
请求方式
- POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
file | 是 | form-data | 上传的Excel文件 |
typeId | 是 | num | 明细列表类型(1-劳务费、2-材料费、3-设备租赁费、4-报销费用) |
projectId | 是 | num | 项目id |
返回示例
{
"code": 0,
"message": "成功",
"data": {
"successAmount":100,
"failAmount":0,
"successList":[
{
"name": "本子",
"unitPrice": 30000,
"amount": 4,
"subtotal": 120000,
"sku": "s300",
"entryDate": "2022-01-25",
"exitDate": "2022-01-29",
"days": 4,
"contractQuantityId": 71
},
{
"name": "办公费用",
"unitPrice": 1000,
"amount": 1,
"subtotal": 1000,
"typeId": 14,
"typeName": "住宿费",
"reimburseMemberName": "耿嘉璇",
"contractQuantityId": 68,
"reimburseMemberNameId": 6
}
],
"failList": [
{
"orderId": 3,
"failRes": {
"instruction": "劳务费",
"unitPrice": 4444,
"amount": 3,
"subtotal": 198,
"remark": "测试",
"contractQuantityId": 1
},
"remark": "内容信息有误,金额信息有误"
},
{
"orderId": 3,
"failRes": {
"itemName": "*非金属矿物制品*加气混凝土副块",
"invoiceDate": "2022-03-03",
"invoiceNumber": "47667110",
"sellerName": "温州百顺水泥制品有限公司",
"purchaserName": "浙江辉腾建设有限公司",
"invoiceTypeCode": "Special",
"invoiceType": "专用",
"unitPrice": "288.38",
"quantity": "100",
"taxRate": "13%",
"invoiceTax": 12798.67,
"invoiceAmountPreTax": 98451.33,
"instruction": "水斗",
"totalAmount": 111250,
"contractQuantityId": 40
},
"remark": "有误信息"
}
]
}
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | int | 返回结果 0 成功 500 异常 |
message | int | 返回信息 |
data | object | 返回结果 |
successAmount | num | 导入成功数据条数 |
failAmount | num | 导入失败数据条数 |
successList | list | 成功数据列表 |
failList | list | 失败数据列表 |
- orderId | num | 失败数据的行号 |
- failRes | object | 失败数据信息 |
- remark | string | 失败原因 |
typeId = 1时 | ||
- instruction | string | 内容 |
- unitPrice | num | 单价 |
- amount | num | 数量 |
- subtotal | num | 小计 |
- remark | string | 备注 |
- contractQuantityId | num | 材料清单id |
typeId = 2时 | ||
- itemName | string | 内容 |
- invoiceDate | date | 时间 |
- invoiceNumber | string | 发票代码 |
- sellerName | string | 开票公司 |
- purchaserName | string | 收票公司 |
- invoiceTypeCode | string | 发票类型code |
- invoiceType | string | 发票类型名称 |
- unitPrice | string | 单价 |
- quantity | string | 数量 |
- taxRate | string | 税率 |
- invoiceTax | num | 进项税额 |
- invoiceAmountPreTax | num | 不含税价 |
- totalAmount | num | 含税价格 |
- contractQuantityId | num | 清单id |
- instruction | string | 摘要 |
typeId = 3时 | ||
- name | string | 内容 |
- unitPrice | num | 单价 |
- amount | num | 数量 |
- subtotal | num | 小计 |
- sku | string | 型号规格 |
- entryDate | date | 进场时间 |
- exitDate | date | 退场时间 |
- days | num | 租赁天数 |
- contractQuantityId | num | 清单id |
typeId = 4时 | ||
- name | string | 内容 |
- unitPrice | num | 单价 |
- amount | num | 数量 |
- subtotal | num | 小计 |
- typeId | num | 报销类型id |
- typeName | string | 报销类型名称 |
- reimburseMemberName | string | 报销人名称 |
- reimburseMemberNameId | num | 报销人id |
- contractQuantityId | num | 材料清单id |