From 26b9ca7c5d3893ed2cbc76dd48fc12eee3262b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 8 Aug 2019 22:35:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E7=9A=84=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/js/pages/materials/in_out.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/erp_web/js/pages/materials/in_out.js b/erp_web/js/pages/materials/in_out.js index 62d89fd3..a8222bf4 100644 --- a/erp_web/js/pages/materials/in_out.js +++ b/erp_web/js/pages/materials/in_out.js @@ -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 += ''; depotString = depotString + depot.id + ","; } } } else { + if(depot.isDefault){ + defDepotId = depot.id; + } depotString = depotString + depot.id + ","; } if(depot.type === 1){