|
|
|
@ -1,14 +1,10 @@
|
|
|
|
import { pickBy } from 'lodash-es'
|
|
|
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
|
|
|
import { ContentTypeEnum } from '@/enums/httpEnum'
|
|
|
|
import { ContentTypeEnum } from '@/enums/httpEnum'
|
|
|
|
import { notEmpty } from '@/utils'
|
|
|
|
import { notEmpty } from '@/utils'
|
|
|
|
import { formatToDate2 } from '@/utils/dateUtil'
|
|
|
|
import { formatToDate2 } from '@/utils/dateUtil'
|
|
|
|
import { http } from '@/utils/http/axios'
|
|
|
|
import { http } from '@/utils/http/axios'
|
|
|
|
|
|
|
|
import { pickBy } from 'lodash-es'
|
|
|
|
import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api'
|
|
|
|
import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api'
|
|
|
|
|
|
|
|
|
|
|
|
const CancelToken = axios.CancelToken
|
|
|
|
|
|
|
|
window.cancle = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 头部信息
|
|
|
|
* 头部信息
|
|
|
|
* @returns
|
|
|
|
* @returns
|
|
|
|
@ -228,9 +224,6 @@ export async function queryPageListByCheckNo(params: any): Promise<any> {
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
params: notEmptyParams,
|
|
|
|
params: notEmptyParams,
|
|
|
|
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
|
|
|
|
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
|
|
|
|
cancelToken: new CancelToken((c) => {
|
|
|
|
|
|
|
|
window.cancle.queryPageListByCheckNo = c
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const { data: { records, pages, total, current } } = res
|
|
|
|
const { data: { records, pages, total, current } } = res
|
|
|
|
@ -267,9 +260,6 @@ export async function getPictureList(params: any): Promise<any> {
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
params: notEmptyParams,
|
|
|
|
params: notEmptyParams,
|
|
|
|
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
|
|
|
|
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
|
|
|
|
cancelToken: new CancelToken((c) => {
|
|
|
|
|
|
|
|
window.cancle.getPictureList = c
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const { data: { records, pages, total, current } } = res
|
|
|
|
const { data: { records, pages, total, current } } = res
|
|
|
|
|