Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
a2c1a242
Commit
a2c1a242
authored
Jul 12, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商家端订单查询异常
parent
472f5074
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
18 deletions
+37
-18
src/const/crud/mall/merchantMallorder.js
+1
-3
src/router/axios.js
+1
-0
src/views/businessGoods/index.vue
+0
-2
src/views/businessOrder/index.vue
+35
-13
No files found.
src/const/crud/mall/merchantMallorder.js
View file @
a2c1a242
...
...
@@ -37,11 +37,9 @@ export const tableOption = {
{
"type"
:
"input"
,
"label"
:
"下单用户"
,
// "prop": "takeName",
"prop"
:
"realName"
,
"prop"
:
"orderUser"
,
search
:
true
,
},
{
"type"
:
"input"
,
"label"
:
"商品名称"
,
...
...
src/router/axios.js
View file @
a2c1a242
...
...
@@ -28,6 +28,7 @@ axios.interceptors.request.use(config => {
const
token
=
store
.
getters
.
access_token
if
(
token
&&
!
isToken
)
{
config
.
headers
[
'Authorization'
]
=
'Bearer '
+
token
// token
console
.
log
(
'Authorization'
+
'Bearer '
+
token
)
}
if
(
TENANT_ID
)
{
config
.
headers
[
'TENANT-ID'
]
=
TENANT_ID
// 租户ID
...
...
src/views/businessGoods/index.vue
View file @
a2c1a242
...
...
@@ -110,11 +110,9 @@
// 列表查询
getList
:
function
(
page
,
params
)
{
this
.
tableLoading
=
true
// 1.获取当前登陆用户ID
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"linshenxs-userInfo"
))
let
account
=
userInfo
.
content
.
username
getMerchantByAccount
(
{
account
:
account
}
).
then
(
response
=>
{
...
...
src/views/businessOrder/index.vue
View file @
a2c1a242
...
...
@@ -106,6 +106,7 @@
import
{
fetchList
,
shipsImmediatelyApi
,
delObj
,
cancelOrderApi
}
from
'@/api/mall/merchantMallorder'
import
{
tableOption
}
from
'@/const/crud/mall/merchantMallorder'
import
{
mapGetters
}
from
'vuex'
import
{
getMerchantByAccount
}
from
"@/api/mall/merchantMallgoods"
;
export
default
{
name
:
'businessorder'
,
data
()
{
...
...
@@ -254,28 +255,49 @@
,{
color
:
'#0bbd87'
,
content
:
'快递送至【成都市】物流运转中心'
,
timestamp
:
'2018-04-11'
}
,{
content
:
'快递送至【成都市】物流运转中心'
,
timestamp
:
'2018-04-11'
}]
},
// 查看详情
checkTheDetails
(
row
){
this
.
$router
.
push
(
'/businessOrder/details?id='
+
row
.
orderNo
)
},
// 列表查询
getList
(
page
,
params
)
{
// 1.获取当前登陆用户ID
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"linshenxs-userInfo"
))
let
account
=
userInfo
.
content
.
username
getMerchantByAccount
(
{
account
:
account
}
).
then
(
response
=>
{
fetchList
(
Object
.
assign
({
current
:
page
.
currentPage
,
size
:
page
.
pageSize
,
// merchantId:response.data.data.id
merchantId
:
47
this
.
tableLoading
=
true
if
(
page
.
currentPage
=
1
){
page
.
currentPage
=
0
}
fetchList
(
Object
.
assign
({
current
:
page
.
currentPage
,
size
:
page
.
pageSize
},
params
,
this
.
searchForm
)).
then
(
response
=>
{
this
.
tableData
=
response
.
data
.
data
.
records
this
.
page
.
total
=
response
.
data
.
data
.
total
this
.
tableLoading
=
false
},
params
,
this
.
searchForm
)).
then
(
response
=>
{
this
.
tableData
=
response
.
data
.
data
.
records
this
.
page
.
total
=
response
.
data
.
data
.
total
this
.
tableLoading
=
false
}).
catch
(()
=>
{
this
.
tableLoading
=
false
this
.
tableLoading
=
false
})
}).
catch
(()
=>
{
this
.
tableLoading
=
false
})
//
// this.tableLoading = true
// if(page.currentPage=1){
// page.currentPage=0
// }
// fetchList(Object.assign({
// current: page.currentPage,
// size: page.pageSize
// }, params, this.searchForm )).then(response => {
// this.tableData = response.data.data.records
// this.page.total = response.data.data.total
// this.tableLoading = false
// }).catch(() => {
// this.tableLoading=false
// })
},
// 删除
handleDel
:
function
(
row
,
index
)
{
...
...
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