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
363e801d
authored
Mar 31, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
6ce01c6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
pages/goods/addReceiving.vue
pages/goods/addReceiving.vue
View file @
363e801d
...
...
@@ -108,6 +108,7 @@ import w_md5 from '../../js_sdk/zww-md5/w_md5.js';
export
default
{
data
()
{
return
{
noexebshowFalg
:
true
,
//控制是否会触发生命周期
array
:
[
'FedEx'
,
'DHL'
,
'UPS'
,
'顺丰'
,
'Air'
],
textArr
:
[
'物流'
,
'送货'
,
'上门取货'
],
unitArr
:
[
'件'
,
'箱'
],
...
...
@@ -133,9 +134,10 @@ export default {
onLoad
(
options
)
{
this
.
id
=
options
.
number
;
},
watch
:
{},
onShow
()
{
this
.
getData
();
if
(
this
.
noexebshowFalg
)
{
this
.
getData
();
}
},
methods
:
{
getData
()
{
...
...
@@ -168,6 +170,7 @@ export default {
});
},
previewChange
(
img
,
index
)
{
this
.
noexebshowFalg
=
false
;
//不允许再次触发onshow这个生命周期
uni
.
previewImage
({
current
:
index
,
urls
:
img
...
...
@@ -177,6 +180,7 @@ export default {
this
.
form
.
check_in_pic
.
splice
(
index
,
1
);
},
chooseImageChange
()
{
this
.
noexebshowFalg
=
false
;
//不允许再次触发onshow这个生命周期
var
self
=
this
;
var
time
=
parseInt
(
new
Date
().
getTime
()
/
1000
);
uni
.
chooseImage
({
...
...
@@ -239,10 +243,10 @@ export default {
this
.
form
.
delivery_method
=
index
+
1
;
}
else
if
(
type
==
2
)
{
this
.
unitIndex
=
index
;
if
(
index
==
0
)
{
this
.
form
.
unit
=
'件'
}
else
if
(
index
==
1
)
{
this
.
form
.
unit
=
'箱'
if
(
index
==
0
)
{
this
.
form
.
unit
=
'件'
;
}
else
if
(
index
==
1
)
{
this
.
form
.
unit
=
'箱'
;
}
}
},
...
...
@@ -254,16 +258,16 @@ export default {
this
.
index
=
e
.
target
.
value
;
this
.
form
.
logistics_company
=
this
.
array
[
e
.
target
.
value
];
},
submit
()
{
if
(
!
this
.
form
.
total_num
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'输入登记数量'
,
showCancel
:
false
});
return
false
;
}
submit
()
{
if
(
!
this
.
form
.
total_num
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'输入登记数量'
,
showCancel
:
false
});
return
false
;
}
this
.
request
(
API
.
addCheckIn
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showToast
({
...
...
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