获取预算详情
GET
http://test.52miaosuan.com:8090/miaosuan/budget/mine/detail
接口描述
获取预算详情,每个空间返回了该空间的合价,每个空间的条目返回了主项合价、辅项合价、人工合价,以及条目的总合价,UI上需要的主辅合价需要前端将主项合价和辅项合价相加自行计算
请求头
参数名
类型
描述
必填
user_id
int
用户编号
必填
请求参数
参数名
类型
描述
必填
budget_id
int
预算编号
必填
响应参数
参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:成功
必填
id
object
预算编号
必填
status
int
预算状态枚举,0 - 待提交,1 - 待审核,2 - 待成单,3- 已成单,4 - 丢单,5 - 审核驳回
必填
company_id
int
公司编号
必填
user_id
int
预算创建人编号
必填
template_id
object
预算使用的模板编号
必填
project_name
string
项目名称
必填
owner_name
string
业主名称
必填
owner_phone
string
业主电话号码
必填
address_detail
string
详细地址
必填
budget_type
int
预算类型枚举,0 - 半包,1 - 全包,2 - 套餐,99 - 其他
必填
sale_price
int
预算总报价
必填
manage_rate
int
管理费率
必填
tax_rate
int
税率
必填
id
int
预算空间编号
必填
name
string
空间名称
必填
order
int
空间的顺序
必填
id
object
条目编号
必填
order
int
条目顺序
必填
name
string
条目名称
必填
description
string
条目描述信息
必填
unit
string
条目单位
必填
area_id
int
条目所属空间编号
必填
item_type
int
条目类型枚举,0 - 系统工程库,1 - 系统主材库,2 - 自定义工程,3 - 自定义主材
必填
budget_num
int
条目的预算量
必填
image_url
string
条目对应的图片
必填
loss_rate
int
损耗率,只有主材有损耗率
必填
main_cost_price
int
主项成本价
必填
assist_cost_price
int
辅项成本价
必填
worker_cost_price
int
人工成本价
必填
worker_sale_price
int
成功报价
必填
main_sale_price
int
主项报价
必填
assist_sale_price
int
辅项报价
必填
create_time
object
创建时间
必填
update_time
object
更新时间
必填
fixed_item
int
定项标志,0 - 不定项,1 - 定项
必填
fixed_price
int
定价标志,0 - 不定价,1 - 定价
必填
main_total
float
主项合价
必填
assist_total
float
辅项合价
必填
worker_total
float
人工合价
必填
item_total
float
条目合价
必填
main_assist_total
float
主辅合价
必填
total_sale
float
空间总售价
必填