Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
3fa77032
Commit
3fa77032
authored
Jun 03, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改eslint打包报错问题
parent
c809d666
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
11 deletions
+24
-11
src/views/logistics/logisticsMethod.vue
+5
-3
src/views/logistics/logisticsPartition.vue
+10
-5
src/views/logistics/logisticsQuotation.vue
+8
-3
src/views/logistics/types/logistics.ts
+1
-0
No files found.
src/views/logistics/logisticsMethod.vue
View file @
3fa77032
...
...
@@ -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
)
{
...
...
src/views/logistics/logisticsPartition.vue
View file @
3fa77032
...
...
@@ -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
)
}
...
...
src/views/logistics/logisticsQuotation.vue
View file @
3fa77032
...
...
@@ -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
)
}
...
...
src/views/logistics/types/logistics.ts
View file @
3fa77032
...
...
@@ -12,6 +12,7 @@ export interface LogisticsMethod {
ruleRef
:
ruleRefObj
ruleId
?:
string
|
number
ruleList
?:
ruleRefObj
[]
uinuinWarehouseId
?:
number
|
string
}
export
interface
LogisticsMethodList
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment