zuozhengqing
2024-01-08 554aef0a4395d72dc3e2d22990c129475b052b5f
src/views/client/client/index.vue
@@ -150,7 +150,7 @@
        visible: false,
        infomation: {}
      },
      not_admin: 2,
      is_public:true,
      tableColumn:[
        { label: "客户名称", prop: "name", min: 100, isClientClick: true, default:true}, // 客户名称
        { label: "销售负责人", prop: "member_name" }, // 销售负责人
@@ -167,7 +167,7 @@
  created() {
    this.setTable()
    this.search_map = {
      not_admin: this.not_admin
      is_public: this.is_public
    }
    this.getData()
  },
@@ -263,12 +263,12 @@
    tabsClick(tab) {
      console.log(tab.name)
      if (tab.name === "first") {
        this.not_admin = 2
        this.is_public = true
      } else {
        this.not_admin = 1
        this.is_public = false
      }
      this.search_map = {
        not_admin: this.not_admin
        is_public: this.is_public
      }
      this.pagerOptions.currPage = 1
      this.getData()
@@ -276,7 +276,7 @@
    // 搜索
    onFilterSearch(searchText){
      this.search_map = {
        not_admin: this.not_admin,
        is_public: this.is_public,
        name: searchText
      }
      this.pagerOptions.currPage = 1
@@ -293,16 +293,17 @@
        registered_capital_id: 1,
        enterprise_nature_id: 1,
        enterprise_scale_id: 1,
        industry_id: 1
        industry_id: 1,
        province_id:''
      }
      this.editConfig.visible = true
    },
    // 编辑
    handleClick(row) {
      console.log(row)
      this.editConfig.title = "编辑"
      this.editConfig.infomation = {
        ...row
        ...row,
        activeName:this.activeName,
      }
      this.editConfig.visible = true
    },
@@ -369,14 +370,16 @@
    // 跟进
    followupClick(row) {
      console.log(row)
      this.editFollowupConfig.visible = true
      this.editFollowupConfig.title = "新建"
      this.editFollowupConfig.infomation = {
        ...row,
        client_name: row.name,
        number: "",
        next_follow_time: row.next_visit_time
        codeStandID:'',
        next_follow_time: row.next_visit_time,
        client_id:row.id
      }
      this.editFollowupConfig.visible = true
    },
    // 分配
    allocationBtnClick(row) {
@@ -388,7 +391,7 @@
    async changeHighSeasClick(row) {
      await getAssign({
        ids: [row.id],
        member_id: 1,
        member_id: 0,
        type: "client"
      }).then((res) => {
        this.editConfig.visible = false