浏览代码

feat: 修改零售发货申请单

aXin-0810 2 年之前
父节点
当前提交
7e34c1d1af

+ 1 - 9
src/views/supply/apply/apply_list.vue

@@ -67,6 +67,7 @@ export default {
   },
   },
   data() {
   data() {
     return {
     return {
+      isShow: false,
       currentPage: 1, // 当前页码
       currentPage: 1, // 当前页码
       pageSize: 10, // 每页数量
       pageSize: 10, // 每页数量
       listTotal: 0, // 列表总数
       listTotal: 0, // 列表总数
@@ -222,15 +223,6 @@ export default {
       this.toReturnForm()
       this.toReturnForm()
     }
     }
   },
   },
-  //   activated() {
-  //       this.isShow = false
-  //   if (this.$route.query && this.$route.query.isShow) {
-  //     this.isShow = this.$route.query.isShow
-
-  //       this.toReturnForm()
-  //   }
-
-  // },
   methods: {
   methods: {
     // 列表请求函数
     // 列表请求函数
     getListf: invoiceListRetailV2,
     getListf: invoiceListRetailV2,

+ 0 - 1
src/views/supply/apply/components/apply_examine.vue

@@ -371,7 +371,6 @@ export default {
           this.$successMsg('审批成功')
           this.$successMsg('审批成功')
           this.$emit('shuaxinlb')
           this.$emit('shuaxinlb')
           this.goBack()
           this.goBack()
-          this.$parent?.getList()
         })
         })
         .finally(res => {
         .finally(res => {
           this.formLoading = false
           this.formLoading = false

+ 0 - 2
src/views/supply/apply/components/apply_form.vue

@@ -705,14 +705,12 @@ export default {
               this.$emit('shuaxinlb')
               this.$emit('shuaxinlb')
               this.$successMsg('编辑成功')
               this.$successMsg('编辑成功')
               this.goBack()
               this.goBack()
-              this.$parent?.getList()
             })
             })
           } else {
           } else {
             addApply(params).then(res => {
             addApply(params).then(res => {
               this.$emit('shuaxinlb')
               this.$emit('shuaxinlb')
               this.$successMsg('添加成功')
               this.$successMsg('添加成功')
               this.goBack()
               this.goBack()
-              this.$parent?.getList()
             })
             })
           }
           }
         }
         }

+ 2 - 5
src/views/supply/apply/components/apply_return_form.vue

@@ -404,7 +404,7 @@ export default {
   },
   },
   name: 'ApplyReturnForm',
   name: 'ApplyReturnForm',
   componentName: 'ApplyReturnForm',
   componentName: 'ApplyReturnForm',
-  props: ['listItem'],
+  props: ['listItem', 'isShow'],
   data() {
   data() {
     return {
     return {
       mainForm: {
       mainForm: {
@@ -493,8 +493,7 @@ export default {
   methods: {
   methods: {
     // 返回列表
     // 返回列表
     goBack() {
     goBack() {
-      console.log(45454)
-      if (this.$parent.isShow == 'true') {
+      if (this.isShow == 'true') {
         this.$router.replace('/supply/implement/sum_list')
         this.$router.replace('/supply/implement/sum_list')
       } else {
       } else {
         this.$emit('backListFormDetail')
         this.$emit('backListFormDetail')
@@ -755,14 +754,12 @@ export default {
               this.$emit('shuaxinlb')
               this.$emit('shuaxinlb')
               this.$successMsg('编辑成功')
               this.$successMsg('编辑成功')
               this.goBack()
               this.goBack()
-              this.$parent?.getList()
             })
             })
           } else {
           } else {
             addApplyReturn(params).then(res => {
             addApplyReturn(params).then(res => {
               this.$emit('shuaxinlb')
               this.$emit('shuaxinlb')
               this.$successMsg('添加成功')
               this.$successMsg('添加成功')
               this.goBack()
               this.goBack()
-              this.$parent?.getList()
             })
             })
           }
           }
         }
         }