优化
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<el-table-column label="供应商名称" prop="purveyorName"></el-table-column>
|
<el-table-column label="供应商名称" prop="purveyorName"></el-table-column>
|
||||||
<el-table-column label="商品数量" prop="totalAmount">
|
<el-table-column label="商品数量" prop="totalAmount">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
{{ scope.row.stockSnap.length }}
|
{{ scope.row.stockSnap && scope.row.stockSnap.length }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="备注" prop="remark"></el-table-column>
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
||||||
@@ -46,7 +46,9 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
|
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
|
||||||
@current-change="paginationChange" @size-change="e => { tableData.size = e; tableData.page = 0; getTableData() }" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
@current-change="paginationChange"
|
||||||
|
@size-change="e => { tableData.size = e; tableData.page = 0; getTableData() }"
|
||||||
|
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
||||||
<operatingDetail ref="operatingDetail" />
|
<operatingDetail ref="operatingDetail" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -82,7 +84,7 @@ export default {
|
|||||||
async getTableData() {
|
async getTableData() {
|
||||||
this.tableData.loading = true
|
this.tableData.loading = true
|
||||||
let arr = []
|
let arr = []
|
||||||
console.log(this.query,'tiaoshi1')
|
console.log(this.query, 'tiaoshi1')
|
||||||
if (this.query.createdAt.length) {
|
if (this.query.createdAt.length) {
|
||||||
arr = [this.query.createdAt[0] + ' 00:00:00', this.query.createdAt[1] + ' 23:59:59']
|
arr = [this.query.createdAt[0] + ' 00:00:00', this.query.createdAt[1] + ' 23:59:59']
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user