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
956231dc
Commit
956231dc
authored
Aug 07, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务单据
parent
f42718eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
addFinancialDocuments.vue
src/components/FinancialModule/addFinancialDocuments.vue
+11
-12
No files found.
src/components/FinancialModule/addFinancialDocuments.vue
View file @
956231dc
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
<el-input
v-model=
"da.UnitPrice"
type=
"text"
@
keyup
.
native=
"checkPrice(da,'UnitPrice',true)"
@
blur=
"addList(2,daIn+1)"
@
change=
"Calculation(2,daIn+1)"
class=
"w80 h34 _border_b_1"
></el-input>
<el-input
v-model=
"da.UnitPrice"
type=
"text"
@
keyup
.
native=
"checkPrice(da,'UnitPrice',true)"
@
blur=
"addList(2,daIn+1)"
@
change=
"Calculation(2,daIn+1)"
class=
"w80 h34 _border_b_1"
></el-input>
</td>
</td>
<td
height=
"26px"
>
<td
height=
"26px"
>
<el-select
filterable
v-model=
'da.CurrencyId'
:placeholder=
"$t('rule.qxzbzhong')"
@
change=
"getRate(da.CostTypeId,da.CurrencyId,2,daIn),addList(2,daIn+1)"
class=
" _border_b_1"
>
<el-select
filterable
:disabled=
"detailCurrDis"
v-model=
'da.CurrencyId'
:placeholder=
"$t('rule.qxzbzhong')"
@
change=
"getRate(da.CostTypeId,da.CurrencyId,2,daIn),addList(2,daIn+1)"
class=
" _border_b_1"
>
<el-option
v-for=
'item in coinGetList'
<el-option
v-for=
'item in coinGetList'
:label=
'item.Name'
:label=
'item.Name'
:value=
'item.ID'
:value=
'item.ID'
...
@@ -360,7 +360,7 @@
...
@@ -360,7 +360,7 @@
<el-input
v-model=
"detailList.UnitPrice"
type=
"text"
@
keyup
.
native=
"checkPrice(detailList,'UnitPrice',true)"
@
blur=
"addList(1)"
@
change=
"Calculation(1)"
class=
"w80 h34 _border_b_1"
></el-input>
<el-input
v-model=
"detailList.UnitPrice"
type=
"text"
@
keyup
.
native=
"checkPrice(detailList,'UnitPrice',true)"
@
blur=
"addList(1)"
@
change=
"Calculation(1)"
class=
"w80 h34 _border_b_1"
></el-input>
</td>
</td>
<td>
<td>
<el-select
filterable
:disabled=
"detailCurrDis"
v-model=
'detailList.CurrencyId'
:placeholder=
"$t('rule.qxzbzhong')"
@
change=
"getRate(detailList.CostTypeId,detailList.CurrencyId,1),addList(1)"
class=
" _border_b_1"
>
<el-select
filterable
v-model=
'detailList.CurrencyId'
:placeholder=
"$t('rule.qxzbzhong')"
@
change=
"getRate(detailList.CostTypeId,detailList.CurrencyId,1),addList(1)"
class=
" _border_b_1"
>
<el-option
v-for=
'item in coinGetList'
<el-option
v-for=
'item in coinGetList'
:label=
'item.Name'
:label=
'item.Name'
:value=
'item.ID'
:value=
'item.ID'
...
@@ -832,10 +832,10 @@ export default {
...
@@ -832,10 +832,10 @@ export default {
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,1})
/g
)[
0
])
||
null
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,1})
/g
)[
0
])
||
null
},
},
AddFinancial
(
z
){
//保存
AddFinancial
(
z
){
//保存
if
(
this
.
orderObj
&&
this
.
orderObj
.
CurrencyId
){
//
if(this.orderObj&&this.orderObj.CurrencyId){
this
.
msg
.
detailList
=
[];
//
this.msg.detailList=[];
this
.
msg
.
detailList
.
push
(
this
.
detailList
);
//
this.msg.detailList.push(this.detailList);
}
//
}
if
(
z
){
if
(
z
){
this
.
msg
.
Status
=
0
;
this
.
msg
.
Status
=
0
;
...
@@ -1037,7 +1037,6 @@ export default {
...
@@ -1037,7 +1037,6 @@ export default {
})
})
},
},
getRate
(
cID
,
i
,
t
,
index
){
// 根据选择币种获取汇率
getRate
(
cID
,
i
,
t
,
index
){
// 根据选择币种获取汇率
this
.
coinGetList
.
forEach
(
x
=>
{
this
.
coinGetList
.
forEach
(
x
=>
{
if
(
x
.
ID
==
i
){
if
(
x
.
ID
==
i
){
if
(
t
==
1
){
if
(
t
==
1
){
...
@@ -1050,7 +1049,6 @@ export default {
...
@@ -1050,7 +1049,6 @@ export default {
this
.
$forceUpdate
();
this
.
$forceUpdate
();
}
}
})
})
console
.
log
(
"this.coinGetList"
,
this
.
coinGetList
)
console
.
log
(
"this.detailList.Rate"
,
this
.
detailList
.
Rate
)
console
.
log
(
"this.detailList.Rate"
,
this
.
detailList
.
Rate
)
this
.
Calculation
(
t
,
index
+
1
)
this
.
Calculation
(
t
,
index
+
1
)
},
},
...
@@ -1149,7 +1147,6 @@ export default {
...
@@ -1149,7 +1147,6 @@ export default {
this
.
apipost
(
'Financial_post_GetCostTypeList'
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
'Financial_post_GetCostTypeList'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetCostTypeList
=
res
.
data
.
data
;
this
.
GetCostTypeList
=
res
.
data
.
data
;
console
.
log
(
this
.
GetCostTypeList
,
'type'
);
if
(
type
){
if
(
type
){
this
.
msg
.
detailList
.
forEach
(
x
=>
{
this
.
msg
.
detailList
.
forEach
(
x
=>
{
this
.
GetCostTypeList
.
forEach
(
y
=>
{
this
.
GetCostTypeList
.
forEach
(
y
=>
{
...
@@ -1169,6 +1166,7 @@ export default {
...
@@ -1169,6 +1166,7 @@ export default {
this
.
apipost
(
'financeinfo_post_GetList'
,{
Name
:
''
,
TCID
:
TCID
},
res
=>
{
this
.
apipost
(
'financeinfo_post_GetList'
,{
Name
:
''
,
TCID
:
TCID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
coinGetList
=
res
.
data
.
data
;
this
.
coinGetList
=
res
.
data
.
data
;
console
.
log
(
"this.coinGetList 522555"
,
this
.
coinGetList
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
...
@@ -1182,9 +1180,9 @@ export default {
...
@@ -1182,9 +1180,9 @@ export default {
// })
// })
// TCID.split(0,TCID.length-1)
// TCID.split(0,TCID.length-1)
this
.
apipost
(
'Financial_post_Get'
,{
ID
:
id
,
TempId
:
tempId
,
TCIDList
:(
this
.
orderObj
&&
this
.
orderObj
.
TCIDList
)?
this
.
orderObj
.
TCIDList
:[]},
res
=>
{
this
.
apipost
(
'Financial_post_Get'
,{
ID
:
id
,
TempId
:
tempId
,
TCIDList
:(
this
.
orderObj
&&
this
.
orderObj
.
TCIDList
)?
this
.
orderObj
.
TCIDList
:[]},
res
=>
{
// console.log(this.orderObj.TCIDList)
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
"res.data"
,
res
.
data
)
//
console.log("res.data",res.data)
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
this
.
editTemplateId
=
data
.
TemplateId
;
this
.
editTemplateId
=
data
.
TemplateId
;
this
.
getCompany
();
this
.
getCompany
();
...
@@ -1245,6 +1243,7 @@ export default {
...
@@ -1245,6 +1243,7 @@ export default {
this
.
msg
.
OrderID
=
this
.
orderObj
.
OrderID
?
this
.
orderObj
.
OrderID
:
0
;
this
.
msg
.
OrderID
=
this
.
orderObj
.
OrderID
?
this
.
orderObj
.
OrderID
:
0
;
this
.
OrderSource
=
this
.
msg
.
OrderSource
=
this
.
orderObj
.
OrderSource
?
this
.
orderObj
.
OrderSource
:
0
;
this
.
OrderSource
=
this
.
msg
.
OrderSource
=
this
.
orderObj
.
OrderSource
?
this
.
orderObj
.
OrderSource
:
0
;
this
.
msg
.
TCID
=
this
.
orderObj
.
TCID
?
this
.
orderObj
.
TCID
:
0
;
this
.
msg
.
TCID
=
this
.
orderObj
.
TCID
?
this
.
orderObj
.
TCID
:
0
;
this
.
financeinfo_post_GetList
(
this
.
msg
.
TCID
);
this
.
msg
.
TCIDList
=
this
.
orderObj
.
TCIDList
?
this
.
orderObj
.
TCIDList
:[];
this
.
msg
.
TCIDList
=
this
.
orderObj
.
TCIDList
?
this
.
orderObj
.
TCIDList
:[];
this
.
msg
.
Obj
=
this
.
orderObj
.
Obj
?
this
.
orderObj
.
Obj
:
''
;
this
.
msg
.
Obj
=
this
.
orderObj
.
Obj
?
this
.
orderObj
.
Obj
:
''
;
this
.
msg
.
SourceID
=
this
.
orderObj
.
SourceID
?
this
.
orderObj
.
SourceID
:
0
;
this
.
msg
.
SourceID
=
this
.
orderObj
.
SourceID
?
this
.
orderObj
.
SourceID
:
0
;
...
@@ -1260,6 +1259,7 @@ export default {
...
@@ -1260,6 +1259,7 @@ export default {
this
.
detailCurrDis
=
true
;
this
.
detailCurrDis
=
true
;
this
.
detailList
.
CostTypeId
=
this
.
orderObj
.
CostType
?
this
.
orderObj
.
CostType
:
''
;
this
.
detailList
.
CostTypeId
=
this
.
orderObj
.
CostType
?
this
.
orderObj
.
CostType
:
''
;
this
.
getRate
(
this
.
detailList
.
CostTypeId
,
this
.
detailList
.
CurrencyId
,
1
)
this
.
getRate
(
this
.
detailList
.
CostTypeId
,
this
.
detailList
.
CurrencyId
,
1
)
this
.
addList
(
1
);
}
}
...
@@ -1365,7 +1365,6 @@ export default {
...
@@ -1365,7 +1365,6 @@ export default {
this
.
companyList
=
data
;
this
.
companyList
=
data
;
}
}
}
}
console
.
log
(
'this.companyList'
,
this
.
companyList
)
},
err
=>
{})
},
err
=>
{})
}
}
...
...
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