Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
33fbc538
Commit
33fbc538
authored
Jul 15, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改财务单据问题
parent
028d4895
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
114 deletions
+112
-114
FinancialDocumentsDetail.vue
src/components/FinancialModule/FinancialDocumentsDetail.vue
+3
-3
BillModule.vue
...ponents/FinancialModule/FinancialSubmodule/BillModule.vue
+34
-35
DjieMergeBillModule.vue
...inancialModule/FinancialSubmodule/DjieMergeBillModule.vue
+24
-24
GZBillModule.vue
...nents/FinancialModule/FinancialSubmodule/GZBillModule.vue
+23
-23
ReceivablesModule.vue
.../FinancialModule/FinancialSubmodule/ReceivablesModule.vue
+28
-29
No files found.
src/components/FinancialModule/FinancialDocumentsDetail.vue
View file @
33fbc538
...
...
@@ -375,9 +375,9 @@
<span
v-if=
"GetDetail.TemplateId==48 || (GetDetail.TemplateId==43&&GetDetail.IsPublic==4)"
class=
"sqs"
@
click=
"goUrl('Application',GetDetail.FrID)"
>
申请书下载
</span>
<p
class=
"_tit"
>
{{
GetDetail
.
FinanceName
}}
<span
:class=
"
{color_shz:(GetDetail.StatusStr!=='通过'
&&
GetDetail.StatusStr!=='驳回'
&&
GetDetail.StatusStr!=='作废'),color_tg:GetDetail.StatusStr==='通过',color_bh:GetDetail.StatusStr==='驳回'}">
{{
GetDetail
.
StatusStr
}}
</span></p>
<div
class=
"_conten"
>
<my-Bill
v-if=
"GetDetail.Type===2 && GetDetail.Type!==5
&& showModel"
:isPrintPage=
"false"
:GetDetail=
"GetDetail
"
:width=
"widthSon"
:color=
"colorSon"
></my-Bill>
<my-RVB-Bill
v-else-if=
"GetDetail.Type===1
&& showModel"
:GetDetail=
"GetDetail
"
:isPrintPage=
"false"
:width=
"widthSon"
:color=
"colorSon"
></my-RVB-Bill>
<my-GZ-Bill
v-else-if=
"GetDetail.Type===7
&& showModel"
:GetDetail=
"GetDetail
"
:width=
"widthSon"
:color=
"colorSon"
></my-GZ-Bill>
<my-Bill
v-if=
"GetDetail.Type===2 && GetDetail.Type!==5
"
:isPrintPage=
"false"
:ID=
"GetDetail.FrID
"
:width=
"widthSon"
:color=
"colorSon"
></my-Bill>
<my-RVB-Bill
v-else-if=
"GetDetail.Type===1
"
:ID=
"GetDetail.FrID
"
:isPrintPage=
"false"
:width=
"widthSon"
:color=
"colorSon"
></my-RVB-Bill>
<my-GZ-Bill
v-else-if=
"GetDetail.Type===7
"
:ID=
"GetDetail.FrID
"
:width=
"widthSon"
:color=
"colorSon"
></my-GZ-Bill>
<div
class=
"_explain"
>
<p>
附加说明:
<span
class=
"fr"
v-if=
"GetDetail.ComplainID > 0"
@
click=
"goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)"
>
<span
style=
"color:#000"
>
投诉单号:
</span>
<span
class=
"cursorpointer text-decoration"
>
{{
GetDetail
.
ComplainID
}}
</span></span>
</p>
<table
border=
"1"
bordercolor=
"#D2D2D2"
style=
"border-collapse:collapse;margin-top:15px;"
width=
"100%"
v-if=
"GetDetail.TCIDAndTCNUMList.length>0"
>
...
...
src/components/FinancialModule/FinancialSubmodule/BillModule.vue
View file @
33fbc538
...
...
@@ -307,7 +307,7 @@
</template>
<
script
>
export
default
{
props
:[
"ID"
,
"width"
,
"color"
,
"isPrintPage"
,
"name"
,
"OrderSource"
,
"GetDetail"
],
//接收参数 ID width color
props
:[
"ID"
,
"width"
,
"color"
,
"isPrintPage"
,
"name"
,
"OrderSource"
],
//接收参数 ID width color
data
(){
return
{
loading
:
false
,
...
...
@@ -317,6 +317,7 @@ export default {
printTime
:
''
,
currentMoney
:
0
,
benMoney
:
0
,
GetDetail
:{}
}
},
created
(){
let
date
=
new
Date
(),
...
...
@@ -355,20 +356,19 @@ export default {
})
}
},
Financial_post_GetDetail
(){
//获取单据详情
//
if(!id) return
Financial_post_GetDetail
(
id
){
//获取单据详情
if
(
!
id
)
return
this
.
loading
=
true
;
// this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) {
let
data
=
this
.
GetDetail
;
console
.
log
(
data
.
DetailList
)
// this.GetDetail.DetailList.forEach(x=>{
// x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
// x.Money = Math.round(x.Money * 100) / 100
// x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
// this.currentMoney += parseFloat(x.OriginalMoney);
// this.benMoney += parseFloat(x.Money);
// })
this
.
apipost
(
'Financial_post_GetDetail'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
Math
.
round
(
x
.
Money
*
100
)
/
100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
this
.
benMoney
+=
parseFloat
(
x
.
Money
);
})
this
.
currentMoney
=
Math
.
round
(
this
.
currentMoney
*
100
)
/
100
;
this
.
benMoney
=
Math
.
round
(
this
.
benMoney
*
100
)
/
100
;
this
.
$emit
(
'headCallBack'
,
this
.
currentMoney
);
...
...
@@ -380,10 +380,10 @@ export default {
this
.
GetDetail
=
data
;
console
.
log
(
this
.
GetDetail
)
this
.
loading
=
false
//
this.$set(this.$data,"GetDetail",data);
//
console.log(this.GetDetail)
//
}
//
}, err => {})
this
.
$set
(
this
.
$data
,
"GetDetail"
,
data
);
console
.
log
(
this
.
GetDetail
)
}
},
err
=>
{})
},
},
mounted
(){
// console.log(this.ID+"mounted")
...
...
@@ -395,24 +395,23 @@ export default {
this
.
EndDate
=
yaer
+
'-'
+
month
+
'-'
+
dateS
;
let
userInfo
=
this
.
getLocalStorage
();
this
.
EmployeeId
=
userInfo
.
EmployeeId
;
this
.
Financial_post_GetDetail
();
this
.
Financial_post_GetDetail
(
this
.
ID
);
},
watch
:
{
// 监听参数变化
//
GetDetail: {
//
handler: function(val, oldVal) {
//
// console.log(val)
//
// console.log(oldVal)
//
},
//
deep: true
//
},
//
ID:{
//
handler: function(val, oldVal) {
//
this.ID = val
//
this.Financial_post_GetDetail(this.ID)
//
// console.log(val)
//
},
//
deep: true
//
}
GetDetail
:
{
handler
:
function
(
val
,
oldVal
)
{
// console.log(val)
// console.log(oldVal)
},
deep
:
true
},
ID
:{
handler
:
function
(
val
,
oldVal
)
{
this
.
ID
=
val
this
.
Financial_post_GetDetail
(
this
.
ID
)
// console.log(val)
},
deep
:
true
}
}
}
</
script
>
src/components/FinancialModule/FinancialSubmodule/DjieMergeBillModule.vue
View file @
33fbc538
...
...
@@ -332,11 +332,11 @@
})
}
},
Financial_post_GetDetail
(){
//获取单据详情
//
if(!id) return
Financial_post_GetDetail
(
id
){
//获取单据详情
if
(
!
id
)
return
this
.
loading
=
true
;
//
this.apipost('Financial_post_GetDetail',{ID:id}, res => {
//
if(res.data.resultCode == 1) {
this
.
apipost
(
'Financial_post_GetDetail'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
this
.
GetDetail
;
data
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
...
...
@@ -360,10 +360,10 @@
data
.
AuditSteps
.
reverse
()
this
.
GetDetail
=
data
;
this
.
loading
=
false
//
this.$set(this.$data,"GetDetail",data);
//
console.log(this.GetDetail)
//
}
//
}, err => {})
this
.
$set
(
this
.
$data
,
"GetDetail"
,
data
);
console
.
log
(
this
.
GetDetail
)
}
},
err
=>
{})
},
},
mounted
(){
// console.log(this.ID+"mounted")
...
...
@@ -375,23 +375,23 @@
this
.
EndDate
=
yaer
+
'-'
+
month
+
'-'
+
dateS
;
let
userInfo
=
this
.
getLocalStorage
();
this
.
EmployeeId
=
userInfo
.
EmployeeId
;
this
.
Financial_post_GetDetail
();
this
.
Financial_post_GetDetail
(
THIS
.
ID
);
},
watch
:
{
// 监听参数变化
//
GetDetail: {
//
handler: function(val, oldVal) {
//
// console.log(val)
//
// console.log(oldVal)
//
},
//
deep: true
//
},
//
ID:{
//
handler: function(val, oldVal) {
//
this.ID = val
//
this.Financial_post_GetDetail(this.ID)
//
// console.log(val)
//
},
//
deep: true
//
}
GetDetail
:
{
handler
:
function
(
val
,
oldVal
)
{
// console.log(val)
// console.log(oldVal)
},
deep
:
true
},
ID
:{
handler
:
function
(
val
,
oldVal
)
{
this
.
ID
=
val
this
.
Financial_post_GetDetail
(
this
.
ID
)
// console.log(val)
},
deep
:
true
}
}
}
</
script
>
src/components/FinancialModule/FinancialSubmodule/GZBillModule.vue
View file @
33fbc538
...
...
@@ -372,11 +372,11 @@ export default {
})
}
},
Financial_post_GetDetail
(){
//获取单据详情
//
if(!id) return
Financial_post_GetDetail
(
id
){
//获取单据详情
if
(
!
id
)
return
this
.
loading
=
true
;
//
this.apipost('Financial_post_GetDetail',{ID:id}, res => {
//
if(res.data.resultCode == 1) {
this
.
apipost
(
'Financial_post_GetDetail'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
this
.
GetDetail
;
data
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
...
...
@@ -396,9 +396,9 @@ export default {
console
.
log
(
this
.
GetDetail
)
this
.
loading
=
false
// this.$set(this.$data,"GetDetail",data);
//
console.log(this.GetDetail)
//
}
//
}, err => {})
console
.
log
(
this
.
GetDetail
)
}
},
err
=>
{})
},
},
mounted
(){
// console.log(this.ID+"mounted")
...
...
@@ -410,23 +410,23 @@ export default {
this
.
EndDate
=
yaer
+
'-'
+
month
+
'-'
+
dateS
;
let
userInfo
=
this
.
getLocalStorage
();
this
.
EmployeeId
=
userInfo
.
EmployeeId
;
this
.
Financial_post_GetDetail
();
this
.
Financial_post_GetDetail
(
this
.
ID
);
},
watch
:
{
// 监听参数变化
//
GetDetail: {
//
handler: function(val, oldVal) {
//
// console.log(val)
//
// console.log(oldVal)
//
},
//
deep: true
//
},
//
ID:{
//
handler: function(val, oldVal) {
//
this.ID = val
//
this.Financial_post_GetDetail(this.ID)
//
// console.log(val)
//
},
//
deep: true
//
}
GetDetail
:
{
handler
:
function
(
val
,
oldVal
)
{
// console.log(val)
// console.log(oldVal)
},
deep
:
true
},
ID
:{
handler
:
function
(
val
,
oldVal
)
{
this
.
ID
=
val
this
.
Financial_post_GetDetail
(
this
.
ID
)
// console.log(val)
},
deep
:
true
}
}
}
</
script
>
src/components/FinancialModule/FinancialSubmodule/ReceivablesModule.vue
View file @
33fbc538
...
...
@@ -284,7 +284,7 @@
</template>
<
script
>
export
default
{
props
:[
"
ID
"
,
"width"
,
"color"
,
"isPrintPage"
,
"name"
,
"Num"
,
"OrderSource"
,
"GetDetail"
],
//接收参数 ID width color isPrintPage
props
:[
"
"
,
"width"
,
"color"
,
"isPrintPage"
,
"name"
,
"Num"
,
"OrderSource"
,
"GetDetail"
],
//接收参数 ID width color isPrintPage
data
(){
return
{
loading
:
false
,
...
...
@@ -336,12 +336,12 @@ export default {
})
}
},
Financial_post_GetDetail
(){
//获取单据详情
//
if(!id) return;
Financial_post_GetDetail
(
id
){
//获取单据详情
if
(
!
id
)
return
;
this
.
loading
=
true
;
//
this.apipost('Financial_post_GetDetail',{ID:id}, res => {
//
if(res.data.resultCode == 1) {
let
data
=
this
.
GetDetail
;
this
.
apipost
(
'Financial_post_GetDetail'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
let
numberC
=
0
;
let
price
=
0
;
let
rate
=
0
;
...
...
@@ -354,7 +354,7 @@ export default {
})
this
.
currentMoney
=
Math
.
round
(
this
.
currentMoney
*
100
)
/
100
;
this
.
benMoney
=
Math
.
round
(
this
.
benMoney
*
100
)
/
100
;
//
let m = data.PayMoney?data.PayMoney:data.Money;
let
m
=
data
.
PayMoney
?
data
.
PayMoney
:
data
.
Money
;
data
.
ChineseMoney
=
this
.
$commonUtils
.
changeMoneyToChinese
(
data
.
Money
);
data
.
ChinesePayMoney
=
this
.
$commonUtils
.
changeMoneyToChinese
(
data
.
PayMoney
)
data
.
PayMoney
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
data
.
PayMoney
*
100
)
/
100
)
...
...
@@ -362,10 +362,10 @@ export default {
data
.
AuditSteps
.
reverse
();
this
.
GetDetail
=
data
;
this
.
loading
=
false
//
this.$set(this.$data,"GetDetail",data);
//
console.log(this.GetDetail)
//
}
//
}, err => {})
this
.
$set
(
this
.
$data
,
"GetDetail"
,
data
);
console
.
log
(
this
.
GetDetail
)
}
},
err
=>
{})
},
},
mounted
(){
// console.log(this.ID+"mounted")
...
...
@@ -377,25 +377,24 @@ export default {
this
.
EndDate
=
yaer
+
'-'
+
month
+
'-'
+
dateS
;
let
userInfo
=
this
.
getLocalStorage
();
this
.
EmployeeId
=
userInfo
.
EmployeeId
;
this
.
Financial_post_GetDetail
();
// this.Financial_post_GetDetail(this.ID);
this
.
Financial_post_GetDetail
(
this
.
ID
);
},
watch
:
{
// 监听参数变化
//
GetDetail: {
//
handler: function(val, oldVal) {
//
// console.log(val)
//
// console.log(oldVal)
//
},
//
deep: true
//
},
//
ID:{
//
handler: function(val, oldVal) {
//
this.ID = val
//
// console.log(val+"watch")
//
this.Financial_post_GetDetail(this.ID)
//
// console.log(val)
//
},
//
deep: true
//
},
GetDetail
:
{
handler
:
function
(
val
,
oldVal
)
{
// console.log(val)
// console.log(oldVal)
},
deep
:
true
},
ID
:{
handler
:
function
(
val
,
oldVal
)
{
this
.
ID
=
val
// console.log(val+"watch")
this
.
Financial_post_GetDetail
(
this
.
ID
)
// console.log(val)
},
deep
:
true
},
num
:
{
handler
:
function
(
val
,
oldVal
)
{
console
.
log
(
val
)
...
...
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