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