yangfeng
2023-08-15 bd42b949807795c581e9193d92834a6187fc10d2
src/views/client/client/index.vue
@@ -28,7 +28,6 @@
      />
      <div class="btn-pager">
        <PublicFunctionBtnView
          :duplicate-check="true"
          :list-button="true"
          :map-button="true"
          :statistics="true"
@@ -145,11 +144,11 @@
          { label: "客户名称", prop: "name", min: 100, isClientClick: true }, // 客户名称
          { label: "销售负责人", prop: "member_name" }, // 销售负责人
          { label: "重要级别", prop: "client_level" }, // 重要级别
          { label: "下次回访日期", prop: "next_visit_time", isTime: true, min: 90 }, // 下次回访日期
          { label: "下次回访日期", prop: "next_visit_time", min: 90 }, // 下次回访日期
          { label: "详细地址", prop: "detail_address", min: 200 }, // 详细地址
          { label: "客户状态", prop: "client_status" }, // 客户状态
          { label: "联系人姓名", prop: "contact_name", isContactClick: true }, // 联系人姓名
          { label: "手机号码", prop: "contact_phone" } // 手机号码
          { label: "联系人手机号码", prop: "contact_phone" } // 手机号码
        ]
      }
      this.searchOptions = []
@@ -174,11 +173,13 @@
              const list = res.data.list.map((item) => {
                let contact_name = ""
                let contact_phone = ""
                let contact_id = 0
                if (item.contacts.length !== 0) {
                  for (let i = 0; i < item.contacts.length; i++) {
                    if (item.contacts[i].is_first) {
                      contact_name = item.contacts[i].name
                      contact_phone = item.contacts[i].phone
                      contact_id = item.contacts[i].id
                    }
                  }
                }
@@ -187,7 +188,9 @@
                  contact_name: contact_name,
                  contact_phone: contact_phone,
                  client_level: item.client_level.name,
                  client_status: item.client_status.name
                  client_status: item.client_status.name,
                  contact_id: contact_id,
                  member_name: item.member.username
                }
              })
              this.tableList.tableInfomation = list || []
@@ -225,7 +228,7 @@
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = {}
      this.editConfig.infomation = { city_id: 0 }
    },
    // 编辑
    handleClick(row) {