aff1e52e3e
「自主填报」原本只有一种表单。本次拆成两种类型:
1. 新增选择填报类型页 packageUser/self-report/select
- 按设计稿:hero 页头 + 两张类型卡(驻店填报 / 跑店填报)+ 确认选择
- 入口(首页、我的)由直接进 create 改为先进 select
2. 原自主填报页改为「驻店填报」
- 仅改导航标题,表单内容不变
3. 新增跑店填报页 packageUser/self-report/visit
- 复制现有跑店/巡店任务(pages/task/detail 的 cateId=4 分支)的填报页并改造:
保留巡店列表与下方内容,去掉列表上方的任务卡片/总进度/任务详情;
打卡、摆台照、销量、小票、门店评分一并不保留
- 巡店列表内「连锁筛选」「门店筛选」是两个并列的独立输入框,
各自弹各自的选择器(不串联),样式与驻店填报逐项对齐;
换连锁会清空已选门店
- 每条巡店可新增/删除,独立获取定位 + 打卡拍照(最多 9 张)
- 定位不强制(巡店任务里是强制的,这里放开)
- 底部「保存草稿」+「提交填报」,草稿交互与驻店填报一致:
进页面询问是否加载、提交成功后清除;storage key 与驻店分开
- 驳回后重新提交复用同一页面(mode=resubmit)
4. 填报记录页加「驻店 / 跑店」类型切换
- 两表分表查询,各自分页;跑店卡片展示门店数、巡店列表(门店/定位/照片)
- 连锁与门店关键词筛选落到巡店列表的每一行
5. 药审核加「跑店填报」类型
- 新增 AuditVisitReportItem,展开时按 id 拉详情(列表不下发 store_list)
- 跑店没有销量小计,审核通过需手填奖金,故补奖金输入弹层
顺带重构:
- 门店解析(扁平列表 / 连锁嵌套两种结构的兼容、门店明细不入页面 data
的性能处理)抽到 util/store-picker,create 与 visit 共用一份,
避免两页各自维护导致解析口径不一致
293 lines
6.2 KiB
JSON
293 lines
6.2 KiB
JSON
{
|
|
"pages": [
|
|
{
|
|
"path": "pages/index/index",
|
|
"style": {
|
|
"navigationBarTitleText": "药动销",
|
|
"navigationStyle": "custom",
|
|
"enablePullDownRefresh": true
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/exchange/index",
|
|
"style": {
|
|
"navigationBarTitleText": "药兑换",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/share/index",
|
|
"style": {
|
|
"navigationBarTitleText": "药分享",
|
|
"navigationStyle": "custom",
|
|
"enablePullDownRefresh": true
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/share/mine",
|
|
"style": {
|
|
"navigationBarTitleText": "我的分享",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/share/detail",
|
|
"style": {
|
|
"navigationBarTitleText": "分享详情",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/share/create",
|
|
"style": {
|
|
"navigationBarTitleText": "我要分享",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/performance/index",
|
|
"style": {
|
|
"navigationBarTitleText": "团队业绩",
|
|
"navigationStyle": "custom",
|
|
"enablePullDownRefresh": true
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/mine/index",
|
|
"style": {
|
|
"navigationBarTitleText": "我的",
|
|
"navigationStyle": "custom",
|
|
"enablePullDownRefresh": true
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/mine/profile",
|
|
"style": {
|
|
"navigationBarTitleText": "用户资料",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/auth/login",
|
|
"style": {
|
|
"navigationBarTitleText": "微信快捷登录",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/task/detail",
|
|
"style": {
|
|
"navigationBarTitleText": "任务详情",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/certification/index",
|
|
"style": {
|
|
"navigationBarTitleText": "身份认证",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/visit/index",
|
|
"style": {
|
|
"navigationBarTitleText": "培训拜访",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/cart/index",
|
|
"style": {
|
|
"navigationBarTitleText": "购物车",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/product/detail",
|
|
"style": {
|
|
"navigationBarTitleText": "商品详情",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/order/checkout",
|
|
"style": {
|
|
"navigationBarTitleText": "订单结算",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/order/list",
|
|
"style": {
|
|
"navigationBarTitleText": "订单列表",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/order/detail",
|
|
"style": {
|
|
"navigationBarTitleText": "订单详情",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/bonus/index",
|
|
"style": {
|
|
"navigationBarTitleText": "记录",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/bonus/withdraw",
|
|
"style": {
|
|
"navigationBarTitleText": "提现",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/bonus/withdraw-record",
|
|
"style": {
|
|
"navigationBarTitleText": "提现记录",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/audit/index",
|
|
"style": {
|
|
"navigationBarTitleText": "药审核",
|
|
"navigationStyle": "custom"
|
|
}
|
|
}
|
|
],
|
|
"subPackages": [
|
|
{
|
|
"root": "packageUser",
|
|
"pages": [
|
|
{
|
|
"path": "self-report/select",
|
|
"style": {
|
|
"navigationBarTitleText": "自主填报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "self-report/create",
|
|
"style": {
|
|
"navigationBarTitleText": "驻店填报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "self-report/visit",
|
|
"style": {
|
|
"navigationBarTitleText": "跑店填报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "self-report/sales",
|
|
"style": {
|
|
"navigationBarTitleText": "销量填写",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "self-report/records",
|
|
"style": {
|
|
"navigationBarTitleText": "填报记录",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "coupon/index",
|
|
"style": {
|
|
"navigationBarTitleText": "领券中心",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "points/index",
|
|
"style": {
|
|
"navigationBarTitleText": "我的积分",
|
|
"navigationStyle": "custom",
|
|
"enablePullDownRefresh": true
|
|
}
|
|
},
|
|
{
|
|
"path": "travel/index",
|
|
"style": {
|
|
"navigationBarTitleText": "差旅报销",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "address/index",
|
|
"style": {
|
|
"navigationBarTitleText": "收货地址管理",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "chronic/index",
|
|
"style": {
|
|
"navigationBarTitleText": "慢病管理",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "chronic/manage",
|
|
"style": {
|
|
"navigationBarTitleText": "慢病信息管理",
|
|
"navigationStyle": "custom"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tabBar": {
|
|
"color": "#6b7a90",
|
|
"selectedColor": "#2fc6a7",
|
|
"borderStyle": "black",
|
|
"backgroundColor": "#ffffff",
|
|
"list": [
|
|
{
|
|
"pagePath": "pages/index/index",
|
|
"iconPath": "static/tabbar/home.png",
|
|
"selectedIconPath": "static/tabbar/home-active.png",
|
|
"text": "药动销"
|
|
},
|
|
// {
|
|
// "pagePath": "pages/exchange/index",
|
|
// "iconPath": "static/tabbar/switch.png",
|
|
// "selectedIconPath": "static/tabbar/switch-active.png",
|
|
// "text": "药兑换"
|
|
// },
|
|
{
|
|
"pagePath": "pages/share/index",
|
|
"iconPath": "static/tabbar/share.png",
|
|
"selectedIconPath": "static/tabbar/share-active.png",
|
|
"text": "药分享"
|
|
},
|
|
{
|
|
"pagePath": "pages/performance/index",
|
|
"iconPath": "static/tabbar/group.png",
|
|
"selectedIconPath": "static/tabbar/group-active.png",
|
|
"text": "团队业绩"
|
|
},
|
|
{
|
|
"pagePath": "pages/mine/index",
|
|
"iconPath": "static/tabbar/user.png",
|
|
"selectedIconPath": "static/tabbar/user-active.png",
|
|
"text": "我的"
|
|
}
|
|
]
|
|
},
|
|
"globalStyle": {
|
|
"navigationBarTextStyle": "black",
|
|
"navigationBarTitleText": "药小二",
|
|
"navigationBarBackgroundColor": "#ffffff",
|
|
"backgroundColor": "#f4f7fb"
|
|
},
|
|
"uniIdRouter": {}
|
|
}
|