|
@@ -13,89 +13,89 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
@click="pass">审核通过</a-button>
|
|
@click="pass">审核通过</a-button>
|
|
|
- <a-button key="submit"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :loading="loading"
|
|
|
|
|
- @click="refuse">审核拒绝</a-button>
|
|
|
|
|
|
|
+ <a-button key="submit"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ @click="refuse">审核拒绝</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
- <fieldset class="formFieldSet">
|
|
|
|
|
- <legend>基本信息</legend>
|
|
|
|
|
- <a-form class="inlineForm"
|
|
|
|
|
- :form="form"
|
|
|
|
|
- @submit="handleSearch">
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="计划类型">
|
|
|
|
|
- <span class="white">{{ getPlanContractType(selectedRow.contracttype) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="计划名称">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.hedgeplanno) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="现货品种">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="标仓系数">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.convertfactor) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="计划量">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.planqty) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="备注">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-form>
|
|
|
|
|
- </fieldset>
|
|
|
|
|
- <fieldset class="formFieldSet">
|
|
|
|
|
- <legend>其它信息</legend>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="交易用户">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.tradeusername) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="结算币种">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.currencyname) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="备注">
|
|
|
|
|
- <span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </fieldset>
|
|
|
|
|
|
|
+ <fieldset class="formFieldSet">
|
|
|
|
|
+ <legend>基本信息</legend>
|
|
|
|
|
+ <a-form class="inlineForm"
|
|
|
|
|
+ :form="form"
|
|
|
|
|
+ @submit="handleSearch">
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="计划类型">
|
|
|
|
|
+ <span class="white">{{ getPlanContractType(selectedRow.contracttype) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="计划名称">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.hedgeplanno) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="现货品种">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="标仓系数">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.convertfactor) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="计划量">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.planqty) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="备注">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-form>
|
|
|
|
|
+ </fieldset>
|
|
|
|
|
+ <fieldset class="formFieldSet">
|
|
|
|
|
+ <legend>其它信息</legend>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="交易用户">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.tradeusername) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="结算币种">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.currencyname) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="备注">
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </fieldset>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import {defineComponent, PropType, ref} from 'vue';
|
|
|
|
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import {Modal} from "ant-design-vue";
|
|
|
|
|
-import {ErmcpHedgePlanReq} from "@/services/proto/hedgeplan/interface";
|
|
|
|
|
-import Long from "long";
|
|
|
|
|
-import {changeStatus} from "@/views/business/plan/components/setup";
|
|
|
|
|
-import {Ermcp3HedgePlan} from "@/services/go/ermcp/plan/interface";
|
|
|
|
|
-import {getPlanContractType} from "@/views/business/plan/setup";
|
|
|
|
|
-import {formatValue} from "@/common/methods";
|
|
|
|
|
|
|
+import { Modal } from 'ant-design-vue';
|
|
|
|
|
+import { ErmcpHedgePlanReq } from '@/services/proto/hedgeplan/interface';
|
|
|
|
|
+import Long from 'long';
|
|
|
|
|
+import { changeStatus } from '@/views/business/plan/components/setup';
|
|
|
|
|
+import { Ermcp3HedgePlan } from '@/services/go/ermcp/plan/interface';
|
|
|
|
|
+import { getPlanContractType } from '@/views/business/plan/setup';
|
|
|
|
|
+import { formatValue } from '@/common/methods';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'plan_audit_audit',
|
|
name: 'plan_audit_audit',
|
|
@@ -119,16 +119,14 @@ export default defineComponent({
|
|
|
const params: ErmcpHedgePlanReq = {
|
|
const params: ErmcpHedgePlanReq = {
|
|
|
HedgePlanID: Long.fromString(props.selectedRow.hedgeplanid),
|
|
HedgePlanID: Long.fromString(props.selectedRow.hedgeplanid),
|
|
|
OperateType: 4,
|
|
OperateType: 4,
|
|
|
- Remark: '通过'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Remark: '通过',
|
|
|
|
|
+ };
|
|
|
changeStatus(params, 4, loading)
|
|
changeStatus(params, 4, loading)
|
|
|
- .then(res => {
|
|
|
|
|
- cancel()
|
|
|
|
|
- context.emit('refresh')
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
})
|
|
})
|
|
|
|
|
+ .catch((err) => {});
|
|
|
},
|
|
},
|
|
|
onCancel() {
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
console.log('Cancel');
|
|
@@ -136,7 +134,7 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
// 审核拒绝
|
|
// 审核拒绝
|
|
|
- function refuse(){
|
|
|
|
|
|
|
+ function refuse() {
|
|
|
Modal.confirm({
|
|
Modal.confirm({
|
|
|
title: '是否确认审核拒绝',
|
|
title: '是否确认审核拒绝',
|
|
|
okText: '审核拒绝',
|
|
okText: '审核拒绝',
|
|
@@ -145,15 +143,13 @@ export default defineComponent({
|
|
|
const params: ErmcpHedgePlanReq = {
|
|
const params: ErmcpHedgePlanReq = {
|
|
|
HedgePlanID: Long.fromString(props.selectedRow.hedgeplanid),
|
|
HedgePlanID: Long.fromString(props.selectedRow.hedgeplanid),
|
|
|
OperateType: 5,
|
|
OperateType: 5,
|
|
|
- }
|
|
|
|
|
|
|
+ };
|
|
|
changeStatus(params, 5, loading)
|
|
changeStatus(params, 5, loading)
|
|
|
- .then(res => {
|
|
|
|
|
- cancel()
|
|
|
|
|
- context.emit('refresh')
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
})
|
|
})
|
|
|
|
|
+ .catch((err) => {});
|
|
|
},
|
|
},
|
|
|
onCancel() {
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
console.log('Cancel');
|
|
@@ -168,7 +164,6 @@ export default defineComponent({
|
|
|
pass,
|
|
pass,
|
|
|
getPlanContractType,
|
|
getPlanContractType,
|
|
|
formatValue,
|
|
formatValue,
|
|
|
-
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|