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
e060410f
Commit
e060410f
authored
Dec 17, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ad56bdb7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
14 deletions
+79
-14
index.js
src/api/finance/index.js
+1
-0
paymentDetail.vue
src/pages/course/paymentDetail.vue
+37
-11
teamProductModule.vue
src/pages/financial/components/teamProductModule.vue
+2
-2
index.js
src/utils/index.js
+39
-1
No files found.
src/api/finance/index.js
View file @
e060410f
import
request
from
'../../utils/request'
import
request
from
'../../utils/request'
/**
/**
* 获取收支明细数据
* 获取收支明细数据
*
*
...
...
src/pages/course/paymentDetail.vue
View file @
e060410f
...
@@ -128,12 +128,18 @@
...
@@ -128,12 +128,18 @@
text-align
:
left
;
text-align
:
left
;
margin
:
auto
;
margin
:
auto
;
}
}
.p_titleList
{
position
:
relative
;
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body paymentDetail"
>
<div
class=
"page-body paymentDetail"
>
<div
class=
"page-search items-center"
>
<div
class=
"page-search items-center"
>
<div
class=
"p_title"
>
班级收支明细
</div>
<div
class=
"p_titleList"
>
<div
class=
"p_title"
>
班级收支明细
</div>
<q-btn
label=
"导出"
color=
"accent q-px-md"
size=
"sm"
style=
"font-weight:400 !important;position:absolute;right:0;top:0"
@
click=
"exportOrder"
/>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col paymentList"
v-if=
"dataList&&dataList.ClassInfo"
>
<div
class=
"col paymentList"
v-if=
"dataList&&dataList.ClassInfo"
>
<div
class=
"pay_topList"
>
<div
class=
"pay_topList"
>
...
@@ -280,9 +286,12 @@
...
@@ -280,9 +286,12 @@
<th
width=
'180'
>
审核状态
</th>
<th
width=
'180'
>
审核状态
</th>
<th
width=
"200"
>
当前审核人
</th>
<th
width=
"200"
>
当前审核人
</th>
</tr>
</tr>
<tr
v-if=
"dataList && dataList.FiniceReciveList==0"
>
<td
:colspan=
"8"
align=
"center"
>
暂无数据
</td>
</tr>
<tr
v-for=
"(item,index) in dataList.FiniceReciveList"
:key=
"index"
>
<tr
v-for=
"(item,index) in dataList.FiniceReciveList"
:key=
"index"
>
<td>
<td>
<span
class=
"finince_Order"
@
click=
"goOrderDetail(item)"
>
{{
item
.
FrID
}}
</span>
<span
class=
"finince_Order"
@
click=
"goOrderDetail(
'FinancialDocumentsDetail',
item)"
>
{{
item
.
FrID
}}
</span>
</td>
</td>
<td><span
v-for=
"subItem in item.CostTypeList"
:key=
"subItem.subCode"
>
{{
subItem
}}
</span></td>
<td><span
v-for=
"subItem in item.CostTypeList"
:key=
"subItem.subCode"
>
{{
subItem
}}
</span></td>
<td
style=
"text-align:left;"
>
<td
style=
"text-align:left;"
>
...
@@ -328,6 +337,9 @@
...
@@ -328,6 +337,9 @@
<th
width=
'180'
>
审核状态
</th>
<th
width=
'180'
>
审核状态
</th>
<th
width=
"200"
>
当前审核人
</th>
<th
width=
"200"
>
当前审核人
</th>
</tr>
</tr>
<tr
v-if=
"dataList && dataList.OtherFiniceReciveList==0"
>
<td
:colspan=
"8"
align=
"center"
>
暂无数据
</td>
</tr>
<tr
v-for=
"(item,index) in dataList.OtherFiniceReciveList"
:key=
"index"
>
<tr
v-for=
"(item,index) in dataList.OtherFiniceReciveList"
:key=
"index"
>
<td>
<td>
<span
class=
"finince_Order"
>
{{
item
.
FrID
}}
</span>
<span
class=
"finince_Order"
>
{{
item
.
FrID
}}
</span>
...
@@ -379,9 +391,12 @@
...
@@ -379,9 +391,12 @@
<th
width=
'180'
>
审核状态
</th>
<th
width=
'180'
>
审核状态
</th>
<th
width=
"200"
>
当前审核人
</th>
<th
width=
"200"
>
当前审核人
</th>
</tr>
</tr>
<tr
v-if=
"dataList && dataList.OtherFinicePayList==0"
>
<td
:colspan=
"8"
align=
"center"
>
暂无数据
</td>
</tr>
<tr
v-for=
"(item,index) in dataList.OtherFinicePayList"
:key=
"index"
>
<tr
v-for=
"(item,index) in dataList.OtherFinicePayList"
:key=
"index"
>
<td>
<td>
<span
class=
"finince_Order"
>
{{
item
.
FrID
}}
</span>
<span
class=
"finince_Order"
@
click=
"goOrderDetail('FinancialDocumentsDetail',item)"
>
{{
item
.
FrID
}}
</span>
</td>
</td>
<td><span
v-for=
"subItem in item.CostTypeList"
:key=
"subItem.subCode"
>
{{
subItem
}}
</span></td>
<td><span
v-for=
"subItem in item.CostTypeList"
:key=
"subItem.subCode"
>
{{
subItem
}}
</span></td>
<td
style=
"text-align:left;"
>
<td
style=
"text-align:left;"
>
...
@@ -419,7 +434,8 @@
...
@@ -419,7 +434,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
GetClassBalanceSheet
GetClassBalanceSheet
,
GetClassBalanceSheetToExcel
}
from
'../../api/finance/index'
;
}
from
'../../api/finance/index'
;
export
default
{
export
default
{
...
@@ -455,14 +471,24 @@
...
@@ -455,14 +471,24 @@
return
parseInt
(
num1
)
-
parseInt
(
num2
);
return
parseInt
(
num1
)
-
parseInt
(
num2
);
},
},
//跳转到订单详情
//跳转到订单详情
goOrderDetail
(
item
){
goOrderDetail
(
path
,
item
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'classorder'
,
path
:
'/financial/financalDocument/'
+
path
,
query
:{
query
:
{
OrderID
:
item
.
OrderID
,
"id"
:
item
.
FrID
,
blank
:
'y'
blank
:
'y'
,
tab
:
'单据详情'
}
}
})
})
},
//导出单据
exportOrder
(){
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
this
.
GetLocalFile
(
"/api/Finance/GetClassBalanceSheetToExcel"
,
msg
,
"收支明细.xls"
);
}
}
}
}
}
}
...
...
src/pages/financial/components/teamProductModule.vue
View file @
e060410f
...
@@ -1140,8 +1140,8 @@
...
@@ -1140,8 +1140,8 @@
},
},
},
},
mounted
()
{
mounted
()
{
this
.
userId
=
this
.
getLocalStorage
().
Employee
Id
this
.
userId
=
this
.
getLocalStorage
().
Id
this
.
msg
.
BranchId
=
this
.
getLocalStorage
().
RB_Branch_i
d
.
toString
()
this
.
msg
.
BranchId
=
this
.
getLocalStorage
().
School_I
d
.
toString
()
this
.
getList
(
this
.
ID
)
this
.
getList
(
this
.
ID
)
}
}
}
}
...
...
src/utils/index.js
View file @
e060410f
...
@@ -517,4 +517,42 @@ export function apipost(cmd, msg, successCall, faildCall, isOnline){
...
@@ -517,4 +517,42 @@ export function apipost(cmd, msg, successCall, faildCall, isOnline){
successCall
(
res
);
successCall
(
res
);
}
}
},
faildCall
)
},
faildCall
)
}
}
\ No newline at end of file
//文件下载
export
function
GetLocalFile
(
cmd
,
msg
,
fileName
,
newCmd
,
successCall
){
var
apiurl
=
this
.
domainManager
().
DomainUrl
+
cmd
;
var
postData
=
this
.
GetPostData
(
cmd
,
msg
,
newCmd
);
this
.
$http
.
post
(
apiurl
,
postData
,
{
responseType
:
'arraybuffer'
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
})
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
successCall
(
res
);
}).
catch
(
function
(
res
)
{});
}
// export function GetLocalFile = function (cmd, msg, fileName, newCmd, successCall) {
// var apiurl = this.domainManager().DomainUrl + cmd;
// var postData = this.GetPostData(cmd, msg, newCmd);
// this.$http.post(apiurl, postData, {
// responseType: 'arraybuffer'
// }).then((res) => {
// let blob = new Blob([res.data], {
// type: "application/vnd.ms-excel"
// })
// let url = URL.createObjectURL(blob);
// let link = document.createElement('a');
// link.href = url;
// link.setAttribute("download", fileName);
// document.body.appendChild(link);
// link.click();
// successCall(res);
// }).catch(function (res) {});
// }
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