调整前端导出字段顺序
parent
ab711362c7
commit
db41fe2a91
|
|
@ -329,8 +329,6 @@ function buildSalesExportHeaders(items: SalesExpansionItem[]) {
|
||||||
const headers = [
|
const headers = [
|
||||||
"工号",
|
"工号",
|
||||||
"姓名",
|
"姓名",
|
||||||
"创建人",
|
|
||||||
"更新修改时间",
|
|
||||||
"联系方式",
|
"联系方式",
|
||||||
"代表处 / 办事处",
|
"代表处 / 办事处",
|
||||||
"所属部门",
|
"所属部门",
|
||||||
|
|
@ -346,6 +344,7 @@ function buildSalesExportHeaders(items: SalesExpansionItem[]) {
|
||||||
headers.push(`项目${index + 1}编码`, `项目${index + 1}名称`, `项目${index + 1}金额`);
|
headers.push(`项目${index + 1}编码`, `项目${index + 1}名称`, `项目${index + 1}金额`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
headers.push("创建人", "更新修改时间");
|
||||||
headers.push("跟进记录");
|
headers.push("跟进记录");
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
@ -357,8 +356,6 @@ function buildSalesExportData(items: SalesExpansionItem[]) {
|
||||||
const row = [
|
const row = [
|
||||||
normalizeExportText(item.employeeNo),
|
normalizeExportText(item.employeeNo),
|
||||||
normalizeExportText(item.name),
|
normalizeExportText(item.name),
|
||||||
normalizeExportText(item.owner),
|
|
||||||
normalizeExportText(item.updatedAt),
|
|
||||||
normalizeExportText(item.phone),
|
normalizeExportText(item.phone),
|
||||||
normalizeExportText(item.officeName),
|
normalizeExportText(item.officeName),
|
||||||
normalizeExportText(item.dept),
|
normalizeExportText(item.dept),
|
||||||
|
|
@ -379,6 +376,10 @@ function buildSalesExportData(items: SalesExpansionItem[]) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
row.push(
|
||||||
|
normalizeExportText(item.owner),
|
||||||
|
normalizeExportText(item.updatedAt),
|
||||||
|
);
|
||||||
row.push(formatExportFollowUps(item.followUps));
|
row.push(formatExportFollowUps(item.followUps));
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
|
|
@ -390,8 +391,6 @@ function buildChannelExportHeaders(items: ChannelExpansionItem[]) {
|
||||||
const headers = [
|
const headers = [
|
||||||
"编码",
|
"编码",
|
||||||
"渠道名称",
|
"渠道名称",
|
||||||
"创建人",
|
|
||||||
"更新修改时间",
|
|
||||||
"省份",
|
"省份",
|
||||||
"市",
|
"市",
|
||||||
"办公地址",
|
"办公地址",
|
||||||
|
|
@ -416,6 +415,7 @@ function buildChannelExportHeaders(items: ChannelExpansionItem[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
headers.push("备注说明");
|
headers.push("备注说明");
|
||||||
|
headers.push("创建人", "更新修改时间");
|
||||||
headers.push("跟进记录");
|
headers.push("跟进记录");
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
@ -428,8 +428,6 @@ function buildChannelExportData(items: ChannelExpansionItem[]) {
|
||||||
const row = [
|
const row = [
|
||||||
normalizeExportText(item.channelCode),
|
normalizeExportText(item.channelCode),
|
||||||
normalizeExportText(item.name),
|
normalizeExportText(item.name),
|
||||||
normalizeExportText(item.owner),
|
|
||||||
normalizeExportText(item.updatedAt),
|
|
||||||
normalizeExportText(item.province),
|
normalizeExportText(item.province),
|
||||||
normalizeExportText(item.city),
|
normalizeExportText(item.city),
|
||||||
normalizeExportText(item.officeAddress),
|
normalizeExportText(item.officeAddress),
|
||||||
|
|
@ -464,6 +462,10 @@ function buildChannelExportData(items: ChannelExpansionItem[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
row.push(normalizeExportText(item.notes));
|
row.push(normalizeExportText(item.notes));
|
||||||
|
row.push(
|
||||||
|
normalizeExportText(item.owner),
|
||||||
|
normalizeExportText(item.updatedAt),
|
||||||
|
);
|
||||||
row.push(formatExportFollowUps(item.followUps));
|
row.push(formatExportFollowUps(item.followUps));
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1619,10 +1619,6 @@ export default function Opportunities() {
|
||||||
const headers = [
|
const headers = [
|
||||||
"项目编号",
|
"项目编号",
|
||||||
"项目名称",
|
"项目名称",
|
||||||
"创建人",
|
|
||||||
"更新修改时间",
|
|
||||||
"是否签单",
|
|
||||||
"是否推送OMS",
|
|
||||||
"项目地",
|
"项目地",
|
||||||
"最终用户",
|
"最终用户",
|
||||||
"建设类型",
|
"建设类型",
|
||||||
|
|
@ -1643,6 +1639,10 @@ export default function Opportunities() {
|
||||||
"项目最新进展",
|
"项目最新进展",
|
||||||
"后续规划",
|
"后续规划",
|
||||||
"备注说明",
|
"备注说明",
|
||||||
|
"创建人",
|
||||||
|
"更新修改时间",
|
||||||
|
"是否签单",
|
||||||
|
"是否推送OMS",
|
||||||
"跟进记录",
|
"跟进记录",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -1670,10 +1670,6 @@ export default function Opportunities() {
|
||||||
worksheet.addRow([
|
worksheet.addRow([
|
||||||
normalizeOpportunityExportText(item.code),
|
normalizeOpportunityExportText(item.code),
|
||||||
normalizeOpportunityExportText(item.name),
|
normalizeOpportunityExportText(item.name),
|
||||||
normalizeOpportunityExportText(item.owner),
|
|
||||||
normalizeOpportunityExportText(item.updatedAt),
|
|
||||||
formatOpportunityBoolean(item.archived, "已签单", "未签单"),
|
|
||||||
formatOpportunityBoolean(item.pushedToOms, "已推送", "未推送"),
|
|
||||||
normalizeOpportunityExportText(item.projectLocation),
|
normalizeOpportunityExportText(item.projectLocation),
|
||||||
normalizeOpportunityExportText(item.client),
|
normalizeOpportunityExportText(item.client),
|
||||||
normalizeOpportunityExportText(item.type || "新建"),
|
normalizeOpportunityExportText(item.type || "新建"),
|
||||||
|
|
@ -1694,6 +1690,10 @@ export default function Opportunities() {
|
||||||
normalizeOpportunityExportText(item.latestProgress),
|
normalizeOpportunityExportText(item.latestProgress),
|
||||||
normalizeOpportunityExportText(item.nextPlan),
|
normalizeOpportunityExportText(item.nextPlan),
|
||||||
normalizeOpportunityExportText(item.notes),
|
normalizeOpportunityExportText(item.notes),
|
||||||
|
normalizeOpportunityExportText(item.owner),
|
||||||
|
normalizeOpportunityExportText(item.updatedAt),
|
||||||
|
formatOpportunityBoolean(item.archived, "已签单", "未签单"),
|
||||||
|
formatOpportunityBoolean(item.pushedToOms, "已推送", "未推送"),
|
||||||
followUpText,
|
followUpText,
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue