|
@@ -157,6 +157,7 @@ import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { getGoodsGroupsByTradeMode } from '@/services/bus/goods';
|
|
import { getGoodsGroupsByTradeMode } from '@/services/bus/goods';
|
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
|
|
|
+import {WRGoodsInfo} from "@/services/proto/warehousetrade/interface";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_warrant_spot_details_listed,
|
|
name: ModalEnum.spot_warrant_spot_details_listed,
|
|
@@ -179,6 +180,15 @@ export default defineComponent({
|
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
const marketInfo = getMarketRunByTradeMode(17);
|
|
|
if (marketInfo) {
|
|
if (marketInfo) {
|
|
|
validateAction<ListingForm>(formRef, formState).then((res) => {
|
|
validateAction<ListingForm>(formRef, formState).then((res) => {
|
|
|
|
|
+
|
|
|
|
|
+ const wrGoodsInfo: WRGoodsInfo = {
|
|
|
|
|
+ GoodsID: res.goodsid as number, // uint32 配置商品ID
|
|
|
|
|
+ GoodsCode: "", // string 配置商品代码
|
|
|
|
|
+ PriceFactor: 1, // double 商品价格系数
|
|
|
|
|
+ PriceMove: 0, // double 商品升贴水值
|
|
|
|
|
+ WeightRatio: 1, // double 商品重量系数
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const param = {
|
|
const param = {
|
|
|
AccountID: data.accountid.toString(), // 默认内部资金账号第一个
|
|
AccountID: data.accountid.toString(), // 默认内部资金账号第一个
|
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
@@ -198,7 +208,7 @@ export default defineComponent({
|
|
|
DeliveryGoodsID: data.deliverygoodsid, // 交割商品商品ID
|
|
DeliveryGoodsID: data.deliverygoodsid, // 交割商品商品ID
|
|
|
WRPriceType: res.WRPriceType, // 价格方式 1:固定价 2:浮动价
|
|
WRPriceType: res.WRPriceType, // 价格方式 1:固定价 2:浮动价
|
|
|
FixedPrice: res.FixedPrice, // 固定价格
|
|
FixedPrice: res.FixedPrice, // 固定价格
|
|
|
- PriceFactor: 0, // 价格系数(浮动价时填写)
|
|
|
|
|
|
|
+ PriceFactor: 1, // 价格系数(浮动价时填写)
|
|
|
PriceMove: res.PriceMove, // 升贴水(浮动价时填写)
|
|
PriceMove: res.PriceMove, // 升贴水(浮动价时填写)
|
|
|
TimevalidType: 4, // 时间有效类型 1:当日有效 2:本周有效 3:指定时间有效 4:一直有效
|
|
TimevalidType: 4, // 时间有效类型 1:当日有效 2:本周有效 3:指定时间有效 4:一直有效
|
|
|
// ValidTime: moment('2021-08-25 00:00:00').format('YYYY-MM-DD HH:mm:ss'), // 有效期限
|
|
// ValidTime: moment('2021-08-25 00:00:00').format('YYYY-MM-DD HH:mm:ss'), // 有效期限
|
|
@@ -215,12 +225,14 @@ export default defineComponent({
|
|
|
Remark: '222', // 备注
|
|
Remark: '222', // 备注
|
|
|
ApplyID: 0, // 申请ID
|
|
ApplyID: 0, // 申请ID
|
|
|
CanPart: 1, // 是否允许部份摘牌0:不允许;1:允许
|
|
CanPart: 1, // 是否允许部份摘牌0:不允许;1:允许
|
|
|
- WRTradeGoods: [],
|
|
|
|
|
|
|
+ WRTradeGoods: [
|
|
|
|
|
+ wrGoodsInfo
|
|
|
|
|
+ ],
|
|
|
wrstandardid: props.selectedRow.wrstandardid,
|
|
wrstandardid: props.selectedRow.wrstandardid,
|
|
|
HasWr: 1,
|
|
HasWr: 1,
|
|
|
};
|
|
};
|
|
|
console.log(param);
|
|
console.log(param);
|
|
|
- requestResultLoadingAndInfo(hdWROrder, param, loading, ['摘牌成功', '摘牌失败:']).then(() => {
|
|
|
|
|
|
|
+ requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
cancel();
|
|
cancel();
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|