yangfeng
2023-08-09 acdff03246ce648082192dfb069c3a006a7fbee6
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue
@@ -497,7 +497,7 @@
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" size="small" @click="saveClick('form')">保存</el-button>
        <el-button size="small" @click="editConfig.visible = false">取消</el-button>
        <el-button size="small" @click="handleClose">取消</el-button>
      </div>
      <!-- 选择客户 -->
      <SelectClientDialog
@@ -615,6 +615,10 @@
    },
    handleClose() {
      this.editConfig.visible = false
      console.log(this.editConfig.infomation.client_name)
      if (this.editConfig.title === "新建" && this.editConfig.infomation.client_name) {
        this.$parent.handleClose()
      }
    },
    // 保存
    saveClick(formName) {
@@ -633,7 +637,11 @@
                    message: "添加成功",
                    type: "success"
                  })
                  this.$parent.getData()
                  if (this.editConfig.title === "新建" && this.editConfig.infomation.client_name) {
                    this.$parent.handleClose()
                  } else {
                    this.$parent.getData()
                  }
                }
              })
              .catch((err) => {