Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
567e7e58
提交
567e7e58
authored
9月 05, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
测试
上级
d5a1243a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
45 行增加
和
58 行删除
+45
-58
index.vue
...y/sales_point_inspection/examine/inspectionTask/index.vue
+45
-58
没有找到文件。
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/index.vue
浏览文件 @
567e7e58
...
...
@@ -71,31 +71,7 @@
@
cancel=
"showTypePopup = false"
/>
</van-popup>
<!-- 信息填写组 -->
<van-tabs
v-model:active=
"active"
class=
"tabs"
sticky
:lazy-render=
"false"
>
<van-tab
title=
"常规陈列"
>
<convention
:isInitializing=
"isInitializing"
:form=
"form"
ref=
"conventionRef"
/>
</van-tab>
<van-tab
title=
"档期陈列"
>
<scheduleDisplay
:isInitializing=
"isInitializing"
:form=
"form"
ref=
"scheduleDisplayRef"
/>
</van-tab>
<van-tab
title=
"档期补差"
>
<scheduleAdjustment
:isInitializing=
"isInitializing"
:form=
"form"
ref=
"scheduleAdjustmentRef"
/>
</van-tab>
<van-tab
title=
"品类信息"
>
<categoryInformation
:isInitializing=
"isInitializing"
:form=
"form"
ref=
"categoryInformationRef"
/>
</van-tab>
</van-tabs>
<!-- 任务总结 -->
<div
class=
"task-summary"
>
<p
class=
"title"
>
其他:
</p>
...
...
@@ -141,6 +117,50 @@
</van-field>
</div>
</div>
<div
class=
"task-summary"
>
<p
class=
"title"
>
其他:
</p>
<van-field
label=
"礼盒/礼袋是否在售:"
label-align=
"top"
>
<
template
#
input
>
<van-checkbox-group
v-model=
"form.lhldArr"
direction=
"horizontal"
shape=
"square"
@
change=
"handleLhldArrChange"
>
<van-checkbox
name=
"礼盒"
>
礼盒
</van-checkbox>
<van-checkbox
name=
"礼袋"
>
礼袋
</van-checkbox>
</van-checkbox-group>
</
template
>
</van-field>
<van-field
v-model=
"form.skuNum"
label=
"我品 SKU 总数:"
type=
"number"
placeholder=
"请输入"
label-align=
"top"
@
change=
"handleSkuNumChange"
/>
<van-field
v-model=
"form.remark"
label=
"备注:"
placeholder=
"请输入"
label-align=
"top"
type=
"textarea"
border
@
change=
"handleRemarkChange"
/>
<!-- 大日期产品照片 -->
<div
class=
"header-photo-section"
>
<van-field
label=
"大日期产品照片"
label-align=
"top"
>
<
template
#
input
>
<van-uploader
:max-count=
"4"
accept=
"image/*"
capture=
"camera"
:model-value=
"form.longTimePictureArr"
:after-read=
"longTimePictureArrRead"
preview-size=
"78"
@
delete=
"deleteLongTimePictureArr"
>
</van-uploader>
</
template
>
</van-field>
</div>
</div>
</div>
<!-- 加载进度 -->
<van-overlay
:show=
"isInitializing"
>
...
...
@@ -422,39 +442,6 @@ const deleteLongTimePictureArr = async (file, { name, index }) => {
showNotify
({
type
:
'success'
,
message
:
'大日期产品照片,删除成功'
})
}
// 检测iOS设备
const
isIOS
=
/iPad|iPhone|iPod/
.
test
(
navigator
.
userAgent
)
&&
!
window
.
MSStream
;
if
(
isIOS
)
{
// 监听输入框失焦事件(键盘收起时触发)
document
.
addEventListener
(
'blur'
,
(
e
)
=>
{
showNotify
({
type
:
'success'
,
message
:
'请点击输入框,再进行操作'
})
// 只处理输入类元素
if
([
'INPUT'
,
'TEXTAREA'
].
includes
(
e
.
target
.
tagName
))
{
// 延迟执行,确保键盘完全收起
setTimeout
(()
=>
{
// 保存当前滚动位置
const
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
;
// 强制触发重排,修复滚动偏移
window
.
scrollTo
(
0
,
scrollTop
+
1
);
window
.
scrollTo
(
0
,
scrollTop
);
},
100
);
}
},
true
);
// 可选:优化输入框聚焦时的滚动行为
document
.
addEventListener
(
'focus'
,
(
e
)
=>
{
showNotify
({
type
:
'success'
,
message
:
'33333'
})
if
([
'INPUT'
,
'TEXTAREA'
].
includes
(
e
.
target
.
tagName
))
{
// 输入框聚焦时,平滑滚动到可见位置
e
.
target
.
scrollIntoView
({
behavior
:
'smooth'
,
block
:
'center'
});
}
},
true
);
}
</
script
>
<
style
scoped
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论