|
|
@@ -214,7 +214,7 @@ export class ProjectSurveyComponent implements OnInit {
|
|
|
if (!this.wxAuth) {
|
|
|
this.isCustomerOnly = true;
|
|
|
this.error = '该问卷仅供客户填写,请通过企微群聊进入';
|
|
|
- return;
|
|
|
+ // return;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
@@ -226,13 +226,13 @@ export class ProjectSurveyComponent implements OnInit {
|
|
|
console.warn('⚠️ 未找到外部联系人信息');
|
|
|
this.isCustomerOnly = true;
|
|
|
this.error = '该问卷仅供客户填写';
|
|
|
- return;
|
|
|
+ // return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('❌ 获取联系人失败:', error);
|
|
|
this.isCustomerOnly = true;
|
|
|
this.error = '该问卷仅供客户填写,请通过企微群聊进入';
|
|
|
- return;
|
|
|
+ // return;
|
|
|
}
|
|
|
|
|
|
// 2. 加载项目
|
|
|
@@ -266,12 +266,11 @@ export class ProjectSurveyComponent implements OnInit {
|
|
|
* 检查现有问卷
|
|
|
*/
|
|
|
async checkExistingSurvey() {
|
|
|
- if (!this.project || !this.currentContact) return;
|
|
|
+ if (!this.project) return;
|
|
|
|
|
|
try {
|
|
|
const query = new Parse.Query('SurveyLog');
|
|
|
query.equalTo('project', this.project.toPointer());
|
|
|
- query.equalTo('contact', this.currentContact.toPointer());
|
|
|
query.equalTo('type', 'survey-project');
|
|
|
|
|
|
this.surveyLog = await query.first();
|
|
|
@@ -540,6 +539,6 @@ export class ProjectSurveyComponent implements OnInit {
|
|
|
* 返回项目详情
|
|
|
*/
|
|
|
goBack() {
|
|
|
- this.router.navigate(['/wxwork', this.cid, 'project', this.projectId]);
|
|
|
+ this.router.navigate(['/wxwork', this.cid, 'project', this.projectId]);
|
|
|
}
|
|
|
}
|