|
|
@@ -122,36 +122,27 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
-import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-
|
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
|
-import { getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
-
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
-import Long from 'long';
|
|
|
-import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
|
-import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
-import { DeliveryOrder, tradeHoldTransferApply } from '@/services/proto/warehousetrade';
|
|
|
-import { v4 } from 'uuid';
|
|
|
-import moment from 'moment';
|
|
|
-import { DeliveryOrderReq, TradeHoldTransferApplyReq } from '@/services/proto/warehousetrade/interface';
|
|
|
-import { geLoginID_number, getLoginData } from '@/services/bus/login';
|
|
|
-import { message } from 'ant-design-vue';
|
|
|
-import { getGoodsByCode } from '@/services/bus/goods';
|
|
|
+import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
+import { validateAction } from '@/common/setup/form';
|
|
|
+import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { queryTableList } from '@/common/setup/table';
|
|
|
-import { queryTjmdTransferApply } from '@/services/go/Tjmd';
|
|
|
-import { QueryTjmdTransferApplyRsp } from '@/services/go/Tjmd/interface';
|
|
|
-import { GetLoginID } from '@/services/go/useInfo';
|
|
|
+import { getUserId } from '@/services/bus/account';
|
|
|
+import { geLoginID_number } from '@/services/bus/login';
|
|
|
+import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
|
import { queryTradeHolderDetail } from '@/services/go/order';
|
|
|
import { QueryTradeHolderDetailReq } from '@/services/go/order/interface';
|
|
|
-import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { validateAction } from '@/common/setup/form';
|
|
|
-import { FormState, BargainList } from './interface';
|
|
|
-import { handleForm, usePrice, useCheckd } from './setup';
|
|
|
-import { handleSubcriteQuote } from '@/common/setup/table/tableQuote';
|
|
|
+import { tradeHoldTransferApply } from '@/services/proto/warehousetrade';
|
|
|
+import { TradeHoldTransferApplyReq } from '@/services/proto/warehousetrade/interface';
|
|
|
+import { MinusOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
|
|
+import { message } from 'ant-design-vue';
|
|
|
+import Long from 'long';
|
|
|
+import { defineComponent, PropType } from 'vue';
|
|
|
+import { BargainList, FormState } from './interface';
|
|
|
+import { handleForm, useCheckd, usePrice } from './setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: ModalEnum.commodity_contract_summary_settlement,
|
|
|
@@ -188,6 +179,7 @@ export default defineComponent({
|
|
|
// 默认勾选第一个
|
|
|
checked.value = e.tradeid;
|
|
|
const result = { ...e, checked: true };
|
|
|
+ selected.value = result;
|
|
|
return result;
|
|
|
}
|
|
|
});
|
|
|
@@ -196,6 +188,10 @@ export default defineComponent({
|
|
|
const toFixed0 = (value: number) => +value.toFixed(0);
|
|
|
|
|
|
function submit() {
|
|
|
+ if (!selected.value) {
|
|
|
+ message.warn('请选择持仓');
|
|
|
+ return;
|
|
|
+ }
|
|
|
validateAction<FormState>(formRef, formState).then((res) => {
|
|
|
const param: TradeHoldTransferApplyReq = {
|
|
|
TradeID: Long.fromString(selected.value!.tradeid),
|