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
2e326b62
Commit
2e326b62
authored
Dec 23, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8a3df3ee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
190 additions
and
153 deletions
+190
-153
administration.js
src/api/administration/administration.js
+21
-0
orderlist.vue
src/components/sale/orderlist.vue
+33
-7
AttendanceRules.vue
src/pages/administration/AttendanceRules.vue
+53
-44
leaveApproval.vue
src/pages/administration/leaveApproval.vue
+81
-101
achievements.vue
src/pages/course/achievements.vue
+1
-1
myOrder.vue
src/pages/sale/myOrder.vue
+1
-0
No files found.
src/api/administration/administration.js
View file @
2e326b62
...
...
@@ -197,6 +197,27 @@ export function setAttendanceInfo(data) {
data
});
}
/**
*
*/
export
function
getTimeSpanValue
(
data
)
{
return
request
({
url
:
'/usercenter/GetTimeSpanValue'
,
method
:
'post'
,
data
});
}
/**
*审批的获取和发起 根据类型不用的接口名称 第二为接口名称
*/
export
function
getleaveCmd
(
data
,
cmd
)
{
return
request
({
url
:
cmd
,
method
:
'post'
,
data
});
}
...
...
src/components/sale/orderlist.vue
View file @
2e326b62
...
...
@@ -27,7 +27,7 @@
<div
style=
"margin-top: 30px;margin-bottom: 10px"
>
班级
</div>
<div
style=
"font-weight: bold;color:#2961FE;cursor:pointer;"
@
click=
"getClassInfo(item)"
>
{{
item
.
ClassName
}}
</div>
</
template
>
<
template
v-if=
"
!isShowClass&&
item.IsCommissionGive==1"
>
<
template
v-if=
"item.IsCommissionGive==1"
>
<div
style=
"margin-top:30px;"
>
提成:
{{
item
.
CommissionMoney
}}
</div>
</
template
>
<
template
>
...
...
@@ -118,9 +118,16 @@
</tr>
<tr>
<td
:colspan=
"11"
style=
"text-align: left"
>
<div
class=
"row"
v-if=
"item.GuestList.length>0"
>
学生名单:
<span
v-for=
"(x,j) in item.GuestList"
:index=
"j"
v-if=
"item.GuestList.length>0"
style=
"color:#2961FE;"
>
{{x.GuestName}}
</span>
<span
v-if=
"item.GuestList.length==0"
>
暂无
</span>
<span
v-for=
"(x,j) in item.GuestList"
:index=
"j"
v-if=
"x.GuestState==1"
style=
"color:#2961FE;margin-right: 5px"
>
{{x.GuestName}}
</span>
</div>
<div
class=
"row"
v-if=
" item.GuestList.length>0&&getTkshow(item.GuestList)"
>
退课名单:
<span
v-for=
"(x,j) in item.GuestList"
:index=
"j"
v-if=
"x.GuestState==2"
style=
"color:#f5576c;margin-right: 5px"
>
{{x.GuestName}}
</span>
</div>
<span
v-if=
"item.GuestList.length==0"
>
暂无
</span>
</td>
</tr>
<tr>
...
...
@@ -293,9 +300,15 @@
</tr>
<tr>
<td
:colspan=
"11"
style=
"text-align: left"
>
<div
class=
"row"
v-if=
"item.GuestList.length>0"
>
学生名单:
<span
v-for=
"(x,j) in item.GuestList"
:index=
"j"
v-if=
"item.GuestList.length>0"
style=
"color:#2961FE;"
>
{{x.GuestName}}
</span>
<span
v-if=
"item.GuestList.length==0"
>
暂无
</span>
<span
v-for=
"(x,j) in item.GuestList"
:index=
"j"
v-if=
"x.GuestState==1"
style=
"color:#2961FE;margin-right: 5px"
>
{{x.GuestName}}
</span>
</div>
<div
class=
"row"
v-if=
" item.GuestList.length>0&&getTkshow(item.GuestList)"
>
退课名单:
<span
v-for=
"(x,j) in item.GuestList"
:index=
"j"
v-if=
"x.GuestState==2"
style=
"color:#f5576c;margin-right: 5px"
>
{{x.GuestName}}
</span>
</div>
<span
v-if=
"item.GuestList.length==0"
>
暂无
</span>
</td>
</tr>
<tr>
...
...
@@ -396,7 +409,7 @@
<div
class=
"col"
>
<div
class=
"row"
style=
"justify-content: space-between"
>
<span>
收款单据:
</span>
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;color: #02C499"
label=
"修改"
@
click=
"chanceType(item,1)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
v-if=
"isShowClass"
style=
"font-weight:400;color: #02C499"
label=
"修改"
@
click=
"chanceType(item,1)"
/>
</div>
<div
class=
"row wrap"
>
...
...
@@ -408,7 +421,7 @@
</div>
<div
class=
"row"
style=
"justify-content: space-between"
>
<span>
付款单据:
</span>
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;color: #02C499"
label=
"修改"
@
click=
"chanceType(item,2)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
v-if=
"isShowClass"
style=
"font-weight:400;color: #02C499"
label=
"修改"
@
click=
"chanceType(item,2)"
/>
</div>
<div
class=
"row wrap"
>
<div
class=
"finance row"
v-for=
"(x,j) in item.RefundFinanceList"
:index=
"j"
:style=
"{
...
...
@@ -507,10 +520,23 @@ export default {
}
},
created
()
{
this
.
Employee
()
},
mounted
()
{},
methods
:
{
getTkshow
(
data
){
let
Tkshow
=
false
;
if
(
data
.
length
>
0
){
data
.
forEach
(
x
=>
{
if
(
x
.
GuestState
==
2
){
Tkshow
=
true
}
});
}
return
Tkshow
},
//显示退课申请
showBackClassForm
(
item
)
{
this
.
orderObj
=
item
;
...
...
src/pages/administration/AttendanceRules.vue
View file @
2e326b62
...
...
@@ -287,6 +287,7 @@
import
{
getDepartmentGetList
,
getAttendanceInfo
,
getTimeSpanValue
,
setAttendanceInfo
}
from
'../../api/administration/administration'
import
{
...
...
@@ -448,12 +449,6 @@
})
},
getEmployee
(
id
)
{
// this.employeeMsg.departmentId = id
// this.apipost('app_get_company_employee', this.employeeMsg, res => {
// if(res.data.resultCode == 1) {
// this.employeeList = res.data.data;
// }
// }, err => {})
let
msg
=
{
Dept_Id
:
id
,
EmployeeName
:
""
,
...
...
@@ -502,22 +497,32 @@
},
getDateArr
()
{
if
(
this
.
fwStartTime
!=
''
&&
this
.
fwEndTime
!=
''
)
{
this
.
apipost
(
'User_get_AttendanceGetTimeSpanValue'
,
{
StartTime
:
this
.
fwStartTime
,
EndTime
:
this
.
fwEndTime
},
res
=>
{
this
.
fwdateArr
=
res
.
data
.
data
},
err
=>
{})
getTimeSpanValue
(
{
StartTime
:
this
.
fwStartTime
,
EndTime
:
this
.
fwEndTime
}
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
fwdateArr
=
res
.
Data
}
}).
catch
(()
=>
{
})
}
},
getDateArr1
()
{
if
(
this
.
fwStartTime1
!=
''
&&
this
.
fwEndTime1
!=
''
)
{
this
.
apipost
(
'User_get_AttendanceGetTimeSpanValue'
,
{
StartTime
:
this
.
fwStartTime1
,
EndTime
:
this
.
fwEndTime1
},
res
=>
{
this
.
fwdateArr1
=
res
.
data
.
data
},
err
=>
{})
getTimeSpanValue
(
{
StartTime
:
this
.
fwStartTime1
,
EndTime
:
this
.
fwEndTime1
}
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
fwdateArr1
=
res
.
Data
}
}).
catch
(()
=>
{
})
}
},
onSearchResult
(
pois
)
{
...
...
@@ -876,40 +881,44 @@
this
.
addMsg
.
NottdList
=
this
.
signOutDates
;
//不用打卡的日期
this
.
addMsg
.
awList
=
this
.
awListData
;
//根据地点考勤
this
.
addMsg
.
awWifiList
=
this
.
awWifiListDates
;
//根据Wifi考勤
this
.
apipost
(
'User_post_AttendanceSet'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
m
essage
)
setAttendanceInfo
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
M
essage
)
this
.
goBack
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
m
essage
)
this
.
$message
.
error
(
res
.
M
essage
)
}
}).
catch
(()
=>
{
}
,
err
=>
{}
)
})
},
getUpdateList
()
{
//获取修改数据
this
.
apipost
(
'User_get_AttendanceGet'
,
{
attendanceId
:
this
.
addMsg
.
attendanceId
},
res
=>
{
this
.
listArr
=
res
.
data
.
data
.
WdList
;
this
.
listArr
.
forEach
((
item
,
index
)
=>
{
item
.
IsCheck
=
res
.
data
.
data
.
WdList
[
index
].
IsCheck
==
'1'
?
true
:
false
})
this
.
signInDates
=
res
.
data
.
data
.
TdList
;
this
.
signInDates
.
forEach
(
item
=>
{
item
.
Date
=
item
.
Date
.
substring
(
0
,
10
)
})
this
.
signOutDates
=
res
.
data
.
data
.
NottdList
;
this
.
signOutDates
.
forEach
(
item
=>
{
item
.
Date
=
item
.
Date
.
substring
(
0
,
10
)
})
this
.
getSpecialDates
();
this
.
awListData
=
res
.
data
.
data
.
AwList
;
this
.
awWifiListDates
=
res
.
data
.
data
.
AwWifiList
;
if
(
res
.
data
.
data
.
AwList
.
length
>
0
)
{
this
.
addressRange
=
res
.
data
.
data
.
AwList
[
0
].
Scope
.
toString
();
getAttendanceInfo
({
attendanceId
:
this
.
addMsg
.
attendanceId
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
listArr
=
res
.
Data
.
WdList
;
this
.
listArr
.
forEach
((
item
,
index
)
=>
{
item
.
IsCheck
=
res
.
Data
.
WdList
[
index
].
IsCheck
==
'1'
?
true
:
false
})
this
.
signInDates
=
res
.
Data
.
TdList
;
this
.
signInDates
.
forEach
(
item
=>
{
item
.
Date
=
item
.
Date
.
substring
(
0
,
10
)
})
this
.
signOutDates
=
res
.
Data
.
NottdList
;
this
.
signOutDates
.
forEach
(
item
=>
{
item
.
Date
=
item
.
Date
.
substring
(
0
,
10
)
})
this
.
getSpecialDates
();
this
.
awListData
=
res
.
Data
.
AwList
;
this
.
awWifiListDates
=
res
.
Data
.
AwWifiList
;
if
(
res
.
Data
.
AwList
.
length
>
0
)
{
this
.
addressRange
=
res
.
Data
.
AwList
[
0
].
Scope
.
toString
();
}
}
}).
catch
(()
=>
{
})
},
err
=>
{})
},
goBack
()
{
history
.
back
(
-
1
)
...
...
src/pages/administration/leaveApproval.vue
View file @
2e326b62
...
...
@@ -63,7 +63,8 @@
}
from
'../../api/common/common'
import
{
getDictValueList
,
calculateDuration
calculateDuration
,
getleaveCmd
}
from
'../../api/administration/administration'
;
export
default
{
data
()
{
...
...
@@ -100,53 +101,34 @@
},
methods
:
{
getLunchTime
()
{
this
.
apipost
(
'dict_post_GetList'
,
{
Key
:
'SK_AskForLeaveSet_LunchBreak'
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
getDictValueList
({
Key
:
'SK_AskForLeaveSet_LunchBreak'
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
getList
()
if
(
res
.
data
.
data
[
0
].
Content
!=
''
&&
res
.
data
.
d
ata
[
0
].
Content
!=
null
)
if
(
res
.
Data
[
0
].
Content
!=
''
&&
res
.
D
ata
[
0
].
Content
!=
null
)
{
this
.
lunchTime
=
res
.
data
.
d
ata
[
0
].
Content
this
.
lunchTime
=
res
.
D
ata
[
0
].
Content
}
else
{
this
.
lunchTime
=
'12:00-13:00'
}
}
},
err
=>
{})
// getDictValueList({Key: 'SK_AskForLeaveSet_LunchBreak'}).then(res => {
// if(res.Code == 1) {
//
// }
// }).catch(() => {
// this.getList()
// if(res.data.data[0].Content!=''&&res.data.data[0].Content!=null)
// {
// this.lunchTime = res.data.data[0].Content
// }else{
// this.lunchTime='12:00-13:00'
// }
// })
}).
catch
(()
=>
{
})
},
getKey
()
{
this
.
apipost
(
'dict_post_GetList'
,
{
Key
:
'SK_AskForLeaveSet_Month'
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
keyContent
=
res
.
data
.
data
[
0
].
Content
getDictValueList
({
Key
:
'SK_AskForLeaveSet_Month'
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
keyContent
=
res
.
Data
[
0
].
Content
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getKeyBefore
()
{
this
.
apipost
(
'dict_post_GetList'
,
{
Key
:
'SK_AskForLeaveSet_Befor'
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
keyContentBefor
=
res
.
data
.
data
[
0
].
Content
getDictValueList
({
Key
:
'SK_AskForLeaveSet_Befor'
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
keyContentBefor
=
res
.
Data
[
0
].
Content
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
isYearLeave
(
val
)
{
if
(
val
==
1
)
{
...
...
@@ -236,50 +218,60 @@
})
},
getList
()
{
this
.
apipost
(
this
.
cmd
,
{
getleaveCmd
({
workFlowId
:
this
.
workFlowId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
list
=
res
.
data
.
data
this
.
list
.
forEach
(
item
=>
{
if
(
item
.
formType
==
'selectField'
&&
item
.
value
==
0
)
{
item
.
value
=
''
;
}
if
(
item
.
formType
==
'imageField'
&&
item
.
value
.
length
>
0
)
{
item
.
value
.
forEach
(
item
=>
{
this
.
fileList
.
push
({
url
:
item
})
this
.
submitFileList
.
push
(
item
)
},
this
.
cmd
).
then
(
res
=>
{
this
.
list
=
res
.
Data
this
.
list
.
forEach
(
item
=>
{
if
(
item
.
formType
==
'selectField'
&&
item
.
value
==
0
)
{
item
.
value
=
''
;
}
if
(
item
.
formType
==
'imageField'
&&
item
.
value
.
length
>
0
)
{
item
.
value
.
forEach
(
item
=>
{
this
.
fileList
.
push
({
url
:
item
})
}
})
if
(
this
.
list
[
0
].
value
==
1
)
{
this
.
submitFileList
.
push
(
item
)
})
}
})
if
(
this
.
list
[
0
].
value
==
1
)
{
this
.
yearLeave
=
true
let
_start
=
this
.
list
[
1
].
value
.
split
(
' '
)[
1
]
let
_end
=
this
.
list
[
2
].
value
.
split
(
' '
)[
1
]
let
_startLunchTime
=
this
.
lunchTime
.
split
(
'-'
)[
0
]
+
':00'
let
_endLunchTime
=
this
.
lunchTime
.
split
(
'-'
)[
1
]
+
':00'
this
.
list
[
1
].
value
=
this
.
list
[
1
].
value
.
split
(
' '
)[
0
]
this
.
list
[
2
].
value
=
this
.
list
[
2
].
value
.
split
(
' '
)[
0
]
if
(
_start
<
_startLunchTime
){
this
.
startVal
=
'1'
}
else
{
this
.
startVal
=
'2'
}
this
.
yearLeave
=
true
let
_start
=
this
.
list
[
1
].
value
.
split
(
' '
)[
1
]
let
_end
=
this
.
list
[
2
].
value
.
split
(
' '
)[
1
]
let
_startLunchTime
=
this
.
lunchTime
.
split
(
'-'
)[
0
]
+
':00'
let
_endLunchTime
=
this
.
lunchTime
.
split
(
'-'
)[
1
]
+
':00'
this
.
list
[
1
].
value
=
this
.
list
[
1
].
value
.
split
(
' '
)[
0
]
this
.
list
[
2
].
value
=
this
.
list
[
2
].
value
.
split
(
' '
)[
0
]
if
(
_start
<
_startLunchTime
){
this
.
startVal
=
'1'
}
else
{
this
.
startVal
=
'2'
}
if
(
_end
<
_endLunchTime
){
this
.
endVal
=
'1'
}
else
{
this
.
endVal
=
'2'
}
if
(
_end
<
_endLunchTime
){
this
.
endVal
=
'1'
}
else
{
this
.
yearLeave
=
false
this
.
endVal
=
'2'
}
}
else
{
this
.
yearLeave
=
false
}
},
err
=>
{})
}).
catch
(()
=>
{
})
// this.apipost(this.cmd, {
// workFlowId: this.workFlowId
// }, res => {
// if(res.data.resultCode == 1) {
//
// }
// }, err => {})
},
getDuration
(
obj
,
index
)
{
let
starTime
=
''
...
...
@@ -326,32 +318,17 @@
})
}
if
(
starTime
!=
''
&&
endTime
!=
''
)
{
// calculateDuration({
// startTime: starTime,
// endTime: endTime,
// templateId: this.type,
// LunchTime: this.lunchTime
// }).then(res => {
// if(res.Code == 1) {
//
// }
// }).catch(() => {
//
// })
this
.
apipost
(
'app_user_workflow_calculate_duration'
,
{
calculateDuration
({
startTime
:
starTime
,
endTime
:
endTime
,
templateId
:
this
.
type
,
LunchTime
:
this
.
lunchTime
}
,
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
}
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
totalList
=
[];
obj
.
forEach
(
item
=>
{
if
(
item
.
formType
==
'durationField'
)
{
item
.
value
=
res
.
data
.
d
ata
.
duration
;
item
.
value
=
res
.
D
ata
.
duration
;
let
totalDurationField
=
0
;
this
.
list
.
forEach
(
item
=>
{
if
(
item
.
formType
==
'childField'
)
{
...
...
@@ -373,7 +350,11 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
}
},
...
...
@@ -439,17 +420,16 @@
this
.
msg
.
endTime
=
this
.
msg
.
endTime
+
' 23:59:59'
}
}
this
.
apipost
(
this
.
submitCmd
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
getleaveCmd
(
this
.
msg
,
this
.
submitCmd
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$message
.
success
(
res
.
Message
)
this
.
loading
=
false
//this.goback()
}
else
{
this
.
$message
.
warning
(
res
.
data
.
message
)
}
else
{
this
.
$message
.
warning
(
res
.
Message
)
this
.
loading
=
false
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
},
mounted
()
{
...
...
src/pages/course/achievements.vue
View file @
2e326b62
...
...
@@ -182,7 +182,7 @@
</div>
<div
class=
"d7"
>
<div
class=
"row"
style=
"align-items: center;color: #3FC4FF;cursor: pointer"
v-if=
"item.PerfState==2"
@
click=
"systemShan(item)"
>
<div
class=
"row"
style=
"align-items: center;color: #3FC4FF;cursor: pointer"
v-if=
"item.PerfState==2
&& item.FinanceId==0
"
@
click=
"systemShan(item)"
>
<img
src=
"../../assets/images/course/zhidan.png"
alt=
""
style=
"width: 16px;height: 12px;margin-right: 5px;"
>
自动生成单据
</div>
...
...
src/pages/sale/myOrder.vue
View file @
2e326b62
...
...
@@ -265,6 +265,7 @@
this
.
loading
=
false
OrderIds
=
OrderIds
.
join
(
','
)
// this.getOrderFinanceList(OrderIds)
if
(
this
.
data
.
List
.
length
>
0
){
this
.
$refs
.
orderL
.
getOrderFinanceList
(
OrderIds
,
1
)
...
...
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