Commit 411df13b authored by 罗超's avatar 罗超

新增分销中心

parent a3860e30
This diff is collapsed.
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
></el-checkbox> ></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" width="200" label="操作"> <el-table-column prop="address" width="250" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<img <img
@click="goGoodsEdit(scope.row.Id)" @click="goGoodsEdit(scope.row.Id)"
...@@ -405,6 +405,36 @@ ...@@ -405,6 +405,36 @@
src="../../assets/img/userman/del.png" src="../../assets/img/userman/del.png"
alt="" 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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -580,6 +610,13 @@ ...@@ -580,6 +610,13 @@
> >
供应商 供应商
</div> </div>
<div
flex="main:center"
@click="ClearSelect(13)"
:class="plszMsg.Type == 13 ? 'batch-div-active' : ''"
>
加入分销
</div>
</div> </div>
<div class="batch-box-right"> <div class="batch-box-right">
<el-form <el-form
...@@ -783,6 +820,21 @@ ...@@ -783,6 +820,21 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </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> </el-form>
</div> </div>
</div> </div>
...@@ -976,9 +1028,10 @@ export default { ...@@ -976,9 +1028,10 @@ export default {
this.plszMsg.LimitBuyOrderNum = -1; this.plszMsg.LimitBuyOrderNum = -1;
} }
} }
let mall_userInfo = JSON.parse(localStorage.mall_userInfo); let mall_userInfo = JSON.parse(localStorage.mall_userInfo);
if (mall_userInfo.TenantId == 1 && mall_userInfo.MallBaseId == 1) { if (mall_userInfo.TenantId == 1 && mall_userInfo.MallBaseId == 1) {
if (this.plszMsg.SupplierId == "") { if (this.plszMsg.SupplierId == "" && this.plszMsg.Type !== 13) {
this.Error("请选择供应商!"); this.Error("请选择供应商!");
return; return;
} else { } else {
...@@ -1292,6 +1345,22 @@ export default { ...@@ -1292,6 +1345,22 @@ export default {
}); });
window.open(routeData.href, "_blank"); 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> </script>
...@@ -1386,4 +1455,9 @@ export default { ...@@ -1386,4 +1455,9 @@ export default {
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.goodsList .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
</style> </style>
...@@ -768,8 +768,8 @@ export default new Router({ ...@@ -768,8 +768,8 @@ export default new Router({
name: 'firstStoreApply', name: 'firstStoreApply',
component: resolve => require(['@/components/tradePavilion/firstStoreApply'], resolve), component: resolve => require(['@/components/tradePavilion/firstStoreApply'], resolve),
}, },
//贸易管理--心愿列表 //贸易管理--心愿列表
{ {
path: '/wishList', path: '/wishList',
name: 'wishList', name: 'wishList',
component: resolve => require(['@/components/tradePavilion/wishList'], resolve), component: resolve => require(['@/components/tradePavilion/wishList'], resolve),
...@@ -1064,6 +1064,12 @@ export default new Router({ ...@@ -1064,6 +1064,12 @@ export default new Router({
name: 'goodsListEdit', name: 'goodsListEdit',
component: resolve => require(['@/components/CommodityMan/goodsListEdit'], resolve), component: resolve => require(['@/components/CommodityMan/goodsListEdit'], resolve),
}, },
// 商品管理 分销平台
{
path: '/distributionGoodsList',
name: 'distributionGoodsList',
component: resolve => require(['@/components/CommodityMan/distributionGoodsList'], resolve),
},
// 商品管理 批量导入 // 商品管理 批量导入
{ {
path: '/bulkImport', path: '/bulkImport',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment