408249787 11 months ago
parent
commit
dc06e7c5d2
1 changed files with 16 additions and 15 deletions
  1. 16 15
      src/utils/dict.js

+ 16 - 15
src/utils/dict.js

@@ -9,57 +9,57 @@ const DictCache = {
   DICT_OBJ_BY_VALUE: 'dict:value:obj',
   DICT_CHILDREN_ALL: 'dict:children-all',
   CONFIG_OPEN_VALUE: 'config:open:value',
-  baseGet (key) {
+  baseGet(key) {
     return Vue.ls.get(this.BASE_DATA_CACHE)[key]
   },
-  getConfigValueByType (type) {
+  getConfigValueByType(type) {
     return this.baseGet(this.CONFIG_OPEN_VALUE)[type]
   },
-  getChildren (type, value, childValue) {
+  getChildren(type, value, childValue) {
     const children = this.baseGet(this.DICT_CHILDREN)[type]
     const child = children[value]
     return child[childValue]
   },
-  getChildrenMapByType (type, value) {
+  getChildrenMapByType(type, value) {
     const children = this.baseGet(this.DICT_CHILDREN)[type]
     return children[value]
   },
-  getLabelByValue (type, value) {
+  getLabelByValue(type, value) {
     const child = this.baseGet(this.DICT_LABEL_BY_VALUE)[type]
     return child[value]
   },
-  getObjByValue (type, value) {
+  getObjByValue(type, value) {
     const child = this.baseGet(this.DICT_OBJ_BY_VALUE)[type]
     return child[value]
   },
-  getLabelByValueMapByType (type) {
+  getLabelByValueMapByType(type) {
     return this.baseGet(this.DICT_LABEL_BY_VALUE)[type]
   },
-  getValueByLabel (type, label) {
+  getValueByLabel(type, label) {
     const child = this.baseGet(this.DICT_LABEL_BY_LABEL)[type]
     return child[label]
   },
-  getValueByLabelMapByType (type) {
+  getValueByLabelMapByType(type) {
     return this.baseGet(this.DICT_LABEL_BY_LABEL)[type]
   },
-  getValueByCode (type, code) {
+  getValueByCode(type, code) {
     const child = this.baseGet(this.DICT_VALUE_BY_CODE)[type]
     return child[code]
   },
-  getValueByCodeMapByType (type) {
+  getValueByCodeMapByType(type) {
     return this.baseGet(this.DICT_VALUE_BY_CODE, type)
   },
-  getChildrenList (type) {
+  getChildrenList(type) {
     return this.baseGet(this.DICT_CHILDREN_ALL)[type]
   },
-  whetherLabel (b) {
+  whetherLabel(b) {
     if (b) {
       return DictCache.TYPE.WHETHER[1]
     } else {
       return DictCache.TYPE.WHETHER[0]
     }
   },
-  whetherColor (b) {
+  whetherColor(b) {
     if (b) {
       return DictCache.COLOR.WHETHER[1]
     } else {
@@ -419,7 +419,8 @@ DictCache.VALUE = {
     'sb_info_scrap': '设备报废审批', // 报废
     'sb_info_stop': '设备停用审批', // 停用
     'sb_info_allocate': '设备调拨审批', // 调拨
-    'out_store_back': '仓库审批' // 调拨
+    'out_store_back': '仓库审批', // 调拨
+    'out_store_back_gwl_1': '仓库审批' // 调拨
   },
   CUSTOM_TEMPLATE_SB_REMARK_NUMBER: {
     SB_FIELD_TYPE: 1,