|
|
@@ -19,14 +19,14 @@
|
|
|
<el-input v-model="form.title" placeholder="请输入任务标题" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="20">
|
|
|
+<!-- <el-col :span="20">
|
|
|
<el-form-item label="关联应用数据:" prop="tableName">
|
|
|
<el-input v-model="form.tableName" placeholder="请选择关联应用数据" @focus="$refs.applicationRef.dialogTableVisible = true;$refs.applicationRef.listData()" readonly></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<el-button type="primary" size="mini" @click="$refs.followRef.dialogTableVisible = true;$refs.followRef.listData()" :disabled="followParam.content.ownerid === ''">同步跟进内容</el-button>
|
|
|
- </el-col>
|
|
|
+ </el-col>-->
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="任务内容:" prop="remarks">
|
|
|
<el-input class="normal-margin" v-model="form.remarks" placeholder="输入任务内容" :autosize="{minRows:6}" type="textarea" show-word-limit maxlength="500" size="small"></el-input>
|
|
|
@@ -201,6 +201,7 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
onShow () {
|
|
|
+ console.log(this.data,'data111')
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.$refs.applicationRef.value = 'sat_orderclue'
|
|
|
this.$refs.applicationRef.onChange()
|
|
|
@@ -324,9 +325,9 @@ export default {
|
|
|
this.followParam.content.ownerid = ownerid
|
|
|
this.form.ownertable = ownertable
|
|
|
this.form.ownerid = ownerid
|
|
|
- this.form.tableName = ownertable === 'sat_orderclue'?data.enterprisename_customer:ownertable === 'sa_customers'?data.enterprisename:ownertable === 'sa_project'?data.projectname:''
|
|
|
+ this.form.tableName = ownertable === 'sat_orderclue'?'销售线索':ownertable === 'sa_customers'?'我的客户':ownertable === 'sa_project'?'项目商机':''
|
|
|
},
|
|
|
- follow(content,type,contacts){
|
|
|
+ follow(content,type,contacts,data){
|
|
|
if (this.form.tableName === '我的客户' || this.form.tableName === '项目商机'){
|
|
|
if (contacts.length === 0){
|
|
|
this.form.remarks = '跟进类型:'+type+'\n'+ content
|
|
|
@@ -343,7 +344,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
}else {
|
|
|
- this.form.remarks = '跟进类型:'+type+'\n'+ content
|
|
|
+ this.form.remarks = '跟进类型:'+ data.followupmode+'\n'+ content
|
|
|
}
|
|
|
|
|
|
}
|