zuozhengqing
2023-10-16 8e5ec095fc4ba9cac7c91b681b06846d3e4155ae
src/views/client/salesLead/AdvanceDialog.vue
@@ -95,18 +95,18 @@
  },
  methods: {
    setData(status) {
      if (status === 1) {
        this.options = ["新建", "失败关闭", "升级到客户", "升级到客户和销售机会"]
        this.value = "失败关闭"
        this.value1 = "失败关闭"
      } else if (status === -1) {
        this.options = ["新建", "跟进中", "升级到客户", "升级到客户和销售机会"]
        this.value = "升级到客户"
        this.value1 = "升级到客户"
      } else {
      if (status === 0) {
        this.options = ["跟进中", "失败关闭", "升级到客户", "升级到客户和销售机会"]
        this.value = "跟进中"
        this.value1 = "跟进中"
      } else if (status === 1) {
        this.options = ["失败关闭", "升级到客户", "升级到客户和销售机会"]
        this.value = "失败关闭"
        this.value1 = "失败关闭"
      } else if (status === -1) {
        this.options = ["升级到客户", "升级到客户和销售机会"]
        this.value = "升级到客户"
        this.value1 = "升级到客户"
      }
    },
    handleClose() {
@@ -152,13 +152,14 @@
          type: "warning"
        })
          .then(() => {
            this.editConfig.visible = true
            this.editConfig.title = "新建"
            this.editConfig.isSalesOpportunity = true
            this.editConfig.infomation = {
              ...this.commonConfig.infomation,
              sales_leads_id: this.commonConfig.infomation.id
            }
            this.editConfig.infomation.codeStandID=''
            this.editConfig.visible = true
          })
          .catch(() => {})
      }