销售汇总修改接口
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user