瀏覽代碼

修改掉期订单 现价bug

huangbin 3 年之前
父節點
當前提交
72cb8b08d0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/order/swap_the_order/components/swap_commodity_contract_summary/setup.ts

+ 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 : ''
 }