chenrui 3 سال پیش
والد
کامیت
980e919ff3

+ 2 - 2
src/views/financialManagement/inventoryConfirmation/detail.vue

@@ -189,14 +189,14 @@ export default {
   },
   },
   mounted () {
   mounted () {
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
-      this.$refs.table.refresh(true)
+      this.resetSearchForm()
       this.getDetail()
       this.getDetail()
     }
     }
   },
   },
   activated () {
   activated () {
     // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
     // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
     if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
     if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
-      this.$refs.table.refresh(true)
+      this.resetSearchForm()
       this.getDetail()
       this.getDetail()
     }
     }
   },
   },

+ 4 - 3
src/views/inventoryManagement/inventoryCheck/detail.vue

@@ -153,7 +153,7 @@ export default {
     // 重置
     // 重置
     resetSearchForm () {
     resetSearchForm () {
       this.queryParam.productCode = ''
       this.queryParam.productCode = ''
-      this.getList()
+      this.getList(1)
     },
     },
     // 作废盘点单
     // 作废盘点单
     handleSubmit () {
     handleSubmit () {
@@ -196,6 +196,7 @@ export default {
           this.paginationProps.total = Number(res.data.count) || 0
           this.paginationProps.total = Number(res.data.count) || 0
           this.paginationProps.current = data.pageNo
           this.paginationProps.current = data.pageNo
           const no = (data.pageNo - 1) * data.pageSize
           const no = (data.pageNo - 1) * data.pageSize
+          this.expandedRowKeys = []
           for (var i = 0; i < data.list.length; i++) {
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
             data.list[i].no = no + i + 1
             if (!this.foldState) {
             if (!this.foldState) {
@@ -269,14 +270,14 @@ export default {
   },
   },
   mounted () {
   mounted () {
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
-      this.getList(1)
+      this.resetSearchForm()
       this.getDetail()
       this.getDetail()
     }
     }
   },
   },
   activated () {
   activated () {
     // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
     // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
     if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
     if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
-      this.getList(1)
+      this.resetSearchForm()
       this.getDetail()
       this.getDetail()
     }
     }
   },
   },

+ 4 - 3
src/views/inventoryManagement/makeInventory/check.vue

@@ -209,7 +209,7 @@ export default {
     // 重置
     // 重置
     resetSearchForm () {
     resetSearchForm () {
       this.queryParam.productCode = ''
       this.queryParam.productCode = ''
-      this.getList()
+      this.getList(1)
     },
     },
     // 盘点数量  blur
     // 盘点数量  blur
     checkQtyBlur (val, record) {
     checkQtyBlur (val, record) {
@@ -283,6 +283,7 @@ export default {
           this.paginationProps.total = Number(res.data.count) || 0
           this.paginationProps.total = Number(res.data.count) || 0
           this.paginationProps.current = data.pageNo
           this.paginationProps.current = data.pageNo
           const no = (data.pageNo - 1) * data.pageSize
           const no = (data.pageNo - 1) * data.pageSize
+          this.expandedRowKeys = []
           for (var i = 0; i < data.list.length; i++) {
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
             data.list[i].no = no + i + 1
             data.list[i].checkQtyBackups = data.list[i].checkQty
             data.list[i].checkQtyBackups = data.list[i].checkQty
@@ -411,14 +412,14 @@ export default {
   },
   },
   mounted () {
   mounted () {
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
-      this.getList(1)
+      this.resetSearchForm()
       this.getDetail()
       this.getDetail()
     }
     }
   },
   },
   activated () {
   activated () {
     // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
     // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
     if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
     if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
-      this.getList(1)
+      this.resetSearchForm()
       this.getDetail()
       this.getDetail()
     }
     }
   },
   },

+ 2 - 1
src/views/inventoryManagement/supervisionDisk/check.vue

@@ -219,7 +219,7 @@ export default {
     // 重置
     // 重置
     resetSearchForm () {
     resetSearchForm () {
       this.queryParam.productCode = ''
       this.queryParam.productCode = ''
-      this.getList()
+      this.getList(1)
     },
     },
     // 盘点数量  blur
     // 盘点数量  blur
     checkSuperviseQtyBlur (val, record) {
     checkSuperviseQtyBlur (val, record) {
@@ -315,6 +315,7 @@ export default {
           this.paginationProps.total = Number(res.data.count) || 0
           this.paginationProps.total = Number(res.data.count) || 0
           this.paginationProps.current = data.pageNo
           this.paginationProps.current = data.pageNo
           const no = (data.pageNo - 1) * data.pageSize
           const no = (data.pageNo - 1) * data.pageSize
+          this.expandedRowKeys = []
           for (var i = 0; i < data.list.length; i++) {
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
             data.list[i].no = no + i + 1
             data.list[i].checkSuperviseQtyBackups = data.list[i].checkSuperviseQty
             data.list[i].checkSuperviseQtyBackups = data.list[i].checkSuperviseQty