Przeglądaj źródła

修改套保品种

huangbin 4 lat temu
rodzic
commit
22110b2979

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

@@ -38,9 +38,9 @@
           </a-col>
           <a-col :span="12">
             <a-form-item label="修改后套保比例">
-              <a-input class="dialogInput"
+              <!-- <a-input class="dialogInput"
                        v-model:value="domain.wrstandardname"
-                       placeholder="请输入品类"></a-input>
+                       placeholder="请输入品类"></a-input> -->
             </a-form-item>
           </a-col>
         </a-row>
@@ -70,12 +70,16 @@ import { getGoodsUnitEnumItemName } from '@/common/constants/enumsName';
 export default defineComponent({
     name: 'modify-custom',
     components: {},
-    selctedMG: {
-        default: initMG,
-        type: Object as PropType<Ermcp3MiddleGoodsDetail2>,
+    props: {
+        selctedMG: {
+            default: initMG,
+            type: Object as PropType<Ermcp3MiddleGoodsDetail2>,
+        },
     },
-    setup() {
+
+    setup(props) {
         const { visible, cancel } = closeModal('goods_info_hedge_normal_modify');
+        console.log('selctedMG', props.selctedMG);
 
         const loading = ref<boolean>(false);
         function submit() {

+ 1 - 0
src/views/information/goods/components/rightHedging/index.vue

@@ -136,6 +136,7 @@
     </div>
     <HedgingDetail @selctedMG="selctedMG" />
     <HedgingModify @selctedMG="selctedMG" />
+
   </div>
 </template>
 

+ 1 - 3
src/views/information/goods/list/hedging-variety/index.vue

@@ -37,15 +37,13 @@ export default defineComponent({
         AddGoods,
     },
     setup() {
-        // 控制弹窗
-        const { openAction: addAction } = openModal('goods_info_hedge_normal_modify');
         const { loading, menuList, isNormal, selctedMG, queryMG, chooseDG } = handleMG();
 
         initData(() => {
             // 加载数据在这里
             queryMG();
         });
-        return { addAction, loading, selctedMG, chooseDG, isNormal, menuList };
+        return { loading, selctedMG, chooseDG, isNormal, menuList };
     },
 });
 </script>