|
@@ -17,24 +17,30 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="本次跟进结果" prop="logtype">
|
|
|
- <el-radio-group v-model="param.logtype">
|
|
|
- <el-radio label="跟进">跟进</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item> -->
|
|
|
- <el-form-item :label="$t('跟进内容')" prop="content" >
|
|
|
- <el-input type="textarea" v-model="param.content" size="small" :placeholder="$t('请填写跟进内容')"></el-input>
|
|
|
+ <el-form-item :label="$t(`跟进对象`)" prop="dataextendContactsid" >
|
|
|
+ <el-tag
|
|
|
+ style="float: left;margin-right: 5px;margin-bottom: 5px"
|
|
|
+ v-for="tag in selectTag"
|
|
|
+ :key="tag.index"
|
|
|
+ closable
|
|
|
+ @close="closeTag(tag)"
|
|
|
+ :type="tag.type">
|
|
|
+ {{$t(tag.name)}}
|
|
|
+ </el-tag>
|
|
|
+ <contactsList style="float: left" @onSelect="onSelect" :selects="param.dataextend.contactsid"></contactsList>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :label="$t(`目的`)" prop="target">
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 18 }" v-model="param.target" :placeholder="$t(`请输入跟进目的`)" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :label="$t(`过程`)" prop="content">
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 18 }" v-model="param.content" :placeholder="$t(`请输入跟进过程`)" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :label="$t(`结果`)" prop="results">
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 18 }" v-model="param.results" :placeholder="$t(`请输入跟进结果`)" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :label="$t(`下次跟进计划`)" prop="nextplan">
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 18 }" v-model="param.nextplan" :placeholder="$t(`请输入下次跟进计划`)" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
-<!-- <div class="flex-align-center flex-between pionter" v-for="file in data.attinfo" :key="file.index">
|
|
|
- <div class="flex-align-center">
|
|
|
- <img width="38" :src="checkFileType(file.postfix) === 'file'?require('@/assets/file_icons/file.svg'):file.url" class="inline-16" alt="">
|
|
|
- <div class="file__link inline-16">
|
|
|
- <a :href="file.url">{{file.document}}</a>
|
|
|
- <p>{{(file.contentlength / 1024).toFixed(2)}}kb</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <i style="color:red;" class="el-icon-delete" @click="deleteFile(file)"></i>
|
|
|
- </div>-->
|
|
|
<file-item
|
|
|
:auto="true"
|
|
|
:isDownLoad="true"
|
|
@@ -65,9 +71,10 @@
|
|
|
<script>
|
|
|
import upload from './upload'
|
|
|
import FileItem from '@/SManagement/orderclue/components/file/index3'
|
|
|
+import contactsList from '@/template/projectChange/contactsList.vue'
|
|
|
export default {
|
|
|
name: "editFollow",
|
|
|
- components:{upload,FileItem},
|
|
|
+ components:{upload,FileItem,contactsList},
|
|
|
data () {
|
|
|
return {
|
|
|
loading:false,
|
|
@@ -84,12 +91,19 @@ export default {
|
|
|
"longitude":"",//纬度,可选
|
|
|
"address":"",//解析地址,
|
|
|
"sat_ordercluefollowuplogid":0,//传0新增
|
|
|
- "resource":"销售线索"
|
|
|
+ "resource":"销售线索",
|
|
|
+ "dataextend": {
|
|
|
+ "contactsid": []
|
|
|
+ },
|
|
|
+ "target": "",
|
|
|
+ "results": "",
|
|
|
+ "nextplan": "",
|
|
|
+ "dataextendContactsid":[],
|
|
|
},
|
|
|
timer: '',
|
|
|
rules: {
|
|
|
content: [
|
|
|
- { required: true, message: this.$t('内容不能为空'), trigger: 'blur' },
|
|
|
+ { required: false, message: this.$t('请填写跟进动态'), trigger: 'blur' },
|
|
|
],
|
|
|
followupmode: [
|
|
|
{ required: true, message: this.$t('内容不能为空'), trigger: 'blur' },
|
|
@@ -100,10 +114,14 @@ export default {
|
|
|
competitor: [
|
|
|
{ required: true, message: this.$t('内容不能为空'), trigger: 'blur' },
|
|
|
],
|
|
|
+ dataextendContactsid:[
|
|
|
+ { required: true, message: this.$t('请选择跟进对象'), trigger: 'blur'}
|
|
|
+ ]
|
|
|
},
|
|
|
time: '',
|
|
|
dialogVisible: false,
|
|
|
- followTypeList: []
|
|
|
+ followTypeList: [],
|
|
|
+ selectTag:[],
|
|
|
}
|
|
|
},
|
|
|
props: {
|
|
@@ -150,6 +168,8 @@ export default {
|
|
|
this.dialogVisible = true
|
|
|
this.getFollowType()
|
|
|
this.param = Object.assign({},this.param,this.data)
|
|
|
+ this.selectTag = this.param.contacts
|
|
|
+ this.param.dataextendContactsid = this.param.dataextend.contactsid
|
|
|
},
|
|
|
handleClose () {
|
|
|
this.dialogVisible = false
|
|
@@ -161,6 +181,7 @@ export default {
|
|
|
this.param.sat_orderclueid = this.detailInfo.sat_orderclueid
|
|
|
this.param.createdate = this.timer
|
|
|
this.param.createdate = `${this.timer.getFullYear()}-${this.timer.getMonth() + 1}-${this.timer.getDate()} ${this.timer.getHours()}:${this.timer.getMinutes()}:${this.timer.getSeconds()}`
|
|
|
+
|
|
|
let res = await this.$api.requested({
|
|
|
"id":20221208100602,
|
|
|
"content": this.param
|
|
@@ -223,6 +244,24 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ onSelect(row){
|
|
|
+ console.log(this.selectTag,'selectTag')
|
|
|
+ console.log(row,'333333')
|
|
|
+ this.selectTag = row
|
|
|
+ this.param.dataextend.contactsid = row.map(item=>item.sys_phonebookid)
|
|
|
+ this.param.dataextendContactsid = this.param.dataextend.contactsid
|
|
|
+ // this.$refs.form.validateField('dataextend.contactsid')
|
|
|
+ },
|
|
|
+ closeTag(row){
|
|
|
+ for (var i=0;i<this.selectTag.length;i++){
|
|
|
+ if (row.contactsid === this.selectTag[i].contactsid){
|
|
|
+ this.selectTag.splice(i,1)
|
|
|
+ this.param.dataextend.contactsid.splice(i,1)
|
|
|
+ this.param.dataextendContactsid.splice(i,1)
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|