增加操作记录剩余数量,修复商品库存分页
This commit is contained in:
@@ -4,8 +4,10 @@ ENV = 'development'
|
|||||||
# VUE_APP_BASE_API = 'http://192.168.2.17:8000'
|
# VUE_APP_BASE_API = 'http://192.168.2.17:8000'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.2.42:8000'
|
# VUE_APP_BASE_API = 'http://192.168.2.42:8000'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.2.133:8000'
|
# VUE_APP_BASE_API = 'http://192.168.2.133:8000'
|
||||||
# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
|
# 测试
|
||||||
VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
|
VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
|
||||||
|
# 线上
|
||||||
|
# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.2.96:8000'
|
# VUE_APP_BASE_API = 'http://192.168.2.96:8000'
|
||||||
VUE_APP_WS_API = 'ws://192.168.2.128:8000'
|
VUE_APP_WS_API = 'ws://192.168.2.128:8000'
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,13 @@
|
|||||||
{{ scope.row.number }} {{ scope.row.unitName }}
|
{{ scope.row.number }} {{ scope.row.unitName }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="现有库存" prop="number">
|
||||||
|
<template v-slot="scope">
|
||||||
|
{{ returnNowHasNumbr( scope.row)}}
|
||||||
|
|
||||||
|
<!-- {{ scope.row.stockNumber*1 + scope.row.number*1 }} {{ scope.row.unitName }} -->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="head-container">
|
<div class="head-container">
|
||||||
@@ -43,6 +50,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//返回现有库存数量
|
||||||
|
returnNowHasNumbr(row){
|
||||||
|
return row.stockNumber*1 + row.number*1 +row.unitName
|
||||||
|
},
|
||||||
show(id) {
|
show(id) {
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
this.getTableData(id)
|
this.getTableData(id)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="head-container">
|
<div class="head-container">
|
||||||
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
|
<el-pagination @size-change="paginationSizeChange" :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
|
||||||
@current-change="paginationChange" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
@current-change="paginationChange" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<invoicingDetail ref="invoicingDetail" />
|
<invoicingDetail ref="invoicingDetail" />
|
||||||
@@ -174,6 +174,11 @@ export default {
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 每页条数改变是回调
|
||||||
|
paginationSizeChange(e){
|
||||||
|
console.log(e);
|
||||||
|
this.tableData.size = e
|
||||||
|
},
|
||||||
// 分页回调
|
// 分页回调
|
||||||
paginationChange(e) {
|
paginationChange(e) {
|
||||||
this.tableData.page = e - 1
|
this.tableData.page = e - 1
|
||||||
|
|||||||
Reference in New Issue
Block a user