浏览代码

修复页面跳转错误bug

zhangdan 3 年之前
父节点
当前提交
5a09c3c2ce

+ 1 - 1
src/views/numsGoodsShelves/recallStockManagement/editStock.vue

@@ -120,7 +120,7 @@ export default {
         })
       }
       setTimeout(() => {
-        this.$router.go(-1)
+        this.$router.push({ path: '/numsGoodsShelves/recallStockManagement/list' })
       }, 300)
     },
     // 入库信息的查询

+ 1 - 1
src/views/numsGoodsShelves/settlementManagement/settlementDetail.vue

@@ -118,7 +118,7 @@ export default {
   },
   methods: {
     handleBack () {
-      this.$router.go(-1)
+      this.$router.push({ path: '/numsGoodsShelves/settlementManagement/list' })
     },
     dateChange (date) {
 	  this.queryParam.beginDate = moment(date[0]).format('YYYY-MM-DD')

+ 2 - 2
src/views/numsGoodsShelves/settlementManagement/unSettlementDetail.vue

@@ -158,7 +158,7 @@ export default {
 
   methods: {
     handleBack () {
-      this.$router.go(-1)
+      this.$router.push({ path: '/numsGoodsShelves/settlementManagement/list' })
     },
     orderDateChange (date) {
       console.log(date, date)
@@ -177,7 +177,7 @@ export default {
     getPageInfo () {
       this.spinning = true
       const info = JSON.parse(sessionStorage.getItem('settlementDetail'))
-      merchantCashOut({shelfSn:this.$route.params.shelfSn}).then(res => {
+      merchantCashOut({ shelfSn: this.$route.params.shelfSn }).then(res => {
         console.log(res, info, '===========')
         if (res.status == 200) {
           this.total = res.data