zuozhengqing
2023-10-16 9e81895b192f38d1bedfb9054a90b4c0c46042ea
跟进记录,销售线索参数调整
2个文件已修改
20 ■■■■ 已修改文件
src/store/modules/getClientName.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/followupRecords/AddFollowupRecordsDialog.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/getClientName.js
@@ -125,6 +125,9 @@
        }
      })
    },
    getLeadFilter({commit},newData){
      commit("saleLeadlist",newData)
    },
    geMaster(context) {
      getMasterOrderList().then((res) => {
        if (res.code == 200) {
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -401,6 +401,8 @@
import { getContactList } from "@/api/client/contacts"
import { mapActions } from "vuex";
import { getSaleChanceList } from "@/api/sales/salesOpportunity";
import { getSalesLeadsList } from "@/api/client/salesLead"
export default {
  name: "AddFollowupRecordsDialog",
@@ -534,7 +536,7 @@
    },
  },
  methods: {
    ...mapActions(["getContactFilter"]),
    ...mapActions(["getContactFilter","getLeadFilter"]),
    formInfo() {
      this.objCode.type = "跟进记录编码";
      this.objCode.codeStandID = "";
@@ -671,9 +673,10 @@
    },
    async handleSelectClient(value, item) {
      if (value === "client") {
        console.log(item,"item")
        this.editSelectContactConfig.search_map.client_id=item.id
        this.editSelectChanceConfig.search_map.client_id=item.id
        this.editSelectLeadConfig.search_map.client_id=item.id
        this.editSelectLeadConfig.search_map.name=item.name
        await getContactList({
        search_map:{
          client_id:item.id
@@ -685,11 +688,19 @@
            this.getContactFilter(res.data.list);
          }
        });
        await getSalesLeadsList({
          search_map:{
            name:item.name
          },
        }).then((res) => {
          if (res.code === 200) {
            this.getLeadFilter(res.data.list);
          }
        });
        this.clientId = item.id;
        this.editConfig.infomation.client_name = item.name;
        this.isChance = false;
        this.getChanceList(item.id);
        // console.log("clientId",this.clientId,this.editConfig.infomation.client_name)
      } else if (value === "contact") {
        this.contactId = item.id;
        this.editConfig.infomation.contact_name = item.name;