|
|
@@ -159,7 +159,7 @@ import { useTaAccount } from '@/common/setup/account';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { useTradeRule } from '@/common/setup/trade';
|
|
|
-import { getGoodsAgreeunitByGoodsId } from '@/services/bus/goods';
|
|
|
+import { getGoodsAgreeunitByGoodsId, getQuoteDayInfoByCodeFindPrice } from '@/services/bus/goods';
|
|
|
import { geLoginID_number } from '@/services/bus/login';
|
|
|
import { getMarketByTradeMode, getMarketIdsByTradeMode } from '@/services/bus/market';
|
|
|
import { QueryQuoteGoodsListRsp, QueryTjmdTodayAccountMarginReq, QueryTjmdTradeOrderDetailRsp } from '@/services/go/Tjmd/interface';
|
|
|
@@ -236,6 +236,17 @@ export default defineComponent({
|
|
|
}
|
|
|
return result ? result.toFixed(2) : '--';
|
|
|
};
|
|
|
+ // 估算价
|
|
|
+ // function getGuseetPrice() {
|
|
|
+ // let result = '--';
|
|
|
+ // const goodsPrice = getQuoteDayInfoByCodeFindPrice(props.selectedRow.refgoodscode);
|
|
|
+ // console.log('goodsPrice', goodsPrice);
|
|
|
+ // if (goodsPrice && goodsPrice !== '--') {
|
|
|
+ // // 有实时行情价格
|
|
|
+ // result = ((goodsPrice as number) + formState.PriceMove).toFixed(2);
|
|
|
+ // }
|
|
|
+ // return result;
|
|
|
+ // }
|
|
|
// const { getMaxNum, getMoney, getMargin, getPrice } = handleNumAndPrice(props.selectedRow);
|
|
|
function submit() {
|
|
|
validateAction<FormParam>(formRef, formState).then((res) => {
|