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
adaffbbb
Commit
adaffbbb
authored
Sep 02, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
57c96009
bb4be032
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
34 deletions
+59
-34
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+38
-28
ShoppingStore.vue
src/components/ShoppingStore/ShoppingStore.vue
+21
-6
No files found.
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
adaffbbb
...
@@ -142,14 +142,12 @@
...
@@ -142,14 +142,12 @@
{{subItem.Remarks}}
{{subItem.Remarks}}
</td>
</td>
<td
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
style=
""
>
<td
:rowspan=
"item.ShopDetailsList.length"
v-if=
'subIndex==0'
style=
""
>
<!-- style="display:none;" -->
<div
>
<div
>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateBill(item.ShopDetailsList)"
>
生成单据
</p>
<p
style=
"cursor: pointer;color:blue;margin-top:10px;"
@
click=
"CreateHandBill(outItem)"
>
手动生成单据
</p>
<p
style=
"cursor: pointer;color:blue;margin-top:10px;"
@
click=
"CreateHandBill(outItem)"
>
手动生成单据
</p>
</div>
</div>
</td>
</td>
<td
:rowspan=
"outItem.rowspanCount"
v-if=
"index==0&&subIndex==0"
>
<td
:rowspan=
"outItem.rowspanCount"
v-if=
"index==0&&subIndex==0"
>
<p
style=
"cursor: pointer;color:blue;"
@
click=
"CreateBill(item.ShopDetailsList,outItem)"
>
生成单据
</p
>
<p
style=
"cursor: pointer;color:blue;margin-top:5px;"
<p
style=
"cursor: pointer;color:blue;margin-top:5px;"
@
click=
"goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)"
>
@
click=
"goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)"
>
选择购物店
</p>
选择购物店
</p>
...
@@ -381,32 +379,44 @@
...
@@ -381,32 +379,44 @@
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
:
outItem
.
TCIDs
,
uid
:
that
.
getLocalStorage
().
EmployeeId
};
};
that
.
apipost
(
'dmcstatistics_post_ShopCreateBill'
,
billMsg
,
res
=>
{
let
fileName
=
"生成["
+
outItem
.
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
{
that
.
Success
(
"导入成功!"
);
that
.
Error
(
res
.
data
.
message
);
that
.
getList
();
}
});
},
err
=>
{})
});
});
},
},
},
},
mounted
()
{
mounted
()
{
...
...
src/components/ShoppingStore/ShoppingStore.vue
View file @
adaffbbb
...
@@ -1269,13 +1269,28 @@
...
@@ -1269,13 +1269,28 @@
uid
:
that
.
getLocalStorage
().
EmployeeId
uid
:
that
.
getLocalStorage
().
EmployeeId
};
};
let
fileName
=
"生成购物店数据"
+
that
.
$commonUtils
.
getCurrentDate
()
+
".xls"
;
let
fileName
=
"生成购物店数据"
+
that
.
$commonUtils
.
getCurrentDate
()
+
".xls"
;
that
.
GetLocalFile
(
"ShoppingInfo_Post_ImportAndExport"
,
qMsg
,
fileName
,
// that.GetLocalFile("ShoppingInfo_Post_ImportAndExport", qMsg, fileName,
// res => {
// that.tabLoading = false;
// that.fillShow = false;
// that.Success("导入成功!");
// that.getList();
// });
that
.
apipost
(
"ShoppingInfo_Post_ImportAndExport_V2"
,
qMsg
,
res
=>
{
res
=>
{
that
.
tabLoading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
fillShow
=
false
;
that
.
tabLoading
=
false
;
that
.
Success
(
"导入成功!"
);
that
.
fillShow
=
false
;
that
.
getList
();
that
.
Success
(
"导入成功!"
);
});
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
});
});
},
},
getDownList
()
{
getDownList
()
{
...
...
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