Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
1ec485b7
提交
1ec485b7
authored
9月 05, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(inspectiontask/*): 修改:勤策移动端_售点稽查_照片按照年月分组
上级
b1f5468e
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
27 行增加
和
11 行删除
+27
-11
index.vue
...y/sales_point_inspection/examine/inspectionTask/index.vue
+8
-2
conventionalDisplay.vue
...ction/examine/inspectionTask/tabs/conventionalDisplay.vue
+4
-2
scheduleAdjustment.vue
...ection/examine/inspectionTask/tabs/scheduleAdjustment.vue
+4
-2
scheduleDisplay.vue
...nspection/examine/inspectionTask/tabs/scheduleDisplay.vue
+5
-3
newTerminal.vue
...t_activity/sales_point_inspection/examine/newTerminal.vue
+6
-2
没有找到文件。
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/index.vue
浏览文件 @
1ec485b7
...
@@ -325,7 +325,10 @@ const handleClickLocation = () => {
...
@@ -325,7 +325,10 @@ const handleClickLocation = () => {
/*************** 门头照上传 ***************/
/*************** 门头照上传 ***************/
// 上传照片
// 上传照片
const
commitStorePhotosRead
=
async
(
file
)
=>
{
const
commitStorePhotosRead
=
async
(
file
)
=>
{
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/storeFrontPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
form
.
storeCode
}
.png`
,
file
.
file
)
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/storeFrontPhoto/
${
date
.
getFullYear
()}
-
${
month
}
/
${
useUserStore
().
empInfo
.
empNo
}
/
${
form
.
storeCode
}
.png`
,
file
.
file
)
form
.
commitStorePicture
=
[{
form
.
commitStorePicture
=
[{
url
:
pictureUrl
url
:
pictureUrl
}]
}]
...
@@ -400,7 +403,10 @@ const handleRemarkChange = async () => {
...
@@ -400,7 +403,10 @@ const handleRemarkChange = async () => {
// 大日期照片上传
// 大日期照片上传
const
longTimePictureArrRead
=
async
(
file
)
=>
{
const
longTimePictureArrRead
=
async
(
file
)
=>
{
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/longTimePicture/
${
useUserStore
().
empInfo
.
empNo
}
/
${
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/longTimePicture/
${
date
.
getFullYear
()}
-
${
month
}
/
${
useUserStore
().
empInfo
.
empNo
}
/
${
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
form
.
longTimePictureArr
.
push
({
form
.
longTimePictureArr
.
push
({
url
:
pictureUrl
url
:
pictureUrl
})
})
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/conventionalDisplay.vue
浏览文件 @
1ec485b7
...
@@ -183,9 +183,11 @@ const handleCostChange = async (index) => {
...
@@ -183,9 +183,11 @@ const handleCostChange = async (index) => {
const
displayPhotosRead
=
async
(
file
,
{
name
,
index
})
=>
{
const
displayPhotosRead
=
async
(
file
,
{
name
,
index
})
=>
{
// name:是当前照片组件所在陈列组的索引
// name:是当前照片组件所在陈列组的索引
// index: 当前照片组的索引
// index: 当前照片组的索引
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
target
=
displayGroup
.
value
[
name
]
const
target
=
displayGroup
.
value
[
name
]
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/displayPhoto/
${
date
.
getFullYear
()}
-
${
month
}
/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/displayPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
target
.
photoArr
.
push
({
target
.
photoArr
.
push
({
url
:
pictureUrl
url
:
pictureUrl
})
})
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/scheduleAdjustment.vue
浏览文件 @
1ec485b7
...
@@ -181,9 +181,11 @@ const handleCostChange = async (index) => {
...
@@ -181,9 +181,11 @@ const handleCostChange = async (index) => {
const
displayPhotosRead
=
async
(
file
,
{
name
,
index
})
=>
{
const
displayPhotosRead
=
async
(
file
,
{
name
,
index
})
=>
{
// name:是当前照片组件所在陈列组的索引
// name:是当前照片组件所在陈列组的索引
// index: 当前照片组的索引
// index: 当前照片组的索引
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
target
=
displayGroup
.
value
[
name
]
const
target
=
displayGroup
.
value
[
name
]
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/scheduleAdjustmentPhoto/
${
date
.
getFullYear
()}
-
${
month
}
/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/scheduleAdjustmentPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
target
.
photoArr
.
push
({
target
.
photoArr
.
push
({
url
:
pictureUrl
url
:
pictureUrl
})
})
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/scheduleDisplay.vue
浏览文件 @
1ec485b7
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
uploadFileToOSSAPI
,
createInspectionTaskAPI
,
createInspectionTaskDetailAPI
,
deleteInspectionTaskAPI
}
from
'@/api'
import
{
uploadFileToOSSAPI
,
createInspectionTaskAPI
,
createInspectionTaskDetailAPI
,
deleteInspectionTaskAPI
}
from
'@/api'
import
useUserStore
from
'@/store/modules/user'
import
useUserStore
from
'@/store/modules/user'
import
{
v4
as
uuidv4
}
from
'uuid'
import
{
v4
as
uuidv4
}
from
'uuid'
...
@@ -181,9 +181,11 @@ const handleCostChange = async (index) => {
...
@@ -181,9 +181,11 @@ const handleCostChange = async (index) => {
const
displayPhotosRead
=
async
(
file
,
{
name
,
index
})
=>
{
const
displayPhotosRead
=
async
(
file
,
{
name
,
index
})
=>
{
// name:是当前照片组件所在陈列组的索引
// name:是当前照片组件所在陈列组的索引
// index: 当前照片组的索引
// index: 当前照片组的索引
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
target
=
displayGroup
.
value
[
name
]
const
target
=
displayGroup
.
value
[
name
]
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/scheduleDisplayPhoto/
${
date
.
getFullYear
()}
-
${
month
}
/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/scheduleDisplayPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
target
.
photoArr
.
push
({
target
.
photoArr
.
push
({
url
:
pictureUrl
url
:
pictureUrl
})
})
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/newTerminal.vue
浏览文件 @
1ec485b7
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
label=
"门店类型"
label=
"门店类型"
label-align=
"top"
label-align=
"top"
placeholder=
"请选择"
placeholder=
"请选择"
@
click=
"showTypePopup = true"
:rules=
"[{ required: true, message: '请选择门店类型' }]"
/>
@
click=
"showTypePopup = true"
:rules=
"[{ required: true, message: '请选择门店类型' }]"
/>
<van-popup
v-model:show=
"showTypePopup"
<van-popup
v-model:show=
"showTypePopup"
position=
"bottom"
position=
"bottom"
@
close=
"showTypePopup = false"
>
@
close=
"showTypePopup = false"
>
...
@@ -80,7 +81,10 @@ const showTypePopup = ref(false);
...
@@ -80,7 +81,10 @@ const showTypePopup = ref(false);
// 门头照上传逻辑
// 门头照上传逻辑
const
posPhotosRead
=
async
(
file
)
=>
{
const
posPhotosRead
=
async
(
file
)
=>
{
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/newTerminal-storePhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/newTerminal-storePhoto/
${
date
.
getFullYear
()}
-
${
month
}
/
${
useUserStore
().
empInfo
.
empNo
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
form
.
storePicture
=
[{
form
.
storePicture
=
[{
url
:
pictureUrl
url
:
pictureUrl
}]
}]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论