|
|
@@ -236,7 +236,7 @@ export default defineComponent({
|
|
|
// 可用资金
|
|
|
const temp = +canUseMoney();
|
|
|
const money = temp > 0 ? temp : 0;
|
|
|
- const price = isFloat() ? getQuoteDayInfoByCodeFindPrice(goodscode) : formState.FixedPrice;
|
|
|
+ const price = isFloat() ? getQuoteDayInfoByCodeFindPrice(props.selectedRow.refgoodscode) : formState.FixedPrice;
|
|
|
if (marginType && money && price && price !== '--') {
|
|
|
// 保证金方式 1:比率 2:固定
|
|
|
if (marginType === 1) {
|
|
|
@@ -254,7 +254,8 @@ export default defineComponent({
|
|
|
// 估算价
|
|
|
function getPrice() {
|
|
|
let result = '--';
|
|
|
- const goodsPrice = getQuoteDayInfoByCodeFindPrice(props.selectedRow.goodscode);
|
|
|
+ const goodsPrice = getQuoteDayInfoByCodeFindPrice(props.selectedRow.refgoodscode);
|
|
|
+ console.log('goodsPrice', goodsPrice);
|
|
|
if (goodsPrice && goodsPrice !== '--') {
|
|
|
// 有实时行情价格
|
|
|
result = ((goodsPrice as number) + formState.PriceMove).toFixed(2);
|
|
|
@@ -304,7 +305,7 @@ export default defineComponent({
|
|
|
if (isFloat()) {
|
|
|
// 浮动价
|
|
|
param.MarketMaxSub = res.PriceMove; // 基差
|
|
|
- param.OrderPrice = +getQuoteDayInfoByCodeFindPrice(goodscode)!;
|
|
|
+ param.OrderPrice = +getQuoteDayInfoByCodeFindPrice(props.selectedRow.refgoodscode)!;
|
|
|
}
|
|
|
requestResultLoadingAndInfo(diaoQiOrder, param, loading, ['挂牌求购成功', '挂牌求购失败:']).then(() => {
|
|
|
cancel(true);
|