|
@@ -116,7 +116,7 @@
|
|
:itemSn="itemSn"
|
|
:itemSn="itemSn"
|
|
:openModal="openAddModal"
|
|
:openModal="openAddModal"
|
|
:nowData="detailsData"
|
|
:nowData="detailsData"
|
|
- @ok="resetTable"
|
|
|
|
|
|
+ @ok="resetTable(true)"
|
|
@close="openAddModal=false" />
|
|
@close="openAddModal=false" />
|
|
<!-- 导入弹窗 -->
|
|
<!-- 导入弹窗 -->
|
|
<importGuideModal :openModal="openGuideModal" :params="{sparePartsSn: $route.query.sn}" @close="openGuideModal=false" @ok="hanldleImportOk" />
|
|
<importGuideModal :openModal="openGuideModal" :params="{sparePartsSn: $route.query.sn}" @close="openGuideModal=false" @ok="hanldleImportOk" />
|
|
@@ -278,7 +278,7 @@ export default {
|
|
purchaseDetailDel({ sn: row.sparePartsDetailSn })
|
|
purchaseDetailDel({ sn: row.sparePartsDetailSn })
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- _this.resetTable()
|
|
|
|
|
|
+ _this.resetTable(false)
|
|
}
|
|
}
|
|
_this.$message.info(res.message)
|
|
_this.$message.info(res.message)
|
|
_this.delLoading = false
|
|
_this.delLoading = false
|
|
@@ -292,9 +292,9 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 刷新列表 更新操作时间
|
|
// 刷新列表 更新操作时间
|
|
- resetTable () {
|
|
|
|
|
|
+ resetTable (flag) {
|
|
this.itemSn = undefined
|
|
this.itemSn = undefined
|
|
- this.$refs.table.refresh(true)
|
|
|
|
|
|
+ this.$refs.table.refresh(flag)
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|