zuozhengqing
2023-10-17 68eb60800a453078e55927dcde6ee9956963f68f
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -489,7 +489,7 @@
        editVisible: false,
        title: "",
        infomation: {},
        search_map:{},
        search_map: {}
      },
      editSelCommonConfig: {
        editVisible: false,
@@ -548,7 +548,7 @@
      getAllData()
        .then((res) => {
          this.memberOptions = res.data.member
          this.dataProcess()
          // this.dataProcess()
        })
        .catch((err) => {
          console.log(err)
@@ -673,12 +673,8 @@
        }
      }
    },
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        this.editSelectChanceConfig.search_map.client_id=item.id
        // 需要修改
    // 销售机会列表
    async getSaleChanceList(item) {
        await getSaleChanceList({
          page: 1,
          pageSize: 15,
@@ -689,6 +685,9 @@
          console.log(res)
          this.saleChancelist = res.data.list
        })
    },
    // 销售子单列表
    async getSubOrderList(item) {
        await getSubOrderList({
          page: 1,
          pageSize: 15,
@@ -698,6 +697,13 @@
        }).then((res) => {
          this.subOrderList = res.data.list
        })
    },
    handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        this.getSaleChanceList(item)
        this.getSubOrderList(item)
      } else if (value === "chance") {
        this.saleChanceId = item.id
        this.editConfig.infomation.client_name = item.name
@@ -723,6 +729,8 @@
      if (value === "client") {
        this.editConfig.infomation.client_name = row.name
        this.clientId = row.id
        this.getSaleChanceList(row)
        this.getSubOrderList(row)
      } else if (value === "chance") {
        this.editConfig.infomation.sale_chance_name = row.name
        this.saleChanceId = row.id