Kaynağa Gözat

完善出库和退库

hfxc226 2 yıl önce
ebeveyn
işleme
8007d6f34c

+ 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()
   },