Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
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
aa927e7c
authored
Oct 26, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
WMS二期容器必填改动
parent
d03db929
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
28 deletions
pages/tallyReceive/index.vue
pages/tallyReceive/operate.vue
pages/tallyReceive/index.vue
View file @
aa927e7c
...
@@ -570,21 +570,33 @@ export default {
...
@@ -570,21 +570,33 @@ export default {
* 一键理货提交
* 一键理货提交
*/
*/
createTallyReceiveSubmit
()
{
createTallyReceiveSubmit
()
{
if
(
!
this
.
searchParams
.
container_id
)
{
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填
uni
.
showToast
({
if
(
company_id
==
1
)
{
title
:
'请输入容器'
,
if
(
this
.
searchParams
.
container_id
)
{
icon
:
'none'
if
(
!
this
.
is_submit
)
{
});
uni
.
showToast
({
return
false
;
title
:
'请输入正确容器'
,
}
icon
:
'none'
if
(
!
this
.
is_submit
)
{
});
uni
.
showToast
({
return
false
;
title
:
'请输入正确容器'
,
}
icon
:
'none'
}
});
}
else
if
(
company_id
==
2
)
{
return
false
;
if
(
!
this
.
searchParams
.
container_id
)
{
uni
.
showToast
({
title
:
'请输入容器'
,
icon
:
'none'
});
return
false
;
}
if
(
!
this
.
is_submit
)
{
uni
.
showToast
({
title
:
'请输入正确容器'
,
icon
:
'none'
});
return
false
;
}
}
}
//当前登录组织为深贸电子才必填
//当前登录组织为深贸电子才必填
if
(
this
.
company_id
==
2
)
{
if
(
this
.
company_id
==
2
)
{
if
(
this
.
formParams
.
image_ids
.
length
<=
0
)
{
if
(
this
.
formParams
.
image_ids
.
length
<=
0
)
{
...
@@ -621,20 +633,34 @@ export default {
...
@@ -621,20 +633,34 @@ export default {
});
});
},
},
showDrawer
()
{
showDrawer
()
{
if
(
!
this
.
searchParams
.
container_id
)
{
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填
uni
.
showToast
({
if
(
company_id
==
1
)
{
title
:
'请输入容器'
,
if
(
this
.
searchParams
.
container_id
)
{
icon
:
'error'
if
(
!
this
.
is_submit
)
{
});
uni
.
showToast
({
return
false
;
title
:
'请输入正确容器'
,
}
icon
:
'none'
if
(
!
this
.
is_submit
)
{
});
uni
.
showToast
({
return
false
;
title
:
'请输入正确容器'
,
}
icon
:
'error'
}
});
}
else
if
(
company_id
==
2
)
{
return
false
;
if
(
!
this
.
searchParams
.
container_id
)
{
uni
.
showToast
({
title
:
'请输入容器'
,
icon
:
'error'
});
return
false
;
}
if
(
!
this
.
is_submit
)
{
uni
.
showToast
({
title
:
'请输入正确容器'
,
icon
:
'error'
});
return
false
;
}
}
}
if
(
this
.
filter_id
.
length
==
0
)
{
if
(
this
.
filter_id
.
length
==
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请选择货品'
,
title
:
'请选择货品'
,
...
...
pages/tallyReceive/operate.vue
View file @
aa927e7c
...
@@ -770,7 +770,7 @@ export default {
...
@@ -770,7 +770,7 @@ export default {
const
dcRegex
=
/^
\d{4}
$/
;
// 匹配四位数字
const
dcRegex
=
/^
\d{4}
$/
;
// 匹配四位数字
if
(
!
dcRegex
.
test
(
this
.
formParams
.
date_code
))
{
if
(
!
dcRegex
.
test
(
this
.
formParams
.
date_code
))
{
uni
.
showModal
({
uni
.
showModal
({
itle
:
'提示'
,
t
itle
:
'提示'
,
content
:
'D/C必须为四位数字'
,
content
:
'D/C必须为四位数字'
,
showCancel
:
false
showCancel
:
false
});
});
...
...
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