|
@@ -168,13 +168,14 @@ class CustomerOtherProfile extends Component {
|
|
|
}
|
|
|
|
|
|
validParams(params) {
|
|
|
+ const { dtails } = this.state;
|
|
|
let flag = true;
|
|
|
let message = '';
|
|
|
|
|
|
- if (!params.earlyCommunication || (params.earlyCommunication && params.earlyCommunication.length < 20)) {
|
|
|
+ if (dtails.myUser === 1 && !params.earlyCommunication || (params.earlyCommunication && params.earlyCommunication.length < 20)) {
|
|
|
message = '请输入客户的难处,并且在20字以上';
|
|
|
flag = false;
|
|
|
- } else if (!params.customerDemand || (params.customerDemand && params.customerDemand.length < 20)) {
|
|
|
+ } else if (dtails.myUser === 1 && !params.customerDemand || (params.customerDemand && params.customerDemand.length < 20)) {
|
|
|
message = '请输入客户的需求,并且在20字以上';
|
|
|
flag = false;
|
|
|
} else if (!params.interviewIdeas || (params.interviewIdeas && params.interviewIdeas.length < 20)) {
|
|
@@ -183,7 +184,7 @@ class CustomerOtherProfile extends Component {
|
|
|
} else if (!params.interviewPurpose || (params.interviewPurpose && params.interviewPurpose.length < 20)) {
|
|
|
message = '请输入面谈达成的目的,并且在20字以上';
|
|
|
flag = false;
|
|
|
- } else if (!params.interviewRecommend || (params.interviewRecommend && params.interviewRecommend.length < 20)) {
|
|
|
+ } else if (dtails.myUser === 1 && !params.interviewRecommend || (params.interviewRecommend && params.interviewRecommend.length < 20)) {
|
|
|
message = '请输入经理/上级面谈建议,并且在20字以上';
|
|
|
flag = false;
|
|
|
} else {
|
|
@@ -217,7 +218,6 @@ class CustomerOtherProfile extends Component {
|
|
|
|
|
|
// 是否在面谈中,表示本次面谈未结束
|
|
|
let curruaiIdList = this.props.uaiIdList.filter(item => item.uid == dtails.uid);
|
|
|
- console.log(this.props.uaiIdList, curruaiIdList)
|
|
|
if (curruaiIdList.length) {
|
|
|
// 面谈编号
|
|
|
params.uaiId = curruaiIdList[0].uaiId;
|
|
@@ -228,7 +228,7 @@ class CustomerOtherProfile extends Component {
|
|
|
params = {
|
|
|
...params,
|
|
|
channelType: dtails.channelType,
|
|
|
- enterpriseCount: dtails.enterpriseCount.replace(/,/g, ''),
|
|
|
+ enterpriseCount: dtails.enterpriseCount,
|
|
|
channelIndicators: dtails.channelIndicators,
|
|
|
interviewIdeas: dtails.interviewIdeas,
|
|
|
interviewPurpose: dtails.interviewPurpose,
|