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
96966002
authored
Apr 27, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
50f6ed15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
pages/tallyReceive/index.vue
pages/tallyReceive/operate.vue
pages/tallyReceive/index.vue
View file @
96966002
...
...
@@ -202,8 +202,10 @@ export default {
}
},
onShow
()
{
this
.
getData
();
this
.
getTallyContainer
();
if
(
this
.
noexebshowFalg
)
{
this
.
getData
();
this
.
getTallyContainer
();
}
},
methods
:
{
/**
...
...
@@ -342,6 +344,13 @@ export default {
});
return
false
;
}
if
(
this
.
indexContainer
==
-
1
)
{
uni
.
showToast
({
title
:
'请选择容器'
,
icon
:
'error'
});
return
false
;
}
this
.
formParams
.
container_id
=
this
.
tallyContainer
[
this
.
indexContainer
].
id
;
this
.
showDrawer
();
},
...
...
@@ -350,7 +359,7 @@ export default {
*/
createTallyReceiveSubmit
()
{
var
params
=
Object
.
assign
(
this
.
formParams
,
{
stock_in_item_id
:
JSON
.
stringify
(
this
.
filter_id
)
stock_in_item_id
:
this
.
filter_id
.
join
(
','
)
});
this
.
request
(
API
.
createTallyReceive
,
'POST'
,
params
,
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
...
...
pages/tallyReceive/operate.vue
View file @
96966002
...
...
@@ -207,13 +207,17 @@ export default {
this
.
stock_in_id
=
options
.
stock_in_id
||
''
;
},
onShow
()
{
this
.
getData
();
this
.
getTallyContainer
();
if
(
this
.
noexebshowFalg
)
{
this
.
getData
();
this
.
getTallyContainer
();
}
},
watch
:
{
image_list
(
arr
)
{
if
(
arr
.
length
>
0
)
{
this
.
formParams
.
image_ids
=
arr
.
join
(
','
);
}
else
{
this
.
formParams
.
image_ids
=
''
;
}
}
},
...
...
@@ -397,7 +401,7 @@ export default {
* @param {Object} index
*/
previewChange
(
img
,
index
)
{
this
.
noexebshowFalg
=
false
;
this
.
noexebshowFalg
=
false
;
//不允许再次触发onshow这个生命周期
uni
.
previewImage
({
current
:
index
,
urls
:
img
...
...
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