linwenxin пре 1 година
родитељ
комит
cd89f701da
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/views/setting/account.vue

+ 4 - 1
src/views/setting/account.vue

@@ -650,10 +650,13 @@ export default {
           })
         })
       })
-      this.adminUserId_jl = null
+      if(!pams.length){
+        return this.$errorMsg('至少选择一项强制仓')
+      }
       stockForceUserAdd({
         adminUserForceStocks:pams
       }).then(res=>{
+        this.adminUserId_jl = null
         this.resetForcedHold = false
         this.$successMsg('设置成功')
       })