Commit 56e0e0b9 by LJM

展示可上传的品牌

parent 67af80b3
Showing with 30 additions and 2 deletions
......@@ -57,7 +57,15 @@
<!--导入数据确认-->
<el-dialog title="导入数据确认" :close-on-click-modal="false" :visible.sync="dialogVisible" width="700px">
<div class="dialog-text">
<p class="tt">
<p class="tt row" style="margin-bottom: 5px;">
<span style="white-space: nowrap">主营品牌:</span>
<span style="color: #606266;font-size: 12px;font-weight: normal;">{{brand}}{{brand}}{{brand}}</span>
</p>
<p style="color: #ff7e11;font-size: 12px;margin-bottom: 5px;">
上传型号的品牌,必须是以上的主营品牌才允许上传成功<br/>
如果品牌没在“主营品牌”中,则会上传失败,可联系“{{ sku_user_name }}”添加上主营品牌后,重新上传
</p>
<p class="tt" style="font-size: 13px;">
上传的型号经由猎芯审核通过后,会展示在【猎芯网】进行售卖,并参与【猎芯询报价】系统自动推送询价<br/>
您此次上传的型号是否要对已在【猎芯网】展示的型号进行覆盖或是新增?
</p>
......@@ -93,6 +101,8 @@ export default {
name: "enter",
data() {
return {
brand:[],
sku_user_name:'',
total: 0,
limit: 10,
page: 1,
......@@ -124,6 +134,25 @@ export default {
methods: {
importChange() {
this.dialogVisible = true;
this.getSupplierBrand();
},
/**
* 获取品牌数据
*/
getSupplierBrand(){
this.$http('get', "/api/system/getSupplierBrand", {}).then(res => {
if (res.code === 0) {
if(res.data.brand.length > 0){
this.brand=res.data.brand.join(',');
this.sku_user_name=res.data.sku_user_name;
}
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
})
},
/**
* 获取数据
......@@ -260,7 +289,6 @@ export default {
.dialog-text .tt {
color: #333;
font-weight: bold;
line-height: 25px;
margin-bottom: 16px;
}
......
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 sign in to comment