yangfeng
2023-07-19 4898b385886794bf0663ec2d883ea808b78ae522
src/views/client/followupRecords/index.vue
File was renamed from src/views/custom/followupRecords/index.vue
@@ -20,8 +20,8 @@
</template>
<script>
import AddFollowupRecordsDialog from "@/views/custom/followupRecords/AddFollowupRecordsDialog"
import { getFollowRecordList } from "@/api/custom/followupRecords.js"
import AddFollowupRecordsDialog from "@/views/client/followupRecords/AddFollowupRecordsDialog"
import { getFollowRecordList } from "@/api/client/followupRecords.js"
import { dateFormat } from "@/common/config/index"
export default {
@@ -101,15 +101,13 @@
            if (res.data.list && res.data.list.length > 0) {
              const list = res.data.list.map((item) => {
                return {
                  topic: item.topic,
                  ...item,
                  client_name: item.client.name,
                  contact_name: item.contact.name,
                  client_status_id: item.client.client_status_id,
                  phone: item.contact.phone,
                  follow_time: dateFormat("YYYY-mm-dd HH:MM", item.follow_time),
                  next_follow_time: dateFormat("YYYY-mm-dd HH:MM", item.next_follow_time),
                  member_id: item.member_id,
                  record: item.record
                  next_follow_time: dateFormat("YYYY-mm-dd HH:MM", item.next_follow_time)
                }
              })
              this.tableList.tableInfomation = list || []
@@ -132,19 +130,19 @@
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = {
        customName: "",
        followupRecordsNumber: "LEA50",
        customStatus: "",
        contactName: "",
        owner: "",
        theme: "",
        followupRecords: "",
        client_id: "",
        number: "",
        client_status_id: "",
        contact_id: "",
        member_id: "",
        topic: "",
        record: "",
        phoneNumber: "",
        salesOpportunity: "",
        salesClue: "",
        contactDate: "",
        nextFollowupDate: "",
        visitPurpose: "",
        sale_chance_id: "",
        sales_leads_id: "",
        follow_time: "",
        next_follow_time: "",
        purpose: "",
        content: ""
      }
    },
@@ -154,20 +152,21 @@
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = {
        customName: row.customName,
        followupRecordsNumber: "LEA50",
        customStatus: row.customStatus,
        contactName: row.contactName,
        owner: row.owner,
        theme: row.theme,
        followupRecords: row.followupRecords,
        phoneNumber: row.phoneNumber,
        salesOpportunity: "",
        salesClue: "",
        contactDate: row.contactDate,
        nextFollowupDate: row.nextFollowupDate,
        visitPurpose: "",
        content: ""
        id: row.id,
        client_id: row.client_id,
        number: row.number,
        client_status_id: row.client_status_id,
        contact_id: row.contact_id,
        member_id: row.member_id,
        topic: row.topic,
        record: row.record,
        phoneNumber: "",
        sale_chance_id: row.sale_chance_id,
        sales_leads_id: row.sales_leads_id,
        follow_time: row.follow_time,
        next_follow_time: row.next_follow_time,
        purpose: row.purpose,
        content: row.content
      }
    }
  }