瀏覽代碼

修改bug

chenrui 2 年之前
父節點
當前提交
6823b00b5b

+ 4 - 1
src/views/numsGoodsShelves/approveStore/authPass.vue

@@ -484,7 +484,10 @@ export default {
   mounted () {
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
       this.initPage()
-      this.getPriceList()
+      // 获取价格显示 接口 (因为未审核通过状态下拿不到货架sn,暂时废弃掉的接口)
+      if (this.$route.query.shelfSn) {
+        this.getPriceList()
+      }
     }
   },
   activated () {

+ 1 - 1
src/views/numsGoodsShelves/approveStore/list.vue

@@ -158,7 +158,7 @@ export default {
     handleAudit (row, type) {
       // 审核通过
       if (type == 1) {
-        this.$router.push({ name: 'approveStoreAuthPass', params: { sn: row.applySn, shelfSn: row.shelfSn } })
+        this.$router.push({ path: '/numsGoodsShelves/approveStore/authPass', query: { sn: row.applySn, shelfSn: row.shelfSn ? row.shelfSn : '' } })
       } else {
         const _this = this
         this.$confirm({