| | |
| | | restaurants = this.subOrderList |
| | | } else if (value === "quotation") { |
| | | restaurants = this.quotationList |
| | | console.log(this.quotationList,'quotationList') |
| | | } |
| | | var results = queryString ? restaurants.filter(this.createStateFilter(queryString, value)) : restaurants |
| | | cb(results) |
| | |
| | | let params={} |
| | | if(item){ |
| | | params={ |
| | | page: 1, |
| | | pageSize: 15, |
| | | page: 0, |
| | | pageSize: 0, |
| | | } |
| | | params.search_map={ |
| | | client_id: item.id |
| | |
| | | } else if (value === "chance") { |
| | | this.saleChanceId = item.id |
| | | this.editConfig.infomation.sale_chance_name = item.name |
| | | this.clientId = item.client.id |
| | | this.editConfig.infomation.client_name = item.client.name |
| | | this.isAddQuatation = false |
| | | this.getSaleChanceList({id:this.clientId}) |
| | | this.getQuotation(item.id) |
| | | } else if (value === "subbill") { |
| | | console.log("下拉框点击", item) |
| | |
| | | this.tableData = item.products |
| | | this.editConfig.infomation.quotation_number = item.number |
| | | this.quotationId = item.id |
| | | //反向 客户名称 |
| | | this.editConfig.infomation.client_name = item.client.name |
| | | this.clientId = item.client.id |
| | | this.getSaleChanceList({id:this.clientId}) |
| | | //反向 销售机会 |
| | | this.editConfig.infomation.sale_chance_name = item.sale_chance.name |
| | | this.saleChanceId = item.sale_chance.id |
| | | this.getQuotation(this.saleChanceId) |
| | | } |
| | | }, |
| | | selClientClick(value) { |
| | |
| | | this.clientId = 0 |
| | | this.saleChanceId = 0 |
| | | this.subbillId = 0 |
| | | this.getSaleChanceList() |
| | | } else if (value === "chance") { |
| | | this.editConfig.infomation.sale_chance_name = "" |
| | | this.saleChanceId = 0 |
| | | this.isAddQuatation = true |
| | | this.editConfig.infomation.quotation_number = "" |
| | | this.quotationId = 0 |
| | | this.getQuotation(this.saleChanceId) |
| | | } else if (value === "subbill") { |
| | | this.editConfig.infomation.subbill_name = "" |
| | | this.subbillId = 0 |