| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import request from '@/utils/request'
- const url = window.context.form
- // 获取文档分类列表
- export function getWhCateList() {
- return request({
- url: url + '/api/costDocumentTemplate/v1/getWhCateList',
- method: 'get',
- })
- }
- // 获取文档列表
- export function getDocList(data) {
- return request({
- url: url + '/api/costDocumentTemplate/v1/pageList',
- method: 'post',
- data: data,
- })
- }
- // 新增文书
- export function addDocumentTemplate(data) {
- return request({
- url: url + '/api/costDocumentTemplate/v1/save',
- method: 'post',
- data: data,
- })
- }
- // 更新实体
- export function updateDocumentTemplate(data) {
- return request({
- url: url + '/api/costDocumentTemplate/v1/update',
- method: 'put',
- data: data,
- })
- }
- // 根据ID集合批量删除实体
- export function batchDeleteDocumentTemplates(data) {
- return request({
- url: url + '/api/costDocumentTemplate/v1/',
- method: 'post',
- data: data,
- })
- }
- // 根据ID删除实体
- export function deleteDocumentTemplateById(id) {
- return request({
- url: url + `/api/costDocumentTemplate/v1/${id}`,
- method: 'delete',
- })
- }
- // 根据ID查询实体
- export function getDocumentTemplateById(id) {
- return request({
- url: url + `/api/costDocumentTemplate/v1/${id}`,
- method: 'get',
- })
- }
- // 根据文书id查询数据项
- export function queryByDocumentId(params) {
- return request({
- url: url + `/costDocumentTemplateFile/v1/queryByDocumentId`,
- method: 'get',
- params,
- })
- }
- // 根据文书id查询和whereValue查询
- export function queryByDocumentIdandWhereValue(params) {
- return request({
- url: url + `/costDocumentTemplateFile/v1/queryByDocumentIdandWhereValue`,
- method: 'get',
- params,
- })
- }
|