Commit c1ae7e4f authored by 黄奎's avatar 黄奎

页面修改

parent 71cd23e5
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
show-word-limit :rows="4"> show-word-limit :rows="4">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="供应商" prop="SupplierId" v-if="currentUserInfo.IsKorea==0"> <el-form-item label="供应商" prop="SupplierId" v-if="currentUserInfo.IsKorea==0">
<el-select class="w150" style="margin-right: 10px;" v-model="SupplierId" size="small" <el-select class="w150" style="margin-right: 10px;" v-model="SupplierId" size="small"
placeholder="请选择" @change='changeSupplier'> placeholder="请选择" @change='changeSupplier'>
<el-option v-for="item in options" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in options" :key="item.ID" :label="item.Name" :value="item.ID">
...@@ -101,14 +101,14 @@ ...@@ -101,14 +101,14 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="商品视频" v-if="currentUserInfo.IsKorea==0"> <el-form-item label="商品视频" v-if="currentUserInfo.IsKorea==0">
<el-input v-model="addMsg.VideoAddress" size="small" placeholder="请输入内容"> <el-input v-model="addMsg.VideoAddress" size="small" placeholder="请输入内容">
<el-button @click="changeState1 = true" slot="append">添加视频</el-button> <el-button @click="changeState1 = true" slot="append">添加视频</el-button>
</el-input> </el-input>
<a v-if="addMsg.VideoAddress != ''" class="blue noline" :href="addMsg.VideoAddress" <a v-if="addMsg.VideoAddress != ''" class="blue noline" :href="addMsg.VideoAddress"
target="_blank">视频链接</a> target="_blank">视频链接</a>
</el-form-item> </el-form-item>
<el-form-item label="视频填充方式" v-if="currentUserInfo.IsKorea==0"> <el-form-item label="视频填充方式" v-if="currentUserInfo.IsKorea==0">
<el-tooltip class="item" effect="dark" content="建议横屏使用默认,竖屏使用填充" placement="top" <el-tooltip class="item" effect="dark" content="建议横屏使用默认,竖屏使用填充" placement="top"
style="position: absolute;left: -22px;top:12px"> style="position: absolute;left: -22px;top:12px">
<i class="el-tooltip el-icon-info"></i> <i class="el-tooltip el-icon-info"></i>
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<span class="point" @click="imgDig = true">查看图例</span> <span class="point" @click="imgDig = true">查看图例</span>
</p> </p>
</el-form-item> </el-form-item>
<el-form-item label="直播商品" v-if="currentUserInfo.IsKorea==0"> <el-form-item label="直播商品" v-if="currentUserInfo.IsKorea==0">
<el-switch v-model="addMsg.IsLiveGoods" active-color="#409EFF" :active-value="1" <el-switch v-model="addMsg.IsLiveGoods" active-color="#409EFF" :active-value="1"
:inactive-value="2"> :inactive-value="2">
</el-switch> </el-switch>
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
:inactive-value="2"> :inactive-value="2">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item label="是否可开发票" v-if="isShowTax" > <el-form-item label="是否可开发票" v-if="isShowTax">
<el-switch v-model="addMsg.IsNoTax" active-color="#409EFF" :active-value="0" :inactive-value="1"> <el-switch v-model="addMsg.IsNoTax" active-color="#409EFF" :active-value="0" :inactive-value="1">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
<el-card style="margin-top:20px" shadow="never" v-if="currentUserInfo.IsKorea==0"> <el-card style="margin-top:20px" shadow="never" v-if="currentUserInfo.IsKorea==0">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>价格库存</span> <span>价格库存</span>
</div> </div>
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
<el-card style="margin-top:20px" shadow="never" v-if="currentUserInfo.IsKorea==0"> <el-card style="margin-top:20px" shadow="never" v-if="currentUserInfo.IsKorea==0">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>商品服务</span> <span>商品服务</span>
</div> </div>
...@@ -523,7 +523,7 @@ ...@@ -523,7 +523,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
<el-card style="margin-top:20px" shadow="never" v-if="currentUserInfo.IsKorea==0"> <el-card style="margin-top:20px" shadow="never" v-if="currentUserInfo.IsKorea==0">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>营销设置</span> <span>营销设置</span>
</div> </div>
...@@ -1179,7 +1179,7 @@ ...@@ -1179,7 +1179,7 @@
GoodsCountry: "", //商品国家 GoodsCountry: "", //商品国家
FatCode: "", //海关代码/关税率 FatCode: "", //海关代码/关税率
GoodsUrl: "", //商品官网 GoodsUrl: "", //商品官网
IsKorea:0,//是否为韩国馆 IsKorea: 0, //是否为韩国馆
}, },
predefineColors: [ predefineColors: [
'#000000', '#000000',
...@@ -1287,7 +1287,7 @@ ...@@ -1287,7 +1287,7 @@
My_cateList: [], //分类类型 My_cateList: [], //分类类型
isShowPlat: true, //是否显示上架版面和分类 isShowPlat: true, //是否显示上架版面和分类
isShowTax: false, //赞羊显示是否可开发票 isShowTax: false, //赞羊显示是否可开发票
currentUserInfo: {},//当前登录用户 currentUserInfo: {}, //当前登录用户
}; };
}, },
created() { created() {
...@@ -1298,7 +1298,7 @@ ...@@ -1298,7 +1298,7 @@
this.FxState = this.$route.query.FxState; this.FxState = this.$route.query.FxState;
} }
this.currentUserInfo = JSON.parse(localStorage.mall_userInfo); this.currentUserInfo = JSON.parse(localStorage.mall_userInfo);
this.addMsg.IsKorea=this.currentUserInfo.IsKorea; this.addMsg.IsKorea = this.currentUserInfo.IsKorea;
this.getService(); this.getService();
this.getRule(); this.getRule();
this.getSpeciList(); this.getSpeciList();
...@@ -1804,6 +1804,7 @@ ...@@ -1804,6 +1804,7 @@
}); });
}, },
Save(formName) { Save(formName) {
this.addMsg.IsKorea = this.currentUserInfo.IsKorea;
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
let content = this.$refs.ue.getUEContent(); let content = this.$refs.ue.getUEContent();
...@@ -1818,7 +1819,8 @@ ...@@ -1818,7 +1819,8 @@
if (this.SpecificationList.length == 0) { if (this.SpecificationList.length == 0) {
this.addMsg.IsCustomSpecification = 2; this.addMsg.IsCustomSpecification = 2;
} }
if (this.addMsg.IsKorea==0 && this.addMsg.IsCustomSpecification != 1 && this.SpecificationList.length == 0) { if (this.addMsg.IsKorea == 0 && this.addMsg.IsCustomSpecification != 1 && this.SpecificationList
.length == 0) {
this.Error("请选择规格项目!"); this.Error("请选择规格项目!");
return return
} }
...@@ -1839,8 +1841,9 @@ ...@@ -1839,8 +1841,9 @@
this.addMsg.MemberPriceList = this.memberList2; this.addMsg.MemberPriceList = this.memberList2;
this.addMsg.MemberPriceTreeList = this.memberList2; this.addMsg.MemberPriceTreeList = this.memberList2;
} }
if (this.addMsg.IsKorea==0 && this.currentUserInfo.TenantId == 1 &&this.currentUserInfo.MallBaseId == 1 && this.SupplierId == '') { if (this.addMsg.IsKorea == 0 && this.currentUserInfo.TenantId == 1 && this.currentUserInfo.MallBaseId ==
1 && this.SupplierId == '') {
this.Error("请选择供应商!"); this.Error("请选择供应商!");
return return
} else { } else {
......
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