| | |
| | | <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)" |
| | | 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" |
| | | /> |
| | | <span v-else style="color: #f56c6c" |
| | | <span v-else-if="method == 0" style="color: #f56c6c" |
| | | >请优先配置编码规范 |
| | | <el-button type="text" @click="numberClick"> |
| | | 配置规范 |
| | | </el-button |
| | | ></span |
| | | > |
| | | <span v-else>自动生成</span> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | 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" }, |
| | |
| | | this.$store.dispatch("geLead") |
| | | this.getCommonData() |
| | | this.getContactInfoList() |
| | | this.getRCodeStandardList(); |
| | | this.formInfo(); |
| | | }, |
| | | watch:{ |
| | | 'editConfig.visible'(val){ |
| | | 'editContactsConfig.visible'(val){ |
| | | if(val){ |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | 'editConfig.infomation'(){ |
| | | 'editContactsConfig.infomation.codeStandID'(){ |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | methods: { |
| | | formInfo(){ |
| | | this.objCode.type='跟进记录编码' |
| | | this.objCode.codeStandID = '' |
| | | if(this.editConfig.infomation.number&&this.editConfig.infomation.codeStandardID){ |
| | | this.objCode.codeStandID = this.editConfig.infomation.codeStandardID; |
| | | if(this.editConfig.infomation.codeStandID){ |
| | | this.objCode.codeStandID = this.editConfig.infomation.codeStandID; |
| | | } |
| | | this.getRCodeStandardList(); |
| | | }, |
| | |
| | | record: data.record || "", |
| | | sale_chance_id: this.saleChanceId || 0, |
| | | sales_leads_id: this.saleLeadId || 0, |
| | | topic: data.topic || "" |
| | | topic: data.topic || "", |
| | | codeStandID:data.ID, |
| | | codeRule:this.codeRule, |
| | | } |
| | | } |
| | | let params = {} |