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
680c5a15
authored
Oct 24, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
4ea3a9bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
34 deletions
pages/arrivalRegister/index.vue
pages/arrivalRegister/index.vue
View file @
680c5a15
...
@@ -989,43 +989,68 @@ export default {
...
@@ -989,43 +989,68 @@ export default {
return
false
;
return
false
;
}
}
//先判断一下自营货品信息
//深圳自营仓
this
.
request
(
API
.
getZyGoodsData
,
'GET'
,
{
stock_in_sn
:
this
.
filter_id_stock_in_sn
.
join
(
','
),
is_first_check
:
1
},
true
).
then
(
res
=>
{
if
(
this
.
filter_id_warehouse_id
[
0
]
==
9
)
{
if
(
res
.
code
===
0
)
{
//先判断一下自营货品信息
if
(
res
.
data
.
length
>
0
)
{
this
.
request
(
API
.
getZyGoodsData
,
'GET'
,
{
stock_in_sn
:
this
.
filter_id_stock_in_sn
.
join
(
','
),
is_first_check
:
1
},
true
).
then
(
res
=>
{
this
.
getOtherAttrList
();
if
(
res
.
code
===
0
)
{
this
.
showDrawer
(
decodeURIComponent
(
this
.
filter_id_stock_in_sn
.
join
(
','
)),
1
);
if
(
res
.
data
.
length
>
0
)
{
this
.
getOtherAttrList
();
this
.
showDrawer
(
decodeURIComponent
(
this
.
filter_id_stock_in_sn
.
join
(
','
)),
1
);
}
else
{
this
.
request
(
API
.
addStockInRegister
,
'POST'
,
{
stock_in_id
:
JSON
.
stringify
(
stock_in_id
)
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
uni
.
showToast
({
title
:
'登记成功'
,
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
this
.
filter_id
=
[];
this
.
filter_id_warehouse_id
=
[];
},
2000
);
}
else
{
uni
.
showModal
({
itle
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
});
}
});
}
}
else
{
}
else
{
this
.
request
(
API
.
addStockInRegister
,
'POST'
,
{
stock_in_id
:
JSON
.
stringify
(
stock_in_id
)
},
true
).
then
(
res
=>
{
uni
.
showModal
({
if
(
res
.
code
===
0
)
{
title
:
'提示'
,
uni
.
showToast
({
content
:
res
.
msg
,
title
:
'登记成功'
,
showCancel
:
false
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
this
.
filter_id
=
[];
this
.
filter_id_warehouse_id
=
[];
},
2000
);
}
else
{
uni
.
showModal
({
itle
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
});
}
});
});
}
}
}
else
{
});
uni
.
showModal
({
}
else
{
title
:
'提示'
,
this
.
request
(
API
.
addStockInRegister
,
'POST'
,
{
stock_in_id
:
JSON
.
stringify
(
stock_in_id
)
},
true
).
then
(
res
=>
{
content
:
res
.
msg
,
if
(
res
.
code
===
0
)
{
showCancel
:
false
uni
.
showToast
({
});
title
:
'登记成功'
,
}
icon
:
'success'
});
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
this
.
filter_id
=
[];
this
.
filter_id_warehouse_id
=
[];
},
2000
);
}
else
{
uni
.
showModal
({
itle
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
});
}
});
}
},
},
/**
/**
* @param {Object} stock_in_sn
* @param {Object} stock_in_sn
...
...
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