yangfeng
2023-07-17 960d295793f1d164e3e8e22f8d7744b7923ae24b
src/views/custom/salesLead/index.vue
@@ -86,7 +86,7 @@
          { label: "商机来源", prop: "sales_sources_id", min: 190 }, // 商机来源
          { label: "省份", prop: "province", min: 190 }, // 省份
          { label: "城市", prop: "city", min: 190 }, // 城市
          { label: "负责人", prop: "owner", min: 190 } // 负责人
          { label: "负责人", prop: "member_id", min: 190 } // 负责人
        ]
      }
      this.searchOptions = []
@@ -99,12 +99,20 @@
    async getData() {
      await getSalesLeadsList()
        .then((res) => {
          console.log(res)
          this.tableList.tableInfomation = res.data.tableList.map((item) => {
            item.province = item.Province.name
            item.city = item.City.name
            return item
          const list = res.data.list.map((item) => {
            return {
              id: item.id,
              name: item.name,
              number: item.number,
              contact_name: item.contact_name,
              contact_phone: item.contact_phone,
              sales_sources_id: item.sales_sources_id,
              province: item.Province.name,
              city: item.City.name,
              member_id: item.member_id
            }
          })
          this.tableList.tableInfomation = list || []
        })
        .catch((err) => {
          console.log(err)
@@ -115,21 +123,20 @@
      this.editSalesLeadConfig.visible = true
      this.editSalesLeadConfig.title = "新建"
      this.editSalesLeadConfig.infomation = {
        customName: "",
        saleLeadNumber: "LEA50",
        contactName: "",
        contactDuties: "",
        phoneNumber: "",
        name: "",
        number: "",
        contact_name: "",
        contact_position: "",
        contact_phone: "",
        businessStatus: "新建",
        businessSource: "1",
        owner: "",
        position: "",
        map: "",
        country: "1",
        province: "1",
        city: "1",
        region: "1",
        address: ""
        sales_sources_id: "",
        member_id: "",
        country: "",
        province: "",
        city: "",
        region: "",
        address: "",
        desc: ""
      }
    },
    // 编辑
@@ -138,21 +145,21 @@
      this.editSalesLeadConfig.visible = true
      this.editSalesLeadConfig.title = "编辑"
      this.editSalesLeadConfig.infomation = {
        customName: row.customName,
        saleLeadNumber: row.saleLeadNumber,
        contactName: row.contactName,
        contactDuties: row.contactDuties,
        phoneNumber: row.phoneNumber,
        businessStatus: "新建",
        businessSource: row.businessSource,
        owner: row.owner,
        position: "",
        map: "",
        country: "1",
        province: "1",
        city: "1",
        region: "1",
        address: ""
        id: row.id,
        name: row.name,
        number: row.number,
        contact_name: row.contact_name,
        contact_position: row.contact_position,
        contact_phone: row.contact_phone,
        businessStatus: "编辑",
        sales_sources_id: row.sales_sources_id,
        member_id: row.member_id,
        country: "",
        province: "",
        city: "",
        region: "",
        address: "",
        desc: row.desc
      }
    },
    // 导入