huangbin 4 years ago
parent
commit
c3580c6e76

+ 53 - 0
src/views/order/spot_warran/components/spot_warrant_pending_order/components/cancle/index.vue

@@ -0,0 +1,53 @@
+<template>
+  <!-- 现货仓单 现货明细 挂牌 -->
+  <Drawer :title="'撤单'"
+          :placement="'bottom'"
+          :visible="visible"
+          @cancel="cancel">
+    撤单
+  </Drawer>
+</template>
+
+<script lang="ts">
+import { defineComponent, PropType, ref } from 'vue';
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
+import Drawer from '@/common/components/drawer/index.vue';
+import { QueryWrPositionReq, WrHoldLB, WrPosition } from '@/services/go/wrtrade/interface';
+import { getInTaAccount, getUserId } from '@/services/bus/account';
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import { hdWROrder } from '@/services/proto/warehousetrade';
+import { v4 as uuidv4 } from 'uuid';
+import moment from 'moment';
+import { ModalEnum } from '@/common/constants/modalNameEnum';
+import { _closeModal } from '@/common/setup/modal/modal';
+import { validateAction } from '@/common/setup/form';
+import { getMarketRunByTradeMode } from '@/services/bus/market';
+import { message } from 'ant-design-vue';
+import { getGoodsGroupsByTradeMode } from '@/services/bus/goods';
+import { TradeMode } from '@/common/constants/enumCommon';
+import { WRGoodsInfo } from '@/services/proto/warehousetrade/interface';
+
+export default defineComponent({
+    name: ModalEnum.spot_warrant_spot_details_listed,
+    components: { Drawer },
+    emits: ['cancel'],
+    props: {
+        selectedRow: {
+            type: Object as PropType<WrHoldLB>,
+            default: {},
+        },
+    },
+    setup(props, context) {
+        const { visible, cancel } = _closeModal(context);
+        console.log('selectedRow', props.selectedRow);
+
+        return {
+            visible,
+            cancel,
+        };
+    },
+});
+</script>
+
+<style lang="less" scoped>
+</style>;

+ 2 - 1
src/views/order/spot_warran/components/spot_warrant_pending_order/index.vue

@@ -26,7 +26,7 @@
 
 <script lang="ts">
 import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
-import { queryTableList, BtnList, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
+import { queryTableList, BtnList, defineAsyncComponent, defineComponent, ModalEnum } from '@/common/export/commonTable';
 import { queryWrOrderDetail } from '@/services/go/wrtrade';
 import { QueryWrOrderDetailReq, WrOrderDetail } from '@/services/go/wrtrade/interface';
 import { getRecordItemTab } from '@/common/setup/order/orderData';
@@ -36,6 +36,7 @@ export default defineComponent({
     name: enumOrderComponents.spot_warrant_pending_order,
     components: {
         BtnList,
+        [ModalEnum.spot_warrant_pending_order_cancel_order]: defineAsyncComponent(() => import('./components/cancle/index.vue')),
     },
     setup() {
         // 表格列表数据