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
2d9cb5bd
Commit
2d9cb5bd
authored
Sep 10, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面跳转
parent
5772e3e6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
164 additions
and
167 deletions
+164
-167
myOrder-form.vue
src/components/sale/myOrder-form.vue
+66
-74
orderlist.vue
src/components/sale/orderlist.vue
+32
-25
class-record.vue
src/components/school/student/class-record.vue
+66
-68
No files found.
src/components/sale/myOrder-form.vue
View file @
2d9cb5bd
...
...
@@ -169,8 +169,7 @@
@
click=
"goEduReceiptInfo(item.Id)"
>
{{
item
.
Id
}}
</span>
</
template
>
</div>
<span
slot=
"reference"
class=
"pri_Color"
v-if=
"(props.row.BackClassList&&props.row.BackClassList.length>0)||(props.row.StopClassList&&props.row.StopClassList.length>0)
<span
slot=
"reference"
class=
"pri_Color"
v-if=
"(props.row.BackClassList&&props.row.BackClassList.length>0)||(props.row.StopClassList&&props.row.StopClassList.length>0)
||(props.row.InvitationClassList&&props.row.InvitationClassList.length>0)||(props.row.OrderTransClassList&&props.row.OrderTransClassList.length>0)
||(props.row.OrderSplitClassList&&props.row.OrderSplitClassList.length>0)"
>
查看单据
</span>
</el-popover>
...
...
@@ -265,7 +264,7 @@
</q-td>
</
template
>
<
template
v-slot:body-cell-CostTypeList=
"props"
>
<q-td
:props=
"props"
v-for=
"(s,si) in props.row.CostTypeList"
:key=
"si"
>
<q-td
:props=
"props"
v-for=
"(s,si) in props.row.CostTypeList"
:key=
"si"
>
<span
style=
"background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;"
>
{{
s
}}
</span>
</q-td>
...
...
@@ -284,8 +283,6 @@
</div>
</div>
<div
v-else
style=
"min-height: 48px;"
></div>
</q-td>
</
template
>
<
template
v-slot:body-cell-zhaungt=
"props"
>
...
...
@@ -399,10 +396,12 @@
</
template
>
</q-table>
<!--成本单-->
<div
class=
"row "
style=
"align-items: center;margin: 20px 0;"
v-if=
"saveObj.OrderType==2 || saveObj.ClassScrollType == 2"
>
<div
class=
"row "
style=
"align-items: center;margin: 20px 0;"
v-if=
"saveObj.OrderType==2 || saveObj.ClassScrollType == 2"
>
<div
style=
"width: 3px;height: 15px;background: #3FC4FF;margin-right: 10px"
></div>
成本单
</div>
<q-table
v-if=
"saveObj.OrderType==2 || saveObj.OrderType===1 || saveObj.ClassScrollType == 2"
:pagination=
"financiaMsg"
style=
"padding-bottom:80px;"
:loading=
"floading"
no-data-label=
"暂无相关数据"
flat
<q-table
v-if=
"saveObj.OrderType==2 || saveObj.OrderType===1 || saveObj.ClassScrollType == 2"
:pagination=
"financiaMsg"
style=
"padding-bottom:80px;"
:loading=
"floading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
:hide-pagination=
"true"
:data=
"dataListCB"
:columns=
"receiptColumns"
row-key=
"name"
>
<
template
v-slot:body-cell-FrID=
"props"
>
...
...
@@ -428,11 +427,8 @@
</p>
<p
style=
"color:#333333"
>
{{
tw
.
BankNo
}}
</p>
</div>
</div>
<div
v-else
style=
"min-height: 48px;"
></div>
</q-td>
</
template
>
<
template
v-slot:body-cell-zhaungt=
"props"
>
...
...
@@ -472,8 +468,6 @@
</q-td>
</
template
>
</q-table>
</div>
<div
v-if=
"tab==5"
style=
"padding: 10px 20px"
>
<div
class=
"q-px-lg q-pb-md"
style=
"padding-bottom: 50px;"
>
...
...
@@ -704,7 +698,7 @@
},
dataList
:
[],
dataListP
:
[],
dataListCB
:[],
dataListCB
:
[],
floading
:
false
,
LogLoading
:
false
,
GetFinancLogList
:
[],
...
...
@@ -826,19 +820,19 @@
this
.
getfinanciaALLPageList
(
2
,
TCID
,
OrderID
)
}
else
{
if
(
this
.
saveObj
.
OrderType
==
1
&&
this
.
saveObj
.
ClassScrollType
==
1
)
{
if
(
this
.
saveObj
.
OrderType
==
1
&&
this
.
saveObj
.
ClassScrollType
==
1
)
{
this
.
dataListP
=
data
;
}
else
if
(
this
.
saveObj
.
OrderType
==
2
||
this
.
saveObj
.
ClassScrollType
==
2
){
//等于留学的时候 成本单据
}
else
if
(
this
.
saveObj
.
OrderType
==
2
||
this
.
saveObj
.
ClassScrollType
==
2
)
{
//等于留学的时候 成本单据
this
.
dataListCB
=
[]
this
.
dataListP
=
[]
data
.
forEach
(
x
=>
{
if
(
x
.
OtherType
==
45
||
x
.
OtherType
==
33
)
{
data
.
forEach
(
x
=>
{
if
(
x
.
OtherType
==
45
||
x
.
OtherType
==
33
)
{
this
.
dataListCB
.
push
(
x
)
}
else
{
}
else
{
this
.
dataListP
.
push
(
x
)
}
})
if
(
this
.
dataListCB
&&
this
.
dataListCB
.
length
>
0
)
{
if
(
this
.
dataListCB
&&
this
.
dataListCB
.
length
>
0
)
{
this
.
getAskfor
()
}
...
...
@@ -851,16 +845,16 @@
}
},
err
=>
{})
},
getAskfor
(){
getAskfor
()
{
let
obj
=
{
FrID
:
'汇总'
,
CostTypeList
:[
''
],
TradeWayList
:[],
FrID
:
'汇总'
,
CostTypeList
:
[
''
],
TradeWayList
:
[],
Money
:
0
,
PayMoney
:
0
,
Fee
:
0
,
TradeDate
:
''
,
EmName
:
''
,
TradeDate
:
''
,
EmName
:
''
,
}
this
.
dataListCB
.
forEach
((
x
)
=>
{
if
(
x
.
Money
)
{
...
...
@@ -872,8 +866,6 @@
if
(
x
.
Fee
)
{
obj
.
Fee
=
this
.
accAdd
(
x
.
Fee
,
obj
.
Fee
)
};
})
this
.
dataListCB
.
push
(
obj
)
},
...
...
@@ -881,31 +873,31 @@
var
r1
,
r2
,
m
;
try
{
r1
=
arg1
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r1
=
0
;
}
try
{
r2
=
arg2
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r2
=
0
;
}
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
));
return
(
arg1
*
m
+
arg2
*
m
)
/
m
;
},
goUrl
(
path
,
rowData
,
)
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/'
+
path
,
query
:
{
var
newpath
=
'/financial/financalDocument/'
+
path
;
var
query
=
{
"id"
:
rowData
.
FrID
,
blank
:
'y'
,
tab
:
'单据详情'
}
})
};
this
.
OpenNewUrl
(
newpath
,
query
);
// this.$router.push({
// path: '/financial/financalDocument/' + path,
// query: query
// })
},
//返回2位小数
getTwoWei
(
num
)
{
...
...
src/components/sale/orderlist.vue
View file @
2d9cb5bd
...
...
@@ -687,9 +687,10 @@
</tr>
</table>
</div>
<q-btn
v-if=
"!IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 1)"
label=
"制单"
style=
"min-width:70px;float:right;margin-top:10px"
/>
<q-btn
v-if=
"IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 1,'原路')"
label=
"确定原路退款"
<q-btn
v-if=
"!IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 1)"
label=
"制单"
style=
"min-width:70px;float:right;margin-top:10px"
/>
<q-btn
v-if=
"IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 1,'原路')"
label=
"确定原路退款"
style=
"min-width:70px;float:right;margin-top:10px"
/>
</q-banner>
</q-popup-proxy>
...
...
@@ -759,9 +760,10 @@
</tr>
</table>
</div>
<q-btn
v-if=
"!IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 2)"
label=
"制单"
style=
"min-width:70px;float:right;margin-top:10px"
/>
<q-btn
v-if=
"IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 2,'学费退回')"
label=
"确定转账退款"
<q-btn
v-if=
"!IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 2)"
label=
"制单"
style=
"min-width:70px;float:right;margin-top:10px"
/>
<q-btn
v-if=
"IsRefund"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"chanceType(item, 2,'学费退回')"
label=
"确定转账退款"
style=
"min-width:70px;float:right;margin-top:10px"
/>
</q-banner>
</q-popup-proxy>
...
...
@@ -1440,7 +1442,7 @@
},
mounted
()
{},
methods
:
{
clickRefund
(
type
){
clickRefund
(
type
)
{
this
.
IsRefund
=
type
this
.
showChooseStudent
=
true
},
...
...
@@ -1827,7 +1829,7 @@
});
},
//财务单据
chanceType
(
obj
,
type
,
name
)
{
chanceType
(
obj
,
type
,
name
)
{
let
TCIDARR
=
[];
if
(
obj
&&
obj
.
OrderType
==
2
)
{
//留学就业订单
...
...
@@ -1910,13 +1912,15 @@
orderObj
:
JSON
.
stringify
(
orderObj
),
tradeWay
:
obj
.
tradeWay
,
GuestId
:
guestId
,
searchTitle
:
name
?
name
:
''
searchTitle
:
name
?
name
:
''
}
this
.
IsRefund
=
0
this
.
$router
.
push
({
path
:
"/financial/financalDocument/ChoiceAddFinancialDocuments"
,
query
});
var
newUrlPath
=
"/financial/financalDocument/ChoiceAddFinancialDocuments"
;
this
.
OpenNewUrl
(
newUrlPath
,
query
);
// this.$router.push({
// path: newUrlPath,
// query
// });
},
chanceType_lx
(
obj
)
{
//留学的时 成本制单
...
...
@@ -1958,9 +1962,8 @@
//默认取第一个人的 (现基本都是单人订单 如果有多人订单 需调整)
guestId
=
obj
.
GuestList
[
0
].
Id
;
}
this
.
$router
.
push
({
path
:
"/financial/financalDocument/ChoiceAddFinancialDocuments"
,
query
:
{
var
newUrlPath
=
"/financial/financalDocument/ChoiceAddFinancialDocuments"
;
var
query
=
{
Type
:
2
,
companyID
:
obj
.
ClassSchoolId
,
path
:
""
,
...
...
@@ -1969,7 +1972,11 @@
tradeWay
:
obj
.
tradeWay
,
GuestId
:
guestId
}
});
this
.
OpenNewUrl
(
newUrlPath
,
query
);
// this.$router.push({
// path: newUrlPath,
// query: query
// });
},
//打开班级详情组件
getClassInfo
(
obj
)
{
...
...
src/components/school/student/class-record.vue
View file @
2d9cb5bd
...
...
@@ -10,7 +10,6 @@
color
:
#3470ff
;
font-weight
:
700
;
}
.record_cala_Num
{
height
:
20px
;
padding-left
:
14px
;
...
...
@@ -47,22 +46,20 @@
text-align
:
center
;
font-style
:
normal
;
}
</
style
>
<
template
>
<div>
<div>
<q-tabs
v-model=
"ckedTab"
@
input=
"getTabcheck()"
dense
align=
"left"
class=
"text-teal"
style=
"margin-bottom:20px;"
>
<q-tab
v-for=
"(item,index) in dataList"
:key=
"index"
:name=
"index"
:label=
"item.CourseName+'('+item.OrderId+')'"
/>
<q-tab
v-for=
"(item,index) in dataList"
:key=
"index"
:name=
"index"
:label=
"item.CourseName+'('+item.OrderId+')'"
/>
</q-tabs>
</div>
<div
class=
"record_Main"
>
<div
style=
"display:flex;justify-content:space-between;align-items:center;"
>
<div>
课程进度:
{{
CourseChapterNo
}}
/
{{
TotalChapterNo
}}
</div>
<div>
<q-select
dense
filled
v-model=
"Status"
@
input=
"getStatus"
style=
"width:160px;margin-right:10px;"
:options=
"StatusList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"状态"
/>
<q-select
dense
filled
v-model=
"Status"
@
input=
"getStatus"
style=
"width:160px;margin-right:10px;"
:options=
"StatusList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"状态"
/>
</div>
</div>
<div>
...
...
@@ -106,6 +103,7 @@
</
template
>
</el-table-column>
</el-table>
</div>
</div>
</div>
...
...
@@ -131,7 +129,7 @@
StatusList
:
[{
Name
:
'全部'
,
Id
:
0
},
{
},{
Name
:
'正常上课'
,
Id
:
1
},
{
...
...
@@ -143,14 +141,14 @@
}],
dataList
:
[],
loading
:
false
,
Status
:
0
,
//状态
Status
:
0
,
//状态
msg
:
{
StuId
:
''
},
chapterList
:
[],
//章节
ckedTab
:
0
,
CourseChapterNo
:
0
,
//当前进度
TotalChapterNo
:
0
,
//总进度
chapterList
:[],
//章节
ckedTab
:
0
,
CourseChapterNo
:
0
,
//当前进度
TotalChapterNo
:
0
,
//总进度
tableHeight
:
200
,
};
},
...
...
@@ -172,7 +170,7 @@
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
if
(
this
.
dataList
.
length
>
0
)
{
if
(
this
.
dataList
.
length
>
0
)
{
this
.
chapterList
=
this
.
dataList
[
0
].
ChapterList
;
this
.
CourseChapterNo
=
this
.
dataList
[
0
].
CourseChapterNo
;
this
.
TotalChapterNo
=
this
.
dataList
[
0
].
TotalChapterNo
;
...
...
@@ -180,19 +178,19 @@
}
});
},
getTabcheck
()
{
getTabcheck
(){
this
.
chapterList
=
this
.
dataList
[
this
.
ckedTab
].
ChapterList
;
this
.
CourseChapterNo
=
this
.
dataList
[
this
.
ckedTab
].
CourseChapterNo
;
this
.
TotalChapterNo
=
this
.
dataList
[
this
.
ckedTab
].
TotalChapterNo
;
},
//根据状态过滤
getStatus
()
{
getStatus
(){
let
dataArray
=
[];
if
(
this
.
Status
==
0
)
{
if
(
this
.
Status
==
0
)
{
dataArray
=
this
.
dataList
[
this
.
ckedTab
].
ChapterList
;
}
else
{
this
.
dataList
[
this
.
ckedTab
].
ChapterList
.
forEach
(
x
=>
{
if
(
x
.
State
==
this
.
Status
)
{
}
else
{
this
.
dataList
[
this
.
ckedTab
].
ChapterList
.
forEach
(
x
=>
{
if
(
x
.
State
==
this
.
Status
)
{
dataArray
.
push
(
x
);
}
})
...
...
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