Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
snow-guizhou-web-frontend
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
雪花
snow-guizhou-web-frontend
Commits
9d3e01bd
提交
9d3e01bd
authored
5月 11, 2022
作者:
郁骅焌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
审核
上级
e6b93222
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
77 行增加
和
2 行删除
+77
-2
audit.js
src/api/coupon/audit.js
+9
-0
audit.vue
src/views/coupon/audit/audit.vue
+61
-2
detail.vue
src/views/coupon/audit/detail.vue
+1
-0
index.vue
src/views/coupon/audit/index.vue
+6
-0
没有找到文件。
src/api/coupon/audit.js
浏览文件 @
9d3e01bd
...
...
@@ -16,3 +16,12 @@ export function auditDetail(id) {
method
:
'get'
})
}
// 审核
export
function
auditCoupon
(
data
)
{
return
request
({
url
:
'/coupon/coupon/examine'
,
method
:
'post'
,
data
:
data
})
}
src/views/coupon/audit/audit.vue
浏览文件 @
9d3e01bd
...
...
@@ -88,11 +88,23 @@
<
/div
>
<
/el-card
>
<
el
-
card
class
=
"card-layout"
style
=
"margin-top: 20px;"
>
<
el
-
form
ref
=
"formRef"
label
-
width
=
"auto"
:
model
=
"form"
>
<
el
-
form
-
item
prop
=
"examineReason"
label
=
"审核意见"
>
<
el
-
input
type
=
"textarea"
v
-
model
=
"form.examineReason"
/>
<
/el-form-item
>
<
/el-form
>
<
/el-card
>
<
div
class
=
"form-bottom-btn"
>
<
el
-
button
type
=
"primary"
@
click
=
"handlePass"
>
审核通过
<
/el-button
>
<
el
-
button
type
=
"danger"
@
click
=
"handleUnPass"
>
审核不通过
<
/el-button
>
<
/div
>
<
/div
>
<
/template
>
<
script
>
import
{
auditDetail
}
from
'@/api/coupon/audit.js'
import
{
auditDetail
,
auditCoupon
}
from
'@/api/coupon/audit.js'
export
default
{
name
:
'CouponAuditAudit'
,
...
...
@@ -100,7 +112,9 @@ export default {
data
()
{
return
{
detail
:
{
}
,
form
:
{
}
form
:
{
examineReason
:
undefined
}
}
}
,
mounted
()
{
...
...
@@ -111,6 +125,46 @@ export default {
auditDetail
(
this
.
$route
.
query
.
id
).
then
(
res
=>
{
this
.
detail
=
res
.
data
}
)
}
,
handlePass
()
{
auditCoupon
(
{
id
:
this
.
detail
.
id
,
examineStatus
:
'1'
}
).
then
(
res
=>
{
this
.
$message
.
success
(
"审核完成"
);
this
.
$tab
.
closeOpenPage
();
this
.
$router
.
push
({
name
:
"CouponAudit"
,
params
:
{
refreshTable
:
true
,
}
,
}
);
}
)
}
,
handleUnPass
()
{
if
(
!
this
.
form
.
examineReason
)
{
this
.
$modal
.
msgError
(
'审核不通过需输入原因'
)
return
}
auditCoupon
(
{
id
:
this
.
detail
.
id
,
examineStatus
:
'2'
,
examineReason
:
this
.
form
.
examineReason
}
).
then
(
res
=>
{
this
.
$message
.
success
(
"审核完成"
);
this
.
$tab
.
closeOpenPage
();
this
.
$router
.
push
({
name
:
"CouponAudit"
,
params
:
{
refreshTable
:
true
,
}
,
}
);
}
)
}
}
}
...
...
@@ -131,4 +185,9 @@ export default {
display
:
flex
;
}
}
.
form
-
bottom
-
btn
{
margin
-
top
:
20
px
;
text
-
align
:
right
;
}
<
/style
>
src/views/coupon/audit/detail.vue
浏览文件 @
9d3e01bd
...
...
@@ -5,6 +5,7 @@
<div>
状态:
<dict-tag
style=
"display: inline-block;"
:options=
"dict.type.examine_status"
:value=
"detail.examineStatus"
/></div>
<div
style=
"margin-left: 120px;"
>
审核时间:
{{
detail
.
examineTime
}}
</div>
</div>
<div
style=
"margin-top: 10px;"
v-if=
"detail.examineStatus === 2"
>
{{
detail
.
examineReason
}}
</div>
</el-card>
<el-card
class=
"card-layout"
style=
"margin-top: 20px;"
>
...
...
src/views/coupon/audit/index.vue
浏览文件 @
9d3e01bd
...
...
@@ -139,6 +139,12 @@ export default {
mounted
()
{
this
.
initOptions
()
}
,
// 页面被触发
activated
()
{
if
(
this
.
$route
.
params
&&
this
.
$route
.
params
.
refreshTable
)
{
this
.
getList
()
}
}
,
methods
:
{
initOptions
()
{
this
.
table
.
searchForm
.
listOptions
.
examineStatusOptions
=
this
.
dict
.
type
.
examine_status
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论