whj 1 жил өмнө
parent
commit
73805d4862

+ 3 - 1
src/views/purchase/purchase-order-page/modules/Detail.vue

@@ -15,7 +15,7 @@
       <detail-list-item term="计划类型">{{ BaseTool.Object.getField(cptcodeMap,model.cptcode) }}</detail-list-item>
       <detail-list-item term="业务类型">{{ BaseTool.Object.getField(cbustypeMap,model.cbustype) }}</detail-list-item>
       <detail-list-item term="采购厂区">{{ BaseTool.Object.getField(flagMap,model.oldOrNew) }}</detail-list-item>
-      <detail-list-item term="申请部门">{{ BaseTool.Object.getField(deptMap,model.cdepcode) }}</detail-list-item>
+      <detail-list-item term="申请部门">{{ BaseTool.Object.getField(model.oldOrNew===2?deptMap:deptNewMap,model.cdepcode) }}</detail-list-item>
 
       <detail-list-item term="设备位号">{{ model.positionNo }}</detail-list-item>
       <detail-list-item term="项目">{{ model.complateProjectName }}</detail-list-item>
@@ -66,6 +66,7 @@ export default {
       statusMap: {},
       cptcodeMap: {},
       deptMap: {},
+      deptNewMap: {},
       soMap: {},
       model: {
       },
@@ -170,6 +171,7 @@ export default {
     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)
+    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)
   },