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
01907f13
Commit
01907f13
authored
Sep 11, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分公司购物报账生成单据修改
parent
577fc6e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
33 deletions
+64
-33
ShoppingReimbursement2.vue
src/components/ShoppingStore/ShoppingReimbursement2.vue
+64
-33
No files found.
src/components/ShoppingStore/ShoppingReimbursement2.vue
View file @
01907f13
...
@@ -43,11 +43,6 @@
...
@@ -43,11 +43,6 @@
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
>
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"ShoppingTable"
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"ShoppingTable"
style=
"border: 1px solid rgb(230, 230, 230);min-width: 1600px"
v-loading=
"loading"
>
style=
"border: 1px solid rgb(230, 230, 230);min-width: 1600px"
v-loading=
"loading"
>
<!--
<tr>
<th
colspan=
"2"
>
公司通用信息
</th>
<th
colspan=
"6"
>
导游操作
</th>
<th
colspan=
"9"
>
地接OP
</th>
</tr>
-->
<tr>
<tr>
<th
width=
"115"
>
序号
</th>
<th
width=
"115"
>
序号
</th>
<th
width=
"100"
>
出发地
</th>
<th
width=
"100"
>
出发地
</th>
...
@@ -131,7 +126,7 @@
...
@@ -131,7 +126,7 @@
</td>
</td>
<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=
"isShowFinaceDailog=true,CurrentOutItem=outItem
"
>
生成单据
</p>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
@@ -167,6 +162,22 @@
...
@@ -167,6 +162,22 @@
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
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>
<el-dialog
title=
"生成财务单据"
:visible
.
sync=
"isShowFinaceDailog"
custom-class=
'w400'
center
>
<
template
>
<el-form
label-width=
"100px"
>
<el-form-item
label=
"付款方式"
>
<el-select
v-model=
"PayType"
>
<el-option
label=
"常规付款"
:value=
"1"
:key=
"1"
></el-option>
<el-option
label=
"资金池付款"
:value=
"2"
:key=
"2"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"isShowFinaceDailog=false,CurrentOutItem=
{}">
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"CreateBill()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
</div>
</
template
>
</el-dialog>
<a
id=
'blankLink1'
target=
"_blank"
style=
"display:none"
>
1
</a>
<a
id=
'blankLink1'
target=
"_blank"
style=
"display:none"
>
1
</a>
</div>
</div>
</template>
</template>
...
@@ -183,13 +194,19 @@
...
@@ -183,13 +194,19 @@
LineId
:
0
,
LineId
:
0
,
LineteamId
:
0
,
LineteamId
:
0
,
StartDate
:
''
,
StartDate
:
''
,
TCNUM
:
""
,
EndDate
:
''
,
EndDate
:
''
,
currentPage
:
1
,
currentPage
:
1
,
total
:
0
,
total
:
0
,
},
},
PayType
:
1
,
//付款方式
LineList
:
[],
LineList
:
[],
LineTeamList
:
[],
LineTeamList
:
[],
shopDataList
:
[],
shopDataList
:
[],
//是否显示
isShowFinaceDailog
:
false
,
//当前点击的对象
CurrentOutItem
:{},
}
}
},
},
methods
:
{
methods
:
{
...
@@ -300,37 +317,50 @@
...
@@ -300,37 +317,50 @@
}
}
},
err
=>
{})
},
err
=>
{})
},
},
//生成单据
//生成单据
CreateBill
(
ShopDetailsList
,
outItem
)
{
CreateBill
()
{
var
that
=
this
;
var
that
=
this
;
this
.
Confirm
(
'是否生成财务单据?'
,
function
()
{
this
.
Confirm
(
'是否生成财务单据?'
,
function
()
{
that
.
loading
=
true
;
that
.
loading
=
true
;
var
array
=
[];
// var array = [];
ShopDetailsList
.
forEach
(
subItem
=>
{
// ShopDetailsList.forEach(subItem => {
var
obj
=
{
// var obj = {
LeaderId
:
subItem
.
LeaderId
!=
null
?
subItem
.
LeaderId
:
0
,
// LeaderId: subItem.LeaderId != null ? subItem.LeaderId : 0,
LeaderName
:
subItem
.
LeaderName
!=
null
?
subItem
.
LeaderName
:
""
,
// LeaderName: subItem.LeaderName != null ? subItem.LeaderName : "",
TCID
:
subItem
.
TCID
,
// TCID: subItem.TCID,
GuideId
:
subItem
.
GuideId
!=
null
?
subItem
.
GuideId
:
0
,
// GuideId: subItem.GuideId != null ? subItem.GuideId : 0,
GuideName
:
subItem
.
GuideName
!=
null
?
subItem
.
GuideName
:
""
,
// GuideName: subItem.GuideName != null ? subItem.GuideName : "",
TCNUM
:
subItem
.
TCNUMS
,
// TCNUM: subItem.TCNUMS,
}
// }
array
.
push
(
obj
)
// array.push(obj)
});
// });
var
billMsg
=
{
// var billMsg = {
ShopDetailsList
:
ShopDetailsList
,
// ShopDetailsList: ShopDetailsList,
LeaderGuide
:
array
// LeaderGuide: array
// };
// that.apipost('dmcstatistics_post_ShopCreateBill', billMsg, res => {
// that.loading = false;
// if (res.data.resultCode == 1) {
// that.Success(res.data.message);
// } else {
// that.Error(res.data.message);
// }
// }, err => {})
var
nMsg
=
{
TCIDs
:
that
.
CurrentOutItem
.
TCIDs
,
PayType
:
that
.
PayType
,
uid
:
that
.
getLocalStorage
().
EmployeeId
};
};
that
.
apipost
(
'dmcstatistics_post_ShopCreateBill'
,
billMsg
,
res
=>
{
let
fileName
=
"生成["
+
that
.
CurrentOutItem
.
NewCombinationNum
+
"]购物店数据.xls"
;
that
.
loading
=
false
;
that
.
GetLocalFile
(
"dmcstatistics_post_ShopCreateBillAndExport"
,
nMsg
,
fileName
,
if
(
res
.
data
.
resultCode
==
1
)
{
res
=>
{
that
.
Success
(
res
.
data
.
message
)
;
that
.
loading
=
false
;
}
else
{
this
.
isShowFinaceDailog
=
false
;
that
.
Error
(
res
.
data
.
message
);
that
.
Success
(
"导入成功!"
);
}
that
.
getList
();
},
err
=>
{})
});
});
});
},
},
},
},
mounted
()
{
mounted
()
{
...
@@ -341,7 +371,8 @@
...
@@ -341,7 +371,8 @@
parseInt
(
myDate
.
getMonth
()
+
1
)
+
parseInt
(
myDate
.
getMonth
()
+
1
)
+
"-"
+
"-"
+
myDate
.
getDate
();
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
//this.msg.StartDate = nowDate;
this
.
msg
.
TCNUM
=
"NRTMU07190702A"
;
this
.
getLineList
();
this
.
getLineList
();
this
.
getList
();
this
.
getList
();
},
},
...
...
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