llj
2025-11-19 8f1189eb086f8383188b5f4b9d73988a14f2e255
src/views/sell/sellOut/sellOutBillEdit.vue
@@ -468,9 +468,6 @@
    this.fetchData()
    this.getdata()
  },
  beforeDestroy() {
    this.$destroy()
  },
  methods: {
    fetchData() {
      axios.get(this.baseURL + "/Web/GetOrganizations", {
@@ -634,10 +631,8 @@
      this.openRowHide = true
    },
    rowSetClose(val) {
      this.rowHideShow = false
      this.openRowHide = val
      this.$destroy()
    },
    organizationChange(val) {
@@ -775,10 +770,23 @@
    //退出
    close() {
      this.reset()
      console.log(1111)
      console.log(this.$route.path)
      if (!this.OperationType && !this.copyType) {
        const obj = { path: "/sell/sellOut/sellOutBillEdit", name: "SellOutBillEdit" };
        this.$tab.closePage(obj);
        console.log(this.$route.path)
        const obj = { fullPath: this.$route.path, path: this.$route.path, name: this.$route.name, };
        this.$tab.closePage(obj).then(res => {
          const latestView = res.visitedViews.slice(-1)[0]
          if (latestView) {
            this.$router.push(latestView.fullPath)
          } else {
            if (obj.name === 'Dashboard') {
              this.$router.replace({ path: '/redirect' + obj.fullPath })
            } else {
              this.$router.push('/')
            }
          }
        });
      } else {
        this.formShow = false
        this.$emit('editClose', false)