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
1f9660bc
Commit
1f9660bc
authored
Jan 21, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!143
parents
a5b53ea8
f538ce7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
21 deletions
+45
-21
src/views/order/podCN/PodMakeOrder.vue
+12
-1
src/views/order/podCN/components/WeightDialog.vue
+29
-14
src/views/order/podCN/components/weigh.ts
+4
-6
No files found.
src/views/order/podCN/PodMakeOrder.vue
View file @
1f9660bc
...
...
@@ -792,7 +792,18 @@ const initOrderDetailBox = async () => {
if
(
d
.
productMark
===
'normal'
||
d
.
productMark
===
'custom_normal'
)
{
d
.
previewImgs
=
[{
url
:
d
.
variantImage
||
''
}]
}
else
{
if
(
!
d
.
previewImgs
)
d
.
previewImgs
=
JSON
.
parse
(
d
.
imageAry
||
'[]'
)
if
(
!
d
.
previewImgs
)
{
try
{
d
.
previewImgs
=
JSON
.
parse
(
d
.
imageAry
||
'[]'
)
}
catch
{
console
.
log
(
'生产订单:'
,
d
)
// 只有是有效URL才创建对象
d
.
previewImgs
=
d
.
imageAry
?.
startsWith
?.(
'http'
)
?
[{
url
:
d
.
imageAry
,
sort
:
1
,
title
:
'正'
}]
:
[]
}
}
}
})
})
...
...
src/views/order/podCN/components/WeightDialog.vue
View file @
1f9660bc
<
template
>
<div>
<el-dialog
v-model=
"isweight"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
title=
"称重分拣"
:before-close=
"handleClose"
v-model=
"isweight"
width=
"1200px"
>
<div
...
...
@@ -17,18 +17,18 @@
"
>
<el-select
style=
"width: 100px; height: 100%; margin-right: 5px"
v-model=
"selectType"
style=
"width: 100px; height: 100%; margin-right: 5px"
placeholder=
""
>
<el-option
label=
"跟踪号"
value=
"trackingNumber"
></el-option>
<el-option
label=
"店铺单号"
value=
"shopNumber"
></el-option>
</el-select>
<input
ref=
"weighInput"
v-model
.
lazy=
"weightText"
class=
"inputWeight"
@
keyup
.
enter=
"weightChange"
style=
"flex: 1; border: 3px solid blue"
ref=
"weighInput"
:placeholder=
"
weight.weightInput
? selectType === 'trackingNumber'
...
...
@@ -36,12 +36,12 @@
: '请输入店铺单号'
: '请输入重量'
"
v-model
.
lazy=
"weightText
"
@
keyup
.
enter=
"weightChange
"
/>
<el-select
style=
"flex: 1"
v-model=
"logisticsCompanyCode"
style=
"flex: 1"
placeholder=
"物流公司"
filterable
clearable
...
...
@@ -59,9 +59,9 @@
<div>
<CustomizeTable
ref=
"tableRef"
border
:isShowCheckBox=
"false"
v-model=
"tableData"
border
:is-show-check-box=
"false"
height=
"400px"
:config=
"tableConfig"
align=
"center"
...
...
@@ -302,10 +302,18 @@ const weightGet = async () => {
background
:
'rgba(0, 0, 0, 0.3)'
,
})
try
{
await
orderWeighingApi
({
podCnWeighingParams
:
tableData
.
value
})
ElMessage
.
success
(
'保存称重分拣成功'
)
handleClose
()
emits
(
'updateList'
)
orderWeighingApi
({
podCnWeighingParams
:
tableData
.
value
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
weight
.
clear
()
ElMessage
.
success
(
'保存称重分拣成功'
)
handleClose
()
emits
(
'updateList'
)
}
else
{
ElMessage
.
error
(
res
.
message
)
handleClose
()
emits
(
'updateList'
)
}
})
}
catch
(
error
)
{
console
.
log
(
error
)
}
finally
{
...
...
@@ -315,7 +323,6 @@ const weightGet = async () => {
const
open
=
()
=>
{
isweight
.
value
=
true
weight
.
clear
()
tableData
.
value
=
[]
selectType
.
value
=
'trackingNumber'
logisticsCompanyCode
.
value
=
''
...
...
@@ -333,4 +340,12 @@ defineExpose({
})
</
script
>
<
style
scoped
></
style
>
<
style
scoped
>
.inputWeight
{
color
:
#666
;
}
.inputWeight
::placeholder
{
color
:
#aaa
;
}
</
style
>
src/views/order/podCN/components/weigh.ts
View file @
1f9660bc
...
...
@@ -323,14 +323,12 @@ class Weigh extends Lock {
playAudio
(
key
:
AudioKey
,
message
?:
string
):
void
{
const
messageMap
:
Record
<
AudioKey
,
string
>
=
{
weight_warning
:
`请录入
${
this
.
selectType
===
'trackingNumber'
?
'跟踪号'
:
'店铺单号'
}
或重量`
,
weight_warning
:
`请录入
${
this
.
selectType
===
'trackingNumber'
?
'跟踪号'
:
'店铺单号'
}
或重量`
,
weight_success
:
''
,
weight_repeat
:
'重复录入'
,
weight_search_error
:
`请录入
${
this
.
selectType
===
'trackingNumber'
?
'跟踪号'
:
'店铺单号'
}
或重量`
,
weight_search_error
:
`请录入
${
this
.
selectType
===
'trackingNumber'
?
'跟踪号'
:
'店铺单号'
}
或重量`
,
weight_search_success
:
''
,
}
...
...
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