0325-海宁pad走访修改

This commit is contained in:
2026-03-25 18:24:40 +08:00
parent 15891708de
commit 7bbe527477
11 changed files with 211 additions and 165 deletions

View File

@@ -371,21 +371,30 @@
width="150px"
v-if="columns[16].visible"
></el-table-column>
<el-table-column align="left" prop="interAddr" label="实地拜访地址" show-overflow-tooltip width="180px" v-if="columns[17].visible"></el-table-column>
<el-table-column align="left" prop="colStafName" label="协同走访客户经理" show-overflow-tooltip width="160px" v-if="columns[18].visible"></el-table-column>
<el-table-column align="left" prop="laterNote" label="事后备注" show-overflow-tooltip width="180px" v-if="columns[19].visible"></el-table-column>
<el-table-column align="left" prop="intentionProductValue" label="走访反馈" show-overflow-tooltip width="160px" v-if="columns[20].visible"></el-table-column>
<el-table-column align="left" prop="feedbackStatus" label="反馈状态" show-overflow-tooltip width="120px" v-if="columns[21].visible"></el-table-column>
<el-table-column align="left" prop="sourceOfInterview" label="走访来源" show-overflow-tooltip width="140px" v-if="columns[22].visible"></el-table-column>
<el-table-column align="left" prop="filename" label="批量导入文件名" show-overflow-tooltip width="180px" v-if="columns[23].visible"></el-table-column>
<el-table-column align="left" prop="outCallStatus" label="外呼状态" show-overflow-tooltip width="120px" v-if="columns[24].visible"></el-table-column>
<el-table-column align="left" prop="outCallIntention" label="客户意愿" show-overflow-tooltip width="140px" v-if="columns[25].visible"></el-table-column>
<el-table-column align="left" prop="source" label="走访渠道" show-overflow-tooltip width="120px" v-if="columns[26].visible"></el-table-column>
<el-table-column align="left" prop="analysisValue" label="nlp模型提取" show-overflow-tooltip width="140px" v-if="columns[27].visible"></el-table-column>
<el-table-column align="left" prop="facility" label="预授信额度" show-overflow-tooltip width="140px" v-if="columns[28].visible"></el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="100">
<el-table-column align="left" prop="interAddr" label="实地拜访地址" show-overflow-tooltip width="180px" v-if="isPersonalFeedbackTab && columns[17].visible"></el-table-column>
<el-table-column align="left" prop="colStafName" label="协同走访客户经理" show-overflow-tooltip width="160px" v-if="isPersonalFeedbackTab && columns[18].visible"></el-table-column>
<el-table-column align="left" prop="laterNote" label="事后备注" show-overflow-tooltip width="180px" v-if="isPersonalFeedbackTab && columns[19].visible"></el-table-column>
<el-table-column align="left" prop="intentionProductValue" label="走访反馈" show-overflow-tooltip width="160px" v-if="isPersonalFeedbackTab && columns[20].visible"></el-table-column>
<el-table-column align="left" prop="feedbackStatus" label="反馈状态" show-overflow-tooltip width="120px" v-if="isPersonalFeedbackTab && columns[21].visible"></el-table-column>
<el-table-column align="left" prop="sourceOfInterview" label="走访来源" show-overflow-tooltip width="140px" v-if="isPersonalFeedbackTab && columns[22].visible"></el-table-column>
<el-table-column align="left" prop="filename" label="批量导入文件名" show-overflow-tooltip width="180px" v-if="isPersonalFeedbackTab && columns[23].visible"></el-table-column>
<el-table-column align="left" prop="outCallStatus" label="外呼状态" show-overflow-tooltip width="120px" v-if="isPersonalFeedbackTab && columns[24].visible"></el-table-column>
<el-table-column align="left" prop="outCallIntention" label="客户意愿" show-overflow-tooltip width="140px" v-if="isPersonalFeedbackTab && columns[25].visible"></el-table-column>
<el-table-column align="left" prop="source" label="走访渠道" show-overflow-tooltip width="120px" v-if="isPersonalFeedbackTab && columns[26].visible">
<template slot-scope="scope">
<el-button type="text" size="mini" @click="handleEditFeedback(scope.row)">编辑</el-button>
<span>{{ formatSourceLabel(scope.row.source) }}</span>
</template>
</el-table-column>
<el-table-column align="left" prop="analysisValue" label="nlp模型提取" show-overflow-tooltip width="140px" v-if="isPersonalFeedbackTab && columns[27].visible"></el-table-column>
<el-table-column align="left" prop="facility" label="预授信额度" show-overflow-tooltip width="140px" v-if="isPersonalFeedbackTab && columns[28].visible"></el-table-column>
<el-table-column v-if="isPersonalFeedbackTab" align="center" label="操作" fixed="right" width="100">
<template slot-scope="scope">
<el-button
type="text"
size="mini"
:disabled="isFeedbackCompleted(scope.row)"
@click="handleEditFeedback(scope.row)"
>反馈</el-button>
</template>
</el-table-column>
</el-table>
@@ -410,7 +419,7 @@
<el-form ref="feedbackFormRef" :model="feedbackForm" label-width="100px" class="feedback-form">
<el-form-item label="走访渠道" required>
<el-radio-group v-model="feedbackForm.source">
<el-radio v-for="item in sourceOptions" :key="item" :label="item">{{ item }}</el-radio>
<el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value">{{ item.label }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="客户意愿" required>
@@ -429,7 +438,7 @@
</section>
</div>
</el-form-item>
<el-form-item label="预览结果">
<el-form-item label="走访反馈">
<div class="feedback-preview">{{ feedbackPreview || "-" }}</div>
</el-form-item>
</el-form>
@@ -445,7 +454,11 @@
import { mapGetters } from "vuex";
import { getPADVisitRecord, updatePADVisitFeedback } from "@/api/task/PADvisitRecord.js";
const SOURCE_OPTIONS = ["企业微信", "PAD"];
const SOURCE_OPTIONS = [
{ label: "PAD", value: "1" },
{ label: "企业微信", value: "2" },
{ label: "电话", value: "4" }
];
const FEEDBACK_TYPE_OPTIONS = ["拒绝", "考虑", "意愿", "其他", "愿意", "现场办理"];
const FEEDBACK_PRODUCT_OPTIONS = [
"丰收互联",
@@ -567,7 +580,11 @@ export default {
},
// 海宁
is875() {
return this.userName.slice(0, 3) === '875'
const deptId = this.deptId === null || this.deptId === undefined ? '' : String(this.deptId)
return deptId.slice(0, 3) === '965'
},
isPersonalFeedbackTab() {
return this.is875 && this.selectedTab === '0'
},
feedbackPreview() {
return this.buildFeedbackValue(this.feedbackForm.feedbackSelections)
@@ -632,10 +649,23 @@ export default {
.map(item => `${item.feedbackType}:${item.products.join(",")}`)
.join(";");
},
isFeedbackCompleted(row) {
const source = row && row.source !== null && row.source !== undefined ? String(row.source).trim() : "";
const intentionProductValue = row && row.intentionProductValue ? String(row.intentionProductValue).trim() : "";
return !!source && !!intentionProductValue;
},
formatSourceLabel(source) {
const sourceValue = source === null || source === undefined ? "" : String(source);
const matched = this.sourceOptions.find(item => item.value === sourceValue);
return matched ? matched.label : (sourceValue || "-");
},
handleEditFeedback(row) {
if (this.isFeedbackCompleted(row)) {
return;
}
this.feedbackForm = {
id: row.id,
source: row.source || "",
source: row.source === null || row.source === undefined ? "" : String(row.source),
feedbackSelections: this.parseFeedbackValue(row.intentionProductValue)
};
this.feedbackDialogVisible = true;