【前端】云工厂的纸掌柜app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.5 KiB

import http from '../utils/http/index.js'
// 根据名称模糊查询企业列表
export function getCompanyList(data) {
return http.get({
url: '/base-paper-trading/get/customers/enterprise/basic/list',
data
})
}
/**
* 获取客户授信方式
* @param {*} data {customerEnterpriseId: '客户id',mallSupplierId:'供应商id'}
* @returns
*/
export function getCustomerCreditInfo(data) {
return http.get({
url: '/yyt-uec/supplier/get/customer/credit-status',
data
})
}
/**
* 创建月结授信
* @param {*} data
*/
export function makeMonthlyCreditInfo(data) {
return http.post({
url: '/yyt-uec/supplier/create/customer/credit?mallSupplierId=' + data.mallSupplierId,
data
})
}
/**
* 创建飞算授信
* @param {*} data
*/
export function makeFsCreditInfo(data) {
return http.post({
url: '/yyt-uec/supplier/create/customer/feisuan-credit?mallSupplierId=' + data.mallSupplierId,
data
})
}
/**
* 获取账期类型列表
* @param {*} data
*/
export function getCreditType(data) {
return http.get({
url: '/yyt-uec/credit/get/monthly/invoicing/period/type',
data
})
}
/**
* 获取飞算授信客户列表
* @param {*} data
*/
export function getFsCreditList(data) {
return http.get({
url: '/yyt-uec/supplier/get/customer/feisuan-credit-list',
data
})
}
/**
* 获取客户飞算授信详情
* @param {*} data
*/
export function getFsCreditDetail(data) {
return http.get({
url: '/yyt-uec/supplier/get/customer/feisuan-credit-detail',
data
})
}