|
@@ -17,6 +17,7 @@ import {
|
|
import Skeleton from "taro-skeleton";
|
|
import Skeleton from "taro-skeleton";
|
|
import {
|
|
import {
|
|
queryByUidAll,
|
|
queryByUidAll,
|
|
|
|
+ getInterviewByPrdid,
|
|
updateUser,
|
|
updateUser,
|
|
addOneContact,
|
|
addOneContact,
|
|
findCustomerContacts,
|
|
findCustomerContacts,
|
|
@@ -294,8 +295,9 @@ class CustomerProfile extends Component {
|
|
// 客户档案详情
|
|
// 客户档案详情
|
|
queryByUidAll() {
|
|
queryByUidAll() {
|
|
const id = this.$instance.router.params.id;
|
|
const id = this.$instance.router.params.id;
|
|
|
|
+ // getInterviewByPrdid({prdid: this.$instance.router.params.prdid})
|
|
queryByUidAll(
|
|
queryByUidAll(
|
|
- false,
|
|
|
|
|
|
+ true,
|
|
{ id }
|
|
{ id }
|
|
)
|
|
)
|
|
.then((v) => {
|
|
.then((v) => {
|
|
@@ -311,13 +313,13 @@ class CustomerProfile extends Component {
|
|
financialProperty: this.addCommas(v.data.financialProperty || 0),
|
|
financialProperty: this.addCommas(v.data.financialProperty || 0),
|
|
financialRd: this.addCommas(v.data.financialRd || 0),
|
|
financialRd: this.addCommas(v.data.financialRd || 0),
|
|
enterpriseCount: this.addCommas(v.data.enterpriseCount || 0),
|
|
enterpriseCount: this.addCommas(v.data.enterpriseCount || 0),
|
|
- 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,
|
|
|
|
|
|
+ earlyCommunication: v.data.interviewList.length ? v.data.interviewList[0].earlyCommunication : '',
|
|
|
|
+ customerDemand: v.data.interviewList.length ? v.data.interviewList[0].customerDemand : '',
|
|
|
|
+ interviewIdeas: v.data.interviewList.length ? v.data.interviewList[0].interviewIdeas : '',
|
|
|
|
+ interviewPurpose: v.data.interviewList.length ? v.data.interviewList[0].interviewPurpose : '',
|
|
|
|
+ interviewRecommend: v.data.interviewList.length ? v.data.interviewList[0].interviewRecommend : '',
|
|
|
|
+ interviewFeedback: v.data.interviewList.length ? v.data.interviewList[0].interviewFeedback : '',
|
|
|
|
+ followUpPlan: v.data.interviewList.length ? v.data.interviewList[0].followUpPlan : '',
|
|
}
|
|
}
|
|
let patentCount = this.countZlNum(dtailsData);
|
|
let patentCount = this.countZlNum(dtailsData);
|
|
this.setState({
|
|
this.setState({
|
|
@@ -1164,7 +1166,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewIdeas}
|
|
value={dtails.interviewIdeas}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈客户思路~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewIdeas = value;
|
|
dtails.interviewIdeas = value;
|
|
@@ -1191,7 +1193,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewPurpose}
|
|
value={dtails.interviewPurpose}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈达成的目的~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewPurpose = value;
|
|
dtails.interviewPurpose = value;
|
|
@@ -1220,7 +1222,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewFeedback}
|
|
value={dtails.interviewFeedback}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈后的反馈~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewFeedback = value;
|
|
dtails.interviewFeedback = value;
|
|
@@ -1247,7 +1249,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.followUpPlan}
|
|
value={dtails.followUpPlan}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写后续跟进计划~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.followUpPlan = value;
|
|
dtails.followUpPlan = value;
|
|
@@ -1554,7 +1556,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.earlyCommunication}
|
|
value={dtails.earlyCommunication}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈客户难处~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.earlyCommunication = value;
|
|
dtails.earlyCommunication = value;
|
|
@@ -1581,7 +1583,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.customerDemand}
|
|
value={dtails.customerDemand}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈客户需求~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.customerDemand = value;
|
|
dtails.customerDemand = value;
|
|
@@ -1608,7 +1610,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewIdeas}
|
|
value={dtails.interviewIdeas}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈客户思路~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewIdeas = value;
|
|
dtails.interviewIdeas = value;
|
|
@@ -1635,7 +1637,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewPurpose}
|
|
value={dtails.interviewPurpose}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈达成的目的~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewPurpose = value;
|
|
dtails.interviewPurpose = value;
|
|
@@ -1662,7 +1664,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewRecommend}
|
|
value={dtails.interviewRecommend}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈建议~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewRecommend = value;
|
|
dtails.interviewRecommend = value;
|
|
@@ -1691,7 +1693,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.interviewFeedback}
|
|
value={dtails.interviewFeedback}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写本次面谈后的反馈~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.interviewFeedback = value;
|
|
dtails.interviewFeedback = value;
|
|
@@ -1718,7 +1720,7 @@ class CustomerProfile extends Component {
|
|
<AtTextarea
|
|
<AtTextarea
|
|
value={dtails.followUpPlan}
|
|
value={dtails.followUpPlan}
|
|
maxLength={200}
|
|
maxLength={200}
|
|
- placeholder='请编写后续跟进计划~'
|
|
|
|
|
|
+ placeholder='~'
|
|
height={70}
|
|
height={70}
|
|
onChange={value => {
|
|
onChange={value => {
|
|
dtails.followUpPlan = value;
|
|
dtails.followUpPlan = value;
|