| | |
| | | custom-class="iframe-dialog" |
| | | > |
| | | <el-form |
| | | v-if="refreshFlag" |
| | | ref="form" |
| | | :model="editConfig.infomation" |
| | | :rules="rules" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | refreshFlag: true, |
| | | dialogWidth: "50%", |
| | | editConfig: this.editContactsConfig, |
| | | rules: { |
| | |
| | | this.objCode.codeStandID = this.editConfig.infomation.codeStandID |
| | | } |
| | | this.getRCodeStandardList() |
| | | }, |
| | | /** |
| | | * 强制刷新form组件 |
| | | * 外部更改表单值不会触发表单校验,导致即使有值夜被表单校验阻塞住 |
| | | */ |
| | | refresh() { |
| | | this.refreshFlag = false |
| | | requestAnimationFrame(() => { |
| | | this.refreshFlag = true |
| | | }) |
| | | }, |
| | | getCommonData() { |
| | | getAllData().then((res) => { |
| | |
| | | }, |
| | | // 获取销售机会 |
| | | getChanceList(id) { |
| | | getSaleChanceList({ |
| | | page: 1, |
| | | pageSize: 15, |
| | | search_map: { |
| | | let params={} |
| | | if(id){ |
| | | params={ |
| | | page: 0, |
| | | pageSize: 0, |
| | | } |
| | | params.search_map={ |
| | | client_id: id |
| | | } |
| | | }).then((res) => { |
| | | }else{ |
| | | params={ |
| | | page: 0, |
| | | pageSize: 0, |
| | | } |
| | | } |
| | | getSaleChanceList(params).then((res) => { |
| | | if (res.code == 200) { |
| | | this.saleChancelist = res.data.list |
| | | } |
| | |
| | | } else if (value === "chance") { |
| | | this.saleChanceId = item.id |
| | | this.editConfig.infomation.sale_chance_name = item.name |
| | | this.editConfig.infomation.client_name = item.client.name |
| | | this.clientId = item.client.id |
| | | this.getChanceList(this.clientId) |
| | | } else { |
| | | this.saleLeadId = item.id |
| | | this.editConfig.infomation.sales_leads_name = item.name |
| | |
| | | this.isChance = false |
| | | this.getContactList(row) |
| | | this.getSalesLeadsList(row) |
| | | this.getChanceList(row.id) |
| | | this.getChanceList(this.clientId) |
| | | } else if (value === "chance") { |
| | | this.editConfig.infomation.sale_chance_name = row.name |
| | | this.saleChanceId = row.id |
| | | this.editConfig.infomation.client_name = row.client.name |
| | | this.clientId = row.client.id |
| | | this.getChanceList(this.clientId) |
| | | } else { |
| | | this.editConfig.infomation.sales_leads_name = row.name |
| | | this.saleLeadId = row.id |
| | |
| | | this.editConfig.infomation.sales_leads_name = "" |
| | | this.saleLeadId = 0 |
| | | } |
| | | this.refresh() |
| | | }, |
| | | // 添加附件 |
| | | addAnnexClick() {}, |