hfxc226 2 лет назад
Родитель
Сommit
8007d6f34c
1 измененных файлов с 5 добавлено и 1 удалено
  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()
   },