|
|
@@ -12,123 +12,163 @@
|
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
|
:loading="loading"
|
|
|
- @click="submit">确认停用</a-button>
|
|
|
+ @click="pass">审核通过</a-button>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="refuse">审核拒绝</a-button>
|
|
|
</template>
|
|
|
- <a-form class="inlineForm"
|
|
|
- :form="form"
|
|
|
- @submit="handleSearch">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="客户类型">
|
|
|
- <span class="white">企业</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业名称">
|
|
|
- <span class="white">深圳市前海矿业有限公司</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业简称">
|
|
|
- <span class="white">前海矿业</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="证件类型">
|
|
|
- <span class="white">营业执照</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="法定代表人">
|
|
|
- <span class="white">李顺利</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="证件号码">
|
|
|
- <span class="white">4328648236492432</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="纳税人识别号">
|
|
|
- <span class="white">57465736DR46456</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="营业执照">
|
|
|
- <a class="blue">查看附件</a>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人">
|
|
|
- <span class="white">王平</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人手机号">
|
|
|
- <span class="white">13745653421</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系电话">
|
|
|
- <span class="white">0755-34342544</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="状态">
|
|
|
- <span class="green">正常</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="通讯地址">
|
|
|
- <span class="white">广东省深圳市南山区前海街道路平路1324号</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注">
|
|
|
- <span class="white">无</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
+ <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>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref } from 'vue';
|
|
|
+import {defineComponent, PropType, ref} from 'vue';
|
|
|
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";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'plan_audit_audit',
|
|
|
components: {},
|
|
|
- setup() {
|
|
|
+ props: {
|
|
|
+ selectedRow: {
|
|
|
+ type: Object as PropType<Ermcp3HedgePlan>,
|
|
|
+ default: {},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ setup(props, context) {
|
|
|
const { visible, cancel } = closeModal('plan_audit_audit');
|
|
|
const loading = ref<boolean>(false);
|
|
|
- function submit() {
|
|
|
- loading.value = true;
|
|
|
- setTimeout(() => {
|
|
|
- loading.value = false;
|
|
|
- cancel();
|
|
|
- }, 2000);
|
|
|
+ // 审核通过
|
|
|
+ function pass() {
|
|
|
+ Modal.confirm({
|
|
|
+ title: '是否确认审核通过',
|
|
|
+ okText: '审核通过',
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk() {
|
|
|
+ const params: ErmcpHedgePlanReq = {
|
|
|
+ HedgePlanID: Long.fromString(props.selectedRow.hedgeplanid),
|
|
|
+ OperateType: 4,
|
|
|
+ Remark: '通过'
|
|
|
+ }
|
|
|
+ changeStatus(params, 4, loading)
|
|
|
+ .then(res => {
|
|
|
+ cancel()
|
|
|
+ context.emit('refresh')
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onCancel() {
|
|
|
+ console.log('Cancel');
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // 审核拒绝
|
|
|
+ function refuse(){
|
|
|
+ Modal.confirm({
|
|
|
+ title: '是否确认审核拒绝',
|
|
|
+ okText: '审核拒绝',
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk() {
|
|
|
+ const params: ErmcpHedgePlanReq = {
|
|
|
+ HedgePlanID: Long.fromString(props.selectedRow.hedgeplanid),
|
|
|
+ OperateType: 5,
|
|
|
+ }
|
|
|
+ changeStatus(params, 5, loading)
|
|
|
+ .then(res => {
|
|
|
+ cancel()
|
|
|
+ context.emit('refresh')
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onCancel() {
|
|
|
+ console.log('Cancel');
|
|
|
+ },
|
|
|
+ });
|
|
|
}
|
|
|
return {
|
|
|
visible,
|
|
|
cancel,
|
|
|
- submit,
|
|
|
+ refuse,
|
|
|
loading,
|
|
|
+ pass,
|
|
|
+ getPlanContractType,
|
|
|
+ formatValue,
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
});
|