| | |
| | | > |
| | | <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> |
| | |
| | | v-if="editConfig.visible" |
| | | :edit-client-manage-config="editConfig" |
| | | @salesOpportunityClick="salesOpportunityClick" |
| | | @reshData="reshData" |
| | | /> |
| | | <!-- 新建/编辑销售机会 --> |
| | | <AddSalesOpportunityDialog v-if="editOpportunityConfig.visible" :edit-common-config="editOpportunityConfig" /> |
| | |
| | | data() { |
| | | return { |
| | | dialogWidth: "25%", |
| | | radio: 1, |
| | | radio: 2, |
| | | commonConfig: this.advanceConfig, |
| | | value1: "", |
| | | value: "", |
| | |
| | | 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) { |
| | |
| | | }, |
| | | saveClick() { |
| | | console.log(this.value) |
| | | // this.commonConfig.visible = false |
| | | // |
| | | if (this.value === "跟进中") { |
| | | // val === '新建' || |
| | | this.pushSalesSources(1) |
| | |
| | | ...this.commonConfig.infomation, |
| | | sales_leads_id: this.commonConfig.infomation.id |
| | | } |
| | | this.editConfig.infomation.codeStandID='' |
| | | this.editConfig.isResh = true |
| | | this.editConfig.infomation.codeStandID = "" |
| | | this.editConfig.visible = true |
| | | }) |
| | | .catch(() => {}) |
| | |
| | | .then(() => { |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.isSalesOpportunity = true |
| | | this.editConfig.isResh = true |
| | | this.editConfig.infomation = { |
| | | ...this.commonConfig.infomation, |
| | | sales_leads_id: this.commonConfig.infomation.id |
| | | } |
| | | this.editConfig.infomation.codeStandID='' |
| | | this.editConfig.infomation.codeStandID = "" |
| | | this.editConfig.visible = true |
| | | }) |
| | | .catch(() => {}) |
| | |
| | | console.log(res) |
| | | this.$message.success("推进成功") |
| | | this.handleClose() |
| | | this.$parent.getData() |
| | | this.reshData() |
| | | }) |
| | | }, |
| | | reshData() { |
| | | this.$parent.getData() |
| | | }, |
| | | // 销售机会 |
| | | salesOpportunityClick(item) { |
| | | 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: "推进" } |
| | | } |
| | | } |
| | | } |