Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ddf3028b
authored
Jul 17, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-dj-oss-equity
into master
2 parents
79b6353c
45bcc799
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
src/api/request.js
src/views/tao/goods/addGoods/index.vue
src/views/tao/goods/index/index.vue
src/api/request.js
View file @
ddf3028
...
@@ -12,7 +12,6 @@ const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []
...
@@ -12,7 +12,6 @@ const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []
params
.
v
=
'1.0.0'
params
.
v
=
'1.0.0'
params
.
format
=
'json'
params
.
format
=
'json'
params
.
locale
=
'zh_CN'
params
.
locale
=
'zh_CN'
console
.
log
(
'开始'
)
let
data
=
sign
(
params
,
noSignAttr
)
let
data
=
sign
(
params
,
noSignAttr
)
return
GlAxios
.
post
(
'router'
,
data
)
return
GlAxios
.
post
(
'router'
,
data
)
}
}
...
...
src/views/tao/goods/addGoods/index.vue
View file @
ddf3028
...
@@ -359,10 +359,10 @@ export default {
...
@@ -359,10 +359,10 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
let
{
id
}
=
this
.
getParams
()
let
{
id
,
edit
}
=
this
.
getParams
()
if
(
id
)
{
if
(
id
)
{
this
.
getEquityGoodsById
(
id
)
this
.
getEquityGoodsById
(
id
)
this
.
isEdit
=
true
this
.
isEdit
=
!
edit
}
else
{
}
else
{
this
.
getListWithPageOutGoods
()
this
.
getListWithPageOutGoods
()
}
}
...
@@ -399,7 +399,6 @@ export default {
...
@@ -399,7 +399,6 @@ export default {
productId
,
productId
,
supplier
:
'HW'
supplier
:
'HW'
}).
then
(({
code
,
message
,
data
})
=>
{
}).
then
(({
code
,
message
,
data
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
ruleForm
.
brandName
=
data
.
brandName
this
.
ruleForm
.
brandName
=
data
.
brandName
...
@@ -459,6 +458,10 @@ export default {
...
@@ -459,6 +458,10 @@ export default {
this
.
createGoods
(
'updateGoods'
)
this
.
createGoods
(
'updateGoods'
)
return
return
}
}
this
.
brandNameList
.
map
(
e
=>
{
if
(
e
.
brandId
==
this
.
ruleForm
.
brandId
)
this
.
ruleForm
.
brandName
=
e
.
brandName
})
console
.
log
(
this
.
ruleForm
)
let
{
supplier
,
brandId
,
productId
}
=
this
.
ruleForm
let
{
supplier
,
brandId
,
productId
}
=
this
.
ruleForm
orderApi
.
sameGoodsCheck
({
orderApi
.
sameGoodsCheck
({
supplier
,
supplier
,
...
...
src/views/tao/goods/index/index.vue
View file @
ddf3028
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"jump(scope.scope)"
@
click=
"jump(scope.scope
,true
)"
>
编辑
</el-button>
>
编辑
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
...
@@ -237,8 +237,11 @@ export default {
...
@@ -237,8 +237,11 @@ export default {
}
}
})
})
},
},
jump
({
id
})
{
jump
({
id
},
edit
)
{
window
.
location
.
href
=
id
?
`./addGoods.html?id=
${
id
}
`
:
'./addGoods.html'
let
url
=
'./addGoods.html'
if
(
id
)
url
=
`
${
url
}
?id=
${
id
}
`
if
(
edit
)
url
=
`
${
url
}
&edit=true`
window
.
location
.
href
=
url
},
},
toggleAll
()
{
toggleAll
()
{
let
{
goodsIndexMutiTable
}
=
this
.
$refs
.
table
.
$refs
let
{
goodsIndexMutiTable
}
=
this
.
$refs
.
table
.
$refs
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment