|
|
@@ -30,19 +30,19 @@
|
|
|
<el-input
|
|
|
v-model="form.followContent"
|
|
|
placeholder="请输入本次跟进内容"
|
|
|
- rows="5"
|
|
|
+ rows="4"
|
|
|
show-word-limit
|
|
|
type="textarea" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="达成效果" prop="effect">
|
|
|
- <el-input v-model="form.effect" placeholder="请输入达成效果" rows="5" show-word-limit type="textarea" />
|
|
|
+ <el-input v-model="form.effect" placeholder="请输入达成效果" rows="4" show-word-limit type="textarea" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="问题或困难" prop="issue">
|
|
|
- <el-input v-model="form.issue" placeholder="请输入问题或困难" rows="5" show-word-limit type="textarea" />
|
|
|
+ <el-input v-model="form.issue" placeholder="请输入问题或困难" rows="4" show-word-limit type="textarea" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -99,13 +99,13 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 选择项目联系人弹窗 -->
|
|
|
- <select-business-contact ref="selectContact" :query-params="queryContact" @save="selectContact" />
|
|
|
+ <select-business-contact ref="selectBusinessContact" :query-params="queryContact" @save="selectContact" />
|
|
|
<!-- 选择客户联系人弹窗 -->
|
|
|
- <!-- <select-contact-->
|
|
|
- <!-- ref="selectContact"-->
|
|
|
- <!-- :default-customer="customerInfo"-->
|
|
|
- <!-- :query-params="queryContact"-->
|
|
|
- <!-- @save="selectContact" />-->
|
|
|
+ <select-customer-contact
|
|
|
+ ref="selectCustomerContact"
|
|
|
+ :default-customer="customerInfo"
|
|
|
+ :query-params="queryContact"
|
|
|
+ @save="selectContact" />
|
|
|
|
|
|
<select-distributor
|
|
|
ref="selectDistributor"
|
|
|
@@ -124,11 +124,13 @@
|
|
|
import SelectDistributor from '@/components/select/SelectDistributorContact'
|
|
|
import SelectUser from '@/components/select/SelectUser'
|
|
|
import asyncUploadFile from '@/utils/uploadajax'
|
|
|
+ import SelectCustomerContact from '@/components/select/SelectCustomerContact'
|
|
|
import SelectBusinessContact from '@/components/select/SelectBusinessContact'
|
|
|
|
|
|
export default {
|
|
|
name: 'FollowAdd',
|
|
|
components: {
|
|
|
+ SelectCustomerContact,
|
|
|
SelectBusinessContact,
|
|
|
SelectDistributor,
|
|
|
SelectUser,
|
|
|
@@ -208,17 +210,32 @@
|
|
|
},
|
|
|
handleSelectContact() {
|
|
|
console.log(this.form.targetType)
|
|
|
- if (this.form.targetType == '50') {
|
|
|
+ if (this.form.targetType == '10') {
|
|
|
+ if (!this.queryContact.custId) {
|
|
|
+ this.$message.warning('请先选择客户')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs.selectCustomerContact.open()
|
|
|
+ } else if (this.form.targetType == '20') {
|
|
|
+ if (!this.queryContact.custId) {
|
|
|
+ this.$message.warning('请先选择客户')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.queryContact.busId) {
|
|
|
+ this.$message.warning('请先选择项目')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs.selectBusinessContact.open()
|
|
|
+ } else if (this.form.targetType == '50') {
|
|
|
this.$refs.selectDistributor.open()
|
|
|
- }
|
|
|
- if (this.form.targetType == '70') {
|
|
|
+ } else if (this.form.targetType == '70') {
|
|
|
this.$refs.selectUser.open()
|
|
|
} else {
|
|
|
if (!this.queryContact.custId) {
|
|
|
this.$message.warning('请先选择客户')
|
|
|
return
|
|
|
}
|
|
|
- this.$refs.selectContact.open()
|
|
|
+ this.$refs.selectCustomerContact.open()
|
|
|
}
|
|
|
},
|
|
|
selectContact(val) {
|