Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
26b9ca7c
"litemall-admin-api/src/vscode:/vscode.git/clone" did not exist on "cc2bccf27d281b71b3bccb0441f4e9e0c9d4492d"
Commit
26b9ca7c
authored
Aug 08, 2019
by
季圣华
Browse files
优化默认仓库的加载逻辑
parent
fd1c7e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/in_out.js
View file @
26b9ca7c
...
...
@@ -221,18 +221,21 @@
options = "";
for(var i = 0 ;i < depotList.length;i++) {
var depot = depotList[i];
if(depot.isDefault){
defDepotId = depot.id;
}
var config = getSystemConfig();
if(config && config.depotFlag == "1") {
if(userdepot!=null) {
if(userdepot.indexOf("["+depot.id+"]")!=-1) {
if(depot.isDefault){
defDepotId = depot.id;
}
options += '<option value="' + depot.id + '">' + depot.name + '</option>';
depotString = depotString + depot.id + ",";
}
}
} else {
if(depot.isDefault){
defDepotId = depot.id;
}
depotString = depotString + depot.id + ",";
}
if(depot.type === 1){
...
...
Write
Preview
Supports
Markdown
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