|
@@ -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(), // 客户端流水号
|
|
@@ -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();
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|