JNBusiness/ruoyi-ui/src/api/redBook/redBook.js

105 lines
2.1 KiB
JavaScript
Raw Normal View History

2024-05-09 17:17:03 +08:00
import request from '@/utils/request'
2024-05-09 17:28:24 +08:00
// 金额计算
export function toDecimal(x){
let f = parseFloat(x);
if (isNaN(f)) {
return;
}
f = Math.round(x*100)/100;
return f;
}
2024-05-09 17:17:03 +08:00
// 获取目录
export function productList(query) {
return request({
url: '/redBook/redBook/productList',
method: 'get',
params: query
})
}
// 获取备注信息
export function productRemarkList(query) {
return request({
url: '/redBook/redBook/productRemarkList',
method: 'get',
params: query
})
}
// 获取型号
export function productXinghList(query) {
return request({
url: '/redBook/redBook/productXinghList',
method: 'get',
params: query
})
}
// 判断是否为父节点,如果有说明下面还有子类显示,如果没有则直接显示衍生型号
export function judgeparent(query) {
return request({
url: '/redBook/redBook/judgeparent',
method: 'get',
params: query
})
}
// 获取子类
export function productZlList(query) {
return request({
url: '/redBook/redBook/productZlList',
method: 'get',
params: query
})
}
// 判断是否存在衍生型号
export function productYsxhListCheck(query) {
return request({
url: '/redBook/redBook/productYsxhListCheck',
method: 'get',
params: query
})
}
// 获取衍生型号
export function productYsxhList(query) {
return request({
url: '/redBook/redBook/productYsxhList',
method: 'get',
params: query
})
}
// 判断是否存在截面
export function productJmListCheck(query) {
return request({
url: '/redBook/redBook/productJmListCheck',
method: 'get',
params: query
})
}
// 获取截面
export function productJmList(query) {
return request({
url: '/redBook/redBook/productJmList',
method: 'get',
params: query
})
}
//查询数据
export function searchData(query) {
return request({
url: '/redBook/redBook/searchData',
method: 'get',
params: query
})
}
2024-05-10 15:13:35 +08:00
//点击查询按钮查询数据
export function handleSearchData(query) {
return request({
url: '/redBook/redBook/handleSearchData',
method: 'get',
params: query
})
}
2024-05-09 17:17:03 +08:00