yangfeng
2023-08-11 78cf30802189becef2725af73f37b5d2cb28600f
src/views/client/followupRecords/index.vue
@@ -56,6 +56,18 @@
    isDetail: {
      type: Boolean,
      default: false
    },
    followRecord: {
      type: Array,
      default: () => []
    },
    addConfig: {
      type: Object,
      default: () => {
        return {
          sales_leads_name: ""
        }
      }
    }
  },
  mixins: [pageMixin],
@@ -116,7 +128,11 @@
  },
  created() {
    this.setTable()
    this.getData()
    if (!this.isDetail) {
      this.getData()
    } else {
      this.tableList.tableInfomation = this.followRecord
    }
  },
  methods: {
    setTable() {
@@ -194,7 +210,7 @@
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = {}
      this.editConfig.infomation = { ...this.addConfig }
    },
    // 编辑
    handleClick(row) {
@@ -238,7 +254,11 @@
    selContactsClick(row) {
      console.log(row)
      this.contactsDeail.visible = true
      this.contactsDeail.infomation = { ...row.contact, Client: { name: row.client_name } }
      this.contactsDeail.infomation = {
        ...row.contact,
        Client: { name: row.client_name, client_status_id: row.client.client_status_id },
        client_name: row.client_name
      }
    },
    // 客户名称详情
    selClientClick(row) {
@@ -248,7 +268,8 @@
        ...row.client,
        client_name: row.client.name,
        client_level: row.client.client_level.name,
        client_status: row.client.client_status.name
        client_status: row.client.client_status.name,
        contact_name: row.contact_name
      }
    }
  }