whj 1 년 전
부모
커밋
3a796b52ea
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/purchase/purchase-order-page/modules/BaseForm.vue

+ 4 - 2
src/views/purchase/purchase-order-page/modules/BaseForm.vue

@@ -100,7 +100,7 @@
             >
               <a-select v-decorator="['cdepcode', {rules: [{required: true, message: '申请部门不能为空'}]}]" placeholder="请选择">
                 <a-select-option
-                  v-for="(label,value) in deptMap"
+                  v-for="(label,value) in oldOrNew===2?deptMap:deptNewMap"
                   :key="value"
                   :label="label"
                   :value="value">{{ label }}
@@ -368,6 +368,7 @@ export default {
       infoNum: 0,
       cptcodeMap: {},
       deptMap: {},
+      deptNewMap: {},
       soMap: {},
       date: false,
       cbustypeMap: {},
@@ -380,7 +381,8 @@ export default {
     this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
     this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_TYPE)
     this.cptcodeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_ORDER_PLAN_TYPE)
-    this.deptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YONG_YOU_DEPT_NEW)
+    this.deptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YONG_YOU_DEPT)
+    this.deptNewMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YONG_YOU_DEPT_NEW)
     this.cbustypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_BUSINESS_TYPE)
     this.soMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SO_TYPE)
   },