songshankun
2023-10-13 84dfaf7b7ee6f4fccf5dfe7534c81ab2687a2b07
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -340,6 +340,9 @@
import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog"
import SelectLeadDialog from "@/views/other/commonDialog/SelectLeadDialog"
import codeMixin from "./mixin/codeMixin";
import { getContactList } from "@/api/client/contacts"
import { mapActions  } from 'vuex';
export default {
  name: "AddFollowupRecordsDialog",
  mixins: [codeMixin],
@@ -450,6 +453,7 @@
    }
  },
  methods: {
    ...mapActions (['getContactFilter']),
    formInfo(){
      this.objCode.type='跟进记录编码'
      this.objCode.codeStandID = ''
@@ -566,10 +570,16 @@
        return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0
      }
    },
    handleSelectClient(value, item) {
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        await getContactList({
          clientId:this.clientId
        }).then((res)=>{
          this.getContactFilter(res.data.list)
        })
        // 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