Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
66796a6a
提交
66796a6a
authored
9月 08, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release' into dev
上级
f66a9518
397b9e08
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
111 行增加
和
64 行删除
+111
-64
index.js
src/router/index.js
+0
-1
index.vue
...y/sales_point_inspection/examine/inspectionTask/index.vue
+43
-17
conventionalDisplay.vue
...ction/examine/inspectionTask/tabs/conventionalDisplay.vue
+13
-7
scheduleAdjustment.vue
...ection/examine/inspectionTask/tabs/scheduleAdjustment.vue
+15
-9
scheduleDisplay.vue
...nspection/examine/inspectionTask/tabs/scheduleDisplay.vue
+12
-6
newTerminal.vue
...t_activity/sales_point_inspection/examine/newTerminal.vue
+26
-22
storeList.vue
...dit_activity/sales_point_inspection/examine/storeList.vue
+1
-1
taskList.vue
...udit_activity/sales_point_inspection/examine/taskList.vue
+1
-1
没有找到文件。
src/router/index.js
浏览文件 @
66796a6a
...
@@ -178,7 +178,6 @@ export const dynamicRoutes = [
...
@@ -178,7 +178,6 @@ export const dynamicRoutes = [
}
}
]
]
const
router
=
createRouter
({
const
router
=
createRouter
({
// 路由模式:createWebHashHistory,createWebHistory
// 路由模式:createWebHashHistory,createWebHistory
history
:
createWebHashHistory
(),
history
:
createWebHashHistory
(),
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/index.vue
浏览文件 @
66796a6a
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
</div>
</div>
<div
class=
"terminal-info"
>
<div
class=
"terminal-info"
>
<p>
终端编码:
P0500052306
</p>
<p>
终端编码:
{{
form
.
storeCode
}}
</p>
<p>
经销商:
秦皇岛红朗森商贸有限公司
</p>
<p>
经销商:
{{
form
.
dealerName
}}
</p>
<p>
地址:
河北省秦皇岛市海港区北环路街道秦皇岛冻结附录
</p>
<p>
地址:
{{
form
.
address
}}
</p>
</div>
</div>
</div>
</div>
...
@@ -60,10 +60,10 @@
...
@@ -60,10 +60,10 @@
</
template
>
</
template
>
</van-field>
</van-field>
</div>
</div>
<!--
门店
类型选择 -->
<!--
渠道
类型选择 -->
<van-field
label-width=
"150px"
<van-field
label-width=
"150px"
label-position=
"top"
label-position=
"top"
label=
"
门店
类型:"
label=
"
渠道
类型:"
:model-value=
"form.selectedType"
:model-value=
"form.selectedType"
placeholder=
"请选择"
>
placeholder=
"请选择"
>
<
template
#
input
>
<
template
#
input
>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</van-field>
</van-field>
<!-- <van-field :model-value="form.selectedType.join('')"
<!-- <van-field :model-value="form.selectedType.join('')"
readonly
readonly
label="
门店
类型"
label="
渠道
类型"
label-align="top"
label-align="top"
placeholder="请选择"
placeholder="请选择"
@click="showTypePopup = true"
@click="showTypePopup = true"
...
@@ -201,7 +201,7 @@ const categoryInformationRef = ref(null)
...
@@ -201,7 +201,7 @@ const categoryInformationRef = ref(null)
/*************** 稽查任务总体 ***************/
/*************** 稽查任务总体 ***************/
const
isInitializing
=
ref
(
true
)
const
isInitializing
=
ref
(
true
)
const
form
=
reactive
({
// 当前页信息总对象
const
form
=
reactive
({
// 当前页信息总对象
rstId
:
''
,
// 稽查任务 ID(获取详情接口有则保存,没有则主动新建一次并获取 id)
rstId
:
route
.
query
.
rstId
,
// 稽查任务 ID(获取详情接口有则保存,没有则主动新建一次并获取 id)
storePicture
:
route
.
query
.
storePicture
,
// 门店照片(原始门店照片,来自于上一页的接口)
storePicture
:
route
.
query
.
storePicture
,
// 门店照片(原始门店照片,来自于上一页的接口)
storeName
:
route
.
query
.
storeName
,
// 门店名称
storeName
:
route
.
query
.
storeName
,
// 门店名称
storeCode
:
route
.
query
.
storeCode
,
// 门店编码
storeCode
:
route
.
query
.
storeCode
,
// 门店编码
...
@@ -213,13 +213,15 @@ const form = reactive({ // 当前页信息总对象
...
@@ -213,13 +213,15 @@ const form = reactive({ // 当前页信息总对象
longTimePictureArr
:
[],
// 大日期产品照片
longTimePictureArr
:
[],
// 大日期产品照片
// 前端特有属性和后端接口不一致
// 前端特有属性和后端接口不一致
commitStorePicture
:
[],
// 上报拍摄的门店照片
commitStorePicture
:
[],
// 上报拍摄的门店照片
selectedType
:
""
,
//
门店
类型
selectedType
:
""
,
//
渠道
类型
})
})
// 稽查任务详情
// 稽查任务详情
const
getInspectionTaskDetailFn
=
async
()
=>
{
const
getInspectionTaskDetailFn
=
async
()
=>
{
const
res
=
await
getInspectionTaskDetailAPI
({
const
res
=
await
getInspectionTaskDetailAPI
({
storeCode
:
form
.
storeCode
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
})
})
if
(
res
.
data
)
{
if
(
res
.
data
)
{
Object
.
assign
(
form
,
res
.
data
)
Object
.
assign
(
form
,
res
.
data
)
...
@@ -257,6 +259,7 @@ const getInspectionTaskDetailFn = async () => {
...
@@ -257,6 +259,7 @@ const getInspectionTaskDetailFn = async () => {
// 没有的话调用新建接口,得到一个总体稽查任务 id
// 没有的话调用新建接口,得到一个总体稽查任务 id
const
res
=
await
createInspectionTaskAPI
({
const
res
=
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
})
})
form
.
rstId
=
res
.
data
.
rstId
form
.
rstId
=
res
.
data
.
rstId
}
}
...
@@ -274,6 +277,7 @@ const getInspectionTaskDetailFn = async () => {
...
@@ -274,6 +277,7 @@ const getInspectionTaskDetailFn = async () => {
}
}
getInspectionTaskDetailFn
()
getInspectionTaskDetailFn
()
// 门店图片预览
// 门店图片预览
const
previewStoreImage
=
()
=>
{
const
previewStoreImage
=
()
=>
{
showImagePreview
({
showImagePreview
({
...
@@ -285,6 +289,7 @@ const previewStoreImage = () => {
...
@@ -285,6 +289,7 @@ const previewStoreImage = () => {
const
handleStoreNameChange
=
async
()
=>
{
const
handleStoreNameChange
=
async
()
=>
{
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
rStoreName
:
form
.
storeName
// 修改门店名称
rStoreName
:
form
.
storeName
// 修改门店名称
})
})
...
@@ -349,15 +354,21 @@ const handleClickLocation = () => {
...
@@ -349,15 +354,21 @@ const handleClickLocation = () => {
/*************** 门头照上传 ***************/
/*************** 门头照上传 ***************/
// 上传照片
// 上传照片
const
commitStorePhotosRead
=
async
(
file
)
=>
{
const
commitStorePhotosRead
=
async
(
file
)
=>
{
form
.
commitStorePicture
=
[{
url
:
file
.
content
,
status
:
'uploading'
,
message
:
'上传中...'
}]
const
date
=
new
Date
()
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/storeFrontPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/storeFrontPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
form
.
commitStorePicture
=
[{
form
.
commitStorePicture
=
[{
url
:
pictureUrl
url
:
pictureUrl
,
status
:
'done'
}]
}]
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
storePicture
:
pictureUrl
storePicture
:
pictureUrl
})
})
...
@@ -369,6 +380,7 @@ const deleteCommitStorePhotos = async () => {
...
@@ -369,6 +380,7 @@ const deleteCommitStorePhotos = async () => {
form
.
commitStorePicture
=
[]
form
.
commitStorePicture
=
[]
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
storePicture
:
""
storePicture
:
""
})
})
...
@@ -376,16 +388,18 @@ const deleteCommitStorePhotos = async () => {
...
@@ -376,16 +388,18 @@ const deleteCommitStorePhotos = async () => {
showNotify
({
type
:
'success'
,
message
:
'门头照,删除成功'
})
showNotify
({
type
:
'success'
,
message
:
'门头照,删除成功'
})
}
}
/***************
门店
类型 ***************/
/***************
渠道
类型 ***************/
const
typeOptions
=
ref
(
typeOption
)
//
门店
类型
const
typeOptions
=
ref
(
typeOption
)
//
渠道
类型
const
showTypePopup
=
ref
(
false
)
const
showTypePopup
=
ref
(
false
)
// 确认
门店
类型
// 确认
渠道
类型
const
handleTypeConfirm
=
async
()
=>
{
const
handleTypeConfirm
=
async
()
=>
{
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
storeType
:
form
.
selectedType
storeType
:
form
.
selectedType
})
})
showNotify
({
type
:
'success'
,
message
:
'渠道类型,修改成功'
})
}
}
/*************** tabs 组 ***************/
/*************** tabs 组 ***************/
...
@@ -397,6 +411,7 @@ const handleLhldArrChange = async () => {
...
@@ -397,6 +411,7 @@ const handleLhldArrChange = async () => {
if
(
isInitializing
.
value
)
return
if
(
isInitializing
.
value
)
return
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
lhldArr
:
form
.
lhldArr
lhldArr
:
form
.
lhldArr
})
})
...
@@ -407,6 +422,7 @@ const handleLhldArrChange = async () => {
...
@@ -407,6 +422,7 @@ const handleLhldArrChange = async () => {
const
handleSkuNumChange
=
async
()
=>
{
const
handleSkuNumChange
=
async
()
=>
{
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
skuNum
:
form
.
skuNum
*
1
skuNum
:
form
.
skuNum
*
1
})
})
...
@@ -417,6 +433,7 @@ const handleSkuNumChange = async () => {
...
@@ -417,6 +433,7 @@ const handleSkuNumChange = async () => {
const
handleRemarkChange
=
async
()
=>
{
const
handleRemarkChange
=
async
()
=>
{
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
remark
:
form
.
remark
remark
:
form
.
remark
})
})
...
@@ -425,15 +442,23 @@ const handleRemarkChange = async () => {
...
@@ -425,15 +442,23 @@ const handleRemarkChange = async () => {
// 大日期照片上传
// 大日期照片上传
const
longTimePictureArrRead
=
async
(
file
)
=>
{
const
longTimePictureArrRead
=
async
(
file
)
=>
{
const
index
=
form
.
longTimePictureArr
.
length
form
.
longTimePictureArr
[
index
]
=
{
url
:
file
.
content
,
status
:
'uploading'
,
message
:
'上传中...'
}
const
date
=
new
Date
()
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
theDate
=
date
.
getDate
()
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/longTimePicture/
${
useUserStore
().
empInfo
.
empNo
}
/
${
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/longTimePicture/
${
useUserStore
().
empInfo
.
empNo
}
/
${
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
form
.
longTimePictureArr
.
push
({
form
.
longTimePictureArr
[
index
]
=
{
url
:
pictureUrl
url
:
pictureUrl
,
})
status
:
'done'
}
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
longTimePictureArr
:
form
.
longTimePictureArr
.
map
(
o
=>
o
.
url
)
longTimePictureArr
:
form
.
longTimePictureArr
.
map
(
o
=>
o
.
url
)
})
})
...
@@ -444,6 +469,7 @@ const deleteLongTimePictureArr = async (file, { name, index }) => {
...
@@ -444,6 +469,7 @@ const deleteLongTimePictureArr = async (file, { name, index }) => {
form
.
longTimePictureArr
.
splice
(
index
,
1
)
form
.
longTimePictureArr
.
splice
(
index
,
1
)
await
createInspectionTaskAPI
({
await
createInspectionTaskAPI
({
storeCode
:
form
.
storeCode
,
storeCode
:
form
.
storeCode
,
storeName
:
form
.
storeName
,
rstId
:
form
.
rstId
,
rstId
:
form
.
rstId
,
longTimePictureArr
:
form
.
longTimePictureArr
.
map
(
o
=>
o
.
url
)
longTimePictureArr
:
form
.
longTimePictureArr
.
map
(
o
=>
o
.
url
)
})
})
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/conventionalDisplay.vue
浏览文件 @
66796a6a
...
@@ -151,7 +151,7 @@ const deleteItem = async (obj, index) => {
...
@@ -151,7 +151,7 @@ const deleteItem = async (obj, index) => {
nextTick
(()
=>
{
nextTick
(()
=>
{
isDeleteNow
.
value
=
false
isDeleteNow
.
value
=
false
})
})
showNotify
({
type
:
'success'
,
message
:
'删除成功'
})
showNotify
({
type
:
'success'
,
message
:
'删除
分组
成功'
})
})
})
}
}
...
@@ -183,14 +183,20 @@ const handleCostChange = async (index) => {
...
@@ -183,14 +183,20 @@ 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
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
target
=
displayGroup
.
value
[
name
]
const
target
=
displayGroup
.
value
[
name
]
const
photoIndex
=
target
.
photoArr
.
length
target
.
photoArr
[
photoIndex
]
=
{
url
:
file
.
content
,
status
:
'uploading'
,
message
:
'上传中...'
}
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/displayPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/displayPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
target
.
photoArr
.
push
({
target
.
photoArr
[
photoIndex
]
=
{
url
:
pictureUrl
url
:
pictureUrl
,
})
status
:
'done'
}
await
createInspectionTaskDetailAPI
({
await
createInspectionTaskDetailAPI
({
taskDetail
:
{
taskDetail
:
{
...
@@ -236,7 +242,7 @@ const handleOverallChange = async () => {
...
@@ -236,7 +242,7 @@ const handleOverallChange = async () => {
rstId
:
props
.
form
.
rstId
,
rstId
:
props
.
form
.
rstId
,
cgclRiskRArr
:
props
.
form
.
cgclRiskRArr
cgclRiskRArr
:
props
.
form
.
cgclRiskRArr
})
})
showNotify
({
type
:
'success'
,
message
:
'核查结果,保存成功'
})
showNotify
({
type
:
'success'
,
message
:
'
总体
核查结果,保存成功'
})
}
}
defineExpose
({
defineExpose
({
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/scheduleAdjustment.vue
浏览文件 @
66796a6a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
label=
"执行情况"
label=
"执行情况"
placeholder=
"执行情况"
placeholder=
"执行情况"
auto-complete=
"off"
auto-complete=
"off"
:rules=
"[
{ required: true, message: '请输入执行情况' }]"
:rules=
"[
{ required: true, message: '请输入执行情况' }]"
@change="handleCostChange(index)" />
@change="handleCostChange(index)" />
<van-field
label=
"档期补差照片"
<van-field
label=
"档期补差照片"
label-align=
"top"
label-align=
"top"
...
@@ -150,7 +150,7 @@ const deleteItem = async (obj, index) => {
...
@@ -150,7 +150,7 @@ const deleteItem = async (obj, index) => {
nextTick
(()
=>
{
nextTick
(()
=>
{
isDeleteNow
.
value
=
false
isDeleteNow
.
value
=
false
})
})
showNotify
({
type
:
'success'
,
message
:
'删除成功'
})
showNotify
({
type
:
'success'
,
message
:
'删除
分组
成功'
})
})
})
}
}
/*************** 基本信息 ***************/
/*************** 基本信息 ***************/
...
@@ -181,14 +181,20 @@ const handleCostChange = async (index) => {
...
@@ -181,14 +181,20 @@ 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
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
target
=
displayGroup
.
value
[
name
]
const
target
=
displayGroup
.
value
[
name
]
const
targetIndex
=
target
.
photoArr
.
length
target
.
photoArr
[
targetIndex
]
=
{
url
:
file
.
content
,
status
:
'uploading'
,
message
:
'上传中...'
}
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/scheduleAdjustmentPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/scheduleAdjustmentPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
target
.
photoArr
.
push
({
target
.
photoArr
[
targetIndex
]
=
{
url
:
pictureUrl
url
:
pictureUrl
,
})
status
:
'done'
}
await
createInspectionTaskDetailAPI
({
await
createInspectionTaskDetailAPI
({
taskDetail
:
{
taskDetail
:
{
...
@@ -198,7 +204,7 @@ const displayPhotosRead = async (file, { name, index }) => {
...
@@ -198,7 +204,7 @@ const displayPhotosRead = async (file, { name, index }) => {
}
}
})
})
showNotify
({
type
:
'success'
,
message
:
'档期
陈列
照片,上传成功'
})
showNotify
({
type
:
'success'
,
message
:
'档期
补差
照片,上传成功'
})
}
}
// 删除照片
// 删除照片
const
deletedisplayPhotos
=
async
(
file
,
{
name
,
index
})
=>
{
const
deletedisplayPhotos
=
async
(
file
,
{
name
,
index
})
=>
{
...
@@ -211,7 +217,7 @@ const deletedisplayPhotos = async (file, { name, index }) => {
...
@@ -211,7 +217,7 @@ const deletedisplayPhotos = async (file, { name, index }) => {
photoArr
:
target
.
photoArr
.
map
(
o
=>
o
.
url
)
photoArr
:
target
.
photoArr
.
map
(
o
=>
o
.
url
)
}
}
})
})
showNotify
({
type
:
'success'
,
message
:
'档期
陈列
照片,删除成功'
})
showNotify
({
type
:
'success'
,
message
:
'档期
补差
照片,删除成功'
})
}
}
// 核查结果
// 核查结果
const
handleVerifyChange
=
async
(
index
)
=>
{
const
handleVerifyChange
=
async
(
index
)
=>
{
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/scheduleDisplay.vue
浏览文件 @
66796a6a
...
@@ -150,7 +150,7 @@ const deleteItem = async (obj, index) => {
...
@@ -150,7 +150,7 @@ const deleteItem = async (obj, index) => {
nextTick
(()
=>
{
nextTick
(()
=>
{
isDeleteNow
.
value
=
false
isDeleteNow
.
value
=
false
})
})
showNotify
({
type
:
'success'
,
message
:
'删除成功'
})
showNotify
({
type
:
'success'
,
message
:
'删除
分组
成功'
})
})
})
}
}
/*************** 基本信息 ***************/
/*************** 基本信息 ***************/
...
@@ -183,12 +183,18 @@ const displayPhotosRead = async (file, { name, index }) => {
...
@@ -183,12 +183,18 @@ const displayPhotosRead = async (file, { name, index }) => {
// index: 当前照片组的索引
// index: 当前照片组的索引
const
date
=
new
Date
()
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
const
month
=
date
.
getMonth
()
+
1
const
theDate
=
date
.
getDate
()
const
target
=
displayGroup
.
value
[
name
]
const
target
=
displayGroup
.
value
[
name
]
const
targetIndex
=
target
.
photoArr
.
length
target
.
photoArr
[
targetIndex
]
=
{
url
:
file
.
content
,
status
:
'uploading'
,
message
:
'上传中...'
}
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/scheduleDisplayPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
const
pictureUrl
=
await
uploadFileToOSSAPI
(
`risk/
${
date
.
getFullYear
()}
-
${
month
}
/scheduleDisplayPhoto/
${
useUserStore
().
empInfo
.
empNo
}
/
${
props
.
form
.
storeCode
}
/
${
uuidv4
()}
.png`
,
file
.
file
)
target
.
photoArr
.
push
({
target
.
photoArr
[
targetIndex
]
=
{
url
:
pictureUrl
url
:
pictureUrl
,
})
status
:
'done'
}
await
createInspectionTaskDetailAPI
({
await
createInspectionTaskDetailAPI
({
taskDetail
:
{
taskDetail
:
{
...
@@ -234,7 +240,7 @@ const handleOverallChange = async () => {
...
@@ -234,7 +240,7 @@ const handleOverallChange = async () => {
rstId
:
props
.
form
.
rstId
,
rstId
:
props
.
form
.
rstId
,
dqclRiskRArr
:
props
.
form
.
dqclRiskRArr
dqclRiskRArr
:
props
.
form
.
dqclRiskRArr
})
})
showNotify
({
type
:
'success'
,
message
:
'核查结果,保存成功'
})
showNotify
({
type
:
'success'
,
message
:
'
总体
核查结果,保存成功'
})
}
}
defineExpose
({
defineExpose
({
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/newTerminal.vue
浏览文件 @
66796a6a
...
@@ -31,13 +31,13 @@
...
@@ -31,13 +31,13 @@
</
template
>
</
template
>
</van-field>
</van-field>
</div>
</div>
<!--
门店
类型选择 -->
<!--
渠道
类型选择 -->
<van-field
label-width=
"150px"
<van-field
label-width=
"150px"
label-position=
"top"
label-position=
"top"
label=
"
门店
类型:"
label=
"
渠道
类型:"
:model-value=
"form.selectedType"
:model-value=
"form.selectedType"
placeholder=
"请选择"
placeholder=
"请选择"
:rules=
"[{ required: true, message: '请选择
门店
类型' }]"
>
:rules=
"[{ required: true, message: '请选择
渠道
类型' }]"
>
<
template
#
input
>
<
template
#
input
>
<el-select
v-model=
"form.selectedType"
<el-select
v-model=
"form.selectedType"
placeholder=
"请选择"
>
placeholder=
"请选择"
>
...
@@ -49,11 +49,11 @@
...
@@ -49,11 +49,11 @@
</van-field>
</van-field>
<!-- <van-field :model-value="form.selectedType.join('')"
<!-- <van-field :model-value="form.selectedType.join('')"
readonly
readonly
label="
门店
类型"
label="
渠道
类型"
label-align="top"
label-align="top"
placeholder="请选择"
placeholder="请选择"
@click="showTypePopup = true"
@click="showTypePopup = true"
:rules="[{ required: true, message: '请选择
门店
类型' }]" />
: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">
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
uploadFileToOSSAPI
}
from
'@/api'
import
{
uploadFileToOSSAPI
,
createInspectionTaskAPI
}
from
'@/api'
import
{
v4
as
uuidv4
}
from
'uuid'
;
import
{
v4
as
uuidv4
}
from
'uuid'
;
import
{
typeOptions
as
typeOption
}
from
'@/views/mobile/constant'
import
{
typeOptions
as
typeOption
}
from
'@/views/mobile/constant'
import
useUserStore
from
'@/store/modules/user'
import
useUserStore
from
'@/store/modules/user'
...
@@ -91,51 +91,55 @@ const form = reactive({
...
@@ -91,51 +91,55 @@ const form = reactive({
storePicture
:
[],
storePicture
:
[],
selectedType
:
''
selectedType
:
''
})
})
const
typeOptions
=
ref
(
typeOption
);
// 门店类型
const
typeOptions
=
ref
(
typeOption
);
// 渠道类型
const
showTypePopup
=
ref
(
false
);
// 门头照上传逻辑
// 门头照上传逻辑
const
posPhotosRead
=
async
(
file
)
=>
{
const
posPhotosRead
=
async
(
file
)
=>
{
form
.
storePicture
=
[
{
url
:
file
.
content
,
status
:
'uploading'
,
message
:
'上传中...'
}
]
const
date
=
new
Date
()
const
date
=
new
Date
()
const
month
=
date
.
getMonth
()
+
1
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
)
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
,
status
:
'done'
}]
}]
showNotify
({
type
:
'success'
,
message
:
'照片上传成功'
})
showNotify
({
type
:
'success'
,
message
:
'照片上传成功'
})
}
}
// 删除照片
// 删除照片
const
deletePosPhotos
=
async
()
=>
{
const
deletePosPhotos
=
async
()
=>
{
form
.
storePicture
=
[]
form
.
storePicture
=
[]
showNotify
({
type
:
'success'
,
message
:
'照片删除成功'
})
showNotify
({
type
:
'success'
,
message
:
'照片删除成功'
})
}
}
// 确认门店类型
// const handleTypeConfirm = ({ selectedValues }) => {
// form.selectedType = selectedValues;
// showTypePopup.value = false;
// };
// 创建任务(跳转路由传参即可)
// 创建任务(跳转路由传参即可)
const
myFormRef
=
ref
(
null
)
const
myFormRef
=
ref
(
null
)
const
handleCreateTask
=
()
=>
{
const
handleCreateTask
=
()
=>
{
// 校验整个表单
// 校验整个表单
myFormRef
.
value
.
validate
().
then
(()
=>
{
myFormRef
.
value
.
validate
().
then
(
async
()
=>
{
// 校验通过,执行创建任务逻辑
const
res
=
await
createInspectionTaskAPI
({
storeName
:
form
.
storeName
,
storePicture
:
form
.
storePicture
[
0
]?.
url
,
selectedType
:
form
.
selectedType
})
// 校验通过,跳到稽查任务详情页
router
.
push
({
router
.
push
({
path
:
'/inspectionTask'
,
path
:
'/inspectionTask'
,
query
:
{
query
:
{
taskStatus
:
true
,
rstId
:
res
.
data
.
rstId
,
storeName
:
form
.
storeName
,
storeName
:
form
.
storeName
,
storeCode
:
null
,
storePicture
:
form
.
storePicture
[
0
]?.
url
,
storePicture
:
form
.
storePicture
[
0
]?.
url
,
selectedType
:
form
.
selectedType
selectedType
:
form
.
selectedType
}
}
})
})
})
})
};
}
</
script
>
</
script
>
<
style
lang=
"scss"
<
style
lang=
"scss"
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/storeList.vue
浏览文件 @
66796a6a
...
@@ -121,7 +121,7 @@ const handleClickStore = (item) => {
...
@@ -121,7 +121,7 @@ const handleClickStore = (item) => {
// 确实提示
// 确实提示
showConfirmDialog
({
showConfirmDialog
({
title
:
'提示'
,
title
:
'提示'
,
message
:
'是否创建本店稽查任务?'
,
message
:
'是否创建
/查看
本店稽查任务?'
,
confirmButtonText
:
'前往'
,
confirmButtonText
:
'前往'
,
cancelButtonText
:
'取消'
cancelButtonText
:
'取消'
}).
then
(()
=>
{
}).
then
(()
=>
{
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/taskList.vue
浏览文件 @
66796a6a
...
@@ -81,7 +81,6 @@
...
@@ -81,7 +81,6 @@
import
{
getInspectionTaskListAPI
}
from
'@/api'
import
{
getInspectionTaskListAPI
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
showNotify
}
from
'vant'
;
defineOptions
({
defineOptions
({
name
:
'Sales_point_inspection'
name
:
'Sales_point_inspection'
...
@@ -140,6 +139,7 @@ const handleClickStore = (item) => {
...
@@ -140,6 +139,7 @@ const handleClickStore = (item) => {
query
:
{
query
:
{
storeName
:
item
.
storeName
,
storeName
:
item
.
storeName
,
storeCode
:
item
.
storeCode
,
storeCode
:
item
.
storeCode
,
rstId
:
item
.
rstId
,
storePicture
:
item
.
storePictures
?.
split
(
","
)[
0
]
storePicture
:
item
.
storePictures
?.
split
(
","
)[
0
]
}
}
}
)
}
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论