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
c3e8b019
Commit
c3e8b019
authored
Jul 22, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家端
parent
7732827b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
48 deletions
+12
-48
src/views/businessGoods/details.vue
+0
-2
src/views/businessGoods/goodsEdit/goods_api.js
+1
-22
src/views/businessGoods/goodsEdit/goods_edit.vue
+11
-24
No files found.
src/views/businessGoods/details.vue
View file @
c3e8b019
...
@@ -149,7 +149,6 @@
...
@@ -149,7 +149,6 @@
<
script
>
<
script
>
import
{
getGoodsDetails
,
getGoodsInfo
,
shipsImmediatelyApi
,
cancelOrderSubApi
}
from
'@/api/mall/merchantMallgoods'
import
{
getGoodsDetails
,
getGoodsInfo
,
shipsImmediatelyApi
,
cancelOrderSubApi
}
from
'@/api/mall/merchantMallgoods'
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
import
{
ZmMixin
}
from
'@/mixins/ZmMixin.js'
import
{
mock
}
from
"@/views/businessGoods/goodsEdit/mock_data"
;
export
default
{
export
default
{
mixins
:
[
ZmMixin
],
mixins
:
[
ZmMixin
],
data
()
{
data
()
{
...
@@ -221,7 +220,6 @@
...
@@ -221,7 +220,6 @@
}
}
},
},
methods
:
{
methods
:
{
//回填数据
//回填数据
refill
(
data
)
{
refill
(
data
)
{
let
skus
=
data
.
skus
let
skus
=
data
.
skus
...
...
src/views/businessGoods/goodsEdit/goods_api.js
View file @
c3e8b019
...
@@ -2,7 +2,7 @@ import request from '@/router/axios'
...
@@ -2,7 +2,7 @@ import request from '@/router/axios'
export
function
getClassifyDropDown
()
{
export
function
getClassifyDropDown
()
{
return
request
({
return
request
({
url
:
'admin/merchantMallGoods/merchantDropDownBox'
,
url
:
'
/
admin/merchantMallGoods/merchantDropDownBox'
,
method
:
'get'
method
:
'get'
})
})
}
}
...
@@ -41,27 +41,6 @@ export function getGoodsDetails(query) {
...
@@ -41,27 +41,6 @@ export function getGoodsDetails(query) {
}
}
// addOrEditGoods(this.form)
// .then((res)=>{
// this.$message.success('添加成功')
// this.$emit('success')
// }).catch(e => {
// this.$message.success('添加失败')
// });
// }).catch(() => {
// this.tableLoading = false
// })
// export function addOrEditGoods(data) {
// return request({
// url: '/admin/merchantMallGoods/addOrEditGoods',
// method: 'post',
// params: data
//
// })
// }
/*** 自定义添加 ***/
/*** 自定义添加 ***/
export
function
getMerchantByAccount
(
parameter
)
{
export
function
getMerchantByAccount
(
parameter
)
{
return
request
({
return
request
({
...
...
src/views/businessGoods/goodsEdit/goods_edit.vue
View file @
c3e8b019
...
@@ -380,31 +380,18 @@
...
@@ -380,31 +380,18 @@
this
.
clearData
()
this
.
clearData
()
}
}
this
.
loading
=
true
this
.
loading
=
true
getClassifyDropDown
()
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"linshenxs-userInfo"
))
.
then
(
r
=>
{
let
account
=
userInfo
.
content
.
username
this
.
classOptions
=
this
.
zmRes
(
r
)
if
(
DBG
)
{
this
.
$axios
.
get
(
"/admin/merchantMallGoods/merchantDropDownBox"
,{
this
.
refill
(
mock
)
params
:{
merchantId
:
userInfo
.
content
.
username
},
}
else
{
}).
then
(
response
=>
{
if
(
id
!=
undefined
)
{
console
.
log
(
JSON
.
stringify
(
response
)
)
return
getGoodsDetails
({
id
:
id
})
return
response
.
data
}
},
error
=>
{
}
console
.
log
(
'错误'
,
error
.
message
)
return
Promise
.
resolve
()
})
.
then
(
r
=>
{
this
.
loading
=
false
if
(
r
)
{
let
z
=
this
.
zmRes
(
r
)
if
(
z
)
{
this
.
refill
(
z
)
}
}
})
.
catch
(
e
=>
{
this
.
loading
=
false
console
.
log
(
e
)
})
})
},
},
//清除数据
//清除数据
clearData
()
{
clearData
()
{
...
...
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