Handy_Cao před 1 rokem
rodič
revize
8246e86df8

+ 8 - 1
src/packages/mobile/views/pricing/trade/components/cancel/Index.vue

@@ -58,6 +58,13 @@ import { fullloading } from '@/utils/vant'
 import { i18n } from '@/stores'
 import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
 
+const props = defineProps({
+    goodsid: {
+        type: Number,
+        required: true
+    }
+})
+
 const { global: { t } } = i18n
 const { cancelSubmit, formData } = useCancelOrder()
 const dataList = shallowRef<Model.TradeOrderDetailRsp[]>([])
@@ -74,7 +81,7 @@ const { loading, pageIndex, pageCount, run } = useRequest(queryTradeOrderDetail,
         if (pageIndex.value === 1) {
             dataList.value = []
         }
-        dataList.value.push(...res.data)
+        dataList.value.push(...res.data.filter(e => e.goodsid === props.goodsid))
     },
     onError: () => {
         error.value = true

+ 9 - 1
src/packages/mobile/views/pricing/trade/holdlb/Index.vue

@@ -59,9 +59,17 @@ const error = shallowRef(false)
 const showModal = shallowRef(true)
 const refresh = shallowRef(false) // 是否刷新父组件数据
 
+const props = defineProps({
+    goodsid: {
+        type: Number,
+        required: true
+    }
+})
+
 const { dataList, loading, run } = useRequest(queryTradeHolderDetail, {
     params: {
-        trademodes: '10'
+        trademodes: '10',
+        goodsid: props.goodsid
     }
 })
 const pullRefreshRef = shallowRef()