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

190 lines
3.3 KiB
JavaScript

import request from '@/utils/request'
import { getToken } from "@/utils/auth";
// 打印状态修改
export function changQuotPrintStatus(quotId, quotPrint) {
const data = {
quotId,
quotPrint
}
return request({
url: '/quot/quot/changQuotPrintStatus',
method: 'put',
data: data
})
}
// 查询报价列表
export function listQuot(query) {
return request({
url: '/quot/quot/list',
method: 'get',
params: query
})
}
// 查询报价详细
export function getQuot(quotId) {
return request({
url: '/quot/quot/' + quotId,
method: 'get'
})
}
// 查询报价详细-错判修订
export function getReturnUpdateQuot(quotId) {
return request({
url: '/quot/quot/returnUpdate/' + quotId,
method: 'get'
})
}
// 查询报价详细-整单通过
export function getAllPass(quotId) {
return request({
url: '/quot/quot/allPass/' + quotId,
method: 'get'
})
}
// 查询报价详细-整单驳回
export function getAllReject(query) {
return request({
url: '/quot/quot/allReject',
method: 'post',
data: query
})
}
// 新增报价
export function addQuot(data) {
return request({
url: '/quot/quot',
method: 'post',
data: data
})
}
// 修改报价
export function updateQuot(data) {
return request({
url: '/quot/quot',
method: 'put',
data: data
})
}
// 删除报价
export function delQuot(quotId) {
return request({
url: '/quot/quot/' + quotId,
method: 'delete'
})
}
// 查询附件列表
export function quotFileList(query) {
return request({
url: '/quot/quot/quotFileList',
method: 'get',
params: query
})
}
//删除附件
export function quotFileDelete(fileId) {
return request({
url: '/quot/quot/quotFileDelete',
method: 'post',
params: {fileId:fileId}
})
}
//提交报价信息
export function commitQuot(data) {
return request({
url: '/quot/quot/commitQuot',
method: 'post',
data: data
})
}
//提交技术协助
export function commitJsQuot(data) {
return request({
url: '/quot/quot/commitJsQuot',
method: 'post',
data: data
})
}
//提交核价协助
export function commitHjQuot(data) {
return request({
url: '/quot/quot/commitHjQuot',
method: 'post',
data: data
})
}
//提交金思维协助
export function commitJswQuot(data) {
return request({
url: '/quot/quot/commitJswQuot',
method: 'post',
data: data
})
}
//提交OA
export function commitOAQuot(data) {
return request({
url: '/quot/quot/commitOAQuot',
method: 'post',
data: data
})
}
//提交反馈按钮
export function feedbackQuot(data) {
return request({
url: '/quot/quot/feedbackQuot',
method: 'post',
data: data
})
}
//生成报价单
export function madeQuot(data) {
return request({
url: '/quot/quot/madeQuot',
method: 'post',
responseType: "blob", // 表明返回服务器返回的数据类型
headers: {
'X-Authorization': getToken()
},
data: data
})
}
//驳回按钮
export function rejectQuot(data) {
return request({
url: '/quot/quot/rejectQuot',
method: 'post',
data: data
})
}
//统计有效报价单模块-获取报价单数据
export function listStatisticsQuotQuot(query) {
return request({
url: '/quot/quot/listStatisticsQuotQuot',
method: 'get',
params: query
})
}