| | |
| | | v-if="editConfig.visible" |
| | | :edit-client-manage-config="editConfig" |
| | | @salesOpportunityClick="salesOpportunityClick" |
| | | @reshData='reshData' |
| | | /> |
| | | <!-- 新建/编辑销售机会 --> |
| | | <AddSalesOpportunityDialog v-if="editOpportunityConfig.visible" :edit-common-config="editOpportunityConfig" /> |
| | |
| | | }, |
| | | 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() { |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { |
| | | ...this.commonConfig.infomation, |
| | | sales_leads_id: this.commonConfig.infomation.id |
| | | } |
| | | this.editConfig.isResh = true |
| | | this.editConfig.infomation.codeStandID='' |
| | | this.editConfig.visible = true |
| | | }) |
| | | .catch(() => {}) |
| | | } else if (this.value === "升级到客户和销售机会") { |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | this.editConfig.visible = true |
| | | 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.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) |