|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 修改客户资料 -->
|
|
|
|
|
|
|
+ <!-- 修改套保品种 -->
|
|
|
<a-modal class="commonModal modify-custom"
|
|
<a-modal class="commonModal modify-custom"
|
|
|
- title="修改"
|
|
|
|
|
|
|
+ title="修改套保品种"
|
|
|
v-if="visible"
|
|
v-if="visible"
|
|
|
v-model:visible="visible"
|
|
v-model:visible="visible"
|
|
|
centered
|
|
centered
|
|
@@ -14,28 +14,70 @@
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
@click="submit">完成</a-button>
|
|
@click="submit">完成</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+ <a-form class="inlineForm"
|
|
|
|
|
+ ref="formRef"
|
|
|
|
|
+ :model="formState"
|
|
|
|
|
+ :rules="rules">
|
|
|
|
|
+ <fieldset class="formFieldSet">
|
|
|
|
|
+ <legend>基本信息</legend>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="套保品种名称">
|
|
|
|
|
+ <span>{{selctedMG.mg.middlegoodsname}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="单位">
|
|
|
|
|
+ <span>{{getGoodsUnitEnumItemName(selctedMG.mg.goodsunitid)}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="当前套保比例">
|
|
|
|
|
+ <span>{{(selctedMG.mg.needhedgeratio * 100).toFixed(2)}}%</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="修改后套保比例">
|
|
|
|
|
+ <a-input class="dialogInput"
|
|
|
|
|
+ v-model:value="domain.wrstandardname"
|
|
|
|
|
+ placeholder="请输入品类"></a-input>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </fieldset>
|
|
|
|
|
+ <fieldset class="formFieldSet">
|
|
|
|
|
+ <legend>其他信息</legend>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="备注">
|
|
|
|
|
+ <span>{{selctedMG.mg.remark}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </fieldset>
|
|
|
|
|
+ </a-form>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref } from 'vue';
|
|
|
|
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { initData } from '@/common/methods/index';
|
|
import { initData } from '@/common/methods/index';
|
|
|
|
|
+import { initMG } from '../../list/hedging-variety/setup';
|
|
|
|
|
+import { Ermcp3MiddleGoodsDetail2 } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
|
|
+import { getGoodsUnitEnumItemName } from '@/common/constants/enumsName';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'modify-custom',
|
|
name: 'modify-custom',
|
|
|
components: {},
|
|
components: {},
|
|
|
- props: {
|
|
|
|
|
- // selectedRow: {
|
|
|
|
|
- // type:
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ selctedMG: {
|
|
|
|
|
+ default: initMG,
|
|
|
|
|
+ type: Object as PropType<Ermcp3MiddleGoodsDetail2>,
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const { visible, cancel } = closeModal('goods_info_hedge_normal_modify');
|
|
const { visible, cancel } = closeModal('goods_info_hedge_normal_modify');
|
|
|
|
|
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
- const maskClosableFlag = ref<boolean>(false);
|
|
|
|
|
function submit() {
|
|
function submit() {
|
|
|
cancel();
|
|
cancel();
|
|
|
}
|
|
}
|
|
@@ -46,6 +88,7 @@ export default defineComponent({
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
maskClosableFlag: false,
|
|
maskClosableFlag: false,
|
|
|
|
|
+ getGoodsUnitEnumItemName,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|