Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6b8197c5
authored
Sep 19, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提示
parent
18ba86ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
pages/tallyGoods/confirm.vue
pages/tallyGoods/confirm.vue
View file @
6b8197c5
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"submit()"
>
确认提交
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"submit()"
:class=
"{ disabled: disabled }"
>
确认提交
</view>
</view>
</view>
</template>
</template>
...
@@ -220,6 +220,7 @@ export default {
...
@@ -220,6 +220,7 @@ export default {
getTallyGoods
()
{
getTallyGoods
()
{
this
.
request
(
API
.
getTallyGoods
,
'GET'
,
{
erp_order_sn
:
this
.
form
.
erp_order_sn
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
getTallyGoods
,
'GET'
,
{
erp_order_sn
:
this
.
form
.
erp_order_sn
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
this
.
disabled
=
false
;
this
.
isInspOrg
=
Boolean
(
res
.
data
.
isInspOrg
);
//是否商检
this
.
isInspOrg
=
Boolean
(
res
.
data
.
isInspOrg
);
//是否商检
this
.
list
=
res
.
data
.
entrys
;
this
.
list
=
res
.
data
.
entrys
;
const
length
=
res
.
data
.
entrys
.
length
;
const
length
=
res
.
data
.
entrys
.
length
;
...
@@ -230,6 +231,7 @@ export default {
...
@@ -230,6 +231,7 @@ export default {
goods_check_pic
:
''
goods_check_pic
:
''
}));
}));
}
else
{
}
else
{
this
.
disabled
=
true
;
this
.
list
=
[];
this
.
list
=
[];
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
err_msg
,
title
:
res
.
err_msg
,
...
@@ -447,7 +449,7 @@ export default {
...
@@ -447,7 +449,7 @@ export default {
}
}
if
(
this
.
disabled
)
{
if
(
this
.
disabled
)
{
uni
.
showModal
({
uni
.
showModal
({
content
:
'
该入仓号已经理货,禁止重复理货
'
,
content
:
'
请检查该入仓号是否正确
'
,
showCancel
:
false
showCancel
:
false
});
});
return
false
;
return
false
;
...
@@ -473,6 +475,19 @@ export default {
...
@@ -473,6 +475,19 @@ export default {
});
});
return
false
;
return
false
;
}
}
if
(
this
.
isInspOrg
)
{
// 使用every方法检查每个子数组是否满足条件
var
isValid
=
this
.
goods_check_pic_list
.
every
(
subArray
=>
subArray
.
length
>=
2
);
if
(
!
isValid
)
{
uni
.
showModal
({
content
:
'商检图片上传须大于2张'
,
showCancel
:
false
});
return
false
;
}
}
this
.
request
(
API
.
submitTallyGoods
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
this
.
request
(
API
.
submitTallyGoods
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
uni
.
showModal
({
uni
.
showModal
({
...
...
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