Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
82209933
提交
82209933
authored
4月 10, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(examine): 完成促销任务开关换复选框以及执行未执行换成是和否的文字
同上
上级
d6eae074
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
17 行增加
和
11 行删除
+17
-11
index.vue
src/mobile_views/examine/index.vue
+16
-10
index.vue
src/mobile_views/promotion/detail/index.vue
+1
-1
没有找到文件。
src/mobile_views/examine/index.vue
浏览文件 @
82209933
...
@@ -31,15 +31,16 @@
...
@@ -31,15 +31,16 @@
<div
class=
"title-divider"
></div>
<div
class=
"title-divider"
></div>
</h2>
</h2>
<div
class=
"section"
>
<div
class=
"section"
>
<div
class=
"form-item"
<div
class=
"form-item"
>
style=
"display: flex; align-items: center;"
>
<label>
是否执行:
</label>
<label>
是否执行:
</label>
<van-switch
v-model=
"form.planStatus"
<van-radio-group
v-model=
"form.planStatus"
style=
"transform: scale(0.8);"
@
change=
"planStatusChange"
>
@
change=
"planStatusChange"
/>
<van-radio
name=
"是"
>
是
</van-radio>
<van-radio
name=
"否"
>
否
</van-radio>
</van-radio-group>
</div>
</div>
<div
class=
"form-item"
<div
class=
"form-item"
style=
"display: flex; align-items: center;"
>
style=
"display: flex; align-items: center;
margin-top: 20px;
"
>
<label>
促销员人数:
</label>
<label>
促销员人数:
</label>
<div
class=
"custom-counter"
>
<div
class=
"custom-counter"
>
<button
@
click=
"decreaseCount"
>
-
</button>
<button
@
click=
"decreaseCount"
>
-
</button>
...
@@ -189,6 +190,11 @@ const form = ref({
...
@@ -189,6 +190,11 @@ const form = ref({
storePicture
:
[],
// 店铺门头照
storePicture
:
[],
// 店铺门头照
temNum
:
null
,
// 促销员数量
temNum
:
null
,
// 促销员数量
storeDd
:
'否'
,
// 是否有地堆
storeDd
:
'否'
,
// 是否有地堆
planStatus
:
'否'
,
// 是否执行
temOnWork
:
'离岗'
,
// 是否在岗
temHs
:
'未达标'
,
// 话述
temWl
:
'缺少'
,
// 物料
temZz
:
'未达标'
,
// 着装
temWorkPhotos
:
[],
// 在/离岗取证照片
temWorkPhotos
:
[],
// 在/离岗取证照片
storeTcPhoto
:
[],
// 特陈照
storeTcPhoto
:
[],
// 特陈照
storeZhjPhoto
:
[],
// 主货架照
storeZhjPhoto
:
[],
// 主货架照
...
@@ -251,11 +257,11 @@ const getDetail = async () => {
...
@@ -251,11 +257,11 @@ const getDetail = async () => {
form
.
value
.
storePicture
=
res
.
data
.
storePicture
?
[{
form
.
value
.
storePicture
=
res
.
data
.
storePicture
?
[{
url
:
res
.
data
.
storePicture
url
:
res
.
data
.
storePicture
}]
:
[]
}]
:
[]
form
.
value
.
planStatus
=
res
.
data
.
planStatus
===
'执行'
// 未执行(false) 执行
(true)
// form.value.planStatus = res.data.planStatus === '是' // 未执行(否)(false) 执行(是)
(true)
// 如果执行了促销人数默认为 1,否则为 0
// 如果执行了促销人数默认为 1,否则为 0
form
.
value
.
temNum
=
res
.
data
.
temNum
||
(
form
.
value
.
planStatus
?
1
:
0
)
form
.
value
.
temNum
=
res
.
data
.
temNum
||
(
form
.
value
.
planStatus
===
'是'
?
1
:
0
)
// 如果执行了则所有单选框的值默认有值,否则为否
// 如果执行了则所有单选框的值默认有值,否则为否
if
(
form
.
value
.
planStatus
)
{
if
(
form
.
value
.
planStatus
===
'是'
)
{
// 执行
// 执行
form
.
value
.
storeDd
=
res
.
data
.
storeDd
===
null
?
'是'
:
res
.
data
.
storeDd
form
.
value
.
storeDd
=
res
.
data
.
storeDd
===
null
?
'是'
:
res
.
data
.
storeDd
form
.
value
.
temOnWork
=
res
.
data
.
temOnWork
===
null
?
'在岗'
:
res
.
data
.
temOnWork
form
.
value
.
temOnWork
=
res
.
data
.
temOnWork
===
null
?
'在岗'
:
res
.
data
.
temOnWork
...
@@ -322,7 +328,7 @@ const planStatusChange = async (val) => {
...
@@ -322,7 +328,7 @@ const planStatusChange = async (val) => {
form
.
value
.
planStatus
=
val
form
.
value
.
planStatus
=
val
await
createExamine
({
await
createExamine
({
id
:
form
.
value
.
id
,
id
:
form
.
value
.
id
,
planStatus
:
val
?
"执行"
:
"未执行"
,
planStatus
:
form
.
value
.
planStatus
,
employeeId
:
userStore
().
userInfo
.
userId
,
// 稽查人id
employeeId
:
userStore
().
userInfo
.
userId
,
// 稽查人id
employeeName
:
userStore
().
userInfo
.
nickName
,
// 稽查人名字
employeeName
:
userStore
().
userInfo
.
nickName
,
// 稽查人名字
employeeNo
:
userStore
().
getEmployeeNo
,
// 稽查人工号
employeeNo
:
userStore
().
getEmployeeNo
,
// 稽查人工号
...
...
src/mobile_views/promotion/detail/index.vue
浏览文件 @
82209933
...
@@ -212,7 +212,7 @@ const clickExamine = async () => {
...
@@ -212,7 +212,7 @@ const clickExamine = async () => {
// ...planDetail.value,
// ...planDetail.value,
id
:
null
,
id
:
null
,
planId
:
planDetail
.
value
.
id
,
planId
:
planDetail
.
value
.
id
,
planStatus
:
planDetail
.
value
.
planStatus
===
0
?
'
未执行'
:
'执行
'
,
planStatus
:
planDetail
.
value
.
planStatus
===
0
?
'
否'
:
'是
'
,
employeeId
:
userStore
().
userInfo
.
userId
,
// 稽查人id
employeeId
:
userStore
().
userInfo
.
userId
,
// 稽查人id
employeeName
:
userStore
().
userInfo
.
nickName
,
// 稽查人名字
employeeName
:
userStore
().
userInfo
.
nickName
,
// 稽查人名字
employeeNo
:
userStore
().
getEmployeeNo
,
// 稽查人工号
employeeNo
:
userStore
().
getEmployeeNo
,
// 稽查人工号
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论