0327-海宁pad走访修改、北仑网格业绩统计修改
This commit is contained in:
@@ -220,7 +220,16 @@
|
||||
show-overflow-tooltip
|
||||
width="150px"
|
||||
v-if="columns[5].visible"
|
||||
></el-table-column>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="isPersonalFeedbackTab && getPersonalViewCustId(scope.row)"
|
||||
type="text"
|
||||
@click="openPersonalView(scope.row)"
|
||||
>{{ scope.row.custName }}</el-button>
|
||||
<span v-else>{{ scope.row.custName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="left"
|
||||
prop="custIdc"
|
||||
@@ -228,7 +237,16 @@
|
||||
show-overflow-tooltip
|
||||
width="200px"
|
||||
v-if="columns[6].visible && selectedTab === '0'"
|
||||
></el-table-column>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="isPersonalFeedbackTab && getPersonalViewCustId(scope.row)"
|
||||
type="text"
|
||||
@click="openPersonalView(scope.row)"
|
||||
>{{ scope.row.custIdc }}</el-button>
|
||||
<span v-else>{{ scope.row.custIdc || "-" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="left"
|
||||
prop="socialCreditCode"
|
||||
@@ -591,7 +609,7 @@ export default {
|
||||
// 海宁
|
||||
is875() {
|
||||
const deptId = this.deptId === null || this.deptId === undefined ? '' : String(this.deptId)
|
||||
return deptId.slice(0, 3) === '965'
|
||||
return deptId.slice(0, 3) === '875'
|
||||
},
|
||||
isPersonalFeedbackTab() {
|
||||
return this.is875 && this.selectedTab === '0'
|
||||
@@ -670,6 +688,33 @@ export default {
|
||||
const matched = this.sourceOptions.find(item => item.value === sourceValue);
|
||||
return matched ? matched.label : (sourceValue || "-");
|
||||
},
|
||||
getPersonalViewCustId(row) {
|
||||
const custId = row && row.custId ? String(row.custId).trim() : "";
|
||||
if (custId) {
|
||||
return custId;
|
||||
}
|
||||
const custIdc = row && row.custIdc ? String(row.custIdc).trim() : "";
|
||||
return custIdc ? `101${custIdc}` : "";
|
||||
},
|
||||
openPersonalView(row) {
|
||||
if (!this.isPersonalFeedbackTab) {
|
||||
this.$message.warning("当前机构暂无个人客户视图跳转权限");
|
||||
return;
|
||||
}
|
||||
const custId = this.getPersonalViewCustId(row);
|
||||
if (!custId) {
|
||||
this.$message.warning("未获取到客户标识,暂时无法跳转个人视图");
|
||||
return;
|
||||
}
|
||||
this.$router.push({
|
||||
path: "/360charts/indexcharts",
|
||||
query: {
|
||||
custId,
|
||||
selectedTab: this.selectedTab,
|
||||
backUrl: this.$route.path
|
||||
}
|
||||
});
|
||||
},
|
||||
handleEditFeedback(row) {
|
||||
if (this.isFeedbackCompleted(row)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user