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
4886b493
Commit
4886b493
authored
Sep 05, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物店生成财务单据修改
parent
1370bf4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
19 deletions
+40
-19
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+40
-19
No files found.
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
4886b493
...
...
@@ -139,15 +139,15 @@
v-if=
"img !== ''"
style=
"cursor: pointer;color:blue;"
>
{{ '凭证' + (imgIndex + 1)}}
</p>
</td>
<td
width=
"80"
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
>
{{subItem.Remarks}}
{{subItem.Remarks}}
</td>
<td
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
style=
""
>
<div
>
<div>
<p
style=
"cursor: pointer;color:blue;margin-top:10px;"
@
click=
"CreateHandBill(outItem)"
>
手动生成单据
</p>
</div>
</td>
<td
:rowspan=
"outItem.rowspanCount"
v-if=
"index==0&&subIndex==0"
>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"
CreateBill(item.ShopDetailsList,outItem)
"
>
生成单据
</p>
<td
:rowspan=
"outItem.rowspanCount"
v-if=
"index==0&&subIndex==0"
>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"
isShowFinaceDailog=true,CurrentOutItem=outItem
"
>
生成单据
</p>
<p
style=
"cursor: pointer;color:blue;margin-top:5px;"
@
click=
"goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)"
>
选择购物店
</p>
...
...
@@ -196,7 +196,7 @@
<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>
<el-radio
v-model=
"CreateHandBillID"
:key=
"item.id"
:label=
"item.id"
></el-radio>
</div>
</el-form-item>
</el-form>
...
...
@@ -204,8 +204,24 @@
<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>
</
template
>
</el-dialog>
<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>
</div>
</template>
<
script
>
...
...
@@ -213,6 +229,7 @@
data
()
{
return
{
loading
:
false
,
PayType
:
1
,
//付款方式
msg
:
{
pageIndex
:
1
,
pageSize
:
8
,
...
...
@@ -230,23 +247,25 @@
shopDataList
:
[],
CreateHandBillList
:
[],
zhuanjiaoBox
:
false
,
isShowFinaceDailog
:
false
,
//是否显示生成财务单据对话框
CreateHandBillID
:
''
,
CreateHandObj
:
{},
CurrentOutItem
:{}
//当前选中的团
}
},
methods
:
{
goCreateHandBill
:
function
()
{
let
obj
=
{}
for
(
let
i
=
0
;
i
<
this
.
CreateHandBillList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
CreateHandBillList
.
length
;
i
++
)
{
if
(
this
.
CreateHandBillList
[
i
].
id
==
this
.
CreateHandBillID
)
{
obj
=
this
.
CreateHandBillList
[
i
]
obj
=
this
.
CreateHandBillList
[
i
]
}
}
let
orderObj
=
{
OrderID
:
''
,
OrderID
:
''
,
OrderSource
:
8
,
Obj
:
{},
SourceID
:
''
,
SourceID
:
''
,
TCIDList
:
[
obj
.
TCID
]
};
this
.
$router
.
push
({
...
...
@@ -264,7 +283,7 @@
CreateHandBill
:
function
(
obj
)
{
this
.
CreateHandObj
=
obj
let
newList
=
[]
for
(
let
i
=
0
;
i
<
obj
.
TCList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
obj
.
TCList
.
length
;
i
++
)
{
newList
.
push
({
TCID
:
obj
.
TCList
[
i
].
TCID
,
id
:
obj
.
TCList
[
i
].
TCNUMS
,
...
...
@@ -375,7 +394,7 @@
},
err
=>
{})
},
//生成单据
CreateBill
(
ShopDetailsList
,
outItem
)
{
CreateBill
()
{
var
that
=
this
;
this
.
Confirm
(
'是否生成财务单据?'
,
function
()
{
that
.
loading
=
true
;
...
...
@@ -403,19 +422,20 @@
// that.Error(res.data.message);
// }
// }, err => {})
var
nMsg
=
{
TCIDs
:
outItem
.
TCIDs
,
var
nMsg
=
{
TCIDs
:
that
.
CurrentOutItem
.
TCIDs
,
PayType
:
that
.
PayType
,
uid
:
that
.
getLocalStorage
().
EmployeeId
};
let
fileName
=
"生成["
+
o
utItem
.
NewCombinationNum
+
"]购物店数据.xls"
;
that
.
GetLocalFile
(
"dmcstatistics_post_ShopCreateBillAndExport"
,
nMsg
,
fileName
,
let
fileName
=
"生成["
+
that
.
CurrentO
utItem
.
NewCombinationNum
+
"]购物店数据.xls"
;
that
.
GetLocalFile
(
"dmcstatistics_post_ShopCreateBillAndExport"
,
nMsg
,
fileName
,
res
=>
{
that
.
loading
=
false
;
this
.
isShowFinaceDailog
=
false
;
that
.
Success
(
"导入成功!"
);
that
.
getList
();
});
});
},
},
...
...
@@ -428,6 +448,7 @@
"-"
+
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
//this.msg.StartDate = '2019-06-26'
this
.
getLineList
();
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