Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pda-scan
Commits
2ed215d1
Commit
2ed215d1
authored
Jul 09, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
f3483343
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
34 deletions
+43
-34
packing.vue
pages/packing/packing.vue
+8
-5
index.vue
pages/sendOutGoodsOff/index.vue
+35
-29
No files found.
pages/packing/packing.vue
View file @
2ed215d1
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<relationships
v-show=
"current === 0"
:list=
"goodsList"
@
deleGonds=
"deleGonds"
/>
<relationships
v-show=
"current === 0"
:list=
"goodsList"
@
deleGonds=
"deleGonds"
/>
<metering
v-show=
"current === 1"
:form=
"form"
/>
<metering
v-show=
"current === 1"
:form=
"form"
/>
<unpacking
v-show=
"current === 2"
/>
<unpacking
v-show=
"current === 2"
/>
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
v-if=
"current
=== 0
"
></BottomBtn>
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
v-if=
"current
!== 2
"
></BottomBtn>
</view>
</view>
</
template
>
</
template
>
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
this
.
$u
.
toast
(
'暂无提交数据'
);
this
.
$u
.
toast
(
'暂无提交数据'
);
return
return
}
}
if
(
!
this
.
blNum
)
{
if
(
!
this
.
blNum
&&
this
.
form
.
ZZXFS
===
'BL+PL'
)
{
this
.
$u
.
toast
(
'请扫描箱码'
);
this
.
$u
.
toast
(
'请扫描箱码'
);
return
return
}
}
...
@@ -171,9 +171,7 @@
...
@@ -171,9 +171,7 @@
}
}
if
(
res
.
every
((
item
)
=>
item
.
TYPE
===
'S'
))
{
if
(
res
.
every
((
item
)
=>
item
.
TYPE
===
'S'
))
{
this
.
$u
.
toast
(
res
[
0
].
MESSAGE
);
this
.
$u
.
toast
(
res
[
0
].
MESSAGE
);
setTimeout
(()
=>
{
this
.
resetData
()
this
.
goBack
()
},
1000
)
}
}
const
foundObject
=
res
.
find
(
item
=>
item
.
TYPE
===
'E'
);
const
foundObject
=
res
.
find
(
item
=>
item
.
TYPE
===
'E'
);
if
(
foundObject
&&
foundObject
.
MESSAGE
)
{
if
(
foundObject
&&
foundObject
.
MESSAGE
)
{
...
@@ -181,6 +179,11 @@
...
@@ -181,6 +179,11 @@
}
}
});
});
},
},
// 重置数据
resetData
()
{
this
.
goodsList
=
[];
this
.
form
.
brgew
=
''
},
// 删除
// 删除
deleGonds
(
idx
)
{
deleGonds
(
idx
)
{
this
.
goodsList
.
splice
(
idx
,
1
);
this
.
goodsList
.
splice
(
idx
,
1
);
...
...
pages/sendOutGoodsOff/index.vue
View file @
2ed215d1
...
@@ -28,7 +28,9 @@
...
@@ -28,7 +28,9 @@
<
script
>
<
script
>
import
BottomBtn
from
'@/components/BottomBtn/index.vue'
;
import
BottomBtn
from
'@/components/BottomBtn/index.vue'
;
import
StickyNavBar
from
'@/components/StickyNavBar/index.vue'
;
import
StickyNavBar
from
'@/components/StickyNavBar/index.vue'
;
import
{
parseTime
}
from
"@/utils/ruoyi"
;
import
{
parseTime
}
from
"@/utils/ruoyi"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -58,31 +60,31 @@
...
@@ -58,31 +60,31 @@
},
},
methods
:
{
methods
:
{
handleInputPlnr
(
e
)
{
handleInputPlnr
(
e
)
{
if
(
this
.
goodsList
.
some
((
item
)
=>
item
.
ZCODE
===
e
||
item
.
PLNR
===
e
))
{
if
(
this
.
goodsList
.
some
((
item
)
=>
item
.
ZCODE
===
e
||
item
.
PLNR
===
e
))
{
this
.
$u
.
toast
(
'已经存在当前条码'
);
this
.
$u
.
toast
(
'已经存在当前条码'
);
this
.
reset
()
this
.
reset
()
return
return
}
}
// bl 长度 15 pl 长度 80
// bl 长度 15 pl 长度 80
const
bl
=
e
.
length
<=
15
&&
e
.
length
>=
13
;
const
bl
=
e
.
length
<=
15
&&
e
.
length
>=
13
;
const
pl
=
e
.
length
>
15
const
pl
=
e
.
length
>
15
if
(
bl
)
{
if
(
bl
)
{
this
.
isFocus
=
false
;
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
this
.
isDisabled
=
true
;
this
.
goodsList
.
push
({
this
.
goodsList
.
push
({
ZCODE
:
e
,
ZCODE
:
e
,
PLNR
:
''
PLNR
:
''
})
})
this
.
reset
()
this
.
reset
()
}
else
if
(
pl
)
{
}
else
if
(
pl
)
{
this
.
isFocus
=
false
;
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
this
.
isDisabled
=
true
;
this
.
goodsList
.
push
({
this
.
goodsList
.
push
({
PLNR
:
e
,
PLNR
:
e
,
ZCODE
:
''
ZCODE
:
''
})
})
this
.
reset
()
this
.
reset
()
}
}
},
},
deleGonds
(
index
)
{
deleGonds
(
index
)
{
this
.
goodsList
.
splice
(
index
,
1
)
this
.
goodsList
.
splice
(
index
,
1
)
...
@@ -94,18 +96,21 @@
...
@@ -94,18 +96,21 @@
this
.
wxparams
=
''
this
.
wxparams
=
''
},
1000
);
},
1000
);
},
},
goBack
()
{
uni
.
navigateBack
()
},
getBtnHandle
(
row
)
{
getBtnHandle
(
row
)
{
console
.
log
(
'getBtnHandle'
,
row
);
console
.
log
(
'getBtnHandle'
,
row
);
this
[
row
.
way
]();
this
[
row
.
way
]();
},
},
// 提交
// 提交
goSubmit
()
{
goSubmit
()
{
if
(
!
this
.
goodsList
.
length
)
{
if
(
!
this
.
goodsList
.
length
)
{
return
this
.
$u
.
toast
(
'请扫描需要下架的箱条码/外箱码'
)
return
this
.
$u
.
toast
(
'请扫描需要下架的箱条码/外箱码'
)
}
}
const
DATUM
=
parseTime
(
new
Date
(),
'{y}{m}{d}'
),
const
DATUM
=
parseTime
(
new
Date
(),
'{y}{m}{d}'
),
UNAME
=
this
.
vuex_user
.
nickName
,
UNAME
=
this
.
vuex_user
.
nickName
,
UZEIT
=
parseTime
(
new
Date
(),
'{h}{i}{s}'
);
UZEIT
=
parseTime
(
new
Date
(),
'{h}{i}{s}'
);
const
arr
=
this
.
goodsList
const
arr
=
this
.
goodsList
this
.
$u
.
api
.
sapApi
this
.
$u
.
api
.
sapApi
.
sapCasePlnr2
(
arr
)
.
sapCasePlnr2
(
arr
)
...
@@ -132,11 +137,12 @@
...
@@ -132,11 +137,12 @@
flex
:
1
;
flex
:
1
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
page
{
page
{
background
:
#f8f8f8
;
background
:
#f8f8f8
;
}
}
/
deep
/
.u-sticky
{
/
deep
/
.u-sticky
{
top
:
0
!
important
;
top
:
0
!
important
;
background
:
#fff
;
background
:
#fff
;
}
}
...
@@ -144,11 +150,12 @@
...
@@ -144,11 +150,12 @@
.btn
{
.btn
{
padding
:
20rpx
;
padding
:
20rpx
;
background
:
#fff
;
background
:
#fff
;
.boxSelect
{
.boxSelect
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
}
}
}
}
.cardContent
{
.cardContent
{
border-radius
:
8px
;
border-radius
:
8px
;
background
:
#fff
;
background
:
#fff
;
...
@@ -177,5 +184,4 @@
...
@@ -177,5 +184,4 @@
font-weight
:
600
;
font-weight
:
600
;
}
}
}
}
</
style
>
</
style
>
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