Commit 3fa77032 by linjinhong

修改eslint打包报错问题

parent c809d666
......@@ -84,7 +84,7 @@ import {
} from '@/api/logistics'
import { ISeachFormConfig } from '@/types/searchType'
import { TableColumn } from '@/components/VxeTable'
// import type { PromiseSettledResult } from 'types'
import type {
LogisticsMethod,
platformObj,
......@@ -744,7 +744,8 @@ async function getAllList() {
getLogisticsCompanyList(),
getUniuniList(),
])
res.forEach((item, index) => {
res.forEach(
(item: PromiseSettledResult<{ code: number; data: never[] }>, index) => {
if (item.status === 'fulfilled') {
if (item.value.code === 200) {
if (index == 0) {
......@@ -760,7 +761,8 @@ async function getAllList() {
}
}
}
})
},
)
console.log(545, res)
} catch (error) {
......
......@@ -347,16 +347,21 @@ function setCellStyle() {
*/
async function getAllList() {
try {
const res = await Promise.allSettled([getlogisticsWayAllList(), getList()])
res.forEach((item, index) => {
if (item.status === 'fulfilled') {
const res = await Promise.allSettled([getlogisticsWayAllList()])
res.forEach(
(item: PromiseSettledResult<{ code: number; data: never[] }>, index) => {
if (item?.status === 'fulfilled') {
if (item.value.code === 200) {
if (index == 0) {
searchConfig.value[0].attrs!.options = [...(item.value.data || [])]
searchConfig.value[0].attrs!.options = [
...(item.value.data || []),
]
}
}
}
})
},
)
getList()
} catch (error) {
console.log(error)
}
......
......@@ -624,11 +624,14 @@ function handleCheckboxRecords(value: never[]) {
/**
* @description: 获取物流方式列表
*/
const logisticsWayList = ref([])
async function getAllList() {
try {
const res = await Promise.allSettled([getlogisticsWayAllList(), getList()])
res.forEach((item, index) => {
const res = await Promise.allSettled([getlogisticsWayAllList()])
res.forEach(
(item: PromiseSettledResult<{ code: number; data: never[] }>, index) => {
if (item.status === 'fulfilled') {
if (item.value.code === 200) {
if (index == 0) {
......@@ -636,7 +639,9 @@ async function getAllList() {
}
}
}
})
},
)
getList()
} catch (error) {
console.log(error)
}
......
......@@ -12,6 +12,7 @@ export interface LogisticsMethod {
ruleRef: ruleRefObj
ruleId?: string | number
ruleList?: ruleRefObj[]
uinuinWarehouseId?: number | string
}
export interface LogisticsMethodList {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment