huangbin 4 年之前
父節點
當前提交
2c5bafcc8d
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/information/goods/components/add/index.vue

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

@@ -47,7 +47,7 @@
               <a-select class="inlineFormSelect"
                         style="width: 200px"
                         v-model:value="formState.unitid"
-                        :getPopupContainer="(triggerNode) => triggerNode.parentNode" 
+                        :getPopupContainer="(triggerNode) => triggerNode.parentNode"
                         placeholder="请选择单位">
                 <a-select-option v-for="item in unitList"
                                  :value="item.enumitemname"
@@ -112,7 +112,7 @@
                            :rules="rules.gldwrstandards.unitid">
                 <a-select class="inlineFormSelect"
                           v-model:value="domain.unitid"
-                          :getPopupContainer="(triggerNode) => triggerNode.parentNode" 
+                          :getPopupContainer="(triggerNode) => triggerNode.parentNode"
                           placeholder="请选择单位">
                   <a-select-option v-for="item in unitList"
                                    :value="item.enumitemname"
@@ -228,11 +228,11 @@
                 <a-select class="inlineFormSelect"
                           @change="middleChange(domain.middlegoodsid, domain)"
                           v-model:value="domain.middlegoodsid"
-                          :getPopupContainer="(triggerNode) => triggerNode.parentNode" 
+                          :getPopupContainer="(triggerNode) => triggerNode.parentNode"
                           placeholder="请选择套保品种">
                   <a-select-option v-for="item in goodsGroup"
-                                   :value="item.goodsgroupid"
-                                   :key="item.goodsgroupid">
+                                   :value="item.groupcategroyid"
+                                   :key="item.groupcategroyid">
                     {{item.goodsgroupname}}
                   </a-select-option>
                 </a-select>
@@ -383,7 +383,7 @@ export default defineComponent({
          * 切换套保品种时候,获取对应的单位
          */
         function middleChange(id: number, value: WRSConvertDetailEx) {
-            const obj = goodsGroup.value.find((e) => e.groupcategroyid === id);
+            const obj = goodsGroup.value.find((e: any) => e.groupcategroyid === id);
             if (obj) {
                 value.unitidName = obj.enumdicname;
                 value.unitid = obj.agreeunit;