Merge projectA into B with conflict resolution
@ -1,12 +1,12 @@
|
||||
# 页面标题
|
||||
VITE_APP_TITLE = 新能源项目管理平台
|
||||
VITE_APP_TITLE = 煤科建管平台
|
||||
|
||||
# 开发环境配置
|
||||
VITE_APP_ENV = 'development'
|
||||
|
||||
# 开发环境
|
||||
# VITE_APP_BASE_API = 'http://192.168.110.119:8899'
|
||||
VITE_APP_BASE_API = 'http://58.17.134.85:8899'
|
||||
VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||
# VITE_APP_BASE_API = 'http://58.17.134.85:8899'
|
||||
# GO开发环境
|
||||
VITE_APP_BASE_API_GO = 'http://58.17.134.85:8919'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# 页面标题
|
||||
VITE_APP_TITLE = 新能源项目管理平台
|
||||
VITE_APP_TITLE = 煤科建管平台
|
||||
|
||||
# 生产环境配置
|
||||
VITE_APP_ENV = 'production'
|
||||
@ -14,14 +14,14 @@ VITE_APP_MONITOR_ADMIN = '/admin/applications'
|
||||
VITE_APP_SNAILJOB_ADMIN = '/snail-job'
|
||||
|
||||
# 生产环境
|
||||
VITE_APP_BASE_API = 'http://58.17.134.85:8899'
|
||||
# GO生产环境
|
||||
VITE_APP_BASE_API_GO = 'http://58.17.134.85:7363'
|
||||
VITE_APP_BASE_API = 'http://xny.yj-3d.com:8899'
|
||||
|
||||
# 是否在打包时开启压缩,支持 gzip 和 brotli
|
||||
VITE_BUILD_COMPRESS = gzip
|
||||
|
||||
VITE_APP_PORT = 80
|
||||
VITE_APP_PORT = 8081
|
||||
|
||||
# 接口加密功能开关(如需关闭 后端也必须对应关闭)
|
||||
VITE_APP_ENCRYPT = true
|
||||
|
@ -6,7 +6,7 @@
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>新能源项目管理平台</title>
|
||||
<title>煤科建管平台</title>
|
||||
<!--[if lt IE 11
|
||||
]><script>
|
||||
window.location.href = '/html/ie.html';
|
||||
|
@ -31,9 +31,11 @@
|
||||
"await-to-js": "3.0.0",
|
||||
"axios": "1.7.8",
|
||||
"crypto-js": "4.2.0",
|
||||
"date-fns": "^4.1.0",
|
||||
"diagram-js": "12.3.0",
|
||||
"didi": "9.0.2",
|
||||
"echarts": "5.5.0",
|
||||
"echarts-gl": "^2.0.9",
|
||||
"element-plus": "2.8.8",
|
||||
"esbuild": "^0.25.0",
|
||||
"ezuikit-js": "^8.1.10",
|
||||
|
BIN
public/assets/demo/Sunny.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
public/assets/demo/avatar.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
public/assets/demo/back.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
public/assets/demo/back2.png
Normal file
After Width: | Height: | Size: 419 KiB |
BIN
public/assets/demo/back3.png
Normal file
After Width: | Height: | Size: 344 KiB |
BIN
public/assets/demo/back4.png
Normal file
After Width: | Height: | Size: 428 KiB |
BIN
public/assets/demo/fengshu.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
public/assets/demo/qiangdu.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
public/assets/demo/rain.png
Normal file
After Width: | Height: | Size: 1014 B |
BIN
public/assets/demo/rain1.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
public/assets/demo/rain_show.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
public/assets/demo/riluo.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
public/assets/demo/sb1.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
public/assets/demo/sb2.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
public/assets/demo/sb3.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
public/assets/demo/sb4.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
public/assets/demo/sbi1.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
public/assets/demo/sbi2.png
Normal file
After Width: | Height: | Size: 107 KiB |
BIN
public/assets/demo/shidu.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
public/assets/demo/sunny_s.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
public/assets/demo/wcl.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/assets/demo/ycl.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
public/assets/demo/yin.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
public/assets/demo/zgjxx.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/assets/demo/zzcl.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/billOfQuantities.xlsx
Normal file
BIN
public/catalog.xlsx
Normal file
BIN
public/daolu.xlsx
Normal file
BIN
public/dikuai.xlsx
Normal file
BIN
public/enterRoad.xlsx
Normal file
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 34 KiB |
BIN
public/landBlock.xlsx
Normal file
BIN
public/materialsEquipment.xlsx
Normal file
21
src/App.vue
@ -8,33 +8,20 @@
|
||||
import useSettingsStore from '@/store/modules/settings';
|
||||
import { handleThemeStyle } from '@/utils/theme';
|
||||
import useAppStore from '@/store/modules/app';
|
||||
import { getProjectTeam } from './utils/projectTeam';
|
||||
const appStore = useAppStore();
|
||||
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
// 初始化主题样式
|
||||
handleThemeStyle(useSettingsStore().theme);
|
||||
getProjectTeam();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
* {
|
||||
-webkit-touch-callout: none; /*系统默认菜单被禁用*/
|
||||
-webkit-user-select: none; /*webkit浏览器*/
|
||||
-khtml-user-select: none; /*早期浏览器*/
|
||||
-moz-user-select: none; /*火狐*/
|
||||
-ms-user-select: none; /*IE10*/
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
input {
|
||||
-webkit-user-select: auto; /*webkit浏览器*/
|
||||
user-select: auto;
|
||||
}
|
||||
textarea {
|
||||
user-select: auto;
|
||||
-webkit-user-select: auto; /*webkit浏览器*/
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-moz-user-select: none; /* Firefox */
|
||||
-ms-user-select: none; /* IE10+/Edge */
|
||||
user-select: none; /* Standard syntax */
|
||||
}
|
||||
</style>
|
||||
|
31
src/api/bidding/appointment/index.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 查询招标人员列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const biddingGetUser = (query) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/getUser',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 新增招投标人员
|
||||
export const AddbiddingUser = (data) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 查询招投标人员
|
||||
export const biddingUserList = (projectId) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/list',
|
||||
method: 'get',
|
||||
params: { projectId }
|
||||
});
|
||||
};
|
70
src/api/bidding/biddingLimit/index.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 导入成本-投标excel
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const BiddingImportExcelFile = (params?, data?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/importExcelFile',
|
||||
method: 'post',
|
||||
params,
|
||||
data
|
||||
});
|
||||
};
|
||||
// 导出成本-投标excel
|
||||
export const biddingLimitListExport = (data?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/export',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 获取成本-投标详细信息
|
||||
export const biddingLimitList = (id?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 查询成本-投标列表
|
||||
export const getTreeLimit = (params?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/getTree',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 修改成本-投标
|
||||
export const biddingLimitListUpdate = (data?) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const sheetList = (query) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/sheetList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const obtainAllVersionNumbers = (query) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/obtainAllVersionNumbers',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const getVersionDetail = (id) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/getVersionDetail/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
63
src/api/bidding/biddingLimitList/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { BiddingLimitListVO, BiddingLimitListForm, BiddingLimitListQuery } from '@/api/bidding/biddingLimitList/types';
|
||||
|
||||
/**
|
||||
* 查询成本-投标列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listBiddingLimitList = (query?: BiddingLimitListQuery): AxiosPromise<BiddingLimitListVO[]> => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询成本-投标详细
|
||||
* @param id
|
||||
*/
|
||||
export const getBiddingLimitList = (id: string | number): AxiosPromise<BiddingLimitListVO> => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增成本-投标
|
||||
* @param data
|
||||
*/
|
||||
export const addBiddingLimitList = (data: BiddingLimitListForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改成本-投标
|
||||
* @param data
|
||||
*/
|
||||
export const updateBiddingLimitList = (data: BiddingLimitListForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除成本-投标
|
||||
* @param id
|
||||
*/
|
||||
export const delBiddingLimitList = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/biddingLimitList/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
201
src/api/bidding/biddingLimitList/types.ts
Normal file
@ -0,0 +1,201 @@
|
||||
export interface BiddingLimitListVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目Id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
versions: string;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
sheet: string;
|
||||
|
||||
/**
|
||||
* 子ID
|
||||
*/
|
||||
sid: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pid: string | number;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
num: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
quantity: number;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
unitPrice: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingLimitListForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目Id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
versions?: string;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
sheet?: string;
|
||||
|
||||
/**
|
||||
* 子ID
|
||||
*/
|
||||
sid?: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
num?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
quantity?: number;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingLimitListQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目Id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
versions?: string;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
sheet?: string;
|
||||
|
||||
/**
|
||||
* 子ID
|
||||
*/
|
||||
sid?: string | number;
|
||||
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
num?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
quantity?: number;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/bidding/biddingUser/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { BiddingUserVO, BiddingUserForm, BiddingUserQuery } from '@/api/bidding/biddingUser/types';
|
||||
|
||||
/**
|
||||
* 查询招投标人员列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listBiddingUser = (query?: BiddingUserQuery): AxiosPromise<BiddingUserVO[]> => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询招投标人员详细
|
||||
* @param id
|
||||
*/
|
||||
export const getBiddingUser = (id: string | number): AxiosPromise<BiddingUserVO> => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增招投标人员
|
||||
* @param data
|
||||
*/
|
||||
export const addBiddingUser = (data: BiddingUserForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改招投标人员
|
||||
* @param data
|
||||
*/
|
||||
export const updateBiddingUser = (data: BiddingUserForm) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除招投标人员
|
||||
* @param id
|
||||
*/
|
||||
export const delBiddingUser = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/biddingUser/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
71
src/api/bidding/biddingUser/types.ts
Normal file
@ -0,0 +1,71 @@
|
||||
export interface BiddingUserVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员id
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员姓名
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingUserForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface BiddingUserQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 招投标人员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/bidding/listOfWinningBids/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ListOfWinningBidsVO, ListOfWinningBidsForm, ListOfWinningBidsQuery } from '@/api/bidding/listOfWinningBids/types';
|
||||
|
||||
/**
|
||||
* 查询中标项目一览列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listListOfWinningBids = (query) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询中标项目一览详细
|
||||
* @param id
|
||||
*/
|
||||
export const getListOfWinningBids = (id: string | number): AxiosPromise<ListOfWinningBidsVO> => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增中标项目一览
|
||||
* @param data
|
||||
*/
|
||||
export const addListOfWinningBids = (data: ListOfWinningBidsForm) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改中标项目一览
|
||||
* @param data
|
||||
*/
|
||||
export const updateListOfWinningBids = (data: ListOfWinningBidsForm) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除中标项目一览
|
||||
* @param id
|
||||
*/
|
||||
export const delListOfWinningBids = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
296
src/api/bidding/listOfWinningBids/types.ts
Normal file
@ -0,0 +1,296 @@
|
||||
export interface ListOfWinningBidsVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 项目状态
|
||||
*/
|
||||
projectStatus: string;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
projectName: string;
|
||||
|
||||
/**
|
||||
* 中标价(原币)
|
||||
*/
|
||||
winningBidOriginal: string | number;
|
||||
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
exchangeRate: number;
|
||||
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
currency: string;
|
||||
|
||||
/**
|
||||
* 所属主体
|
||||
*/
|
||||
subject: string;
|
||||
|
||||
/**
|
||||
* 中标价
|
||||
*/
|
||||
winningBid: string | number;
|
||||
|
||||
/**
|
||||
* 中标日期
|
||||
*/
|
||||
bidWinningDate: string | number;
|
||||
|
||||
/**
|
||||
* 投标保证金
|
||||
*/
|
||||
bidDeposit: string | number;
|
||||
|
||||
/**
|
||||
* 是否退还
|
||||
*/
|
||||
whetherSendBack: string;
|
||||
|
||||
/**
|
||||
* 建设单位(客户)
|
||||
*/
|
||||
construction: string;
|
||||
|
||||
/**
|
||||
* 总造价
|
||||
*/
|
||||
totalCost: number;
|
||||
|
||||
/**
|
||||
* 立项申请人
|
||||
*/
|
||||
projectApplicant: string;
|
||||
|
||||
/**
|
||||
* 立项部门
|
||||
*/
|
||||
projectApplicantDept: string;
|
||||
|
||||
/**
|
||||
* 立项申请日期
|
||||
*/
|
||||
projectApplicantTime: string;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
processStatus: string;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
projectNumbering: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfWinningBidsForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目状态
|
||||
*/
|
||||
projectStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
projectName?: string;
|
||||
|
||||
/**
|
||||
* 中标价(原币)
|
||||
*/
|
||||
winningBidOriginal?: string | number;
|
||||
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
exchangeRate?: number;
|
||||
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
currency?: string;
|
||||
|
||||
/**
|
||||
* 所属主体
|
||||
*/
|
||||
subject?: string;
|
||||
|
||||
/**
|
||||
* 中标价
|
||||
*/
|
||||
winningBid?: string | number;
|
||||
|
||||
/**
|
||||
* 中标日期
|
||||
*/
|
||||
bidWinningDate?: string | number;
|
||||
|
||||
/**
|
||||
* 投标保证金
|
||||
*/
|
||||
bidDeposit?: string | number;
|
||||
|
||||
/**
|
||||
* 是否退还
|
||||
*/
|
||||
whetherSendBack?: string;
|
||||
|
||||
/**
|
||||
* 建设单位(客户)
|
||||
*/
|
||||
construction?: string;
|
||||
|
||||
/**
|
||||
* 总造价
|
||||
*/
|
||||
totalCost?: number;
|
||||
|
||||
/**
|
||||
* 立项申请人
|
||||
*/
|
||||
projectApplicant?: string;
|
||||
|
||||
/**
|
||||
* 立项部门
|
||||
*/
|
||||
projectApplicantDept?: string;
|
||||
|
||||
/**
|
||||
* 立项申请日期
|
||||
*/
|
||||
projectApplicantTime?: string;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
processStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
projectNumbering?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfWinningBidsQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目状态
|
||||
*/
|
||||
projectStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
projectName?: string;
|
||||
|
||||
/**
|
||||
* 中标价(原币)
|
||||
*/
|
||||
winningBidOriginal?: string | number;
|
||||
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
exchangeRate?: number;
|
||||
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
currency?: string;
|
||||
|
||||
/**
|
||||
* 所属主体
|
||||
*/
|
||||
subject?: string;
|
||||
|
||||
/**
|
||||
* 中标价
|
||||
*/
|
||||
winningBid?: string | number;
|
||||
|
||||
/**
|
||||
* 中标日期
|
||||
*/
|
||||
bidWinningDate?: string | number;
|
||||
|
||||
/**
|
||||
* 投标保证金
|
||||
*/
|
||||
bidDeposit?: string | number;
|
||||
|
||||
/**
|
||||
* 是否退还
|
||||
*/
|
||||
whetherSendBack?: string;
|
||||
|
||||
/**
|
||||
* 建设单位(客户)
|
||||
*/
|
||||
construction?: string;
|
||||
|
||||
/**
|
||||
* 总造价
|
||||
*/
|
||||
totalCost?: number;
|
||||
|
||||
/**
|
||||
* 立项申请人
|
||||
*/
|
||||
projectApplicant?: string;
|
||||
|
||||
/**
|
||||
* 立项部门
|
||||
*/
|
||||
projectApplicantDept?: string;
|
||||
|
||||
/**
|
||||
* 立项申请日期
|
||||
*/
|
||||
projectApplicantTime?: string;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
processStatus?: string;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
projectNumbering?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
101
src/api/contract/index.ts
Normal file
@ -0,0 +1,101 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
//获取版本
|
||||
export const obtainAllVersionNumbers = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/obtainAllVersionNumbers',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取sheet
|
||||
export const sheetList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/sheetList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//获取一览表
|
||||
export const listBillofquantitiesLimitList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//获取一览数据树
|
||||
export const treeList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/getTree',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//修改单价
|
||||
export const updatePrice = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList',
|
||||
method: 'put',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
//查询分标策划
|
||||
export const getPlanningList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//新增分标策划
|
||||
export const segmentedIndicatorPlanning = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning',
|
||||
method: 'post',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
//编辑分标策划
|
||||
export const updatePlanning = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning',
|
||||
method: 'put',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
//编辑分标策划
|
||||
export const delPlanning = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/' + query.ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
//导出分标
|
||||
export const importExcelFile = (params: any, data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/tender/billofquantitiesLimitList/importExcelFile',
|
||||
method: 'post',
|
||||
params,
|
||||
data
|
||||
});
|
||||
};
|
||||
//获取详情
|
||||
export const getDetailsList = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/segmentedIndicatorPlanning/getMore',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//获取版本详情
|
||||
export const getVersionDetails = (id: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/tenderPlanLimitList/getVersionDetail/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
@ -8,6 +8,7 @@ export interface ContactnoticeVO {
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 模板类型
|
||||
|
83
src/api/ctr/expensesContract/index.ts
Normal file
@ -0,0 +1,83 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ExpensesContractVO, ExpensesContractForm, ExpensesContractQuery } from '@/api/ctr/expensesContract/types';
|
||||
|
||||
/**
|
||||
* 查询支出合同列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listExpensesContract = (query?: ExpensesContractQuery): AxiosPromise<ExpensesContractVO[]> => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询支出合同详细
|
||||
* @param id
|
||||
*/
|
||||
export const getExpensesContract = (id: string | number): AxiosPromise<ExpensesContractVO> => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增支出合同
|
||||
* @param data
|
||||
*/
|
||||
export const addExpensesContract = (data: ExpensesContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改支出合同
|
||||
* @param data
|
||||
*/
|
||||
export const updateExpensesContract = (data: ExpensesContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除支出合同
|
||||
* @param id
|
||||
*/
|
||||
export const delExpensesContract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查看支出合同附件列表
|
||||
* @param id
|
||||
*/
|
||||
export const getFileList = (data) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/file/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取招标计划
|
||||
export const getTenderPlan = (data) => {
|
||||
return request({
|
||||
url: '/ctr/expensesContract/tender/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
141
src/api/ctr/expensesContract/types.ts
Normal file
@ -0,0 +1,141 @@
|
||||
export interface ExpensesContractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
contractSupplier: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
contractedContent: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* 招标Id
|
||||
*/
|
||||
tenderId: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ExpensesContractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
contractSupplier?: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 招标Id
|
||||
*/
|
||||
tenderId?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ExpensesContractQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
contractSupplier?: string;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 招标Id
|
||||
*/
|
||||
tenderId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
86
src/api/ctr/incomeContract/index.ts
Normal file
@ -0,0 +1,86 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { IncomeContractVO, IncomeContractForm, IncomeContractQuery } from '@/api/ctr/incomeContract/types';
|
||||
|
||||
/**
|
||||
* 查询收入合同列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listIncomeContract = (query?: IncomeContractQuery): AxiosPromise<IncomeContractVO[]> => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询收入合同详细
|
||||
* @param id
|
||||
*/
|
||||
export const getIncomeContract = (id: string | number): AxiosPromise<IncomeContractVO> => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增收入合同
|
||||
* @param data
|
||||
*/
|
||||
export const addIncomeContract = (data: IncomeContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改收入合同
|
||||
* @param data
|
||||
*/
|
||||
export const updateIncomeContract = (data: IncomeContractForm) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除收入合同
|
||||
* @param id
|
||||
*/
|
||||
export const delIncomeContract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查看收入合同附件列表
|
||||
* @param id
|
||||
*/
|
||||
export const getFileList = (data) => {
|
||||
return request({
|
||||
url: '/ctr/incomeContract/file/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看收入合同附件列表
|
||||
* @param id
|
||||
*/
|
||||
export const getInfoByProjectId = (data) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/getInfoByProjectId',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
126
src/api/ctr/incomeContract/types.ts
Normal file
@ -0,0 +1,126 @@
|
||||
export interface IncomeContractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType: string;
|
||||
|
||||
/**
|
||||
* 业主单位
|
||||
*/
|
||||
contractOwner: string;
|
||||
|
||||
/**
|
||||
* 承包内容
|
||||
*/
|
||||
contractedContent: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface IncomeContractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 业主单位
|
||||
*/
|
||||
contractOwner?: string;
|
||||
|
||||
/**
|
||||
* 承包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface IncomeContractQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
contractCode?: string;
|
||||
|
||||
/**
|
||||
* 合同类型
|
||||
*/
|
||||
contractType?: string;
|
||||
|
||||
/**
|
||||
* 业主单位
|
||||
*/
|
||||
contractOwner?: string;
|
||||
|
||||
/**
|
||||
* 承包内容
|
||||
*/
|
||||
contractedContent?: string;
|
||||
|
||||
/**
|
||||
* 合同金额
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
41
src/api/design/Professional/index.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 提资计划
|
||||
// 批量新增或修改
|
||||
export const extractBatch = (data) => {
|
||||
return request({
|
||||
url: '/design/extract/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 批量新增或修改
|
||||
export const extractList = (params) => {
|
||||
return request({
|
||||
url: '/design/extract/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 获取提资清单详细信息
|
||||
export const extractDetail = (id) => {
|
||||
return request({
|
||||
url: '/design/extract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取提取资料
|
||||
export const getFileList = (id) => {
|
||||
return request({
|
||||
url: '/design/extract/fileList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取专业
|
||||
export const extractUserMajor = (params) => {
|
||||
return request({
|
||||
url: '/design/extract/userMajor',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
37
src/api/design/appointment/index.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 设计人员
|
||||
// 新增
|
||||
export const designUserAdd = (data) => {
|
||||
return request({
|
||||
url: '/design/user/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const designUserList = (query) => {
|
||||
return request({
|
||||
url: '/design/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const systemUserList = (query) => {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 查询
|
||||
export const desUserList = (query) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/desUser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
73
src/api/design/billofQuantities/index.ts
Normal file
@ -0,0 +1,73 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
/**
|
||||
* 获取所有版本号
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const obtainAllVersionNumbers = (query:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/obtainAllVersionNumbers',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 导入excel
|
||||
* @param data
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const importExcelFile = (params:any,data:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/importExcelFile',
|
||||
method: 'post',
|
||||
params,
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
/**
|
||||
* 获取指定版本的sheet
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const obtainTheList = (query:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/obtainTheList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* 获取指定版本的sheet
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const sheetList = (query:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/sheetList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 物资设备清单审批详情
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const detailsMaterialAndEquipmentApproval = (versions:any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/billofquantitiesVersions/detailsMaterialAndEquipmentApproval/'+versions,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
27
src/api/design/condition/index.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 收资计划
|
||||
// 查询收资清单目录列表
|
||||
export const collectCatalogueList = (data) => {
|
||||
return request({
|
||||
url: '/design/collectCatalogue/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
};
|
||||
|
||||
// 查询收资文件列表
|
||||
export const collectFileList = (params) => {
|
||||
return request({
|
||||
url: '/design/collectFile/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
// 获取收资文件详细信息
|
||||
export const getCollectFile = (id) => {
|
||||
return request({
|
||||
url: '/design/collectFile/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
@ -31,7 +31,7 @@ export const getDesignChange = (id: string | number): AxiosPromise<DesignChangeV
|
||||
* 新增设计变更管理
|
||||
* @param data
|
||||
*/
|
||||
export const addDesignChange = (data: DesignChangeForm) => {
|
||||
export const addDesignChange = (data) => {
|
||||
return request({
|
||||
url: '/design/designChange',
|
||||
method: 'post',
|
||||
@ -61,3 +61,23 @@ export const delDesignChange = (id: string | number | Array<string | number>) =>
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取卷册号
|
||||
* @param id
|
||||
*/
|
||||
export const blueprintList = (id) => {
|
||||
return request({
|
||||
url: '/design/designChange/blueprint/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取卷册列表
|
||||
* @param id
|
||||
*/
|
||||
export const catalogList = (id) => {
|
||||
return request({
|
||||
url: '/design/designChange/catalogList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -61,3 +61,35 @@ export const delDrawing = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查阅
|
||||
* @param id
|
||||
*/
|
||||
export const volumeFileViewer = (data) => {
|
||||
return request({
|
||||
url: '/design/volumeFileViewer',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查阅记录列表
|
||||
* @param id
|
||||
*/
|
||||
export const volumeFileViewerList = (id) => {
|
||||
return request({
|
||||
url: '/design/volumeFileViewer/list?volumeFileId=' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查阅图纸列表
|
||||
* @param id
|
||||
*/
|
||||
export const joinList = (params) => {
|
||||
return request({
|
||||
url: '/design/volumeFile/joinList',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
105
src/api/design/drawingreview/index.ts
Normal file
@ -0,0 +1,105 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
// 查询设计-图纸评审列表
|
||||
export const listDrawingreview = (query) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/listOfDesignDrawingsReview',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
//查询设计-图纸评审详细
|
||||
export const getDrawingreview = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
//查询设计-图纸评审详细
|
||||
export const drawingreviewzQuery = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/zQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
//新增设计-图纸评审
|
||||
export const addDrawingreview = (params, data) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/drawingReviewUpload',
|
||||
method: 'post',
|
||||
params: params,
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 修改设计-图纸评审
|
||||
export const updateDrawingreview = (data) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/anewDrawingReviewUpload',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 设计验证表
|
||||
export const fillOutTheDesignVerificationForm = (data) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/fillOutTheDesignVerificationForm',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 设计验证表
|
||||
export const drawingreviewReceipts = (data) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 设计验证表
|
||||
export const subProjectListAll = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/subProjectList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取历史设计图纸评审
|
||||
export const ObtainHistoricalDesignDrawingsForReview = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/ObtainHistoricalDesignDrawingsForReview/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取详情
|
||||
export const drawingreviewReceiptsList = (params) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 根据历史设计图纸评审查询详情
|
||||
export const drawingreviewReceiptsDetail = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 根据历史设计图纸评审查询详情
|
||||
export const drawingreview = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreview/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 获取单据
|
||||
export const getDrawingreviewReceipts = (id) => {
|
||||
return request({
|
||||
url: '/design/drawingreviewReceipts/review/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
63
src/api/design/prelimScheme/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PrelimSchemeVO, PrelimSchemeForm, PrelimSchemeQuery } from '@/api/design/prelimScheme/types';
|
||||
|
||||
/**
|
||||
* 查询设计初步方案列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPrelimScheme = (query?: PrelimSchemeQuery): AxiosPromise<PrelimSchemeVO[]> => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计初步方案详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPrelimScheme = (id: string | number): AxiosPromise<PrelimSchemeVO> => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const addPrelimScheme = (data: PrelimSchemeForm) => {
|
||||
return request({
|
||||
url: '/design/prelimScheme',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const updatePrelimScheme = (data: PrelimSchemeForm) => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/update/' + data.id,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计初步方案
|
||||
* @param id
|
||||
*/
|
||||
export const delPrelimScheme = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/prelimScheme/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
101
src/api/design/prelimScheme/types.ts
Normal file
@ -0,0 +1,101 @@
|
||||
export interface PrelimSchemeVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PrelimSchemeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PrelimSchemeQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
26
src/api/design/received/index.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 收资计划
|
||||
// 批量新增或修改
|
||||
export const collectBatch = (data) => {
|
||||
return request({
|
||||
url: '/design/collect/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 获取收资清单详细信息
|
||||
export const byProjectId = (ProjectId) => {
|
||||
return request({
|
||||
url: '/design/collect/byProjectId/' + ProjectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 导出收资清单
|
||||
export const exportWord = (params) => {
|
||||
return request({
|
||||
url: '/design/collect/exportWord?id=' + params.id,
|
||||
method: 'post'
|
||||
});
|
||||
};
|
63
src/api/design/scheme/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SchemeVO, SchemeForm, SchemeQuery } from '@/api/design/scheme/types';
|
||||
|
||||
/**
|
||||
* 查询设计初步方案列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listScheme = (query?: SchemeQuery): AxiosPromise<SchemeVO[]> => {
|
||||
return request({
|
||||
url: '/design/scheme/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计初步方案详细
|
||||
* @param id
|
||||
*/
|
||||
export const getScheme = (id: string | number): AxiosPromise<SchemeVO> => {
|
||||
return request({
|
||||
url: '/design/scheme/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const addScheme = (data: SchemeForm) => {
|
||||
return request({
|
||||
url: '/design/scheme',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计初步方案
|
||||
* @param data
|
||||
*/
|
||||
export const updateScheme = (data: SchemeForm) => {
|
||||
return request({
|
||||
url: '/design/scheme/update/' + data.id,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计初步方案
|
||||
* @param id
|
||||
*/
|
||||
export const delScheme = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/scheme/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
101
src/api/design/scheme/types.ts
Normal file
@ -0,0 +1,101 @@
|
||||
export interface SchemeVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SchemeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SchemeQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* ossId
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件访问路径
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/design/subcontract/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SubcontractVO, SubcontractForm, SubcontractQuery } from '@/api/design/subcontract/types';
|
||||
|
||||
/**
|
||||
* 查询设计分包列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSubcontract = (query?: SubcontractQuery): AxiosPromise<SubcontractVO[]> => {
|
||||
return request({
|
||||
url: '/design/subcontract/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设计分包详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSubcontract = (id: string | number): AxiosPromise<SubcontractVO> => {
|
||||
return request({
|
||||
url: '/design/subcontract/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设计分包
|
||||
* @param data
|
||||
*/
|
||||
export const addSubcontract = (data: SubcontractForm) => {
|
||||
return request({
|
||||
url: '/design/subcontract',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设计分包
|
||||
* @param data
|
||||
*/
|
||||
export const updateSubcontract = (data: SubcontractForm) => {
|
||||
return request({
|
||||
url: '/design/subcontract',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设计分包
|
||||
* @param id
|
||||
*/
|
||||
export const delSubcontract = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/subcontract/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
56
src/api/design/subcontract/types.ts
Normal file
@ -0,0 +1,56 @@
|
||||
export interface SubcontractVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subContent: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SubcontractForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subContent?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface SubcontractQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包内容
|
||||
*/
|
||||
subContent?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
143
src/api/design/volumeCatalog/index.ts
Normal file
@ -0,0 +1,143 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { VolumeCatalogVO, VolumeCatalogForm, VolumeCatalogQuery } from '@/api/design/volumeCatalog/types';
|
||||
|
||||
/**
|
||||
* 查询卷册目录列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listVolumeCatalog = (query) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询卷册目录详细
|
||||
* @param id
|
||||
*/
|
||||
export const getVolumeCatalog = (id: string | number): AxiosPromise<VolumeCatalogVO> => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询卷册目录文件列表
|
||||
* @param id
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getVolumeCatafileList = (id: string | number): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/listFileById/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查阅卷册目录文件
|
||||
* @param id
|
||||
*/
|
||||
export const lookViewerFile = (id: string | number): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/viewerFile/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 新增卷册目录
|
||||
* @param data
|
||||
*/
|
||||
export const addVolumeCatalog = (data: VolumeCatalogForm) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改卷册目录
|
||||
* @param data
|
||||
*/
|
||||
export const updateVolumeCatalog = (data) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除卷册目录
|
||||
* @param id
|
||||
*/
|
||||
export const delVolumeCatalog = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 上传卷册文件
|
||||
* @param query
|
||||
*/
|
||||
export const uploadVolumeFile = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/volumeFile',
|
||||
method: 'POST',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取文件列表
|
||||
* @param query
|
||||
*/
|
||||
export const volumeFileList = (params) => {
|
||||
return request({
|
||||
url: '/design/volumeFile/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取文件详情
|
||||
* @param query
|
||||
*/
|
||||
export const getileDetail = (id) => {
|
||||
return request({
|
||||
url: '/design/volumeFile/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取专业列表
|
||||
* @param query
|
||||
*/
|
||||
export const majorList = (params) => {
|
||||
return request({
|
||||
url: '/design/volumeCatalog/majorList',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取二维码信息
|
||||
* @param query
|
||||
*/
|
||||
export const codeInfo = (id) => {
|
||||
const config: any = {
|
||||
url: '/design/volumeFile/codeInfo?id=' + id,
|
||||
method: 'get'
|
||||
};
|
||||
config.headers = {
|
||||
Authorization: '1'
|
||||
};
|
||||
return request(config);
|
||||
};
|
90
src/api/design/volumeCatalog/types.ts
Normal file
@ -0,0 +1,90 @@
|
||||
export interface VolumeCatalogVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
design: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设计子项ID
|
||||
*/
|
||||
designSubitemId: string | number;
|
||||
|
||||
/**
|
||||
* 卷册号
|
||||
*/
|
||||
volumeNumber: string;
|
||||
|
||||
/**
|
||||
* 资料名称
|
||||
*/
|
||||
documentName: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface VolumeCatalogForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
design?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计子项ID
|
||||
*/
|
||||
designSubitemId?: string | number;
|
||||
|
||||
/**
|
||||
* 卷册号
|
||||
*/
|
||||
volumeNumber?: string;
|
||||
|
||||
/**
|
||||
* 资料名称
|
||||
*/
|
||||
documentName?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface VolumeCatalogQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设计子项ID
|
||||
*/
|
||||
designSubitemId?: string | number;
|
||||
|
||||
/**
|
||||
* 卷册号
|
||||
*/
|
||||
volumeNumber?: string;
|
||||
|
||||
/**
|
||||
* 资料名称
|
||||
*/
|
||||
documentName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
118
src/api/formalities/formalitiesAreConsolidated/index.ts
Normal file
@ -0,0 +1,118 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
FormalitiesAreConsolidatedVO,
|
||||
FormalitiesAreConsolidatedForm,
|
||||
FormalitiesAreConsolidatedQuery
|
||||
} from '@/api/formalities/formalitiesAreConsolidated/types';
|
||||
import { ListOfFormalitiesQuery, ListOfFormalitiesVO } from '../listOfFormalities/types';
|
||||
|
||||
/**
|
||||
* 查询合规性手续合账列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listFormalitiesAreConsolidated = (query?: FormalitiesAreConsolidatedQuery): AxiosPromise<FormalitiesAreConsolidatedVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询合规性手续合账详细
|
||||
* @param id
|
||||
*/
|
||||
export const getFormalitiesAreConsolidated = (id: string | number): AxiosPromise<FormalitiesAreConsolidatedVO> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增合规性手续合账
|
||||
* @param data
|
||||
*/
|
||||
export const addFormalitiesAreConsolidated = (data: FormalitiesAreConsolidatedForm) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改合规性手续合账
|
||||
* @param data
|
||||
*/
|
||||
export const updateFormalitiesAreConsolidated = (data: FormalitiesAreConsolidatedForm) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/edit',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除合规性手续合账
|
||||
* @param id
|
||||
*/
|
||||
export const delFormalitiesAreConsolidated = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 编辑状态
|
||||
* @param data
|
||||
*/
|
||||
export const editStatus = (data: FormalitiesAreConsolidatedForm) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/editStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询合规性手续合账文件列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listFormalitiesAnnex = (query?: any): AxiosPromise<FormalitiesAreConsolidatedVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAnnex/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除合规性手续合账文件
|
||||
* @param id
|
||||
*/
|
||||
export const delFormalitiesAnnex = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAnnex/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板属性列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getTemplateTreeList = (query?: any): AxiosPromise<ListOfFormalitiesVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/getTree',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
160
src/api/formalities/formalitiesAreConsolidated/types.ts
Normal file
@ -0,0 +1,160 @@
|
||||
export interface FormalitiesAreConsolidatedVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
planTheEndTime: string;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板父id
|
||||
*/
|
||||
formalitiesPid: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板id
|
||||
*/
|
||||
formalitiesId: string | number;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
planTheStartTime: string;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
actualCompletionTime: string;
|
||||
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
processingStatus: string;
|
||||
|
||||
/**
|
||||
* 手续材料
|
||||
*/
|
||||
formalitiesUrl: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface FormalitiesAreConsolidatedForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
planTheEndTime?: string;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板父id
|
||||
*/
|
||||
formalitiesPid?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板id
|
||||
*/
|
||||
formalitiesId?: string | number;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
planTheStartTime?: string;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
actualCompletionTime?: string;
|
||||
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
processingStatus?: string;
|
||||
|
||||
/**
|
||||
* 手续材料
|
||||
*/
|
||||
formalitiesUrl?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface FormalitiesAreConsolidatedQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板父id
|
||||
*/
|
||||
formalitiesPid?: string | number;
|
||||
|
||||
/**
|
||||
* 手续办理清单模板id
|
||||
*/
|
||||
formalitiesId?: string | number;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
planTheStartTime?: string;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 实际完成时间
|
||||
*/
|
||||
actualCompletionTime?: string;
|
||||
|
||||
/**
|
||||
* 办理状态
|
||||
*/
|
||||
processingStatus?: string;
|
||||
|
||||
/**
|
||||
* 手续材料
|
||||
*/
|
||||
formalitiesUrl?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
86
src/api/formalities/listOfFormalities/index.ts
Normal file
@ -0,0 +1,86 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ListOfFormalitiesVO, ListOfFormalitiesForm, ListOfFormalitiesQuery } from '@/api/formalities/listOfFormalities/types';
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listListOfFormalities = (query?: ListOfFormalitiesQuery): AxiosPromise<ListOfFormalitiesVO[]> => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板详细
|
||||
* @param id
|
||||
*/
|
||||
export const getListOfFormalities = (id: string | number): AxiosPromise<ListOfFormalitiesVO> => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增手续办理清单模板
|
||||
* @param data
|
||||
*/
|
||||
export const addListOfFormalities = (data: ListOfFormalitiesForm) => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改手续办理清单模板
|
||||
* @param data
|
||||
*/
|
||||
export const updateListOfFormalities = (data: ListOfFormalitiesForm) => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除手续办理清单模板
|
||||
* @param id
|
||||
*/
|
||||
export const delListOfFormalities = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/formalities/listOfFormalities/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询手续办理清单模板是否存在
|
||||
* @param id
|
||||
*/
|
||||
export const getWhetherItExists = (id: string | number): AxiosPromise<ListOfFormalitiesVO> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/getWhetherItExists',
|
||||
method: 'get',
|
||||
params: {
|
||||
projectId: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
//模版新增
|
||||
export const addFormalities = (data: any): AxiosPromise<ListOfFormalitiesVO> => {
|
||||
return request({
|
||||
url: '/formalities/formalitiesAreConsolidated/addFormalities',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
56
src/api/formalities/listOfFormalities/types.ts
Normal file
@ -0,0 +1,56 @@
|
||||
export interface ListOfFormalitiesVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
pid: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfFormalitiesForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ListOfFormalitiesQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 父级id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
100
src/api/largeScreen/index.ts
Normal file
@ -0,0 +1,100 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/types';
|
||||
/**
|
||||
* 合同金额
|
||||
*
|
||||
*/
|
||||
export const totalAmount = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/totalAmount',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目位置列表
|
||||
*
|
||||
*/ export const projectGis = (clientid?: any) => {
|
||||
return request({
|
||||
url: '/money/big/screen/project/gis',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 应收实收
|
||||
*
|
||||
*/ export const incomePay = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/income/pay',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 收入合同分析
|
||||
*
|
||||
*/ export const incomeAnalyze = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/income/analyze',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 应付实付
|
||||
*
|
||||
*/ export const expensesPay = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/expenses/pay',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 支出合同分析
|
||||
*
|
||||
*/
|
||||
export const expensesAnalyze = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/expenses/analyze',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 成本
|
||||
*
|
||||
*/ export const cost = (clientid) => {
|
||||
return request({
|
||||
url: '/money/big/screen/cost',
|
||||
method: 'get',
|
||||
params: clientid
|
||||
});
|
||||
};
|
||||
|
||||
// 资金KPI
|
||||
export const monthMoney = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/monthMoney',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 现金流
|
||||
export const monthCash = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/monthCash',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 现金流总和
|
||||
|
||||
export const cashTotal = () => {
|
||||
return request({
|
||||
url: '/money/big/screen/cashTotal',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
28
src/api/materials/appointment/index.ts
Normal file
@ -0,0 +1,28 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 设计人员
|
||||
// 新增
|
||||
export const designUserAdd = (data) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseUser/addOrUpdate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const designUserDetail = (projectId) => {
|
||||
return request({
|
||||
url: `/cailiaoshebei/purchaseUser/byProject/${projectId}`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
// 查询
|
||||
export const systemUserList = (query) => {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
172
src/api/materials/batchPlan/index.ts
Normal file
@ -0,0 +1,172 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (query: any) => {
|
||||
const config: any = {
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
};
|
||||
|
||||
// 如果 query.token 存在,就覆盖请求头里的 token
|
||||
if (query.token) {
|
||||
config.headers = {
|
||||
Authorization: query.token
|
||||
};
|
||||
}
|
||||
|
||||
return request(config);
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/spQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备选择列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listSelectCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/masterDataList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询字典数据
|
||||
* @param dictType
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getDictList = (query: any): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/engineeringList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
export const coryEngineeringList = (query: any): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/coryEngineeringList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取到物资状态为已完成的版本
|
||||
*/
|
||||
export const obtainTheVersion = (query: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/obtainTheVersion',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取到物资剩余量
|
||||
*/
|
||||
export const mrpBaseRemaining = (query: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/mrpBase/remaining',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
229
src/api/materials/batchPlan/types.ts
Normal file
@ -0,0 +1,229 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
cailiaoshebeiId?: string | number;
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
addDataList?: any[];
|
||||
approvalProject?: string;
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
110
src/api/materials/cailiaoshebei/index.ts
Normal file
@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/spQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
231
src/api/materials/cailiaoshebei/types.ts
Normal file
@ -0,0 +1,231 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
approvalDesign?: string;
|
||||
bo: any;
|
||||
file: string;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@ -61,3 +61,17 @@ export const delMaterialIssue = (id: string | number | Array<string | number>) =
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
//获取一起名称
|
||||
export const getMaterialName = (id: any) => {
|
||||
return request({
|
||||
url: '/materials/materials/inventoryNumber/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
//获取出库记录
|
||||
export const inventoryList = (id: any) => {
|
||||
return request({
|
||||
url: '/materials/materialIssue/inventory/list/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -61,3 +61,16 @@ export const delMaterialReceive = (id: string | number | Array<string | number>)
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取合同列表数据
|
||||
* @param id
|
||||
*/
|
||||
export const getContractNameList = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/materials/materialReceive/ctrList',
|
||||
params: {
|
||||
projectId: id
|
||||
},
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
@ -82,7 +82,10 @@ export interface MaterialsInventoryForm extends BaseEntity {
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart?: string;
|
||||
/**
|
||||
* 材料id
|
||||
*/
|
||||
|
70
src/api/materials/materialsUseRecord/index.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MaterialsUseRecordVO, MaterialsUseRecordForm, MaterialsUseRecordQuery } from '@/api/materials/materialsUseRecord/types';
|
||||
|
||||
/**
|
||||
* 查询材料使用登记列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listMaterialsUseInventory = (query?: MaterialsUseRecordQuery): AxiosPromise<MaterialsUseRecordVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materialsInventory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
export const listMaterialsUseRecord = (query?: MaterialsUseRecordQuery): AxiosPromise<MaterialsUseRecordVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询材料使用登记详细
|
||||
* @param id
|
||||
*/
|
||||
export const getMaterialsUseRecord = (id: string | number): AxiosPromise<MaterialsUseRecordVO> => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增材料使用登记
|
||||
* @param data
|
||||
*/
|
||||
export const addMaterialsUseRecord = (data: MaterialsUseRecordForm) => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改材料使用登记
|
||||
* @param data
|
||||
*/
|
||||
export const updateMaterialsUseRecord = (data: MaterialsUseRecordForm) => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除材料使用登记
|
||||
* @param id
|
||||
*/
|
||||
export const delMaterialsUseRecord = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/materials/materialsUseRecord/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
111
src/api/materials/materialsUseRecord/types.ts
Normal file
@ -0,0 +1,111 @@
|
||||
export interface MaterialsUseRecordVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
inventoryId: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart: string;
|
||||
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
useNumber: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
residueNumber: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaterialsUseRecordForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
inventoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart?: string;
|
||||
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
useNumber?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
residueNumber?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaterialsUseRecordQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
inventoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 使用部位
|
||||
*/
|
||||
usePart?: string;
|
||||
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
useNumber?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
residueNumber?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
110
src/api/materials/orderEquipment/index.ts
Normal file
@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: any): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/modifyTheOrderForm',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/pcPlanList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialbatchdemandplan/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/spQuery/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
229
src/api/materials/orderEquipment/types.ts
Normal file
@ -0,0 +1,229 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
addDataList?: any[];
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
102
src/api/materials/orderMaterials/index.ts
Normal file
@ -0,0 +1,102 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/planExecutionTrackingList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/changeTheStatusOfTheMaterials',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
},
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/changeTheStatusOfTheMaterials',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/materialsorder/trackPcPlanList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
43
src/api/materials/overallPlanMaterialSupply/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 获取主数据列表
|
||||
export const obtainMasterDataList = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/queryList',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 总供应计划列表
|
||||
export const totalsupplyplan = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
// 总供应计划详细信息
|
||||
export const totalSupplyplanDetails = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
// 修改物资-总供应计划
|
||||
export const materialChangeSupplyplan = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
// 总供应计划-批量编辑
|
||||
export const totalSupplyplanBatchEdit = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/design/totalsupplyplan/batchEdit',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
130
src/api/materials/purchaseDoc/index.ts
Normal file
@ -0,0 +1,130 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PurchaseDocVO, PurchaseDocForm, PurchaseDocQuery } from '@/api/cailiaoshebei/purchaseDoc/types';
|
||||
|
||||
/**
|
||||
* 查询物资-采购联系单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPurchaseDoc = (query?: PurchaseDocQuery): AxiosPromise<PurchaseDocVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-采购联系单详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPurchaseDoc = (id: string | number): AxiosPromise<PurchaseDocVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-采购联系单
|
||||
* @param data
|
||||
*/
|
||||
export const addPurchaseDoc = (data: PurchaseDocForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-采购联系单
|
||||
* @param data
|
||||
*/
|
||||
export const updatePurchaseDoc = (data: PurchaseDocForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-采购联系单
|
||||
* @param id
|
||||
*/
|
||||
export const delPurchaseDoc = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
export const uploadCode = (data: any) => {
|
||||
const config: any = {
|
||||
url: '/cailiaoshebei/ltn/link',
|
||||
method: 'post',
|
||||
data: data
|
||||
};
|
||||
// 如果 query.token 存在,就覆盖请求头里的 token
|
||||
if (data.token) {
|
||||
config.headers = {
|
||||
Authorization: data.token
|
||||
};
|
||||
}
|
||||
|
||||
return request(config);
|
||||
};
|
||||
|
||||
// 获取物流单号
|
||||
export const ltnList = (data: any) => {
|
||||
const config: any = {
|
||||
url: '/cailiaoshebei/ltn/list?docId=' + data.docId,
|
||||
method: 'get'
|
||||
};
|
||||
// 如果 query.token 存在,就覆盖请求头里的 token
|
||||
if (data.token) {
|
||||
config.headers = {
|
||||
Authorization: data.token
|
||||
};
|
||||
}
|
||||
|
||||
return request(config);
|
||||
};
|
||||
|
||||
export const listLink = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/ltn/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 通过采购单获取需求
|
||||
* @param id
|
||||
*/
|
||||
export const purchaseDocPlanList = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/planList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 通过物流单号 物流详情
|
||||
* @param id
|
||||
*/
|
||||
export const logisticsDetial = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/ltn/logistics/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetailBASE = (id) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/pdf/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
296
src/api/materials/purchaseDoc/types.ts
Normal file
@ -0,0 +1,296 @@
|
||||
export interface PurchaseDocVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PurchaseDocForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate?: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress?: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts?: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector?: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent?: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate?: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl?: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit?: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson?: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PurchaseDocQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate?: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress?: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts?: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector?: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent?: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate?: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl?: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit?: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson?: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/materials/repertory/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepertoryVO, RepertoryForm, RepertoryQuery } from '@/api/materials/repertory/types';
|
||||
|
||||
/**
|
||||
* 查询物资-库存详情列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRepertory = (query?: RepertoryQuery): AxiosPromise<RepertoryVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-库存详情详细
|
||||
* @param id
|
||||
*/
|
||||
export const getRepertory = (id: string | number): AxiosPromise<RepertoryVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-库存详情
|
||||
* @param data
|
||||
*/
|
||||
export const addRepertory = (data: RepertoryForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-库存详情
|
||||
* @param data
|
||||
*/
|
||||
export const updateRepertory = (data: RepertoryForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-库存详情
|
||||
* @param id
|
||||
*/
|
||||
export const delRepertory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
81
src/api/materials/repertory/types.ts
Normal file
@ -0,0 +1,81 @@
|
||||
export interface RepertoryVO {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RepertoryForm extends BaseEntity {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RepertoryQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
63
src/api/materials/repertoryDetails/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepertoryDetailsVO, RepertoryDetailsForm, RepertoryDetailsQuery } from '@/api/materials/repertoryDetails/types';
|
||||
|
||||
/**
|
||||
* 查询物资-库存列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRepertoryDetails = (query?: RepertoryDetailsQuery): AxiosPromise<RepertoryDetailsVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-库存详细
|
||||
* @param id
|
||||
*/
|
||||
export const getRepertoryDetails = (id: string | number): AxiosPromise<RepertoryDetailsVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-库存
|
||||
* @param data
|
||||
*/
|
||||
export const addRepertoryDetails = (data: RepertoryDetailsForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-库存
|
||||
* @param data
|
||||
*/
|
||||
export const updateRepertoryDetails = (data: RepertoryDetailsForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-库存
|
||||
* @param id
|
||||
*/
|
||||
export const delRepertoryDetails = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertoryDetails/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
187
src/api/materials/repertoryDetails/types.ts
Normal file
@ -0,0 +1,187 @@
|
||||
export interface RepertoryDetailsVO {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
repertoryId: string | number;
|
||||
|
||||
/**
|
||||
* 数据来源ID
|
||||
*/
|
||||
materialsorderId: string | number;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 原始数量
|
||||
*/
|
||||
originalQuantity: number;
|
||||
|
||||
/**
|
||||
* 变更原因
|
||||
*/
|
||||
changeReasons: string;
|
||||
|
||||
/**
|
||||
* 变更数量
|
||||
*/
|
||||
changeQuantity: number;
|
||||
|
||||
/**
|
||||
* 最终数量
|
||||
*/
|
||||
finalNumber: number;
|
||||
|
||||
/**
|
||||
* 操作状态(字典)
|
||||
*/
|
||||
operationStatus: string;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
operationName: string;
|
||||
|
||||
/**
|
||||
* 操作人联系电话
|
||||
*/
|
||||
operationPhone: string;
|
||||
}
|
||||
|
||||
export interface RepertoryDetailsForm extends BaseEntity {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
repertoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 数据来源ID
|
||||
*/
|
||||
materialsorderId?: string | number;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 原始数量
|
||||
*/
|
||||
originalQuantity?: number;
|
||||
|
||||
/**
|
||||
* 变更原因
|
||||
*/
|
||||
changeReasons?: string;
|
||||
|
||||
/**
|
||||
* 变更数量
|
||||
*/
|
||||
changeQuantity?: number;
|
||||
|
||||
/**
|
||||
* 最终数量
|
||||
*/
|
||||
finalNumber?: number;
|
||||
|
||||
/**
|
||||
* 操作状态(字典)
|
||||
*/
|
||||
operationStatus?: string;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
operationName?: string;
|
||||
|
||||
/**
|
||||
* 操作人联系电话
|
||||
*/
|
||||
operationPhone?: string;
|
||||
}
|
||||
|
||||
export interface RepertoryDetailsQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
id?: string | number;
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
repertoryId?: string | number;
|
||||
|
||||
/**
|
||||
* 数据来源ID
|
||||
*/
|
||||
materialsorderId?: string | number;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 原始数量
|
||||
*/
|
||||
originalQuantity?: number;
|
||||
|
||||
/**
|
||||
* 变更原因
|
||||
*/
|
||||
changeReasons?: string;
|
||||
|
||||
/**
|
||||
* 变更数量
|
||||
*/
|
||||
changeQuantity?: number;
|
||||
|
||||
/**
|
||||
* 最终数量
|
||||
*/
|
||||
finalNumber?: number;
|
||||
|
||||
/**
|
||||
* 操作状态(字典)
|
||||
*/
|
||||
operationStatus?: string;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
operationName?: string;
|
||||
|
||||
/**
|
||||
* 操作人联系电话
|
||||
*/
|
||||
operationPhone?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
110
src/api/materials/suppliesprice/index.ts
Normal file
@ -0,0 +1,110 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/listPlan',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/getInfoPlanSon/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/editPlanSon',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/remove/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcPlanList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备批次
|
||||
* @param ids
|
||||
*/
|
||||
export const delBatch = (ids: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次详情
|
||||
* @param id
|
||||
*/
|
||||
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/spQueryPlan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
228
src/api/materials/suppliesprice/types.ts
Normal file
@ -0,0 +1,228 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
batchNumber?: string;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
81
src/api/materials/usageMaterials/index.ts
Normal file
@ -0,0 +1,81 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 查询物资-使用情况列表
|
||||
export const useMaterialsQueryList = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 新增物资
|
||||
export const newMaterialsAdd = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 修改物资
|
||||
export const materialsEdit = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 删除物资
|
||||
export const materialsDel = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply/' + id,
|
||||
method: 'delete',
|
||||
});
|
||||
};
|
||||
// 获取物资详情
|
||||
export const queryMaterialsInfo = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupply/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// 查询物资子数据列表
|
||||
export const materialsUsageDetails = (query: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
// 获取物资-使用情况子数据详细信息
|
||||
export const materialsSonDetails = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
// 新增物资-使用情况子数据
|
||||
export const materialsSonAdd = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
//修改物资-使用情况子数据
|
||||
export const materialsSonEdit = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
// 删除物资-使用情况子数据
|
||||
export const materialsSonDel = (id: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/physicalsupplySon/' + id,
|
||||
method: 'delete',
|
||||
});
|
||||
};
|
@ -3,9 +3,9 @@ import { AxiosPromise } from 'axios';
|
||||
import { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
// 获取路由
|
||||
export function getRouters(): AxiosPromise<RouteRecordRaw[]> {
|
||||
export function getRouters(id: string): AxiosPromise<RouteRecordRaw[]> {
|
||||
return request({
|
||||
url: '/system/menu/getRouters',
|
||||
url: '/system/menu/getRouters/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
72
src/api/message/config/index.ts
Normal file
@ -0,0 +1,72 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ConfigVO, ConfigForm, ConfigQuery } from '@/api/message/config/types';
|
||||
|
||||
/**
|
||||
* 查询消息配置列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listConfig = (query?: ConfigQuery): AxiosPromise<ConfigVO[]> => {
|
||||
return request({
|
||||
url: '/message/config/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询消息配置详细
|
||||
* @param id
|
||||
*/
|
||||
export const getConfig = (id: string | number): AxiosPromise<ConfigVO> => {
|
||||
return request({
|
||||
url: '/message/config/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增消息配置
|
||||
* @param data
|
||||
*/
|
||||
export const addConfig = (data: ConfigForm) => {
|
||||
return request({
|
||||
url: '/message/config',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改消息配置
|
||||
* @param data
|
||||
*/
|
||||
export const updateConfig = (data: ConfigForm) => {
|
||||
return request({
|
||||
url: '/message/config',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除消息配置
|
||||
* @param id
|
||||
*/
|
||||
export const delConfig = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/message/config/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/** 获取用户列表 */
|
||||
export const listUsers = (query?: any) => {
|
||||
return request({
|
||||
url: '/message/config/allUsersOfTheDepartment',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
113
src/api/message/config/types.ts
Normal file
@ -0,0 +1,113 @@
|
||||
export interface ConfigVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 消息名称
|
||||
*/
|
||||
msgName: number;
|
||||
|
||||
/**
|
||||
* 消息模板
|
||||
*/
|
||||
msgContent: string;
|
||||
|
||||
/**
|
||||
* 消息标识
|
||||
*/
|
||||
msgKey: string;
|
||||
|
||||
/**
|
||||
* 跳转路由
|
||||
*/
|
||||
route: string;
|
||||
|
||||
/**
|
||||
* 通知人
|
||||
*/
|
||||
userId: string | number;
|
||||
}
|
||||
|
||||
export interface ConfigForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
/**
|
||||
* 通知部门
|
||||
*/
|
||||
deptId?: string | number;
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 消息名称
|
||||
*/
|
||||
msgName?: number;
|
||||
|
||||
/**
|
||||
* 消息模板
|
||||
*/
|
||||
msgContent?: string;
|
||||
|
||||
/**
|
||||
* 消息标识
|
||||
*/
|
||||
msgKey?: string;
|
||||
|
||||
/**
|
||||
* 跳转路由
|
||||
*/
|
||||
route?: string;
|
||||
|
||||
/**
|
||||
* 通知人
|
||||
*/
|
||||
userId?: string | number;
|
||||
}
|
||||
|
||||
export interface ConfigQuery extends PageQuery {
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 消息名称
|
||||
*/
|
||||
msgName?: number;
|
||||
|
||||
/**
|
||||
* 消息模板
|
||||
*/
|
||||
msgContent?: string;
|
||||
|
||||
/**
|
||||
* 消息标识
|
||||
*/
|
||||
msgKey?: string;
|
||||
|
||||
/**
|
||||
* 跳转路由
|
||||
*/
|
||||
route?: string;
|
||||
|
||||
/**
|
||||
* 通知人
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
63
src/api/message/notice/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { NoticeVO, NoticeForm, NoticeQuery } from '@/api/message/notice/types';
|
||||
|
||||
/**
|
||||
* 查询消息列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listNotice = (query?: NoticeQuery): AxiosPromise<NoticeVO[]> => {
|
||||
return request({
|
||||
url: '/message/notice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询消息详细
|
||||
* @param id
|
||||
*/
|
||||
export const getNotice = (id: string | number): AxiosPromise<NoticeVO> => {
|
||||
return request({
|
||||
url: '/message/notice/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增消息
|
||||
* @param data
|
||||
*/
|
||||
export const addNotice = (data: NoticeForm) => {
|
||||
return request({
|
||||
url: '/message/notice',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改消息
|
||||
* @param data
|
||||
*/
|
||||
export const updateNotice = (data: NoticeForm) => {
|
||||
return request({
|
||||
url: '/message/notice',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除消息
|
||||
* @param id
|
||||
*/
|
||||
export const delNotice = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/message/notice/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|