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
dfe1976f
authored
Apr 22, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
f6bc895c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
2 deletions
index.html
pages/goods/addExectionReceiving.vue
pages/goods/addReceiving.vue
pages/home/index.vue
index.html
View file @
dfe1976f
pages/goods/addExectionReceiving.vue
View file @
dfe1976f
...
...
@@ -85,6 +85,7 @@
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
titleCase
}
from
'@/util/util.js'
;
import
w_md5
from
'../../js_sdk/zww-md5/w_md5.js'
;
export
default
{
...
...
@@ -146,8 +147,9 @@ export default {
this
.
form
.
info_pic
.
splice
(
index
,
1
);
},
scanChange
()
{
this
.
form
.
logistics_number
=
''
;
uni
.
scanCode
({
success
:
function
(
res
)
{
success
:
res
=>
{
console
.
log
(
res
);
if
(
res
.
errMsg
==
'scanCode:ok'
)
{
this
.
form
.
logistics_number
=
res
.
result
;
...
...
@@ -214,6 +216,26 @@ export default {
});
},
submit
()
{
if
(
this
.
delivery_method_index
==
0
)
{
if
(
!
this
.
form
.
logistics_company
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'请选择物流公司'
,
showCancel
:
false
});
return
false
;
}
if
(
!
this
.
form
.
logistics_number
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'请输入物流单号'
,
showCancel
:
false
});
return
false
;
}
}
if
(
this
.
form
.
info_pic
.
length
<=
0
)
{
uni
.
showModal
({
title
:
'提示'
,
...
...
@@ -229,6 +251,17 @@ export default {
return
false
;
}
//如果选择的fedex就截取后12位
if
(
this
.
delivery_method_index
==
0
)
{
let
str
=
this
.
form
.
logistics_number
;
this
.
form
.
logistics_number
=
str
.
substring
(
str
.
length
-
12
);
}
//自动转成大写
if
(
this
.
form
.
erp_order_sn
)
{
this
.
form
.
erp_order_sn
=
titleCase
(
this
.
form
.
erp_order_sn
);
}
this
.
request
(
API
.
addUnusualCheckIn
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showModal
({
...
...
pages/goods/addReceiving.vue
View file @
dfe1976f
...
...
@@ -126,8 +126,9 @@ export default {
});
},
scanChange
()
{
this
.
form
.
logistics_number
=
''
;
uni
.
scanCode
({
success
:
function
(
res
)
{
success
:
res
=>
{
console
.
log
(
res
);
if
(
res
.
errMsg
==
'scanCode:ok'
)
{
this
.
form
.
logistics_number
=
res
.
result
;
...
...
@@ -271,6 +272,12 @@ export default {
this
.
form
.
erp_order_sn
=
titleCase
(
this
.
form
.
erp_order_sn
);
//自动转成大写
//如果选择的fedex就截取后12位
if
(
this
.
index
==
0
)
{
let
str
=
this
.
form
.
logistics_number
;
this
.
form
.
logistics_number
=
str
.
substring
(
str
.
length
-
12
);
}
this
.
request
(
API
.
addCheckIn
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showToast
({
...
...
pages/home/index.vue
View file @
dfe1976f
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