Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
c8d4f6b3
Commit
c8d4f6b3
authored
Nov 01, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
86a4fb8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
+7
-18
BuyingAdd.vue
src/components/Buying/BuyingAdd.vue
+4
-2
BuyingList.vue
src/components/Buying/BuyingList.vue
+3
-16
No files found.
src/components/Buying/BuyingAdd.vue
View file @
c8d4f6b3
...
...
@@ -218,7 +218,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"商品分类"
>
<el-select
filterable
v-model=
"CategoryId"
@
change=
"getGoodsTypeManager(2)"
>
<el-select
filterable
v-model=
"
addMsg.Parent
CategoryId"
@
change=
"getGoodsTypeManager(2)"
>
<el-option
v-for=
"item in GoodsTypeList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
...
...
@@ -379,6 +379,7 @@ export default {
CompanyRebate
:
0
,
ClientRebate
:
0
,
WeiTuRebate
:
''
,
ParentCategoryId
:
""
},
MenberList
:
[],
GoodsTypeList
:
[],
...
...
@@ -427,6 +428,7 @@ export default {
if
(
r
.
data
.
resultCode
===
1
)
{
this
.
addMsg
=
r
.
data
.
data
this
.
DiningImageArray
=
this
.
addMsg
.
FlowImgList
this
.
getGoodsTypeManager
(
2
)
this
.
$forceUpdate
()
}
},
null
)
...
...
@@ -554,7 +556,7 @@ export default {
);
},
getGoodsTypeManager
(
t
)
{
this
.
apipost
(
"Shop_post_GetCommodityCategoryList"
,{
Name
:
""
,
ParentId
:
t
?
this
.
CategoryId
:
0
},
res
=>
{
this
.
apipost
(
"Shop_post_GetCommodityCategoryList"
,{
Name
:
""
,
ParentId
:
t
?
this
.
addMsg
.
Parent
CategoryId
:
0
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
t
)
{
this
.
GoodsTypeList2
=
res
.
data
.
data
;
...
...
src/components/Buying/BuyingList.vue
View file @
c8d4f6b3
...
...
@@ -32,14 +32,10 @@
<li>
<span>
<em>
商品分类
</em>
<el-select
filterable
v-model=
"msg.CategoryId"
@
change=
"getGoodsTypeManager(2)"
>
<el-select
filterable
v-model=
"msg.CategoryId"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"-1"
></el-option>
<el-option
v-for=
"item in GoodsTypeList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
</el-select>
<el-select
filterable
v-model=
"CategoryId"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"-1"
></el-option>
<el-option
v-for=
"item in GoodsTypeList2"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
</el-select>
</span>
</li>
<li>
...
...
@@ -137,8 +133,6 @@ export default {
GoodsTypeList
:
[],
total
:
0
,
CommodityTypeList
:
[],
GoodsTypeList2
:
[],
CategoryId
:
''
};
},
...
...
@@ -170,13 +164,9 @@ export default {
addIntegralMall
:
function
(
path
,
proId
,
tab
){
this
.
$router
.
push
({
name
:
path
,
query
:{
blank
:
'y'
,
proId
:
proId
,
tab
:
tab
}
})
},
getGoodsTypeManager
(
t
)
{
this
.
apipost
(
"Shop_post_GetCommodityCategoryList"
,{
Name
:
""
,
ParentId
:
t
?
this
.
CategoryId
:
0
},
res
=>
{
getGoodsTypeManager
()
{
this
.
apipost
(
"Shop_post_GetCommodityCategoryList"
,{
Name
:
""
,
ParentId
:
-
1
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
t
)
{
this
.
GoodsTypeList2
=
res
.
data
.
data
;
return
}
this
.
GoodsTypeList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -202,9 +192,6 @@ export default {
//获取数据
getList
()
{
this
.
loading
=
true
;
if
(
this
.
CategoryId
!==
''
)
{
this
.
msg
.
CategoryId
=
this
.
CategoryId
}
this
.
apipost
(
"Shop_post_GetPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
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