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
432ab023
authored
Jul 03, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
理货操作页面-产地默认填充进去
parent
87f780c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
pages/tallyReceive/operate.vue
pages/transfer/index.vue
pages/tallyReceive/operate.vue
View file @
432ab023
...
...
@@ -205,6 +205,7 @@ import debounce from 'lodash/debounce';
export
default
{
data
()
{
return
{
coo
:
''
,
//产地
is_submit
:
true
,
stock_in_item_id
:
''
,
stock_in_id
:
''
,
...
...
@@ -252,7 +253,6 @@ export default {
onShow
()
{
if
(
this
.
noexebshowFalg
)
{
this
.
getData
();
this
.
getUseOption
();
}
},
watch
:
{
...
...
@@ -275,6 +275,19 @@ export default {
}
},
/**
* @param {Object} arr
* @param {Object} target
*/
findIndex
(
arr
,
target
)
{
const
result
=
[];
arr
.
map
((
item
,
index
)
=>
{
if
(
item
.
coo_en
===
target
)
{
result
.
push
(
index
);
}
});
return
result
;
},
/**
* 监听理货数量
*/
handleInputNumber
:
debounce
(
function
(
event
,
wait_tally_qty
)
{
...
...
@@ -402,6 +415,11 @@ export default {
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
length
>
0
)
{
this
.
useOption
=
res
.
data
;
let
filter_arr
=
this
.
findIndex
(
res
.
data
,
this
.
coo
);
if
(
filter_arr
.
length
>
0
)
{
this
.
useOptionIndex
=
filter_arr
[
0
];
this
.
formParams
.
coo
=
res
.
data
[
this
.
useOptionIndex
].
coo_en
;
}
}
}
else
{
uni
.
showToast
({
...
...
@@ -421,6 +439,9 @@ export default {
this
.
detail
=
res
.
data
.
list
[
0
];
this
.
formParams
.
tally_qty
=
res
.
data
.
list
[
0
].
wait_tally_qty
;
this
.
formParams
.
date_code
=
res
.
data
.
list
[
0
].
expect_date_code
;
this
.
coo
=
res
.
data
.
list
[
0
].
coo_key
;
//产地
this
.
getUseOption
();
//初始化产地
if
(
res
.
data
.
list
[
0
].
mobile_default_img
)
{
this
.
image_list
=
res
.
data
.
list
[
0
].
mobile_default_img
.
split
(
','
);
}
else
{
...
...
pages/transfer/index.vue
View file @
432ab023
...
...
@@ -70,7 +70,6 @@ export default {
}
};
},
onLoad
()
{},
onShow
()
{
this
.
getData
();
},
...
...
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