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
55008db6
Commit
55008db6
authored
Jul 11, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
97a849c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
10 deletions
+62
-10
leaderReimbursement.vue
src/components/LeaderManagement/leaderReimbursement.vue
+12
-10
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+50
-0
No files found.
src/components/LeaderManagement/leaderReimbursement.vue
View file @
55008db6
...
@@ -441,7 +441,7 @@
...
@@ -441,7 +441,7 @@
@
click=
"goFncUrl('DebitNote', subItem.FinanceId)"
>
借支单
</span></p>
@
click=
"goFncUrl('DebitNote', subItem.FinanceId)"
>
借支单
</span></p>
</td>
</td>
<td
width=
"80"
class=
"_zhidan"
>
<td
width=
"80"
class=
"_zhidan"
>
<input
type=
"button"
v-if=
"item.TeamType == 1"
value=
"日当费"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
<input
type=
"button"
v-if=
"item.TeamType == 1"
value=
"日当费"
class=
"normalBtn"
@
click=
"goZhiDan(item
, 2
)"
/>
<input
type=
"button"
value=
"制单"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
<input
type=
"button"
value=
"制单"
class=
"normalBtn"
@
click=
"goZhiDan(item)"
/>
</td>
</td>
</tr>
</tr>
...
@@ -532,15 +532,17 @@
...
@@ -532,15 +532,17 @@
}
}
});
});
},
},
goZhiDan2
:
function
(
obj
)
{
goZhiDan2
:
function
(
obj
,
type
)
{
let
allMoney
=
this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.95
if
(
!
type
)
{
let
totailMoney
=
0
let
allMoney
=
this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.95
this
.
nav
.
forEach
(
x
=>
{
let
totailMoney
=
0
totailMoney
+=
parseFloat
(
x
.
LeaderGetPriceT
)
this
.
nav
.
forEach
(
x
=>
{
totailMoney
+=
x
.
LeaderGetPrice
totailMoney
+=
parseFloat
(
x
.
LeaderGetPriceT
)
})
totailMoney
+=
x
.
LeaderGetPrice
if
((
allMoney
-
totailMoney
)
<
0
)
return
this
.
$message
.
error
(
'最大领款为预付合计金额的95%!'
)
})
if
(
!
obj
.
LeaderGetPriceT
||
obj
.
LeaderGetPriceT
<=
0
)
return
this
.
$message
.
error
(
'请输入金额!'
)
if
((
allMoney
-
totailMoney
)
<
0
)
return
this
.
$message
.
error
(
'最大领款为预付合计金额的95%!'
)
if
(
!
obj
.
LeaderGetPriceT
||
obj
.
LeaderGetPriceT
<=
0
)
return
this
.
$message
.
error
(
'请输入金额!'
)
}
let
TCIDARR
=
[
obj
.
TCIDS
]
let
TCIDARR
=
[
obj
.
TCIDS
]
let
orderObj
=
{
let
orderObj
=
{
OrderID
:
0
,
OrderID
:
0
,
...
...
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
55008db6
...
@@ -140,6 +140,7 @@
...
@@ -140,6 +140,7 @@
<td
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
>
<td
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
>
<div>
<div>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateBill(item.ShopDetailsList)"
>
生成单据
</p>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateBill(item.ShopDetailsList)"
>
生成单据
</p>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateHandBill(outItem)"
>
手动生成单据
</p>
</div>
</div>
</td>
</td>
...
@@ -187,6 +188,21 @@
...
@@ -187,6 +188,21 @@
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"msg.total"
></el-pagination>
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"msg.total"
></el-pagination>
</div>
</div>
<a
id=
'blankLink1'
target=
"_blank"
style=
"display:none"
>
1
</a>
<a
id=
'blankLink1'
target=
"_blank"
style=
"display:none"
>
1
</a>
<el-dialog
custom-class=
'w400'
title=
"请选择需要制单的团号"
:visible
.
sync=
"zhuanjiaoBox"
center
>
<
template
>
<el-form
label-width=
"100px"
>
<el-form-item
label=
"团号:"
>
<div
v-for=
"item in CreateHandBillList"
>
<el-radio
v-model=
"CreateHandBillID"
:key=
"item.id"
:label=
"item.id"
></el-radio>
</div>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"zhuanjiaoBox=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"goCreateHandBill()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
</div>
</
template
>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -209,9 +225,43 @@
...
@@ -209,9 +225,43 @@
LineList
:
[],
LineList
:
[],
LineTeamList
:
[],
LineTeamList
:
[],
shopDataList
:
[],
shopDataList
:
[],
CreateHandBillList
:
[],
zhuanjiaoBox
:
false
,
CreateHandBillID
:
''
,
}
}
},
},
methods
:
{
methods
:
{
goCreateHandBill
:
function
()
{
console
.
log
(
this
.
CreateHandBillID
)
let
orderObj
=
{
OrderID
:
''
,
//订单号
OrderSource
:
''
,
//12
Obj
:
{},
SourceID
:
''
,
//机票id
TCIDList
:
[
this
.
CreateHandBillID
]
};
this
.
$router
.
push
({
name
:
"ChoiceAddFinancialDocuments"
,
query
:
{
Type
:
0
,
companyID
:
item
.
RB_Branch_Id
,
//公司id
path
:
""
,
blank
:
"y"
,
orderObj
:
JSON
.
stringify
(
orderObj
)
}
});
this
.
zhuanjiaoBox
=
false
;
},
CreateHandBill
:
function
(
obj
)
{
let
newList
=
[]
for
(
let
i
=
0
;
i
<
obj
.
TCList
.
length
;
i
++
)
{
newList
.
push
({
id
:
obj
.
TCList
[
i
].
TCNUMS
})
}
this
.
CreateHandBillList
=
newList
this
.
zhuanjiaoBox
=
true
},
downLoadPZ
:
function
(
src
)
{
downLoadPZ
:
function
(
src
)
{
let
dom
=
document
.
querySelector
(
"#blankLink1"
)
let
dom
=
document
.
querySelector
(
"#blankLink1"
)
dom
.
href
=
src
;
dom
.
href
=
src
;
...
...
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