Explorar o código

面谈bug处理

dev01 hai 3 semanas
pai
achega
76e156a4be

+ 1 - 1
src/pages/applyDepart/index.jsx

@@ -150,7 +150,7 @@ class ApplyDepart extends Component {
   }
 
   handleCustomerPrev() {
-      const { interviewIdx } = this.state;
+      let { interviewIdx } = this.state;
       if (interviewIdx == 0) {
           this.setState({ current: 0, interviewIdx: -1 });
       } else {

+ 1 - 1
src/pages/customerProfile/index.jsx

@@ -674,7 +674,7 @@ class CustomerProfile extends Component {
     const params = { uid: this.$instance.router.params.id, pageNo: 1, pageSize: 9999 }
     queryProjectList(params).then(res => {
       if (!res.error.length) {
-        this.setState({ projectList: res.data.list });
+        this.setState({ projectList: res.data.list.filter(item => item.status === 0) });
       }
     })
   }

+ 4 - 3
src/pages/interview/myUser.jsx

@@ -792,10 +792,11 @@ class CustomerProfile extends Component {
     const params = { uid, pageNo: 1, pageSize: 9999 }
     queryProjectList(params).then(res => {
       if (!res.error.length) {
+        let projectList = res.data.list.filter(item => item.status === 0);
         this.setState({
-          projectList: res.data.list,
-          projectingList: res.data.list.filter(item => !item.type),
-          projectedList: res.data.list.filter(item => item.type === 1)
+          projectList,
+          projectingList: projectList.filter(item => item.prdid == urlPrdid),
+          projectedList: projectList.filter(item => item.prdid != urlPrdid)
         });
       }
     })

+ 5 - 5
src/pages/interview/otherUser.jsx

@@ -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,

+ 4 - 3
src/pages/interviewDetail/index.jsx

@@ -738,10 +738,11 @@ class CustomerProfile extends Component {
     queryProjectList(params).then(res => {
       let urlPrdid = this.$instance.router.params.prdid;
       if (!res.error.length) {
+        let projectList = res.data.list.filter(item => item.status === 0);
         this.setState({
-          projectList: res.data.list,
-          projectingList: res.data.list.filter(item => item.prdid == urlPrdid && item.status === 0),
-          projectedList: res.data.list.filter(item => item.prdid != urlPrdid)
+          projectList,
+          projectingList: projectList.filter(item => item.prdid == urlPrdid),
+          projectedList: projectList.filter(item => item.prdid != urlPrdid)
         });
       }
     })