Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
P
park-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
huang
park-ui
Commits
3a0669da
提交
3a0669da
authored
6月 30, 2020
作者:
huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整
上级
b82ce2ec
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
6 行删除
+18
-6
deduction.js
src/api/rule/deduction.js
+6
-0
index.vue
src/views/rule/deduction/index.vue
+12
-6
没有找到文件。
src/api/rule/deduction.js
浏览文件 @
3a0669da
...
...
@@ -17,6 +17,12 @@ export function getDeductionById(id) {
}
//更新获取扣费方案
export
function
updateDeduction
(
data
)
{
data
.
breakfastBasePrice
*=
100
data
.
breakfastFormalPrice
*=
100
data
.
lunchBasePrice
*=
100
data
.
lunchFormalPrice
*=
100
data
.
supperBasePrice
*=
100
data
.
supperFormalPrice
*=
100
return
request
({
url
:
'/deductionPlan/updateDeduction'
,
method
:
'put'
,
...
...
src/views/rule/deduction/index.vue
浏览文件 @
3a0669da
...
...
@@ -157,6 +157,12 @@
const
deptId
=
row
.
deptId
||
this
.
ids
[
0
]
getDeductionById
(
deptId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
.
breakfastBasePrice
/=
100
this
.
form
.
breakfastFormalPrice
/=
100
this
.
form
.
lunchBasePrice
/=
100
this
.
form
.
lunchFormalPrice
/=
100
this
.
form
.
supperBasePrice
/=
100
this
.
form
.
supperFormalPrice
/=
100
this
.
open
=
true
;
this
.
title
=
this
.
form
.
planName
;
});
...
...
@@ -167,12 +173,12 @@
if
(
valid
)
{
if
(
this
.
form
.
id
!==
undefined
)
{
this
.
form
.
breakfastBasePrice
=
this
.
form
.
breakfastBasePrice
*
100
this
.
form
.
breakfastFormalPrice
=
this
.
form
.
breakfastFormalPrice
*
100
this
.
form
.
lunchBasePrice
=
this
.
form
.
lunchBasePrice
*
100
this
.
form
.
lunchFormalPrice
=
this
.
form
.
lunchFormalPrice
*
100
this
.
form
.
supperBasePrice
=
this
.
form
.
supperBasePrice
*
100
this
.
form
.
supperFormalPrice
=
this
.
form
.
supperFormalPrice
*
100
/*this.form.breakfastBasePrice*=
100
this.form.breakfastFormalPrice
*=
100
this.form.lunchBasePrice
*=
100
this.form.lunchFormalPrice
*=
100
this.form.supperBasePrice
*=
100
this.form.supperFormalPrice
*= 100*/
updateDeduction
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论