huangbin 4 年 前
コミット
35431adc9a

+ 53 - 0
src/views/order/performance_information/components/performance_information_sell_performance/components/breach_contract/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.performance_information_sell_performance_breach_contract,
+    components: { Drawer },
+    emits: ['cancel'],
+    props: {
+        selectedRow: {
+            type: Object as PropType<WrPosition>,
+            default: {},
+        },
+    },
+    setup(props, context) {
+        const { visible, cancel } = _closeModal(context);
+        console.log('selectedRow', props.selectedRow);
+
+        return {
+            visible,
+            cancel,
+        };
+    },
+});
+</script>
+
+<style lang="less" scoped>
+</style>;

+ 53 - 0
src/views/order/performance_information/components/performance_information_sell_performance/components/detail/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.performance_information_sell_performance_detail,
+    components: { Drawer },
+    emits: ['cancel'],
+    props: {
+        selectedRow: {
+            type: Object as PropType<WrPosition>,
+            default: {},
+        },
+    },
+    setup(props, context) {
+        const { visible, cancel } = _closeModal(context);
+        console.log('selectedRow', props.selectedRow);
+
+        return {
+            visible,
+            cancel,
+        };
+    },
+});
+</script>
+
+<style lang="less" scoped>
+</style>;

+ 53 - 0
src/views/order/performance_information/components/performance_information_sell_performance/components/extension/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.performance_information_sell_performance_extension,
+    components: { Drawer },
+    emits: ['cancel'],
+    props: {
+        selectedRow: {
+            type: Object as PropType<WrPosition>,
+            default: {},
+        },
+    },
+    setup(props, context) {
+        const { visible, cancel } = _closeModal(context);
+        console.log('selectedRow', props.selectedRow);
+
+        return {
+            visible,
+            cancel,
+        };
+    },
+});
+</script>
+
+<style lang="less" scoped>
+</style>;

+ 53 - 0
src/views/order/performance_information/components/performance_information_sell_performance/components/pay/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.performance_information_sell_performance_pay,
+    components: { Drawer },
+    emits: ['cancel'],
+    props: {
+        selectedRow: {
+            type: Object as PropType<WrPosition>,
+            default: {},
+        },
+    },
+    setup(props, context) {
+        const { visible, cancel } = _closeModal(context);
+        console.log('selectedRow', props.selectedRow);
+
+        return {
+            visible,
+            cancel,
+        };
+    },
+});
+</script>
+
+<style lang="less" scoped>
+</style>;

+ 5 - 1
src/views/order/performance_information/components/performance_information_sell_performance/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 { QueryPerformancePlan, queryWrTradeDetail } from '@/services/go/wrtrade';
 import { QueryPerformancePlanReq, WrPerformancePlan } from '@/services/go/wrtrade/interface';
 import { getRecordItemTab } from '@/common/setup/order/orderData';
@@ -36,6 +36,10 @@ export default defineComponent({
     name: enumOrderComponents.performance_information_sell_performance,
     components: {
         BtnList,
+        [ModalEnum.performance_information_sell_performance_pay]: defineAsyncComponent(() => import('./components/pay/index.vue')),
+        [ModalEnum.performance_information_sell_performance_extension]: defineAsyncComponent(() => import('./components/extension/index.vue')),
+        [ModalEnum.performance_information_sell_performance_breach_contract]: defineAsyncComponent(() => import('./components/breach_contract/index.vue')),
+        [ModalEnum.performance_information_sell_performance_detail]: defineAsyncComponent(() => import('./components/detail/index.vue')),
     },
     setup() {
         // 表格列表数据