|
@@ -319,8 +319,24 @@ class CustomerProfile extends Component {
|
|
|
interviewFeedback = v.data.interviewList[0].interviewFeedback || '';
|
|
|
followUpPlan = v.data.interviewList[0].followUpPlan || '';
|
|
|
}
|
|
|
+ // if (v.data.interviewList.length && !v.data.interviewList[0].prdid) {
|
|
|
+ // Taro.showToast({
|
|
|
+ // title: "该企业存在未面谈结束的数据,系统默认带出上次沟通的情况数据!",
|
|
|
+ // icon: "none",
|
|
|
+ // duration: 1800,
|
|
|
+ // });
|
|
|
+ // earlyCommunication = v.data.interviewList[0].earlyCommunication || '';
|
|
|
+ // customerDemand = v.data.interviewList[0].customerDemand || '';
|
|
|
+ // interviewIdeas = v.data.interviewList[0].interviewIdeas || '';
|
|
|
+ // interviewPurpose = v.data.interviewList[0].interviewPurpose || '';
|
|
|
+ // interviewRecommend = v.data.interviewList[0].interviewRecommend || '';
|
|
|
+ // interviewFeedback = v.data.interviewList[0].interviewFeedback || '';
|
|
|
+ // followUpPlan = v.data.interviewList[0].followUpPlan || '';
|
|
|
+ // }
|
|
|
let dtailsData = {
|
|
|
...v.data,
|
|
|
+ interviewList: v.data.interviewList.filter(item => item.prdid),
|
|
|
+ firstInterviewList: v.data.interviewList.length ? [v.data.interviewList[0]] : [],
|
|
|
companyCount: this.addCommas(v.data.companyCount || 0),
|
|
|
socialSecurityCount: this.addCommas(v.data.socialSecurityCount || 0),
|
|
|
externalInvestCount: this.addCommas(v.data.externalInvestCount || 0),
|
|
@@ -381,7 +397,7 @@ class CustomerProfile extends Component {
|
|
|
message = '请输入面谈达成的目的,并且在20字以上';
|
|
|
flag = false;
|
|
|
} else {
|
|
|
- if (this.state.dtails.interviewList.length && !!this.state.dtails.interviewList[0].prdid) {
|
|
|
+ if (this.state.dtails.interviewList.length) {
|
|
|
if (!params.interviewFeedback || (params.interviewFeedback && params.interviewFeedback.length < 20)) {
|
|
|
message = '请输入面谈后的反馈,并且在20字以上';
|
|
|
flag = false;
|
|
@@ -435,7 +451,7 @@ class CustomerProfile extends Component {
|
|
|
message = '请输入经理/上级面谈建议,并且在20字以上';
|
|
|
flag = false;
|
|
|
} else {
|
|
|
- if (this.state.dtails.interviewList.length && !!this.state.dtails.interviewList[0].prdid) {
|
|
|
+ if (this.state.dtails.interviewList.length) {
|
|
|
if (!params.interviewFeedback || (params.interviewFeedback && params.interviewFeedback.length < 20)) {
|
|
|
message = '请输入面谈后的反馈,并且在20字以上';
|
|
|
flag = false;
|
|
@@ -470,6 +486,9 @@ class CustomerProfile extends Component {
|
|
|
// 面谈编号
|
|
|
params.uaiId = curruaiIdList[0].uaiId;
|
|
|
}
|
|
|
+ // if(dtails.firstInterviewList.length && !dtails.firstInterviewList[0].prdid) {
|
|
|
+ // params.uaiId = dtails.firstInterviewList[0].id;
|
|
|
+ // }
|
|
|
|
|
|
if (dtails.newChannel == 1) {
|
|
|
// 渠道客户
|
|
@@ -553,7 +572,6 @@ class CustomerProfile extends Component {
|
|
|
// 计算专利总数
|
|
|
countZlNum({ inventionPatentCount, utilityModelCount, appearancePatentCount, softwareWorksCount, otherCount }) {
|
|
|
let count = 0;
|
|
|
- debugger
|
|
|
if (!isNaN(String(inventionPatentCount))) {
|
|
|
count += Number(inventionPatentCount);
|
|
|
}
|
|
@@ -1285,7 +1303,7 @@ class CustomerProfile extends Component {
|
|
|
</View>
|
|
|
</View>
|
|
|
|
|
|
- {dtails.interviewList && dtails.interviewList.length && !!dtails.interviewList[0].prdid ? (
|
|
|
+ {dtails.interviewList && dtails.interviewList.length ? (
|
|
|
<>
|
|
|
<View className="item">
|
|
|
<View className="item-title">
|
|
@@ -1294,7 +1312,7 @@ class CustomerProfile extends Component {
|
|
|
<Text className="titleTips">(20字以上)</Text>
|
|
|
</View>
|
|
|
<View>
|
|
|
- {dtails.interviewList.length ? (
|
|
|
+ {dtails.interviewList.length > 1 ? (
|
|
|
<AtIcon value='clock' size='20' color='#1E90FF' onClick={() => this.openInteractHis('interviewFeedback')}></AtIcon>
|
|
|
) : null}
|
|
|
</View>
|
|
@@ -1320,7 +1338,7 @@ class CustomerProfile extends Component {
|
|
|
<Text className="titleTips">(20字以上)</Text>
|
|
|
</View>
|
|
|
<View>
|
|
|
- {dtails.interviewList.length ? (
|
|
|
+ {dtails.interviewList.length > 1 ? (
|
|
|
<AtIcon value='clock' size='20' color='#1E90FF' onClick={() => this.openInteractHis('followUpPlan')}></AtIcon>
|
|
|
) : null}
|
|
|
</View>
|
|
@@ -1816,7 +1834,7 @@ class CustomerProfile extends Component {
|
|
|
</View>
|
|
|
</View>
|
|
|
|
|
|
- {dtails.interviewList && dtails.interviewList.length && !!dtails.interviewList[0].prdid ? (
|
|
|
+ {dtails.interviewList && dtails.interviewList.length ? (
|
|
|
<>
|
|
|
<View className="item">
|
|
|
<View className="item-title">
|
|
@@ -1825,7 +1843,7 @@ class CustomerProfile extends Component {
|
|
|
<Text className="titleTips">(20字以上)</Text>
|
|
|
</View>
|
|
|
<View>
|
|
|
- {dtails.interviewList.length ? (
|
|
|
+ {dtails.interviewList.length > 1 ? (
|
|
|
<AtIcon value='clock' size='20' color='#1E90FF' onClick={() => this.openInteractHis('interviewFeedback')}></AtIcon>
|
|
|
) : null}
|
|
|
</View>
|
|
@@ -1851,7 +1869,7 @@ class CustomerProfile extends Component {
|
|
|
<Text className="titleTips">(20字以上)</Text>
|
|
|
</View>
|
|
|
<View>
|
|
|
- {dtails.interviewList.length ? (
|
|
|
+ {dtails.interviewList.length > 1? (
|
|
|
<AtIcon value='clock' size='20' color='#1E90FF' onClick={() => this.openInteractHis('followUpPlan')}></AtIcon>
|
|
|
) : null}
|
|
|
</View>
|