销售汇总修改接口

This commit is contained in:
duan
2024-10-17 10:40:44 +08:00
parent c8633cd925
commit 25dfe869f0
3 changed files with 29 additions and 23 deletions

View File

@@ -10,11 +10,11 @@
</tr>
</thead>
<tbody>
<tr v-for="item in tableList" :key="item.productId">
<td>{{item.productId}}</td>
<tr v-for="(item,index) in tableList" :key="item.productId">
<td>{{++index}}</td>
<td>{{item.productName}}</td>
<td>{{item.productNum}}</td>
<td>{{item.amount}}</td>
<td>{{item.num}}</td>
<td>{{item.salesAmount}}</td>
</tr>
</tbody>
</table>
@@ -31,6 +31,11 @@
dateProduct
} from '@/http/yskApi/requestAll.js';
let tableList = ref([])
let props = defineProps({
day: {
type: Number
}
})
onMounted(() => {
gettableData()
})
@@ -38,11 +43,11 @@
function gettableData() {
dateProduct({
shopId: uni.getStorageSync('shopId'),
day: 30,
page: 1,
day: props.day,
page: 0,
size: 50
}).then((res) => {
tableList.value = res.totalProduct
tableList.value = res.productList.content
})
}