Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
ee210919
Commit
ee210919
authored
Jul 09, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c63a00af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
175 additions
and
1 deletion
+175
-1
class.js
src/api/course/class.js
+23
-0
classHourReward.vue
src/pages/course/classHourReward.vue
+152
-1
No files found.
src/api/course/class.js
View file @
ee210919
...
...
@@ -405,4 +405,27 @@ export function GetTeacherClassHours(data) {
method
:
'post'
,
data
})
}
/**
* 教师奖励 获取课时费老师列表
* @param {JSON参数} data
*/
export
function
getTeachingRewardsSendEmployeeList
(
data
)
{
return
request
({
url
:
'/TeachingRewards/GetTeachingRewardsSendEmployeeList'
,
method
:
'post'
,
data
})
}
/**
* 教师奖励 设置 老师已发放
* @param {JSON参数} data
*/
export
function
setTeachingRewardsSendEmployee
(
data
)
{
return
request
({
url
:
'/TeachingRewards/SetTeachingRewardsSendEmployee'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/course/classHourReward.vue
View file @
ee210919
...
...
@@ -97,10 +97,15 @@
<q-item-label>
取消
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
v-if=
"props.row.State==2 && props.row.FrIdList==0 && props.row.Money>0"
>
<
!--
<
q-item
clickable
v-close-popup
v-if=
"props.row.State==2 && props.row.FrIdList==0 && props.row.Money>0"
>
<q-item-section
@
click=
"systemShan(props.row)"
>
<q-item-label>
制单
</q-item-label>
</q-item-section>
</q-item>
-->
<q-item
clickable
v-close-popup
v-if=
"props.row.State==2 && props.row.FrIdList==0 && props.row.Money>0"
>
<q-item-section
@
click=
"generalFinancacls(props.row)"
>
<q-item-label>
制单
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
...
...
@@ -174,6 +179,46 @@
<q-icon
name=
"iconfont icon-jujue1"
size=
"26px"
/>
</div>
</el-drawer>
<q-dialog
v-model=
"costmode"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 700px;max-width:700px;"
>
<q-card-section>
<div
class=
"text-h6"
>
设置发放老师
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
>
<el-table
:data=
"SendEmployeeList"
border
max-height=
'384px'
@
selection-change=
"handleSelectionChange"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"checkSelectable"
></el-table-column>
<el-table-column
prop=
"TeacherName"
label=
"用户"
>
</el-table-column>
<el-table-column
prop=
"Money"
label=
"应发提成金额"
>
</el-table-column>
<el-table-column
prop=
"IsGiveOut"
label=
"是否已发放"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
'scope.row.IsGiveOut==1'
>
已发放
</span>
<span
v-if=
'scope.row.IsGiveOut==2'
>
未发放
</span>
</
template
>
</el-table-column>
</el-table>
<div
style=
"margin-top: 10px;"
>
金额总额:{{totalAmount}}
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"hollowFixedBtn"
@
click=
"costmode=false"
>
取消
</el-button>
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"preservetransaction()"
>
确定
</el-button>
</div>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"costmode=false"
/>
<q-btn
label=
"确定"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveLoading"
@
click=
"preservetransaction()"
/>
</q-card-actions>
</q-card-section>
</q-card>
</q-dialog>
</div>
</template>
...
...
@@ -184,6 +229,8 @@
setTeachingBonusAdd
,
//新增课时奖励
setTeachingBonusState
,
//教师绩效 设置状态
setTeachingBonusFinance
,
//教师奖励 生成财务单据
getTeachingRewardsSendEmployeeList
,
//获取课时费老师列表
setTeachingRewardsSendEmployee
,
//设置 老师已发放
}
from
'../../api/course/class'
import
{
getTeacherDropDownList
,
...
...
@@ -276,6 +323,12 @@
return
time
.
getTime
()
>
upperMonth
;
},
},
CheckID
:
0
,
SendEmployeeList
:[],
costmode
:
false
,
totalAmount
:
0
,
saveLoading
:
false
,
multipleSelection
:[]
}
},
created
()
{
...
...
@@ -515,6 +568,104 @@
}
})
},
checkSelectable
(
row
){
return
row
.
IsGiveOut
==
2
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
let
zong
=
0
this
.
multipleSelection
.
forEach
(
x
=>
{
zong
+=
x
.
Money
})
this
.
totalAmount
=
zong
},
generalFinancacls
(
item
){
this
.
CheckID
=
item
.
Id
console
.
log
(
item
)
if
(
item
.
Money
>
0
){
this
.
getcomSendEmployeeList
()
}
else
{
this
.
$message
.
error
(
'提成总金额为0'
)
}
},
getcomSendEmployeeList
(
Id
){
//获取可发放提成的老师
getTeachingRewardsSendEmployeeList
({
PeriodId
:
this
.
CheckID
}).
then
(
res
=>
{
this
.
SendEmployeeList
=
res
.
Data
;
this
.
costmode
=
true
}).
catch
(()
=>
{
})
},
preservetransaction
(){
let
that
=
this
if
(
this
.
multipleSelection
.
length
==
0
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择您要发放的老师`
})
return
}
this
.
$q
.
dialog
({
title
:
"设置用户状态"
,
message
:
"确认后无法更改用户制单状态,如果需修改请联系管理员"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
let
EmpIds
=
''
;
let
data
=
[]
this
.
multipleSelection
.
forEach
(
x
=>
{
data
.
push
(
x
.
TeacherId
)
})
EmpIds
=
data
.
join
(
','
)
this
.
saveLoading
=
true
setTeachingRewardsSendEmployee
({
PeriodId
:
this
.
CheckID
,
EmpIds
:
EmpIds
}).
then
(
res
=>
{
this
.
saveLoading
=
false
this
.
goaddFinancial
(
this
.
totalAmount
,
this
.
CheckID
)
this
.
$message
.
success
(
'设置成功'
);
}).
catch
(()
=>
{
})
});
},
goaddFinancial
(
Money
,
Id
){
let
School_Id
=
0
;
let
obj
=
{
CostType
:
1250
,
Money
:
Money
,
CurrencyId
:
21
,
XSTC
:
1
,
School_Id
:
0
,
OtherType
:
26
,
ReFinanceId
:
Id
,
ReFinanceId2
:
0
}
let
query
=
{
blank
:
"y"
,
tab
:
"新增付款单据"
,
Type
:
2
,
IsUploadPic
:
1
,
Name
:
'销售提成单'
,
id
:
143
,
orderObj
:
JSON
.
stringify
(
obj
)
}
// this.$router.push({
// path: "/financial/financalDocument/addFinancialDocuments",
// query
// });
this
.
OpenNewUrl
(
"/financial/financalDocument/addFinancialDocuments"
,
query
);
},
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment