|
|
@@ -1,147 +1,138 @@
|
|
|
<template>
|
|
|
- <!-- 修改计划 -->
|
|
|
- <a-modal
|
|
|
- class="commonModal modify-custom"
|
|
|
- title="修改计划"
|
|
|
- v-if="visible"
|
|
|
- centered
|
|
|
- v-model:visible="visible"
|
|
|
- @cancel="cancel"
|
|
|
- width="890px"
|
|
|
- >
|
|
|
- <template #footer>
|
|
|
- <a-button key="submit" type="primary" :loading="loading" @click="submit(2)">完成</a-button>
|
|
|
- <a-button key="cancel" type="primary" :loading="loading" @click="cancel">取消</a-button>
|
|
|
- </template>
|
|
|
- <a-form class="inlineForm" ref="formRef" :model="formState" :rules="rules">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="计划类型" name="ContractType">
|
|
|
- <a-select
|
|
|
- class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.ContractType"
|
|
|
- placeholder="请选择计划类型"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in planTye"
|
|
|
- :value="item.enumitemname"
|
|
|
- :key="item.autoid"
|
|
|
- >{{item.enumdicname}}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="计划名称" name="HedgePlanNo">
|
|
|
- <a-input
|
|
|
- class="dialogInput"
|
|
|
- v-model:value="formState.HedgePlanNo"
|
|
|
- style="width: 200px"
|
|
|
- placeholder="请输入计划名称"
|
|
|
- />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="现货品种" name="DeliveryGoodsID">
|
|
|
- <a-select
|
|
|
- class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.DeliveryGoodsID"
|
|
|
- @change="chooseMG"
|
|
|
- placeholder="请选择现货品种"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in DGList"
|
|
|
- :value="item.data.deliverygoodsid"
|
|
|
- :key="item.data.deliverygoodsid"
|
|
|
- >{{item.data.deliverygoodsname}}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="商品" name="WRStandardID">
|
|
|
- <a-select
|
|
|
- class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- @change="chooseWR"
|
|
|
- v-model:value="formState.WRStandardID"
|
|
|
- placeholder="请选择商品"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in gmlist"
|
|
|
- :value="item.wrstandardid"
|
|
|
- :key="item.wrstandardid"
|
|
|
- >{{item.wrstandardname}}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="标仓系数" name>
|
|
|
- <a-input
|
|
|
- class="dialogInput ConvertFactor"
|
|
|
- v-model:value="formState.ConvertFactor"
|
|
|
- readonly
|
|
|
- style="width: 200px"
|
|
|
- placeholder="请输入标仓系数"
|
|
|
- />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="计划量" class="relative" name="PlanQty">
|
|
|
- <a-input-number
|
|
|
- class="dialogInput"
|
|
|
+ <!-- 修改计划 -->
|
|
|
+ <a-modal class="commonModal modify-custom"
|
|
|
+ title="修改计划"
|
|
|
+ v-if="visible"
|
|
|
+ centered
|
|
|
+ v-model:visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="submit(2)">完成</a-button>
|
|
|
+ <a-button key="cancel"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="cancel">取消</a-button>
|
|
|
+ </template>
|
|
|
+ <a-form class="inlineForm"
|
|
|
+ ref="formRef"
|
|
|
+ :model="formState"
|
|
|
+ :rules="rules">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="计划类型"
|
|
|
+ name="ContractType">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.ContractType"
|
|
|
+ placeholder="请选择计划类型">
|
|
|
+ <a-select-option v-for="item in planTye"
|
|
|
+ :value="item.enumitemname"
|
|
|
+ :key="item.autoid">{{item.enumdicname}}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="计划名称"
|
|
|
+ name="HedgePlanNo">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.HedgePlanNo"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入计划名称" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="现货品种"
|
|
|
+ name="DeliveryGoodsID">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.DeliveryGoodsID"
|
|
|
+ @change="chooseMG"
|
|
|
+ placeholder="请选择现货品种">
|
|
|
+ <a-select-option v-for="item in DGList"
|
|
|
+ :value="item.data.deliverygoodsid"
|
|
|
+ :key="item.data.deliverygoodsid">{{item.data.deliverygoodsname}}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="商品"
|
|
|
+ name="WRStandardID">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ @change="chooseWR"
|
|
|
+ v-model:value="formState.WRStandardID"
|
|
|
+ placeholder="请选择商品">
|
|
|
+ <a-select-option v-for="item in gmlist"
|
|
|
+ :value="item.wrstandardid"
|
|
|
+ :key="item.wrstandardid">{{item.wrstandardname}}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="标仓系数"
|
|
|
+ name>
|
|
|
+ <a-input class="dialogInput ConvertFactor"
|
|
|
+ v-model:value="formState.ConvertFactor"
|
|
|
+ readonly
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入标仓系数" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="计划量"
|
|
|
+ class="relative"
|
|
|
+ name="PlanQty">
|
|
|
+ <a-input-number class="dialogInput"
|
|
|
style="width: 200px"
|
|
|
:min="0"
|
|
|
v-model:value="formState.PlanQty"
|
|
|
- placeholder="请输入计划量"
|
|
|
- ></a-input-number>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="交易用户" name="Tradeuserid">
|
|
|
- <a-select
|
|
|
- class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.Tradeuserid"
|
|
|
- placeholder="请选择交易用户"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in tableList"
|
|
|
- :value="item.roleid"
|
|
|
- :key="item.roleid"
|
|
|
- >{{item.rolename}}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="结算币种" name="Currencyid">
|
|
|
- <a-select
|
|
|
- class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.Currencyid"
|
|
|
- placeholder="请选择结算币种"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in priceTyep"
|
|
|
- :key="item.enumitemname"
|
|
|
- :value="item.enumitemname"
|
|
|
- >{{item.enumdicname}}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注" class="relative" name="Remark">
|
|
|
- <a-input
|
|
|
- class="dialogInput"
|
|
|
- v-model:value="formState.Remark"
|
|
|
- style="width: 636px"
|
|
|
- placeholder="请输入备注"
|
|
|
- />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
- </a-modal>
|
|
|
+ placeholder="请输入计划量"></a-input-number>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="交易用户"
|
|
|
+ name="Tradeuserid">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.Tradeuserid"
|
|
|
+ placeholder="请选择交易用户">
|
|
|
+ <a-select-option v-for="item in tableList"
|
|
|
+ :value="item.roleid"
|
|
|
+ :key="item.roleid">{{item.rolename}}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="结算币种"
|
|
|
+ name="Currencyid">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.Currencyid"
|
|
|
+ placeholder="请选择结算币种">
|
|
|
+ <a-select-option v-for="item in priceTyep"
|
|
|
+ :key="item.enumitemname"
|
|
|
+ :value="item.enumitemname">{{item.enumdicname}}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="备注"
|
|
|
+ class="relative"
|
|
|
+ name="Remark">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.Remark"
|
|
|
+ style="width: 636px"
|
|
|
+ placeholder="请输入备注" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </a-modal>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -152,7 +143,7 @@ import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { getMiddleGoodsD, handleForm } from '../setup';
|
|
|
import { FormState } from '../interface';
|
|
|
import { ErmcpHedgePlanReq } from '@/services/proto/hedgeplan/interface';
|
|
|
-import { getLongTypeLoginID } from '@/services/bus/login';
|
|
|
+import { geLoginID_number } from '@/services/bus/login';
|
|
|
import { LongType } from '@/services/socket/login/interface';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
import { Ermcp3HedgePlan } from '@/services/go/ermcp/plan/interface';
|
|
|
@@ -199,7 +190,7 @@ export default defineComponent({
|
|
|
|
|
|
function submit(OperateType: 1 | 2) {
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
- const loginId = getLongTypeLoginID() as LongType;
|
|
|
+ const loginId = geLoginID_number();
|
|
|
const userid = getAreaUserId();
|
|
|
const reqParam: ErmcpHedgePlanReq = {
|
|
|
HedgePlanID: Number(props.selectedRow.hedgeplanid),
|