equity.js 2.84 KB
import http from '../request/http'

module.exports = {
  /**新建车损报价单 */
  quotationAdd(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
      projectName: 'boutique',
      ...data
    })
  },
  /** 报价单支付订单生成(带上签名)返回订单号(商户地址)  */
  quotationUpgrade(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
      projectName: 'boutique',
      ...data
    })
  },
  // 校验订单是否需要上传合同协议
  checkZyPayFlag(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
      projectName: 'boutique',
      ...data
    })
  },

  // 查询店铺配置
  getShopMerchantPointConfig(data) {
    return http.post({
      method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
      projectName: 'boutique',
      ...data
    })
  },

  /** 查询报价单信息 */
  getQuotationInfoById(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
      projectName: 'boutique',
      ...data
    })
  },
  /**
   * 订单详情
   */
  getOrderDetail(data) {
    return http.post({
      method: 'dj.api.smartcarlife.order.detail',
      projectName: 'boutique',
      ...data
    })
  },
  /**pos支付 */
  getPosQr(data) {
    return http.post({
      method: 'dj.api.smartcarlife.payOrder.create',
      projectName: 'boutique',
      ...data
    })
  },

  /** 报价单分页列表 */
  quotationPage(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
      projectName: 'boutique',
      ...data
    })
  },
  /** 根据id查询报价单数据 */
  getQuotationInfo(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
      projectName: 'boutique',
      ...data
    })
  },
  /** 修改车损报价单客户基本信息信息 */
  updateCustomerInfo(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
      projectName: 'boutique',
      ...data
    })
  },

  /** 报价单订单分状态统计信息 */
  orderStatistics(data) {
    return http.post({
      method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
      projectName: 'boutique',
      ...data
    })
  },
  // 查询订单是否支持状态变更
  getOrderRefundStep(data) {
    return http.post({
      method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
      projectName: 'boutique',
      ...data
    })
  },
  /**报价单-撤销工单 */
  cancelOrderById(data) {
    return http.post({
      method: 'dj.api.smartcarlife.quotation.cancel',
      projectName: 'boutique',
      ...data
    })
  }
}