1 ano atrás
pai
commit
94e0e18b58

+ 1 - 0
src/utils/dict.js

@@ -128,6 +128,7 @@ DictCache.TYPE = {
   OUT_STORE_FORM_DEPT_CODE: 'OUT_STORE_FORM_DEPT_CODE', // 用友对应的部门code
   SBB: 'SBB', // 用友设备部下面对应的部门code
   DEPT_TYPE_LY: 'DEPT_TYPE_LY', // 龙岩思康新材料有限公司的部门code
+  DEPT_TYPE_SD: 'DEPT_TYPE_SD', // 时代思康新材料有限公司的部门code
 
   FEE_FORM_TYPE: 'FEE_FORM_TYPE', // 成本归属
   OUT_STORE_FORM_STATUS: 'OUT_STORE_FORM_STATUS', // 出库状态

+ 4 - 2
src/views/store/outstoreform/modules/BaseFormYY.vue

@@ -196,7 +196,7 @@
             :labelCol="BaseTool.Constant.labelCol"
             :wrapperCol="BaseTool.Constant.wrapperCol"
           >
-            <a-select v-decorator="['applyDept', {rules: [{required: true, message: '部门不能为空'}]}]" placeholder="请选择">
+            <a-select v-decorator="['deptId', {rules: [{required: true, message: '部门不能为空'}]}]" placeholder="请选择">
               <a-select-option
                 v-for="(label,value) in (tokenType===1?lyDeptMap:sdDeptMap)"
                 :key="value"
@@ -395,7 +395,9 @@ export default {
     this.getSbPositions()
     this.feeFromMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.FEE_FORM_TYPE)
     this.lyDeptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.DEPT_TYPE_LY)
-
+    this.sdDeptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.DEPT_TYPE_SD)
+    console.log(this.lyDeptMap)
+    console.log(this.sdDeptMap)
     this.deptYYMap = this.DictCache.getChildrenList(this.DictCache.TYPE.OUT_STORE_FORM_DEPT_CODE).map(item => {
       if (item.code === 'SBB') {
         item.children = this.DictCache.getChildrenList(this.DictCache.TYPE.SBB)