Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄媛媛
ElectricitySheep
Commits
411df13b
Commit
411df13b
authored
Aug 18, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增分销中心
parent
a3860e30
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
934 additions
and
4 deletions
+934
-4
chexiao.png
src/assets/img/chexiao.png
+0
-0
tijiao.png
src/assets/img/tijiao.png
+0
-0
distributionGoodsList.vue
src/components/CommodityMan/distributionGoodsList.vue
+850
-0
goodsList.vue
src/components/CommodityMan/goodsList.vue
+76
-2
index.js
src/router/index.js
+8
-2
No files found.
src/assets/img/chexiao.png
0 → 100644
View file @
411df13b
555 Bytes
src/assets/img/tijiao.png
0 → 100644
View file @
411df13b
511 Bytes
src/components/CommodityMan/distributionGoodsList.vue
0 → 100644
View file @
411df13b
This diff is collapsed.
Click to expand it.
src/components/CommodityMan/goodsList.vue
View file @
411df13b
...
...
@@ -375,7 +375,7 @@
></el-checkbox>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"2
0
0"
label=
"操作"
>
<el-table-column
prop=
"address"
width=
"2
5
0"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<img
@
click=
"goGoodsEdit(scope.row.Id)"
...
...
@@ -405,6 +405,36 @@
src=
"../../assets/img/userman/del.png"
alt=
""
/>
<el-tooltip
effect=
"dark"
content=
"提交分销"
placement=
"top"
v-if=
"
scope.row.SourceGoodsId === 0 && scope.row.RetailStore === 0
"
>
<img
style=
"width: 32px; height: 32px; margin: 0 10px"
src=
"../../assets/img/tijiao.png"
alt=
""
@
click=
"tijiaofenxiao(scope.row.Id)"
/>
</el-tooltip>
<el-tooltip
effect=
"dark"
content=
"撤销分销"
placement=
"top"
v-if=
"
scope.row.SourceGoodsId === 0 && scope.row.RetailStore === 1
"
>
<img
style=
"width: 32px; height: 32px; margin: 0 10px"
src=
"../../assets/img/chexiao.png"
alt=
""
@
click=
"chexiaofenxiao(scope.row.Id)"
/>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -580,6 +610,13 @@
>
供应商
</div>
<div
flex=
"main:center"
@
click=
"ClearSelect(13)"
:class=
"plszMsg.Type == 13 ? 'batch-div-active' : ''"
>
加入分销
</div>
</div>
<div
class=
"batch-box-right"
>
<el-form
...
...
@@ -783,6 +820,21 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
class=
"spmy"
v-if=
"plszMsg.Type == 13"
label-width=
"160px"
label=
"是否加入分销平台"
>
<el-switch
v-model=
"plszMsg.RetailStore"
active-text=
"是"
:active-value=
"2"
inactive-text=
"否"
:inactive-value=
"1"
>
</el-switch>
</el-form-item>
</el-form>
</div>
</div>
...
...
@@ -976,9 +1028,10 @@ export default {
this
.
plszMsg
.
LimitBuyOrderNum
=
-
1
;
}
}
let
mall_userInfo
=
JSON
.
parse
(
localStorage
.
mall_userInfo
);
if
(
mall_userInfo
.
TenantId
==
1
&&
mall_userInfo
.
MallBaseId
==
1
)
{
if
(
this
.
plszMsg
.
SupplierId
==
""
)
{
if
(
this
.
plszMsg
.
SupplierId
==
""
&&
this
.
plszMsg
.
Type
!==
13
)
{
this
.
Error
(
"请选择供应商!"
);
return
;
}
else
{
...
...
@@ -1292,6 +1345,22 @@ export default {
});
window
.
open
(
routeData
.
href
,
"_blank"
);
},
//提交分销
tijiaofenxiao
(
id
)
{
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
plszMsg
));
msg
.
Type
=
13
;
msg
.
GoodsIds
=
id
;
msg
.
RetailStore
=
2
;
this
.
commonSet
(
msg
);
},
//撤销分销
chexiaofenxiao
(
id
)
{
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
plszMsg
));
msg
.
Type
=
13
;
msg
.
GoodsIds
=
id
;
msg
.
RetailStore
=
1
;
this
.
commonSet
(
msg
);
},
},
};
</
script
>
...
...
@@ -1386,4 +1455,9 @@ export default {
padding
:
20px
;
box-sizing
:
border-box
;
}
.goodsList
.el-checkbox__input.is-disabled.is-checked
.el-checkbox__inner
{
background-color
:
#409eff
;
border-color
:
#409eff
;
}
</
style
>
src/router/index.js
View file @
411df13b
...
...
@@ -768,8 +768,8 @@ export default new Router({
name
:
'firstStoreApply'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/firstStoreApply'
],
resolve
),
},
//贸易管理--心愿列表
{
//贸易管理--心愿列表
{
path
:
'/wishList'
,
name
:
'wishList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/wishList'
],
resolve
),
...
...
@@ -1064,6 +1064,12 @@ export default new Router({
name
:
'goodsListEdit'
,
component
:
resolve
=>
require
([
'@/components/CommodityMan/goodsListEdit'
],
resolve
),
},
// 商品管理 分销平台
{
path
:
'/distributionGoodsList'
,
name
:
'distributionGoodsList'
,
component
:
resolve
=>
require
([
'@/components/CommodityMan/distributionGoodsList'
],
resolve
),
},
// 商品管理 批量导入
{
path
:
'/bulkImport'
,
...
...
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