876847ccbb
甲方反馈原销量填写功能难看、不好用,按原型图改版。 改造前,销量填写是自主填报页内的一个区块(新增商品 → 底部弹层选品 → 回列表手输数量),与原型差异大。现拆为独立页面。 新页 packageUser/self-report/sales: - 视觉对齐原型:搜索框 + 筛选、新增商品 + 批量填写、卡片式列表 (序号徽标/封面/分类/厂家/编码/规格胶囊/数量步进器/删除)、底部提交 - 新增搜索(按名称或编码过滤清单) - 新增分类筛选(弹层选择,可清空) - 新增批量填写(弹层一次录入多项数量) 自主填报页(create.vue): - 销量区块改为入口卡片 + 摘要列表,明细编辑移入新页 - 提交按钮文案「提交销量」改为「提交填报」——该页提交的是整单 (打卡/门头照/销量/小票/小结/评分/定位),原标题名不副实 - 删除已迁移到新页的商品库选择逻辑(约 270 行)及废弃样式 页面间交接(util/sales-handoff.js): - 工程无全局状态管理,页面间只能靠 storage 传递 - 仅负责一次性交接,消费后即清;持久化草稿统一由自主填报页的 整单草稿负责(其 buildDraftPayload 已含 salesItems),避免两份状态互相覆盖 - 换连锁/换门店后清空销量明细与交接数据 修复: - 数量步进器改用纯文本按钮。原用 u-icon 时点击无效——该组件根节点自带 @tap,会吃掉落在图标上的点击;同页「删除」按钮因带文字才正常 - 数量输入限制为非负整数。type=number 在部分机型仍可输入 . / e / -, 故增加输入清洗与失焦兜底;采用「取开头连续数字」而非「删掉所有非数字」, 后者会把 1.5 抹成 15、1e3 抹成 13,属静默的数据污染 提交结构 salesGroups 未变,后端与审核端无需调整。 Co-Authored-By: Claude <noreply@anthropic.com>
279 lines
5.9 KiB
JSON
279 lines
5.9 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/create",
|
|
"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": {}
|
|
}
|