huangbin пре 4 година
родитељ
комит
5ec6c08cab
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      src/views/information/goods/components/add/index.vue

+ 1 - 2
src/views/information/goods/components/add/index.vue

@@ -285,7 +285,6 @@ import { RuleObject } from 'ant-design-vue/es/form/interface';
 import { FormState, WRSConvertDetailEx } from './interface';
 import { validateCommon } from '@/common/setup/validate';
 import { getGoodsUnitEnumList } from '@/common/constants/enumsList';
-import { getGoodsUnitEnumItemName } from '@/common/constants/enumsName';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
 import { DeliveryGoodsApplyReq } from '@/services/proto/delivery/interface';
 import { addDeliveryGoodsApply } from '@/services/proto/delivery';
@@ -385,7 +384,7 @@ export default defineComponent({
         function middleChange(id: number, value: WRSConvertDetailEx) {
             const obj = goodsGroup.value.find((e) => e.groupcategroyid === id);
             if (obj) {
-                value.unitidName = getGoodsUnitEnumItemName(obj.agreeunit);
+                value.unitidName = obj.enumdicname;
                 value.unitid = obj.agreeunit;
             }
         }