Commit 6fc80fee by 江名洋

feat(upload): Enhance commit_uploads.sh and API data handling

- Added a check for Detached HEAD state in commit_uploads.sh to prevent erroneous Git operations.
- Updated the API endpoints to handle new fields such as store_short_name and enabler, ensuring proper data mapping and processing.
- Improved data loading functions to support multi-sheet uploads and enhanced metadata handling for factory data.
- Refactored front-end JavaScript to dynamically resolve API base paths, improving compatibility with nested routes.
- Enhanced user interface elements for better interaction and data preview capabilities in the analysis templates.
1 parent 2c6bf241
{
"主机厂数据-鸿蒙子品牌-模板001.xlsx": {
"sheets": [
"主机厂-子品牌(7.1-7.19)"
],
"主机厂-子品牌(7.1-7.19)": {
"shape": [
134,
15
],
"rows": [
[
"总交付数",
"尊界",
"尊界",
"尚界",
"尚界",
"智界",
"智界",
"享界",
"享界"
],
[
"省份",
"城市",
"门店编号",
"用户中心门店名称",
"门店",
"交付",
"出单",
"交付",
"出单",
"交付",
"出单",
"交付",
"出单",
"交付",
"出单"
],
[
"省份",
"城市",
"门店编号",
"用户中心门店名称",
"对应门店名称",
"总交付",
"总出单",
"交付",
"出单",
"交付",
"出单",
"交付",
"出单",
"交付",
"出单"
],
[
"安徽省",
"合肥市",
"CNSCN317902",
"鸿蒙智行授权用户中心•合肥蒙城北路",
"14",
"4",
"0",
"1",
"0",
"0",
"12",
"2",
"2",
"1"
],
[
"安徽省",
"六安市",
"CNSCN315745",
"鸿蒙智行授权用户中心•六安东方汽车城",
"10",
"3",
"0",
"0",
"0",
"0",
"7",
"2",
"3",
"1"
],
[
"安徽省",
"宿州市",
"CNSCN325151",
"鸿蒙智行授权用户中心•宿州城东汽车城",
"5",
"1",
"0",
"0",
"1",
"0",
"2",
"0",
"2",
"1"
],
[
"北京市",
"北京",
"CNSCN330472",
"鸿蒙智行授权用户中心•北京姚家园",
"23",
"32",
"1",
"1",
"0",
"0",
"19",
"23",
"3",
"8"
],
[
"北京市",
"北京",
"CNSCN332567",
"鸿蒙智行智界用户中心•北京通州博瑞汽车园",
"10",
"9",
"0",
"0",
"0",
"0",
"10",
"9",
"0",
"0"
],
[
"北京市",
"北京",
"CNSCN329512",
"鸿蒙智行尚界用户中心•北京安宁庄东路",
"13",
"9",
"0",
"0",
"13",
"9",
"0",
"0",
"0",
"0"
],
[
"北京市",
"北京",
"CNSCN309446",
"鸿蒙智行授权用户中心•北京玉泉路",
"22",
"14",
"1",
"0",
"1",
"1",
"15",
"10",
"5",
"3"
],
[
"北京市",
"北京",
"CNSCN310748",
"鸿蒙智行授权用户中心•北京首钢园",
"93",
"53",
"2",
"1",
"45",
"27",
"35",
"18",
"11",
"7"
],
[
"北京市",
"北京",
"CNSCN333012",
"鸿蒙智行尚界用户中心•北京首都机场",
"26",
"13",
"0",
"0",
"26",
"13",
"0",
"0",
"0",
"0"
]
]
}
},
"输出模板-鸿蒙子品牌-模板001.xlsx": {
"sheets": [
"模板"
],
"模板": {
"shape": [
3,
38
],
"rows": [
[
"基础门店信息",
"主机厂交付数",
"产值表数据",
"是否触发兜底",
"当前转化率",
"需达标转化率",
"需达标订单差额",
"赔付金额",
"总赔付金额"
],
[
"门店",
"品牌",
"兜底指标",
"区域(省)",
"直营与否",
"区域运营",
"飞行督导",
"线上运营",
"特殊情况",
"复合交付数",
"主机厂交付数",
"产值交付数",
"主机厂跟产值表差距",
"门店触客数",
"触客率"
],
[
"示例门店(尊界)",
"尊界",
"兜底:触客渗透率60%",
"广东省",
"直营",
"区域运营",
"飞行督导",
"线上运营",
"10",
"10",
"10",
"8",
"5",
"2",
"1"
]
]
}
}
}
\ No newline at end of file \ No newline at end of file
{"error": "Length mismatch: Expected axis has 15 elements, new values have 19 elements"}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!