Преглед изворни кода

修改掉期订单 现价bug

huangbin пре 3 година
родитељ
комит
72cb8b08d0

+ 1 - 1
src/views/order/swap_the_order/components/swap_commodity_contract_summary/setup.ts

@@ -22,7 +22,7 @@ export const useIsDiaoQi = (goodsid: number) => {
 
 // 商品掉期取参考行情最新价,挂牌点选取自己行情的最新价
 export function findGoodsCode(goodsid: number, goodscode: string, swapList: QueryQuoteGoodsListRsp[]) {
-    const result = useIsDiaoQi(goodsid) ? swapList.find((el) => goodsid === goodsid)?.refgoodscode : goodscode;
+    const result = useIsDiaoQi(goodsid) ? swapList.find((el) => el.goodsid === goodsid)?.refgoodscode : goodscode;
     return result ? result : ''
 }