跟进记录明细报价单没点击弹框下拉数据为空的问题选择机会或者报价单赋值客户名称
3个文件已修改
39 ■■■■ 已修改文件
src/views/other/commonDialog/SelectChanceDialog.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/quotation/AddQuotationDialog.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/commonDialog/SelectChanceDialog.vue
@@ -83,9 +83,12 @@
    }
  },
  created() {
    this.search_map = {
      client_id: this.editConfig.clientId
    if(this.editConfig.clientId){
      this.search_map = {
        client_id: this.editConfig.clientId
      }
    }
    this.setTable()
    this.getData()
  },
src/views/sales/quotation/AddQuotationDialog.vue
@@ -620,12 +620,17 @@
      }
    },
    handleSelectClient(value, item) {
      console.log(value)
      console.log(item,'item')
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        this.getSaleChanceList(item)
      } 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.getSaleChanceList({id:this.clientId})
        this.productTableList.tableData = item.products ? item.products : []
        this.tableData = item.products ? item.products : []
      } else {
@@ -666,13 +671,16 @@
      if (value === "client") {
        this.editConfig.infomation.client_name = ""
        this.clientId = 0
        this.getSaleChanceList()
      } else if (value === "chance") {
        this.editConfig.infomation.sale_chance_name = ""
        this.saleChanceId = 0
        this.getSaleChanceList({id:this.clientId})
      } else {
        this.editConfig.infomation.contact_name = ""
        this.contactId = 0
      }
      this.productTableList.tableData = []
      this.tableData = []
      this.refresh()
@@ -682,8 +690,8 @@
      let params={}
      if(item){
        params={
          page: 1,
          pageSize: 15,
          page: 0,
          pageSize: 0,
        }
        params.search_map={
          client_id: item.id
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -868,7 +868,6 @@
        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)
@@ -887,8 +886,8 @@
      let params={}
      if(item){
        params={
          page: 1,
          pageSize: 15,
          page: 0,
          pageSize: 0,
        }
        params.search_map={
          client_id: item.id
@@ -928,7 +927,10 @@
      } 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)
@@ -939,6 +941,14 @@
        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) {
@@ -1015,12 +1025,14 @@
        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