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
283e4e3c
Commit
283e4e3c
authored
Oct 28, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev'
parents
4e7cec1f
b8304794
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
29 deletions
+34
-29
src/views/logistics/components/LogisticsWaySelect.tsx
+19
-4
src/views/logistics/logisticsMethod.vue
+2
-16
src/views/order/podCN/PodDistributionOrder.vue
+13
-9
No files found.
src/views/logistics/components/LogisticsWaySelect.tsx
View file @
283e4e3c
...
...
@@ -79,6 +79,10 @@ export default defineComponent({
type
:
Boolean
,
default
:
false
,
},
valueKey
:
{
type
:
String
,
default
:
'id'
,
},
},
emits
:
[
'update:modelValue'
],
setup
(
props
,
{
emit
})
{
...
...
@@ -94,9 +98,17 @@ export default defineComponent({
()
=>
props
.
modelValue
,
(
newVal
)
=>
{
if
(
props
.
isRadio
)
{
selectedRadioList
.
value
=
newVal
as
string
|
number
allWayLists
.
value
=
props
.
companyList
.
flatMap
(
(
company
)
=>
company
.
wayList
,
)
as
IwayList
[]
console
.
log
(
'waysName'
,
waysName
.
value
)
if
(
props
.
valueKey
===
'id'
)
{
selectedRadioList
.
value
=
newVal
as
string
|
number
}
else
{
selectedRadioList
.
value
=
allWayLists
.
value
.
find
((
el
:
IwayList
)
=>
newVal
===
el
.
name
)
?.
id
||
''
}
}
else
{
selectedList
.
value
=
newVal
as
(
string
|
number
)[]
}
...
...
@@ -114,9 +126,7 @@ export default defineComponent({
()
=>
selectedRadioList
.
value
,
],
(
newVal
)
=>
{
// console.log(90, newVal)
if
(
props
.
isRadio
)
{
emit
(
'update:modelValue'
,
newVal
[
2
])
companyList
.
value
=
newVal
[
1
]
as
ICompanyList
[]
allWayLists
.
value
=
props
.
companyList
.
flatMap
(
(
company
)
=>
company
.
wayList
,
...
...
@@ -125,6 +135,11 @@ export default defineComponent({
waysName
.
value
=
allWayLists
.
value
.
find
((
el
:
IwayList
)
=>
newVal
[
2
]
===
el
.
id
)
?.
name
||
''
if
(
props
.
valueKey
===
'id'
)
{
emit
(
'update:modelValue'
,
newVal
[
2
])
}
else
{
emit
(
'update:modelValue'
,
waysName
.
value
)
}
}
else
{
emit
(
'update:modelValue'
,
newVal
[
0
])
allList
.
value
=
newVal
[
1
]
as
IAllList
[]
...
...
src/views/logistics/logisticsMethod.vue
View file @
283e4e3c
...
...
@@ -198,7 +198,6 @@ watch(
)
=>
{
// 检查旧值项是否符合条件
if
(
Array
.
isArray
(
oldItem
.
showPlatform
)
&&
oldItem
.
showPlatform
.
length
===
1
&&
oldItem
.
showPlatform
[
0
]
===
'TIKTOK'
&&
oldItem
.
logisticsName
...
...
@@ -469,6 +468,7 @@ const formConfig = computed<IFormConfig[]>(() => [
v
-
model
=
{
item
.
logisticsName
as
string
|
number
}
isRadio
=
{
true
}
companyList
=
{
tiktokCarriers
.
value
as
ICompanyList
[]}
valueKey
=
"name"
><
/LogisticsWaySelect
>
<
/el-form-item
>
)
:
(
...
...
@@ -574,16 +574,7 @@ const tableConfig = ref<TableColumn[]>([
<
/span
>
<
span
>
<
span
>
{
'物流名称:'
}
<
/span
>
{
el
.
platform
===
'TIKTOK'
?
(
<
span
class
=
"logistics-name"
>
{
tiktokCarriers
.
value
?.
flatMap
((
company
)
=>
company
.
wayList
)
?.
find
((
item
)
=>
el
.
logisticsName
===
item
.
id
)?.
name
||
el
.
logisticsName
}
<
/span
>
)
:
(
<
span
class
=
"logistics-name"
>
{
el
.
logisticsName
}
<
/span
>
)}
<
span
class
=
"logistics-name"
>
{
el
.
logisticsName
}
<
/span
>
<
/span
>
<
/div
>
)),
...
...
@@ -896,8 +887,6 @@ async function getAllList() {
if
(
index
==
0
)
{
warehouseList
.
value
=
item
.
value
.
data
||
[]
}
else
if
(
index
==
1
)
{
console
.
log
(
758
,
item
.
value
.
data
)
ruleNameList
.
value
=
(
item
.
value
.
data
as
never
[])
||
[]
}
else
if
(
index
==
2
)
{
platformList
.
value
=
(
item
.
value
.
data
as
never
[])
||
[]
...
...
@@ -910,8 +899,6 @@ async function getAllList() {
}
},
)
console
.
log
(
545
,
res
)
}
catch
(
error
)
{
console
.
log
(
error
)
}
...
...
@@ -943,7 +930,6 @@ async function getTiktokCarriers() {
})
})
tiktokCarriers
.
value
=
result
console
.
log
(
893
,
tiktokCarriers
.
value
)
}
/**
...
...
src/views/order/podCN/PodDistributionOrder.vue
View file @
283e4e3c
...
...
@@ -484,11 +484,14 @@ async function barcodeInput() {
barcode
.
value
=
''
isLock
.
value
=
true
console
.
log
(
'noObj'
,
noObj
.
value
)
/* 如果存在未提交数据,先提交再拉新包裹 */
const
keys
=
Object
.
keys
(
noObj
.
value
)
if
(
keys
.
length
)
{
const
pending
=
noObj
.
value
[
+
keys
[
0
]]
console
.
log
(
'pending'
,
pending
)
await
submitInspection
(
pending
,
async
()
=>
{
await
inputActive
()
await
getPackingData
(
code
)
...
...
@@ -498,6 +501,7 @@ async function barcodeInput() {
await
inputActive
()
await
getPackingData
(
code
)
}
isLock
.
value
=
false
}
async
function
submitInspection
(
objs
?:
OrderData
,
callback
?:
()
=>
void
)
{
const
result
=
objs
?
objs
:
testingData
.
value
...
...
@@ -586,15 +590,15 @@ async function printFile(data: OrderData) {
}
function
printOrderOne
(
item
:
OrderData
):
Promise
<
void
>
{
return
new
Promise
((
resolve
)
=>
{
/* 已有文件路径 / 数据 → 直接打印 */
if
(
item
.
filePath
||
item
.
fileData
)
{
props
.
printOrder
(
item
,
(
v
)
=>
{
// item.printStatus = v
console
.
log
(
'printOrder'
,
v
)
resolve
()
})
return
}
/
/ /
* 已有文件路径 / 数据 → 直接打印 */
//
if (item.filePath || item.fileData) {
//
props.printOrder(item, (v) => {
//
// item.printStatus = v
//
console.log('printOrder', v)
//
resolve()
//
})
//
return
//
}
/* 无文件 → 先拉取再打印 */
const
loading
=
ElLoading
.
service
({
background
:
'rgba(0,0,0,.3)'
})
...
...
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