| | |
| | | v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0" |
| | | :codenumer="codenumer" |
| | | :sum="sum" |
| | | :disabled="editConfig.infomation.id || isIdDisabled" |
| | | :disabled="this.editConfig.title !== '新建' || isIdDisabled" |
| | | :inputValue="inputValue" |
| | | @codeList="codeList" |
| | | /> |
| | |
| | | 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], |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapActions (['getContactFilter']), |
| | | formInfo(){ |
| | | this.objCode.type='跟进记录编码' |
| | | this.objCode.codeStandID = '' |
| | |
| | | let follow_record = { |
| | | follow_record: { |
| | | client_id: this.clientId || 0, |
| | | client_status_id: data.client_status_id || 0, |
| | | client_status_id: data.client_status_id || null, |
| | | contact_id: this.contactId || 0, |
| | | contact_information_id: data.contact_information_id || 0, |
| | | contact_information_id: data.contact_information_id || null, |
| | | content: data.content || "", |
| | | follow_time: data.follow_time || "", |
| | | member_id: data.member_id || 0, |
| | |
| | | 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 |