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
4f2a01c4
Commit
4f2a01c4
authored
Jul 13, 2022
by
fuqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
359897d0
a1037b82
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
42 deletions
+20
-42
src/api/mall/merchantMallgoods.js
+0
-3
src/const/crud/mall/merchantMallgoods.js
+2
-2
src/const/crud/mall/merchantMallorder.js
+1
-1
src/views/businessGoods/goodsEdit/goods_api.js
+1
-1
src/views/businessGoods/goodsEdit/goods_edit.vue
+15
-17
src/views/businessOrder/index.vue
+1
-18
No files found.
src/api/mall/merchantMallgoods.js
View file @
4f2a01c4
import
request
from
'@/router/axios'
import
request
from
'@/router/axios'
export
function
getMerchantByAccount
(
parameter
)
{
export
function
getMerchantByAccount
(
parameter
)
{
return
request
({
return
request
({
url
:
'/admin/merchantMallGoods/getMerchantByAccount'
,
url
:
'/admin/merchantMallGoods/getMerchantByAccount'
,
...
...
src/const/crud/mall/merchantMallgoods.js
View file @
4f2a01c4
...
@@ -72,7 +72,7 @@ export const tableOption = {
...
@@ -72,7 +72,7 @@ export const tableOption = {
"prop"
:
"state"
,
"prop"
:
"state"
,
"search"
:
true
,
"search"
:
true
,
"showColumn"
:
false
,
"showColumn"
:
false
,
dicUrl
:
"/
general/m
allGoods/getStateOptions"
,
dicUrl
:
"/
admin/merchantM
allGoods/getStateOptions"
,
},
},
{
{
"type"
:
"input"
,
"type"
:
"input"
,
...
@@ -85,7 +85,7 @@ export const tableOption = {
...
@@ -85,7 +85,7 @@ export const tableOption = {
"prop"
:
"auditState"
,
"prop"
:
"auditState"
,
"search"
:
true
,
"search"
:
true
,
"showColumn"
:
false
,
"showColumn"
:
false
,
dicUrl
:
"/
general/m
allGoods/getAuditStateOptions"
,
dicUrl
:
"/
admin/merchantM
allGoods/getAuditStateOptions"
,
},
},
{
{
"type"
:
"input"
,
"type"
:
"input"
,
...
...
src/const/crud/mall/merchantMallorder.js
View file @
4f2a01c4
...
@@ -32,7 +32,7 @@ export const tableOption = {
...
@@ -32,7 +32,7 @@ export const tableOption = {
"label"
:
"状态"
,
"label"
:
"状态"
,
"prop"
:
"state"
,
"prop"
:
"state"
,
"search"
:
true
,
"search"
:
true
,
"dicUrl"
:
"/
general/m
allOrder/getOrderStateOptions"
,
"dicUrl"
:
"/
admin/merchantM
allOrder/getOrderStateOptions"
,
},
},
{
{
"type"
:
"input"
,
"type"
:
"input"
,
...
...
src/views/businessGoods/goodsEdit/goods_api.js
View file @
4f2a01c4
...
@@ -33,7 +33,7 @@ export function getGoodsDetails(query) {
...
@@ -33,7 +33,7 @@ export function getGoodsDetails(query) {
export
function
addOrEditGoods
(
data
)
{
export
function
addOrEditGoods
(
data
)
{
return
request
({
return
request
({
url
:
'/admin/m
allGoodsSpec
/addOrEditGoods'
,
url
:
'/admin/m
erchantMallGoods
/addOrEditGoods'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
...
...
src/views/businessGoods/goodsEdit/goods_edit.vue
View file @
4f2a01c4
...
@@ -192,6 +192,8 @@
...
@@ -192,6 +192,8 @@
<
script
>
<
script
>
import
{
getMerchantByAccount
}
from
"@/api/mall/merchantMallgoods"
;
let
DBG
=
true
let
DBG
=
true
import
{
import
{
ZmMixin
ZmMixin
...
@@ -206,6 +208,7 @@
...
@@ -206,6 +208,7 @@
getGoodsDetails
,
getGoodsDetails
,
addOrEditGoods
addOrEditGoods
}
from
'./goods_api.js'
}
from
'./goods_api.js'
import
{
fetchList
}
from
"@/api/mall/merchantMallorder"
;
export
default
{
export
default
{
mixins
:
[
ZmMixin
],
mixins
:
[
ZmMixin
],
components
:
{
components
:
{
...
@@ -681,30 +684,25 @@
...
@@ -681,30 +684,25 @@
doSubmit
:
function
()
{
doSubmit
:
function
()
{
let
id
=
this
.
id
let
id
=
this
.
id
if
(
JSON
.
stringify
(
id
)
===
'{}'
||
id
===
undefined
){
if
(
JSON
.
stringify
(
id
)
===
'{}'
||
id
===
undefined
){
// 根据当前登陆用户id 获取商家id
// 1.获取当前登陆用户ID
let
userId
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"linshenxs-userInfo"
)).
content
.
userId
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"linshenxs-userInfo"
))
this
.
$axios
.
get
(
"/admin/merchantMallGoods/getMerchantByUserId"
,{
let
account
=
userInfo
.
content
.
username
params
:{
id
:
userId
},
getMerchantByAccount
(
}).
then
(
response
=>
{
{
account
:
account
}
).
then
(
response
=>
{
this
.
form
.
merchantId
=
response
.
data
.
data
.
id
this
.
form
.
merchantId
=
response
.
data
.
data
.
id
const
{
data
:
res
}
=
this
.
$http
.
post
(
addOrEditGoods
(
this
.
form
).
then
(
data
=>
{
"/general/mallGoods/addOrEditGoods"
,
this
.
form
).
then
(
r
=>
{
this
.
loading
=
false
this
.
$emit
(
'success'
)
this
.
$message
.
success
(
'添加成功'
)
this
.
$message
.
success
(
'添加成功'
)
// this.$router.go(-1)
done
()
}).
catch
(
e
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
});
})
}).
catch
(()
=>
{
},
error
=>
{
this
.
tableLoading
=
false
console
.
log
(
'错误'
,
error
.
message
)
})
})
}
else
{
}
else
{
addOrEditGoods
(
this
.
form
).
then
(
data
=>
{
addOrEditGoods
(
this
.
form
).
then
(
data
=>
{
this
.
$message
.
success
(
'修改成功'
)
this
.
$message
.
success
(
'修改成功'
)
done
()
done
()
// this.$router.go(-1)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
});
});
}
}
...
...
src/views/businessOrder/index.vue
View file @
4f2a01c4
...
@@ -270,9 +270,7 @@
...
@@ -270,9 +270,7 @@
fetchList
(
Object
.
assign
({
fetchList
(
Object
.
assign
({
current
:
page
.
currentPage
,
current
:
page
.
currentPage
,
size
:
page
.
pageSize
,
size
:
page
.
pageSize
,
// merchantId:response.data.data.id
merchantId
:
response
.
data
.
data
.
id
merchantId
:
47
},
params
,
this
.
searchForm
)).
then
(
response
=>
{
},
params
,
this
.
searchForm
)).
then
(
response
=>
{
this
.
tableData
=
response
.
data
.
data
.
records
this
.
tableData
=
response
.
data
.
data
.
records
this
.
page
.
total
=
response
.
data
.
data
.
total
this
.
page
.
total
=
response
.
data
.
data
.
total
...
@@ -283,21 +281,6 @@
...
@@ -283,21 +281,6 @@
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
tableLoading
=
false
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
)
{
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