123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- import request from '@/utils/request'
- // 查询项目列表
- export function listProjectApi(query) {
- return request({
- url: '/ent/data/list',
- method: 'get',
- params: query
- })
- }
- //新增项目
- export function addProjectApi(data) {
- return request({
- url: `/ent/project`,
- method: 'post',
- data: data
- })
- }
- //获取财务员、科技员
- export function listUserListApi(query) {
- return request({
- url: `/ent/user/list`,
- method: 'get',
- params: query
- })
- }
- //修改项目
- export function editProjectApi(data) {
- return request({
- url: `/ent/project`,
- method: 'put',
- data: data
- })
- }
- //获取项目信息 企业
- export function getProjectInfoApi(id, query) {
- return request({
- url: `/ent/project/${id}`,
- method: 'get',
- params: query
- })
- }
- //获取项目详情信息 科德管理员
- export function getProjectInfoAdminApi(id, query) {
- return request({
- url: `/admin/project/${id}`,
- method: 'get',
- params: query
- })
- }
- //同步给技术
- export function synTechApi(id,data) {
- return request({
- url: `/ent/project/sync/tech/${id}`,
- method: 'put',
- data: data
- })
- }
- //同步给财务
- export function synFinApi(id, data) {
- return request({
- url: `/ent/project/sync/finc/${id}`,
- method: 'put',
- data: data
- })
- }
- //删除项目
- export function deleteProjectApi(ids) {
- return request({
- url: `/ent/data/${ids}`,
- method: 'delete'
- })
- }
- //获取项目附件
- export function getEnclosureApi(attachType,dataId) {
- return request({
- url: `/common/attach/attach/${attachType}/${dataId}`,
- method: 'get'
- })
- }
- //删除附件信息
- export function deleteEnclosureApi(ids) {
- return request({
- url: `/common/attach/${ids}`,
- method: 'delete'
- })
- }
- export function getProjectInfoCommonApi(id, query) {
- return request({
- url: `/project/${id}`,
- method: 'get',
- params: query
- })
- }
- //重新提交审核
- export function entUserAudit(data) {
- return request({
- url: `/ent/user/auth`,
- method: 'put',
- data: data
- })
- }
- //保存草稿
- export function draftApi(data) {
- return request({
- url: `/ent/project/save-draft`,
- method: 'post',
- data: data
- })
- }
- //保存年度信息
- export function yearApi(data) {
- return request({
- url: `/ent/data/year-project`,
- method: 'post',
- data: data
- })
- }
- //修改年度信息
- export function yearUpdateApi(data) {
- return request({
- url: `/ent/data/year-project`,
- method: 'put',
- data: data
- })
- }
- //项目申报
- export function declareApi(data) {
- return request({
- url: `/ent/data/project`,
- method: 'post',
- data: data
- })
- }
- //获取企业研发项目
- export function devProjectApi(projectId, query) {
- return request({
- url: `/ent/data/project/${projectId}`,
- method: 'get',
- params: query
- })
- }
- export function declareUpdateApi(data) {
- return request({
- url: `/ent/data/project`,
- method: 'put',
- data: data
- })
- }
- //获取企业年度信息
- export function getYearDataApi(projectYear, entId, query) {
- return request({
- url: `/ent/data/year-project/${projectYear}/${entId}`,
- method: 'get',
- params: query
- })
- }
- //获取附件列表
- // export function getEnclosureApi(attachType, dataId) {
- // return request({
- // url: `/common/attach/attach/${attachType}/${dataId}`,
- // method: 'get',
- // params: query
- // })
- // }
- //下载
- export function downloadApi(id) {
- return request({
- url: `/common/attach/${id}`,
- method: 'get',
- responseType: 'blob'
- })
- }
- //年度列表
- export function yearListApi() {
- return request({
- url: `/ent/data/year-list`,
- method: 'get'
- })
- }
|