api.js 3.72 KB
// const api = wx.$request
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
  /** 工单列表 */
  getWorkList(data) {
    let params = data || {}
    params.sceneType = 1
    return api.post('dj.api.smartcarlife.order.search', {
      pageSize: 10,
      ...params
    })
  },

  /** 提交施工订单 */
  confirmConstruction(data) {
    return api.post('dj.api.smartcarlife.order.confirmConstruction', data)
  },

  /**撤销工单  */
  revokeOrder(data) {
    return api.post('dj.api.smartcarlife.order.revoke', data)
  },
  /** 根据订单号获取订单详情 */
  getOrderDetail(data) {
    return api.post('dj.api.smartcarlife.order.detail', data)
  },
  /**二维码  */
  createWeappQrcode(data) {
    // dj.api.smartcarlife.serviceMerchant.getByMerchantId
    return api.post('dj.api.smartcarlife.common.createWeappQrcode', data)
  },
  /**商品列表  */
  getOrderBaseGoodsList(data) {
    return api.post('dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId', data)
  },
  /** 选择支付方式下单 */
  createWithPay(data) {
    return api.post('dj.api.smartcarlife.order.createWithPay', data)
  },
  /**根据手机号查询客户信息 */
  checkCustomerPhone(data) {
    return api.post('dj.api.smartcarlife.customer.queryByPhone', data)
  },
  /**改变支付订单状态  */
  createPayOrder(data) {
    return api.post('dj.api.smartcarlife.payOrder.create', data)
  },
  /**  */
  installOnly(data) {
    return api.post('dj.api.smartcarlife.order.installOnly', data)
  },
  /**获取精品礼券  */
  getCouponDeatil(data) {
    return api.post('dj.api.smartCarLife.customer.coupon.detail', data)
  },
  /** 根据订单号获取种草信息*/
  getGrassDetail(data) {
    return api.post('dj.api.smartcarlife.orderShareRecord.detail', data)
  },

  // 获取园区店配置
  getYqStoreConfig(data) {
    return api.get('dj.api.smarcarlife.yqMerchantConfig.detail', data)
  },

  /** 修改工单时间 */
  updateOrderTime(data) {
    return api.post('dj.api.smartcarlife.order.updateOrderTime', data)
  },

  /** 修改客户信息 */
  updateOrderInfo(data) {
    return api.post('dj.api.smartcarlife.order.updateOrderInfo', data)
  },

  /** 根据订单状态统计订单数*/
  statByStatus(data) {
    data = data || {}
    data.sceneType = 1
    return api.post('dj.api.smartcarlife.order.statByStatus', data)
  },

  /** 获取企微活码 */
  getWorkWechatLiveQRCode(data) {
    return api.post('dj.api.smartcarlife.order.getWorkWechatLiveQRCode', data)
  },

  /** 订单补录 */
  supplementOrder(data) {
    return api.post('dj.api.smartcarlife.order.supplementOrder', data)
  },

  /** 订单修正 */
  correctionOrder(data) {
    return api.post('dj.api.smartcarlife.order.correctionOrder', data)
  },

  /** 战败订单批量补录 */
  notUpgradeOrder(data) {
    return api.post('dj.api.smartcarlife.order.notUpgrade.batchInsert', data)
  },
  /** 批量新建预录工单 */
  createPrerecordedOrderBatch(data) {
    return api.post('dj.api.smartcarlife.order.preliminaryOrder.batch', data)
  },
  /** 新建预录工单 */
  createPrerecordedOrder(data) {
    return api.post('dj.api.smartcarlife.order.preliminaryOrder', data)
  },
  /** 升级商品生成条形码 */
  createBarCode(data) {
    return api.post('dj.api.smartcarlife.common.createBarCode', data)
  },
  /** 获取商户基本信息 */
  getServiceBaseInfo(data) {
    return api.post('dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', data)
  },
  /** 根据id查询待补录订单 */
  waitinputorderSelectById(data) {
    return api.post('dj.api.smartcarlife.weapp.waitinputorder.selectById', data)
  },
}