89 lines
1.9 KiB
TypeScript
89 lines
1.9 KiB
TypeScript
import { post, get, del, download } from '@/request/http'
|
|
|
|
/**
|
|
* 获取智能文书列表
|
|
* @returns
|
|
* @param params
|
|
*/
|
|
export const getDocumentList: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicTask/page`, params)
|
|
}
|
|
|
|
|
|
/**
|
|
* 删除智能文书
|
|
* @returns
|
|
* @param document_ids
|
|
*/
|
|
export const deleteDocuments: (document_ids: any) => Promise<any> = (document_ids) => {
|
|
return del(`/finyx/fPolicTask`, undefined, document_ids)
|
|
}
|
|
|
|
/**
|
|
*
|
|
* 获取业务文书模板树
|
|
* @returns
|
|
*/
|
|
export const getTemplateTree: () => Promise<any> = () => {
|
|
return post(`/finyx/fPolicFileConfig/getTree`)
|
|
}
|
|
|
|
/**
|
|
* 选择文书模板新增
|
|
* @returns
|
|
* @param params
|
|
*/
|
|
export const addDocument: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicTask`, params)
|
|
}
|
|
|
|
/**
|
|
* 输入基本信息获取动态表单
|
|
* @returns
|
|
* @param params
|
|
* "fieldType": 0,
|
|
*/
|
|
export const getBasicInfoForm: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicField/queryTask`, params)
|
|
}
|
|
|
|
/**
|
|
* 解析输入基本信息字段
|
|
* @returns
|
|
* @param params
|
|
*/
|
|
export const parseBasicInfo: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicTask/paras`, params)
|
|
}
|
|
|
|
/**
|
|
* 输入信息汇总获取动态表单
|
|
* @returns
|
|
* @param params
|
|
* "fieldType": 1,
|
|
*/
|
|
export const getSummaryInfoForm: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicField/queryTask`, params)
|
|
}
|
|
|
|
/**
|
|
* 确认输出文档
|
|
* @returns
|
|
* @param params
|
|
*/
|
|
export const confirmOutputDocument: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicTask/getDocument`, params)
|
|
}
|
|
|
|
/**
|
|
* 列表点击文件链接/查看按钮跳转文书详情
|
|
* @returns
|
|
* @param params
|
|
*/
|
|
export const getDocumentDetail: (params: any) => Promise<any> = (params) => {
|
|
return post(`/finyx/fPolicFile/query`, params)
|
|
}
|
|
|
|
|
|
|