src/views/client/salesLead/AdvanceDialog.vue
@@ -10,14 +10,14 @@
    >
      <div class="content">
        <el-radio-group v-model="radio">
          <div class="one">
          <!-- <div class="one">
            <el-radio :label="1">
              <span>推进到下一阶段</span>
              <el-select v-model="value1" size="mini" disabled>
                <el-option v-for="(item, index) in options" :key="index" :label="item" :value="item"></el-option>
              </el-select>
            </el-radio>
          </div>
          </div> -->
          <div class="two">
            <el-radio :label="2">
              <span>推进到指定阶段</span>
@@ -41,7 +41,7 @@
        v-if="editConfig.visible"
        :edit-client-manage-config="editConfig"
        @salesOpportunityClick="salesOpportunityClick"
        @reshData='reshData'
        @reshData="reshData"
      />
      <!-- 新建/编辑销售机会 -->
      <AddSalesOpportunityDialog v-if="editOpportunityConfig.visible" :edit-common-config="editOpportunityConfig" />
@@ -71,7 +71,7 @@
  data() {
    return {
      dialogWidth: "25%",
      radio: 1,
      radio: 2,
      commonConfig: this.advanceConfig,
      value1: "",
      value: "",
@@ -97,11 +97,11 @@
  methods: {
    setData(status) {
      if (status === 0) {
        this.options = ["跟进中", "失败关闭", "升级到客户", "升级到客户和销售机会"]
        this.options = ["跟进中", "升级到客户", "升级到客户和销售机会", "失败关闭"]
        this.value = "跟进中"
        this.value1 = "跟进中"
      } else if (status === 1) {
        this.options = ["失败关闭", "升级到客户", "升级到客户和销售机会"]
        this.options = ["升级到客户", "升级到客户和销售机会", "失败关闭"]
        this.value = "失败关闭"
        this.value1 = "失败关闭"
      } else if (status === -1) {
@@ -122,6 +122,8 @@
    },
    saveClick() {
      console.log(this.value)
      // this.commonConfig.visible = false
      //
      if (this.value === "跟进中") {
        // val === '新建' ||
        this.pushSalesSources(1)
@@ -144,7 +146,7 @@
              sales_leads_id: this.commonConfig.infomation.id
            }
            this.editConfig.isResh = true
            this.editConfig.infomation.codeStandID=''
            this.editConfig.infomation.codeStandID = ""
            this.editConfig.visible = true
          })
          .catch(() => {})
@@ -162,7 +164,7 @@
              ...this.commonConfig.infomation,
              sales_leads_id: this.commonConfig.infomation.id
            }
            this.editConfig.infomation.codeStandID=''
            this.editConfig.infomation.codeStandID = ""
            this.editConfig.visible = true
          })
          .catch(() => {})
@@ -181,7 +183,7 @@
        this.reshData()
      })
    },
    reshData(){
    reshData() {
      this.$parent.getData()
    },
    // 销售机会
@@ -189,7 +191,7 @@
      console.log(item)
      this.editOpportunityConfig.visible = true
      this.editOpportunityConfig.title = "新建"
      this.editOpportunityConfig.infomation = { client_name: item.name }
      this.editOpportunityConfig.infomation = { client_name: item.name, sourceTitle: "推进" }
    }
  }
}