|
|
@@ -12,15 +12,15 @@
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import {QueryWrPositionReq, WrOrderQuote, WrOrderQuoteDetail, WrPosition} from '@/services/go/wrtrade/interface';
|
|
|
-import {getSelectedAccountId, getUserId} from '@/services/bus/account';
|
|
|
+import { QueryWrPositionReq, WrOrderQuote, WrOrderQuoteDetail, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
+import { getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import {HdWRDealOrder, hdWROrder} from '@/services/proto/warehousetrade';
|
|
|
+import { HdWRDealOrder, hdWROrder } from '@/services/proto/warehousetrade';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
-import {HdWRDealOrderReq} from "@/services/proto/warehousetrade/interface";
|
|
|
-import {Long} from "@/services/socket/login/interface/long";
|
|
|
+import { HdWRDealOrderReq } from '@/services/proto/warehousetrade/interface';
|
|
|
+import { Long } from '@/services/socket/login/interface/long';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_trade_warehouse_delisting,
|
|
|
@@ -30,6 +30,10 @@ export default defineComponent({
|
|
|
type: Object as PropType<WrOrderQuoteDetail>,
|
|
|
default: {},
|
|
|
},
|
|
|
+ parantSelectedRow: {
|
|
|
+ type: Object as PropType<WrOrderQuote>,
|
|
|
+ default: {},
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
@@ -56,16 +60,15 @@ export default defineComponent({
|
|
|
|
|
|
const loading = ref<boolean>(false);
|
|
|
|
|
|
-
|
|
|
// 摘卖方向
|
|
|
- const param : HdWRDealOrderReq = {
|
|
|
+ const param: HdWRDealOrderReq = {
|
|
|
UserID: getUserId(), // uint32 用户ID
|
|
|
AccountID: Number(getSelectedAccountId() as Long), // uint64 资金账号
|
|
|
RelatedWRTradeOrderID: Number(props.selectedRow.wrtradeorderid), // uint64 关联委托单号(摘牌委托关联挂牌委托单ID)
|
|
|
WRTransferUserID: props.selectedRow.userid, // uint32 仓单受让用户
|
|
|
OrderQty: 1, // uint64 委托数量
|
|
|
OrderSrc: 0, // uint32 委托来源
|
|
|
- ClientSerialNo: uuidv4(), // string 客户端流水号
|
|
|
+ ClientSerialNo: uuidv4(), // string 客户端流水号
|
|
|
ClientOrderTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), // string 客户端委托时间
|
|
|
ClientType: 4, // uint32 终端类型
|
|
|
OperatorID: getUserId(), // uint64 操作员账号ID
|
|
|
@@ -74,11 +77,11 @@ export default defineComponent({
|
|
|
LadingBillId: 0, // uint64 提单id(wrholdlb的LadingBillId字段),卖的时候填写
|
|
|
SubNum: 0, // uint64 提单子单号(wrholdlb的SubNum字段),卖的时候填写
|
|
|
WRFactorTypeId: 0, // uint64 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写
|
|
|
- TradeDate: moment().format("YYYYMMDD"), // string 交易日
|
|
|
- DeliveryMonth: "", // string 交收月
|
|
|
+ TradeDate: moment().format('YYYYMMDD'), // string 交易日
|
|
|
+ DeliveryMonth: '', // string 交收月
|
|
|
HasWr: 1, // uint32 是否有仓单-0:没有仓单 1:有仓单
|
|
|
- }
|
|
|
- debugger
|
|
|
+ };
|
|
|
+ debugger;
|
|
|
// console.log(param);
|
|
|
requestResultLoadingAndInfo(HdWRDealOrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
// cancel(true);
|