| | |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="12" v-if="isUnflod"> |
| | | <!-- <el-form-item label="跟进记录编号" prop="number"> |
| | | <el-input v-model="editConfig.infomation.number" style="width: 100%"></el-input> |
| | | </el-form-item> --> |
| | | <el-form-item label="跟进记录编号" prop="number"> |
| | | <WordInput |
| | | 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], |
| | |
| | | number: [{ required: true, message: "请输入跟进记录编号", trigger: "blur" }], |
| | | member_id: [{ required: true, message: "请选择负责人", trigger: "change" }], |
| | | record: [{ required: true, message: "请输入跟进记录", trigger: "blur" }], |
| | | client_name:[{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | topic:[{ required: true, message: "请输入主题", trigger: "blur" }], |
| | | // content: [{ required: true, message: "请输入内容", trigger: "blur" }], |
| | | phoneNumber: [ |
| | | { required: false, message: "", trigger: "blur" }, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapActions (['getContactFilter']), |
| | | formInfo(){ |
| | | this.objCode.type='跟进记录编码' |
| | | this.objCode.codeStandID = '' |
| | | if(this.editConfig.infomation.codeStandID){ |
| | | this.objCode.codeStandID = this.editConfig.infomation.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 |