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
b8283557
Commit
b8283557
authored
Aug 03, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f0d4aeea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
77 deletions
+61
-77
orderlist.vue
src/components/sale/orderlist.vue
+47
-5
studentList.vue
src/pages/sale/studentList.vue
+14
-72
No files found.
src/components/sale/orderlist.vue
View file @
b8283557
...
@@ -66,15 +66,18 @@
...
@@ -66,15 +66,18 @@
<q-badge
v-if=
"item.TargetJoinType==3"
color=
"green"
label=
"已续费"
style=
"margin-left:5px;"
<q-badge
v-if=
"item.TargetJoinType==3"
color=
"green"
label=
"已续费"
style=
"margin-left:5px;"
class=
"q-mr-xs"
/>
class=
"q-mr-xs"
/>
<div
style=
"display:inline-block;"
>
<div
style=
"display:inline-block;"
>
<q-badge
v-if=
"(item.JoinType==4||item.JoinType==5 ||item.TargetJoinType==4||item.TargetJoinType==5) &&item.FirstOrderId>0"
color=
"blue"
label=
"关联拆分订单"
<q-badge
style=
"margin-left:5px;cursor:pointer;"
>
v-if=
"(item.JoinType==4||item.JoinType==5 ||item.TargetJoinType==4||item.TargetJoinType==5) &&item.FirstOrderId>0"
color=
"blue"
label=
"关联拆分订单"
style=
"margin-left:5px;cursor:pointer;"
>
</q-badge>
</q-badge>
<q-popup-proxy>
<q-popup-proxy>
<q-banner>
<q-banner>
<div
style=
"width: 500px;"
>
<div
style=
"width: 500px;"
>
<template
v-if=
"item.SplitDetailsList&&item.SplitDetailsList.length>0"
>
<template
v-if=
"item.SplitDetailsList&&item.SplitDetailsList.length>0"
>
<div
style=
"margin-bottom:5px;color:#000;"
v-for=
"(subItem,subIndex) in item.SplitDetailsList"
:key=
"subIndex"
>
<div
style=
"margin-bottom:5px;color:#000;"
v-for=
"(subItem,subIndex) in item.SplitDetailsList"
从 【
{{
subItem
.
S_ClassName
}}
】(
{{
subItem
.
S_OrderId
}}
)
{{
subItem
.
T_JoinTypeName
}}
到【
{{
subItem
.
T_ClassName
}}
】(
{{
subItem
.
T_OrderId
}}
)
:key=
"subIndex"
>
从 【
{{
subItem
.
S_ClassName
}}
】(
{{
subItem
.
S_OrderId
}}
)
{{
subItem
.
T_JoinTypeName
}}
到【
{{
subItem
.
T_ClassName
}}
】(
{{
subItem
.
T_OrderId
}}
)
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -387,7 +390,10 @@
...
@@ -387,7 +390,10 @@
</tr>
</tr>
<tr
v-for=
"subItem in item.GuestList"
>
<tr
v-for=
"subItem in item.GuestList"
>
<td>
{{subItem.GuestName}}
</td>
<td>
{{subItem.GuestName}}
</td>
<td>
{{subItem.ContractNo}}
</td>
<td>
<span
style=
"color:var(--q-color-primary);cursor:pointer;"
@
click=
"getShowContract(subItem)"
>
{{subItem.ContractNo}}
</span>
</td>
<td>
{{subItem.ContractStatusStr}}
</td>
<td>
{{subItem.ContractStatusStr}}
</td>
<td>
<td>
<
template
v-if=
"subItem.ContractId==0"
>
<
template
v-if=
"subItem.ContractId==0"
>
...
@@ -875,6 +881,23 @@
...
@@ -875,6 +881,23 @@
<!--合同信息-->
<!--合同信息-->
<eduinfo-form
v-if=
"isShowEduForm"
:seting-obj=
"eduObj"
@
close=
"closeEdudia"
@
success=
"refreshPage"
>
<eduinfo-form
v-if=
"isShowEduForm"
:seting-obj=
"eduObj"
@
close=
"closeEdudia"
@
success=
"refreshPage"
>
</eduinfo-form>
</eduinfo-form>
<div
v-if=
"isShowContract"
class=
"_show_img_box"
@
click=
"(isShowContract = false), (imgViewList = [])"
>
<div
style=
"
position: absolute;
width: 800px;
height: 600px;
left: 50%;
top: 50%;
margin-left: -400px;
margin-top: -300px;
"
>
<el-carousel
:initial-index=
"initialIndex"
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
style=
"height: 600px; overflow: auto"
v-for=
"(item, index) in imgViewList"
:key=
"index"
>
<img
:src=
"item"
style=
""
/>
</el-carousel-item>
</el-carousel>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -1017,6 +1040,10 @@
...
@@ -1017,6 +1040,10 @@
HelpEnterId
:
''
,
HelpEnterId
:
''
,
},
//关联老师参数
},
//关联老师参数
TeacherList
:
[],
//下拉老师
TeacherList
:
[],
//下拉老师
isShowContract
:
false
,
imgViewUrl
:
''
,
imgViewList
:
[],
initialIndex
:
0
,
}
}
},
},
created
()
{
created
()
{
...
@@ -1060,6 +1087,21 @@
...
@@ -1060,6 +1087,21 @@
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
//点击合同编号预览
getShowContract
(
item
)
{
this
.
isShowPop
=
false
;
if
(
item
.
ContractUrlList
.
length
>
0
)
{
//预览图片
if
(
item
.
ContractType
==
2
)
{
this
.
isShowContract
=
true
;
this
.
imgViewUrl
=
item
.
ContractUrlList
[
0
];
this
.
imgViewList
=
item
.
ContractUrlList
;
}
if
(
item
.
ContractType
==
1
){
this
.
previewPDF
(
item
.
ContractUrlList
[
0
]);
}
}
},
//初始化权限信息
//初始化权限信息
initAuth
()
{
initAuth
()
{
if
(
this
.
authObj
)
{
if
(
this
.
authObj
)
{
...
...
src/pages/sale/studentList.vue
View file @
b8283557
...
@@ -46,10 +46,13 @@
...
@@ -46,10 +46,13 @@
text-align
:
center
;
text-align
:
center
;
line-height
:
20px
;
line-height
:
20px
;
}
}
.el-image-viewer__wrapper
{
z-index
:
9999
!important
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
<div
class=
"page-content"
>
<div
class=
"page-content
student_List
"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"stickycreatInsertStr-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
class=
"stickycreatInsertStr-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
:visible-columns=
"visibleColumns"
>
:visible-columns=
"visibleColumns"
>
...
@@ -214,14 +217,14 @@
...
@@ -214,14 +217,14 @@
</div>
</div>
<div>
<div>
<div
class=
"_addUpload_stu"
style=
"margin:15px 0 0 20px;min-height:100px;"
>
<div
class=
"_addUpload_stu"
style=
"margin:15px 0 0 20px;min-height:100px;"
>
<
template
v-for=
"(file, fIndex) in
saveMsg
"
>
<
template
v-for=
"(file, fIndex) in
addMsg.ContractUrl
"
>
<div
v-if=
"
file.
Type == 2"
>
<div
v-if=
"
addMsg.Contract
Type == 2"
>
<div
style=
"width: 100%; height: 100%; overflow: hidden"
>
<div
style=
"width: 100%; height: 100%; overflow: hidden"
>
<
img
:src=
"file.Url ? file.Url : file.Content"
@
click=
"showUpLoadFile(file)"
/
>
<
el-image
style=
"width: 100%; height: 100%"
:src=
"file"
:preview-src-list=
"addMsg.ContractUrl"
></el-image
>
</div>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
</div>
<div
v-if=
"
file.
Type == 1"
style=
"float:left;"
>
<div
v-if=
"
addMsg.Contract
Type == 1"
style=
"float:left;"
>
<div
class=
"iconfont icon-pdf"
style=
"font-size:38px;color:green;text-align:center;line-height:75px;"
@
click=
"showUpLoadFile(file)"
></div>
<div
class=
"iconfont icon-pdf"
style=
"font-size:38px;color:green;text-align:center;line-height:75px;"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
</div>
...
@@ -244,23 +247,6 @@
...
@@ -244,23 +247,6 @@
</q-card-actions>
</q-card-actions>
</q-card>
</q-card>
</q-dialog>
</q-dialog>
<div
v-if=
"picIsShow"
class=
"_show_img_box"
@
click=
"(picIsShow = false), (picObj = [])"
>
<div
style=
"
position: absolute;
width: 800px;
height: 600px;
left: 50%;
top: 50%;
margin-left: -400px;
margin-top: -300px;
"
>
<el-carousel
:initial-index=
"initialIndex"
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
style=
"height: 600px; overflow: auto"
v-for=
"(item, index) in picObj"
:key=
"index"
>
<img
:src=
"item"
style=
""
/>
</el-carousel-item>
</el-carousel>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -439,9 +425,6 @@
...
@@ -439,9 +425,6 @@
visibleColumns
:
[
visibleColumns
:
[
],
//可见列
],
//可见列
saveMsg
:
[],
picObj
:
[],
picIsShow
:
false
,
initialIndex
:
0
,
initialIndex
:
0
,
ContractTypeList
:[{
ContractTypeList
:[{
Name
:
'PDF'
,
Name
:
'PDF'
,
...
@@ -491,37 +474,19 @@
...
@@ -491,37 +474,19 @@
},
},
methods
:
{
methods
:
{
resetContractArr
(){
resetContractArr
(){
this
.
saveMsg
=
[];
this
.
addMsg
.
ContractUrl
=
[];
this
.
addMsg
.
ContractUrl
=
[];
},
},
showUpLoadFile
(
i
)
{
showUpLoadFile
(
file
)
{
// 预览上传文件
if
(
file
)
{
if
(
i
.
Type
==
3
)
{
this
.
previewPDF
(
file
);
this
.
picObj
.
push
(
i
.
Url
);
// this.imgList.push(i.Url)
this
.
picIsShow
=
true
;
}
else
{
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
"."
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
"PDF"
||
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
"."
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
"TXT"
)
{
this
.
previewPDF
(
i
.
Url
);
}
else
{
}
else
{
window
.
open
(
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Url
"https://view.officeapps.live.com/op/view.aspx?src="
+
file
);
);
}
}
}
},
},
deleteUploadFile
(
i
)
{
deleteUploadFile
(
i
)
{
// 删除上传文件
// 删除上传文件
this
.
saveMsg
.
splice
(
i
,
1
);
this
.
addMsg
.
ContractUrl
.
splice
(
i
,
1
);
this
.
addMsg
.
ContractUrl
.
splice
(
i
,
1
);
},
},
uploadFileBtn
(
file
)
{
uploadFileBtn
(
file
)
{
...
@@ -572,12 +537,6 @@
...
@@ -572,12 +537,6 @@
if
(
x
.
Code
==
1
)
{
if
(
x
.
Code
==
1
)
{
if
(
this
.
addMsg
.
ContractType
==
1
){
if
(
this
.
addMsg
.
ContractType
==
1
){
if
(
this
.
addMsg
.
ContractUrl
.
length
<
1
){
if
(
this
.
addMsg
.
ContractUrl
.
length
<
1
){
this
.
saveMsg
.
push
({
Content
:
x
.
FileUrl
,
ID
:
0
,
Type
:
fileTypeNumber
,
Url
:
x
.
FileUrl
,
});
this
.
addMsg
.
ContractUrl
.
push
(
x
.
FileUrl
);
this
.
addMsg
.
ContractUrl
.
push
(
x
.
FileUrl
);
}
else
{
}
else
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
...
@@ -587,12 +546,6 @@
...
@@ -587,12 +546,6 @@
})
})
}
}
}
else
{
}
else
{
this
.
saveMsg
.
push
({
Content
:
x
.
FileUrl
,
ID
:
0
,
Type
:
fileTypeNumber
,
Url
:
x
.
FileUrl
,
});
this
.
addMsg
.
ContractUrl
.
push
(
x
.
FileUrl
);
this
.
addMsg
.
ContractUrl
.
push
(
x
.
FileUrl
);
}
}
this
.
$message
.
success
(
this
.
$t
(
"tips.scchenggong"
));
this
.
$message
.
success
(
this
.
$t
(
"tips.scchenggong"
));
...
@@ -781,17 +734,6 @@
...
@@ -781,17 +734,6 @@
this
.
addMsg
.
ContractType
=
item
.
ContractType
;
this
.
addMsg
.
ContractType
=
item
.
ContractType
;
this
.
addMsg
.
GuestContractNo
=
item
.
GuestContractNo
;
this
.
addMsg
.
GuestContractNo
=
item
.
GuestContractNo
;
this
.
addMsg
.
ContractUrl
=
item
.
ContractUrlList
;
this
.
addMsg
.
ContractUrl
=
item
.
ContractUrlList
;
this
.
saveMsg
=
[];
if
(
this
.
addMsg
.
ContractUrl
&&
this
.
addMsg
.
ContractUrl
.
length
>
0
){
this
.
addMsg
.
ContractUrl
.
forEach
(
x
=>
{
this
.
saveMsg
.
push
({
Content
:
x
,
ID
:
0
,
Type
:
this
.
addMsg
.
ContractType
,
Url
:
x
});
})
}
this
.
persistent
=
true
;
this
.
persistent
=
true
;
},
},
//删除学员
//删除学员
...
...
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