Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
fengzhaoyu
mingPayPc
Commits
845fafda
Commit
845fafda
authored
Jul 05, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
4fee4336
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
19 deletions
+19
-19
axios.js
src/api/axios.js
+1
-1
AccountManagement.vue
src/components/pages/PaymentManagement/AccountManagement.vue
+5
-5
AllowancePayment.vue
src/components/pages/PaymentManagement/AllowancePayment.vue
+3
-3
CashierManagement.vue
src/components/pages/PaymentManagement/CashierManagement.vue
+3
-3
RechargeRecord.vue
src/components/pages/PaymentManagement/RechargeRecord.vue
+2
-2
RecordsOfConsumption.vue
...mponents/pages/PaymentManagement/RecordsOfConsumption.vue
+3
-3
ViewAllowances.vue
src/components/pages/PaymentManagement/ViewAllowances.vue
+1
-1
main.js
src/main.js
+1
-1
No files found.
src/api/axios.js
View file @
845fafda
...
...
@@ -7,7 +7,7 @@ let loadingInstance // 创建Loading 的实例
// axios.defaults.headers.post['Content-Type'] = 'application/json; charset=utf-8'
// axios.defaults.crossDomain = true
// axios.defaults.withCredentials = true // 设置cross跨域 并设置访问权限 允许跨域携带cookie信息
axios
.
defaults
.
headers
[
'Authorization'
]
=
`Bearer
${
session
Storage
.
getItem
(
'token'
)}
`
// 设置请求头为 Authorization
axios
.
defaults
.
headers
[
'Authorization'
]
=
`Bearer
${
local
Storage
.
getItem
(
'token'
)}
`
// 设置请求头为 Authorization
// 配置发送请求前的拦截器可以设置token信息
axios
.
interceptors
.
request
.
use
((
config
)
=>
{
// loading开始loadingInstance.start()
...
...
src/components/pages/PaymentManagement/AccountManagement.vue
View file @
845fafda
...
...
@@ -200,7 +200,7 @@ export default {
status
:
this
.
searchSource
.
accountStatus
,
cardNo
:
this
.
searchSource
.
cardNum
,
cardStatus
:
this
.
searchSource
.
cardStatus
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/account/queryAccountList?
${
AccountData
}
`
).
then
((
res
)
=>
{
_that
.
accountList
=
res
.
data
.
data
.
recordList
...
...
@@ -323,7 +323,7 @@ export default {
let
_that
=
this
this
.
rechargeData
.
orderPrice
=
this
.
form
.
getFieldsValue
().
orderPrice
this
.
rechargeData
.
remark
=
this
.
form
.
getFieldsValue
().
remark
this
.
rechargeData
.
orgId
=
sessionStorage
.
getItem
(
'corp
Id'
)
this
.
rechargeData
.
orgId
=
localStorage
.
getItem
(
'org
Id'
)
let
rechargeData
=
this
.
$qs
.
stringify
(
this
.
rechargeData
)
$http
.
get
(
`/v1/charge/charge?
${
rechargeData
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
message
===
'SUCCESS'
)
{
...
...
@@ -350,7 +350,7 @@ export default {
let
accountOperationData
=
this
.
$qs
.
stringify
({
userId
:
userId
,
status
:
status
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
let
url
=
type
===
3
?
'update_account_status'
:
'update_card_status'
$http
.
get
(
`/v1/account/
${
url
}
?
${
accountOperationData
}
`
).
then
((
res
)
=>
{
...
...
@@ -422,13 +422,13 @@ export default {
cardOperationData
=
this
.
$qs
.
stringify
({
cardNo
:
this
.
updateBindCardStatusForm
.
getFieldsValue
().
cardNo
,
userId
:
this
.
selsctUserId
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
}
else
if
(
type
===
1
)
{
cardOperationData
=
this
.
$qs
.
stringify
({
cardNo
:
''
,
userId
:
this
.
selsctUserId
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
}
$http
.
get
(
`/v1/account/update_bind_card_status?
${
cardOperationData
}
`
).
then
((
res
)
=>
{
...
...
src/components/pages/PaymentManagement/AllowancePayment.vue
View file @
845fafda
...
...
@@ -168,7 +168,7 @@ export default {
// 获取收银员列表
getAgentList
()
{
let
AgentData
=
this
.
$qs
.
stringify
({
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/account/query_user_admin_list?
${
AgentData
}
`
).
then
((
res
)
=>
{
this
.
agentList
=
res
.
data
.
data
.
recordList
...
...
@@ -192,7 +192,7 @@ export default {
pageNumber
:
this
.
pagination
.
defaultPageSize
,
type
:
this
.
searchSource
.
type
,
agentId
:
this
.
searchSource
.
agentId
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/account/list_couponRecord?
${
RecordData
}
`
).
then
((
res
)
=>
{
let
data
=
res
.
data
.
data
...
...
@@ -298,7 +298,7 @@ export default {
endTime
:
`
${
values
[
'date-picker'
]}
23:59:59`
,
remark
:
values
.
remark
,
type
:
values
.
select
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/account/batch_create_subsidy?
${
RecordData
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
message
===
'SUCCESS'
)
{
...
...
src/components/pages/PaymentManagement/CashierManagement.vue
View file @
845fafda
...
...
@@ -81,7 +81,7 @@ export default {
let
DeleteCashierData
=
this
.
$qs
.
stringify
({
userId
:
record
.
userId
,
status
:
'1'
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/cashier/delete_cashier?
${
DeleteCashierData
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
resultCode
===
'0'
)
{
...
...
@@ -98,7 +98,7 @@ export default {
let
CashierListData
=
this
.
$qs
.
stringify
({
pageNumber
:
this
.
pagination
.
defaultPageSize
,
currentPage
:
this
.
pagination
.
current
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/cashier/list_cashier?
${
CashierListData
}
`
).
then
((
res
)
=>
{
this
.
pagination
.
total
=
parseInt
(
res
.
data
.
data
.
total
)
...
...
@@ -122,7 +122,7 @@ export default {
name
:
res
[
0
].
name
,
userId
:
res
[
0
].
emplId
,
status
:
'0'
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`v1/cashier/insert_cashier?
${
insertCashierData
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
resultCode
===
'0'
)
{
...
...
src/components/pages/PaymentManagement/RechargeRecord.vue
View file @
845fafda
...
...
@@ -114,7 +114,7 @@ export default {
// 获取收银员列表
getAgentList
()
{
let
AgentData
=
this
.
$qs
.
stringify
({
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/account/query_user_admin_list?
${
AgentData
}
`
).
then
((
res
)
=>
{
this
.
agentList
=
res
.
data
.
data
.
recordList
...
...
@@ -204,7 +204,7 @@ export default {
agentId
:
this
.
searchSource
.
agentId
,
status
:
this
.
searchSource
.
status
,
userId
:
this
.
searchSource
.
UserMessage
.
emplId
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/charge/list_charge?
${
RechargeData
}
`
).
then
((
res
)
=>
{
let
data
=
res
.
data
.
data
...
...
src/components/pages/PaymentManagement/RecordsOfConsumption.vue
View file @
845fafda
...
...
@@ -134,7 +134,7 @@ export default {
methods
:
{
queryAgentList
()
{
let
CashierListData
=
this
.
$qs
.
stringify
({
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/cashier/list_cashier_all?
${
CashierListData
}
`
).
then
((
res
)
=>
{
this
.
agentList
=
res
.
data
.
data
.
list
...
...
@@ -159,7 +159,7 @@ export default {
let
refundData
=
this
.
$qs
.
stringify
({
orderNo
:
this
.
refundSelect
.
orderNo
,
remark
:
this
.
form
.
getFieldsValue
().
remark
||
''
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/consume/refund?
${
refundData
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
message
===
'SUCCESS'
)
{
...
...
@@ -194,7 +194,7 @@ export default {
status
:
this
.
searchSource
.
status
,
userId
:
this
.
searchSource
.
UserMessage
.
emplId
,
agentId
:
this
.
searchSource
.
agentId
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/consume/list_expense_record?
${
RecordListData
}
`
).
then
((
res
)
=>
{
let
data
=
res
.
data
.
data
...
...
src/components/pages/PaymentManagement/ViewAllowances.vue
View file @
845fafda
...
...
@@ -66,7 +66,7 @@ export default {
userId
:
this
.
userId
,
currentPage
:
this
.
pagination
.
current
,
pageNumber
:
this
.
pagination
.
defaultPageSize
,
orgId
:
sessionStorage
.
getItem
(
'corp
Id'
)
orgId
:
localStorage
.
getItem
(
'org
Id'
)
})
$http
.
get
(
`/v1/account/query_subsidyList_by_user_id?
${
SubsidyListData
}
`
).
then
((
res
)
=>
{
let
data
=
res
.
data
.
data
...
...
src/main.js
View file @
845fafda
...
...
@@ -39,7 +39,7 @@ router.beforeEach(function (to, from, next) {
if
(
to
.
name
===
'noPermission'
||
to
.
name
===
'configError'
)
{
next
()
}
else
{
if
(
session
Storage
.
getItem
(
'userId'
))
{
if
(
local
Storage
.
getItem
(
'userId'
))
{
next
()
}
else
{
localStorage
.
setItem
(
'orgId'
,
to
.
redirectedFrom
.
substr
(
1
))
...
...
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