import request from 'mn-template/plugins/http';
//  获取检测详情 接口
export const getButtonStatus = (id) => {
  return request({
    method: 'get',
    url: `/tis/insurance/makeAppointmentStatus?yunOrderNo=${id}`,
    withCredentials: true,
  });
};
// 根据订单号获取跳转页状态/
// /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1
export const getJumpPageStatus = ({externalOrderNo, yunOrderNo, projectEquityNo}) => {
  return request({
    method: 'get',
    url: `/tis/insurance/jumpPageStatus?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}&yunOrderNo=${yunOrderNo}`,
    withCredentials: true,
  });
};
// https://dev-sc.yunqueyi.com/tis/insurance/create/order

export const createOrder = (data) => {
  return request({
    method: 'post',
    data,
    url: '/tis/insurance/create/order',
    withCredentials: true,
  });
};

// tis/insurance/makeAppointmentStatus?yunOrderNo=PCX2023021608340000000709043
export const getAppointmentStatus = (yunOrderNo) => {
  return request({
    method: 'get',
    url: `/tis/insurance/makeAppointmentStatus?yunOrderNo=${yunOrderNo}`,
    withCredentials: true,
  });
};
