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
df685f6c
Commit
df685f6c
authored
Jul 12, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
97f6f4cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
236 additions
and
15 deletions
+236
-15
lesson-form.vue
src/components/course/lesson-form.vue
+2
-2
backbill-form.vue
src/components/sale/backbill-form.vue
+1
-8
changebill-form.vue
src/components/sale/changebill-form.vue
+233
-5
No files found.
src/components/course/lesson-form.vue
View file @
df685f6c
...
...
@@ -310,7 +310,7 @@
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
v-if=
"isShowBtn"
>
<q-td
:props=
"props"
style=
"width:130px;"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400;
display:none;
"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400;"
label=
"编辑"
@
click=
"getInfo(props.row)"
>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
...
...
@@ -558,7 +558,7 @@
<
template
v-else
><span
style=
"color:red;"
>
{{
props
.
row
.
GuestName
}}
</span></
template
>
<q-tooltip
:offset=
"[0, 10]"
v-if=
"props.row.IsChaBan==1"
>
插班报入
<br
/>
开始课时:{{props.row.StartClassHours}}
<br
/>
开始课时:{{props.row.StartClassHours}}
<br
/>
生效状态:{{props.row.EffectStatusStr}}
<br
/>
生效时间:{{props.row.EffectTime}}
<br
/>
<
template
v-if=
"props.row.UpOrderId&&props.row.UpOrderId>0"
>
...
...
src/components/sale/backbill-form.vue
View file @
df685f6c
...
...
@@ -200,14 +200,7 @@
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
FinishHours
}}
课时
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
缺勤次数:
</span>
<span
class=
"backOtherInfo"
>
暂无
</span>
</div>
</div>
<div
class=
"row backInfo_One"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
考试评分:
</span>
<span
class=
"backOtherInfo"
>
暂无
</span>
</div>
</div>
<div
class=
"backinfo_Item"
>
...
...
src/components/sale/changebill-form.vue
View file @
df685f6c
...
...
@@ -57,8 +57,124 @@
<q-tab
:ripple=
"false"
name=
"second"
label=
"审批记录"
/>
</q-tabs>
<div
v-if=
"tabCheck=='first'"
style=
"margin:0 15px;"
>
<!--
<backinfoForm
:seting-obj=
"setingObj"
:showType=
"showType"
@
close=
"closeShenheForm"
@
success=
"refreshPage"
>
</backinfoForm>
-->
<div
class=
"backinfoContent"
>
<div>
<div
class=
"topBaseInfo"
>
<div
class=
"backinfo_Item"
>
<span
class=
"role_Line"
></span>
基本信息
</div>
<div
class=
"row backInfo_One"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
编号:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
BackNum
}}
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
申请人:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
CreateByName
}}
</span>
</div>
</div>
<div
class=
"row backInfo_One"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
学员姓名:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
GuestName
}}
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
申请时间:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
CreateTime
}}
</span>
</div>
</div>
<div
class=
"backinfo_Item"
>
<span
class=
"role_Line"
style=
"background-color:#F28C1D"
></span>
教学信息
</div>
<div
class=
"row backInfo_One"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
校区:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
SchoolName
}}
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
班级信息:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
ClassName
}}
<span
style=
"color:#2961FE;cursor:pointer;"
@
click=
"goClassManage(setingObj.DataObj.ClassName)"
>
{{
setingObj
.
DataObj
.
ClassNo
}}
</span>
</span>
</div>
</div>
<div
class=
"row backInfo_One"
>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
带班老师:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
TeacherName
}}
</span>
</div>
<div
class=
"col-6"
>
<span
class=
"backInfo_Title"
>
学习课程:
</span>
<span
class=
"backOtherInfo"
>
{{
setingObj
.
DataObj
.
CourseName
}}
</span>
</div>
</div>
</div>
<div
class=
"replayReason"
>
<div
class=
"replay_Title"
>
退课原因
</div>
<div
style=
"color:#666666;margin-top:5px;"
>
{{
setingObj
.
DataObj
.
ApplyReason
}}
</div>
</div>
<div
v-if=
"showType==2"
>
<div
style=
"display:flex;justify-content:space-between;align-items:center;margin-top:20px;"
>
<div>
审批意见
</div>
<div>
<q-radio
v-model=
"backBillMsg.AuditStatus"
:val=
"2"
label=
"通过"
/>
<q-radio
v-model=
"backBillMsg.AuditStatus"
:val=
"3"
label=
"驳回"
/>
</div>
</div>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"backBillMsg.Description"
type=
"textarea"
label=
"审批意见"
/>
</div>
<div
style=
"margin-top:20px;"
>
<div
class=
"row"
>
<div
class=
"col-6"
style=
"display:flex;align-items:top;"
>
<template
v-if=
"tempPeople.length>0"
>
<div
style=
"display:inline-block;width:45px;"
>
抄送:
</div>
<div
style=
"display:inline-block;margin-left:5px;width:340px;"
>
<span
class=
"chaosong_Peo"
v-for=
"(childItem,cindex) in tempPeople"
>
{{
getName
(
childItem
)
}}
</span>
</div>
</
template
>
</div>
<div
class=
"col-6"
style=
"justify-content: flex-end;display:flex;align-items:center;"
>
<i
class=
"iconfont icon-aite"
style=
"font-size:20px;margin:7px 20px 0 0;cursor:pointer;"
v-if=
"showType==2"
>
<q-popup-proxy>
<q-banner>
<div
style=
"width:350px;"
>
<div
style=
"margin:10px 0 15px 0;"
>
抄送
</div>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
multiple
clearable
filled
stack-label
use-input
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"tempPeople"
ref=
"ManagerId"
:options=
"EmployeeList"
label=
"选择人员"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
<
template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
</q-banner>
</q-popup-proxy>
</i>
<q-btn
class=
"q-mr-md"
label=
"关闭"
@
click=
"closeBackInfo"
/>
<q-btn
v-if=
"showType==2"
color=
"accent q-px-md"
label=
"确认"
@
click=
"saveBackClassInfo()"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"tabCheck=='second'"
>
<flowinfoForm
:seting-obj=
"setingObj"
:showType=
"showType"
@
close=
"closeShenheForm"
@
success=
"refreshPage"
>
...
...
@@ -73,8 +189,13 @@
</template>
<
script
>
import
flowinfoForm
from
'../sale/flowinfo-form'
;
import
{
saveBackBillAduit
,
}
from
'../../api/sale/bill'
import
{
queryEmployee
}
from
'../../api/users/user'
export
default
{
props
:
{
setingObj
:
{
...
...
@@ -94,13 +215,120 @@
persistent
:
true
,
tabCheck
:
'first'
,
//默认选第一个
loading
:
false
,
backBillMsg
:
{
Id
:
0
,
BackMoney
:
0
,
//实际退款金额
Description
:
""
,
//审批意见
AuditStatus
:
2
,
//审核状态
SpecialNode
:
0
,
//是否特殊节点
RecipientIds
:
""
,
//抄送人
},
classPriceObj
:
{},
//课程价格信息
EmployeeList
:
[],
AllemployeeList
:
[],
tempPeople
:
[],
//抄送人数组
}
},
created
()
{
console
.
log
(
"setingObj"
,
this
.
setingObj
)
this
.
getEmployee
();
},
mounted
()
{
this
.
backBillMsg
.
Id
=
this
.
setingObj
.
Id
;
this
.
backBillMsg
.
SpecialNode
=
this
.
setingObj
.
SpecialNode
;
if
(
this
.
backBillMsg
.
SpecialNode
==
1
)
{
this
.
getBackBillMoney
();
}
},
mounted
()
{},
methods
:
{
getBackBillMoney
()
{
queryBackBillMoney
({
BackId
:
this
.
setingObj
.
RelationId
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
classPriceObj
=
res
.
Data
;
}
});
},
closeBackInfo
()
{
this
.
persistent
=
false
;
this
.
$emit
(
'close'
);
},
//退课单据审核
saveBackClassInfo
()
{
var
str
=
""
;
if
(
this
.
tempPeople
&&
this
.
tempPeople
.
length
>
0
)
{
this
.
tempPeople
.
forEach
(
item
=>
{
str
+=
","
+
item
;
})
}
if
(
str
&&
str
!=
''
)
{
str
=
str
.
substr
(
1
);
}
this
.
backBillMsg
.
RecipientIds
=
str
;
saveBackBillAduit
(
this
.
backBillMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'审核成功!'
,
position
:
'top'
})
//调用父页面成功方法
this
.
$emit
(
'success'
);
this
.
$emit
(
'close'
);
}
})
},
//获取员工列表
getEmployee
()
{
var
qMsg
=
{
EmployeeName
:
""
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
jsonData
=
res
.
Data
;
if
(
jsonData
&&
jsonData
.
length
>
0
)
{
this
.
AllemployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
jsonData
));;
}
}
})
},
//筛选员工
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllemployeeList
))
}
else
{
const
needle
=
val
.
toLowerCase
()
this
.
EmployeeList
=
this
.
AllemployeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
)
}
})
},
//获取员工姓名
getName
(
id
)
{
let
str
=
''
this
.
EmployeeList
.
forEach
(
x
=>
{
if
(
id
==
x
.
Id
)
{
str
=
x
.
EmployeeName
;
}
})
return
str
;
},
//跳转到班级管理
goClassManage
(
ClassName
)
{
this
.
OpenNewUrl
(
'/course/classManage'
,
{
'ClassName'
:
ClassName
})
},
//跳转到报名统计
goOrderStatic
(
OrderId
)
{
this
.
OpenNewUrl
(
'/sale/orderStatistics'
,
{
'OrderId'
:
OrderId
})
},
refreshPage
()
{
this
.
persistent
=
false
;
this
.
$emit
(
'success'
);
...
...
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