import request from '@/utils/request'

// 获取账期价格初审列表
export const getPricePreliminaryReviewList = (data, query) => {
    return request({
        method: 'post',
        url: '/bussiness/baseusercredithistory/credit-period-initial-review-list',
        data,
        params: query
    })
}

// 根据 ID 获取账期价格初审详情
export const getPricePreliminaryReviewDetail = (query) => {
    return request({
        method: 'get',
        url: '/bussiness/baseusercredithistory/get-creditline-creditperiod',
        params: query
    })
}

// 获取账期审核/额度审核列表（两个列表一个接口）
export const getLastPaymentAndQuotaList = (data, query) => {
    return request({
        method: 'post',
        url: '/bussiness/baseusercredithistory/goods-credit-period-initial-review-list',
        params: query,
        data: data,
    })
}

//账期终审/额度终审的回退（两个列表一个接口）
export const putBackDataLastPaymentOrQuota = (data) => {
    return request({
        method: 'put',
        url: '/bussiness/baseusercredithistory/goods-credit-period-repeatedly-review-back',
        data,
    })
}