|
@@ -176,6 +176,7 @@ import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
|
import { getQuoteDayInfoByCodeFindPrice } from '@/services/bus/goods';
|
|
import { getQuoteDayInfoByCodeFindPrice } from '@/services/bus/goods';
|
|
|
|
|
+import { message } from 'ant-design-vue';
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_trade_warehouse_financing_delisting,
|
|
name: ModalEnum.spot_trade_warehouse_financing_delisting,
|
|
|
components: { Drawer, PlusOutlined, MinusOutlined },
|
|
components: { Drawer, PlusOutlined, MinusOutlined },
|
|
@@ -229,6 +230,10 @@ export default defineComponent({
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
function submit() {
|
|
function submit() {
|
|
|
|
|
+ if (getMaxNum() === 0) {
|
|
|
|
|
+ message.error('没有可用的预售仓单头寸');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
validateAction<ListingForm>(formRef, formState).then((res) => {
|
|
validateAction<ListingForm>(formRef, formState).then((res) => {
|
|
|
// 首先确定 这是仓单贸易的有仓单挂摘牌 HasWr = 1
|
|
// 首先确定 这是仓单贸易的有仓单挂摘牌 HasWr = 1
|
|
|
// 其次判断 摘牌 1。摘买 (需要通过自己的仓单进行摘买) 2。摘卖 (不需要通过仓单)
|
|
// 其次判断 摘牌 1。摘买 (需要通过自己的仓单进行摘买) 2。摘卖 (不需要通过仓单)
|
|
@@ -245,7 +250,7 @@ export default defineComponent({
|
|
|
OperatorID: getUserId(), // uint64 操作员账号ID
|
|
OperatorID: getUserId(), // uint64 操作员账号ID
|
|
|
BuyOrSell: 0, // uint32 买卖方向
|
|
BuyOrSell: 0, // uint32 买卖方向
|
|
|
ApplyID: 0, // uint64 申请ID
|
|
ApplyID: 0, // uint64 申请ID
|
|
|
- // LadingBillId: 0, // uint64 提单id(wrholdlb的LadingBillId字段),卖的时候填写
|
|
|
|
|
|
|
+ LadingBillId: 0, // uint64 提单id(wrholdlb的LadingBillId字段),卖的时候填写
|
|
|
SubNum: 0, // uint64 提单子单号(wrholdlb的SubNum字段),卖的时候填写
|
|
SubNum: 0, // uint64 提单子单号(wrholdlb的SubNum字段),卖的时候填写
|
|
|
WRFactorTypeId: props.parantSelectedRow.wrfactortypeid, // uint64 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写
|
|
WRFactorTypeId: props.parantSelectedRow.wrfactortypeid, // uint64 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写
|
|
|
TradeDate: moment().format('YYYYMMDD'), // string 交易日
|
|
TradeDate: moment().format('YYYYMMDD'), // string 交易日
|
|
@@ -261,6 +266,8 @@ export default defineComponent({
|
|
|
const item = wrHoldList.value.find((el) => el.id === res.LadingBillId);
|
|
const item = wrHoldList.value.find((el) => el.id === res.LadingBillId);
|
|
|
if (item) {
|
|
if (item) {
|
|
|
param.SubNum = +item.subnum;
|
|
param.SubNum = +item.subnum;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ param.LadingBillId = 0;
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
param.BuyOrSell = 0;
|
|
param.BuyOrSell = 0;
|