|
|
@@ -84,7 +84,7 @@
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { QueryWrPositionReq, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
+import {QueryWrPositionReq, WrHoldLB, WrPosition} from '@/services/go/wrtrade/interface';
|
|
|
import { getUserId } from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { hdWROrder } from '@/services/proto/warehousetrade';
|
|
|
@@ -96,23 +96,27 @@ export default defineComponent({
|
|
|
components: { Drawer },
|
|
|
props: {
|
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrPosition>,
|
|
|
+ type: Object as PropType<WrHoldLB>,
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
setup(props) {
|
|
|
const data = props.selectedRow;
|
|
|
const loading = ref<boolean>(false);
|
|
|
+ debugger
|
|
|
const param = {
|
|
|
AccountID: data.accountid.toString(),
|
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
|
// OperateSrc: 2,
|
|
|
ClientType: 4,
|
|
|
// MarketID: 17201,
|
|
|
- LadingBillId: '2081626946446000001', // 提单id(wrholdlb的LadingBillId字段),卖的时候填写 uint64
|
|
|
- TradeDate: moment('20210725').format('YYYYMMDD'), // 交易日 string
|
|
|
- SubNum: '0', // 提单子单号
|
|
|
- WRFactorTypeId: '2121626946446000001', // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
|
+ LadingBillId: props.selectedRow.ladingbillid.toString(), // 提单id(wrholdlb的LadingBillId字段),卖的时候填写 uint64
|
|
|
+ // LadingBillId: 'uint642081626946446000001', // 提单id(wrholdlb的LadingBillId字段),卖的时候填写 uint64
|
|
|
+ TradeDate: moment('20210727').format('YYYYMMDD'), // 交易日 string
|
|
|
+ // SubNum: '0', // 提单子单号
|
|
|
+ SubNum: props.selectedRow.subnum,
|
|
|
+ // WRFactorTypeId: '2121626946446000001', // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
|
+ WRFactorTypeId: props.selectedRow.wrfactortypeid, // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
|
IsSpecified: 0, // 是否指定对手 0:不指定 1:指定 uint32
|
|
|
// MatchUserIDs: 0, // 仓单贸易对手资金账号ID集合(指定对手时填写) uint32
|
|
|
OrderQty: 1, // 委托数量(可挂部分数据量) ======
|
|
|
@@ -141,6 +145,8 @@ export default defineComponent({
|
|
|
HasWr: 1,
|
|
|
};
|
|
|
console.log(param);
|
|
|
+
|
|
|
+ console.log(props.selectedRow)
|
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
// cancel(true);
|
|
|
});
|