haoxuan
2023-10-24 01cea4bc73210e43f748d82a02a432cce615be2d
src/views/sales/salesDetails/index.vue
@@ -237,9 +237,23 @@
    async getData() {
      this.loading = true
      let params = {}
      if (this.addConfig.id) {
      console.log("ssssssssssss")
      console.log(this.addConfig)
      if (this.addConfig.keywordType === "客户名称") {
        params = {
          number: this.addConfig.keyword,
          clientId: this.addConfig.client_id,
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }
      } else if (this.addConfig.keywordType === "销售机会") {
        params = {
          saleChanceId: this.addConfig.sale_chance_id,
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }
      } else if (this.addConfig.keywordType === "销售子单") {
        params = {
          number: this.addConfig.subbill_name,
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        }
@@ -294,6 +308,8 @@
      this.editConfig.infomation = {
        ...this.addConfig,
        currency: "人民币",
        sale_chance_name:"",
        subbill_name:"",
        client_name: Object.keys(this.addConfig).length === 0 ? "" : this.addConfig.client_name
      }
    },
@@ -302,7 +318,7 @@
      console.log(row)
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = { ...row, sale_chance_name: "", currency: "人民币" }
      this.editConfig.infomation = { ...row, sale_chance_name: "", currency: "人民币",sale_chance_name:row.saleChance.name,}
    },
    // 删除
    delClick(rowID) {
@@ -350,9 +366,8 @@
    },
    // 联系人详情
    selCommonClick(row) {
      console.log(row)
      this.specificationDetail.visible = true
      this.specificationDetail.infomation = { ...row }
      this.specificationDetail.visible = true
    },
    addCollectionPlanClick(row) {
      this.addCollectionConfig.visible = true