Browse Source

完善出库和退库

hfxc226 2 years ago
parent
commit
8007d6f34c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/store/outstoreform/OutStoreFormYY.vue

+ 5 - 1
src/views/store/outstoreform/OutStoreFormYY.vue

@@ -205,7 +205,11 @@ export default {
   },
   created () {
     // 下拉框map
-    this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_TYPE)
+    if (this.isOut === 1) {
+      this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_TYPE)
+    } else {
+      this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SPARE_BACK_FORM_TYPE)
+    }
     this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.OUT_STORE_FORM_STATUS)
     this.tableOption()
   },