|
|
@@ -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
|