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
d5f3e0c3
Commit
d5f3e0c3
authored
Jul 11, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2e1672dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+19
-8
No files found.
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
d5f3e0c3
...
...
@@ -138,7 +138,8 @@
v-if=
"img !== ''"
style=
"cursor: pointer;color:blue;"
>
{{ '凭证' + (imgIndex + 1)}}
</p>
</td>
<td
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
style=
""
>
<div
style=
"display:none;"
>
<!-- style="display:none;" -->
<div
>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateBill(item.ShopDetailsList)"
>
生成单据
</p>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateHandBill(outItem)"
>
手动生成单据
</p>
</div>
...
...
@@ -228,23 +229,30 @@
CreateHandBillList
:
[],
zhuanjiaoBox
:
false
,
CreateHandBillID
:
''
,
CreateHandObj
:
{},
}
},
methods
:
{
goCreateHandBill
:
function
()
{
console
.
log
(
this
.
CreateHandBillID
)
let
obj
=
{}
for
(
let
i
=
0
;
i
<
this
.
CreateHandBillList
.
length
;
i
++
)
{
if
(
this
.
CreateHandBillList
[
i
].
id
==
this
.
CreateHandBillID
)
{
obj
=
this
.
CreateHandBillList
[
i
]
}
}
let
orderObj
=
{
OrderID
:
''
,
//订单号
OrderSource
:
''
,
//12
OrderID
:
''
,
OrderSource
:
8
,
Obj
:
{},
SourceID
:
''
,
//机票id
TCIDList
:
[
this
.
CreateHandBill
ID
]
SourceID
:
''
,
TCIDList
:
[
obj
.
TC
ID
]
};
this
.
$router
.
push
({
name
:
"ChoiceAddFinancialDocuments"
,
query
:
{
Type
:
0
,
companyID
:
item
.
RB_Branch_
Id
,
//公司id
companyID
:
obj
.
OutBranch
Id
,
//公司id
path
:
""
,
blank
:
"y"
,
orderObj
:
JSON
.
stringify
(
orderObj
)
...
...
@@ -253,10 +261,13 @@
this
.
zhuanjiaoBox
=
false
;
},
CreateHandBill
:
function
(
obj
)
{
this
.
CreateHandObj
=
obj
let
newList
=
[]
for
(
let
i
=
0
;
i
<
obj
.
TCList
.
length
;
i
++
)
{
newList
.
push
({
id
:
obj
.
TCList
[
i
].
TCNUMS
TCID
:
obj
.
TCList
[
i
].
TCID
,
id
:
obj
.
TCList
[
i
].
TCNUMS
,
OutBranchId
:
obj
.
TCList
[
i
].
OutBranchId
})
}
this
.
CreateHandBillList
=
newList
...
...
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