import request from '@/utils/request'
// ============== 保险管理 ================
// 保险-列表
export function insuranceList (data) {
  return request.post('/api.php?c=insurance_product&a=index', data)
}

// 保险-详情
export function insurancedetail (data) {
  return request.post('/api.php?c=insurance_product&a=details', data)
}

// 保险-申请
export function insuranceAdd (data) {
  return request.post('/api.php?c=insurance_process&a=add', data)
}
// ========保险进度======================
// 保险-保险进度列表
export function insuranceProcess (data) {
  return request.post('/api.php?c=insurance_process&a=index', data)
}
// 提交 - 支付凭证
export function insurancePayment (data) {
  return request.post('/api.php?c=insurance_process&a=payment_edit', data)
}

// 保险-绑定设备
export function insuranceBinding (data) {
  return request.post('/api.php?c=insurance_process&a=binding_edit', data)
}

// 保险-绑定设备详情
export function bindingList (data) {
  return request.post('/api.php?c=insurance_process&a=details', data)
}
// ====保险合同==================================
// 保险合同 - 列表
export function insurancecontractList (data) {
  return request.post('/api.php?c=insurance_contract&a=index', data)
}

// 保险合同- 详情
export function insurancecontractInfo (data) {
  return request.post('/api.php?c=insurance_contract&a=details', data)
}

// 理赔 - 申请
export function setclaimsapply (data) {
  return request.post('/api.php?c=insurance_report&a=add', data)
}
// =====我的理赔==================================================
// 理赔 - 列表
export function Claimlist (data) {
  return request.post('/api.php?c=insurance_report&a=index', data)
}

// 理赔 - 上传资料
export function Uploaddata (data) {
  return request.post('/api.php?c=insurance_report&a=add_datas', data)
}

// 理赔 - 详情
export function ClaimlistDetails (data) {
  return request.post('/api.php?c=insurance_report&a=details', data)
}

//  ========== 手动录入保单 ==================
//  新增保单录入
export function manualEntryAdd (data) {
  return request.post('/api.php?c=insurance_contract&a=farm_add', data)
}

// 编辑保单
export function manualEntryEdit (data) {
  return request.post('/api.php?c=insurance_contract&a=farm_edit', data)
}

// 删除保单
export function manualEntryDel (data) {
  return request.post('/api.php?c=insurance_contract&a=farm_del', data)
}

// -------------------------------
// 初审编辑
export function chushenEdit (data) {
  return request.post('/api.php?c=insurance_process&a=edit200', data)
}

// 绑定设备编辑
export function bindEdit (data) {
  return request.post('/api.php?c=insurance_process&a=edit600', data)
}