|
@@ -533,8 +533,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 合计
|
|
|
- getDetailCount () {
|
|
|
- sparePartsPurDetailCount({ sparePartsPurchaseSn: this.$route.params.sn }).then(res => {
|
|
|
+ getDetailCount (params) {
|
|
|
+ sparePartsPurDetailCount(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.productTotal = res.data
|
|
|
} else {
|
|
@@ -604,6 +604,7 @@ export default {
|
|
|
}
|
|
|
sparePartsPurDetailList(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
+ this.getDetailCount(params)
|
|
|
const data = res.data
|
|
|
this.choosePaginationProps.total = Number(res.data.count) || 0
|
|
|
this.choosePaginationProps.current = data.pageNo
|
|
@@ -654,7 +655,6 @@ export default {
|
|
|
vm.openModal = false
|
|
|
vm.getDetail()
|
|
|
vm.getDealerProductList()
|
|
|
- vm.getDetailCount()
|
|
|
vm.getChooseDealerProductList()
|
|
|
vm.getProductBrand()
|
|
|
vm.getProductType()
|