|
@@ -42,6 +42,7 @@
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
+ :defaultLoadData="false"
|
|
|
:scroll="{ x: isGrab=='1'?890:910, y: 450 }"
|
|
|
bordered>
|
|
|
</s-table>
|
|
@@ -77,7 +78,7 @@ export default {
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
- const params = Object.assign(parameter, { sparePartsReturnSn: this.$route.params.sn })
|
|
|
+ const params = Object.assign(parameter, { sparePartsReturnSn: this.itemSn })
|
|
|
return sparePartsRetDetailList(params).then(res => {
|
|
|
this.getDetailCount(params)
|
|
|
const data = res.data
|
|
@@ -136,7 +137,7 @@ export default {
|
|
|
},
|
|
|
// 合计
|
|
|
getDetailCount () {
|
|
|
- sparePartsRetDetailCount({ sparePartsPurchaseSn: this.$route.params.sn }).then(res => {
|
|
|
+ sparePartsRetDetailCount({ sparePartsPurchaseSn: this.itemSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.productTotal = res.data
|
|
|
} else {
|