Commit 7acb4b59 authored by zhengke's avatar zhengke

修改

parent d48ae462
...@@ -12,6 +12,15 @@ ...@@ -12,6 +12,15 @@
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>选择分类</span> <span>选择分类</span>
</div> </div>
<el-row>
<el-col :span="12">
<el-form-item label="上架版面">
<el-radio-group v-model="addMsg.GoodsPageType" @change="getTree()">
<el-radio v-for="(item,index) in My_cateList" :key="index" :label="item.Id">{{item.Name}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="商品分类"> <el-form-item label="商品分类">
...@@ -54,6 +63,11 @@ ...@@ -54,6 +63,11 @@
<el-input v-model="addMsg.SubName" size="small" placeholder="请输入内容" maxlength="100" show-word-limit> <el-input v-model="addMsg.SubName" size="small" placeholder="请输入内容" maxlength="100" show-word-limit>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="备注">
<el-input v-model="addMsg.Remark" type="textarea" placeholder="请输入内容" :rows="4">
</el-input>
</el-form-item>
<el-form-item label="供应商" prop="SupplierId"> <el-form-item label="供应商" prop="SupplierId">
<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'>
...@@ -1172,7 +1186,9 @@ ...@@ -1172,7 +1186,9 @@
ShelvesDate: '', //自动上架时间 ShelvesDate: '', //自动上架时间
DownDate: '', //自动下架时间 DownDate: '', //自动下架时间
SendArea: '', //发货仓库 SendArea: '', //发货仓库
VideoType: 1 //视频填充方式(0默认,1-填充) VideoType: 1, //视频填充方式(0默认,1-填充)
GoodsPageType:0, //分类 0全部 1商城 2校园
Remark:'' //备注
}, },
predefineColors: [ predefineColors: [
'#000000', '#000000',
...@@ -1277,6 +1293,7 @@ ...@@ -1277,6 +1293,7 @@
options: [], options: [],
FXlevelList: [], FXlevelList: [],
giveDate: false, giveDate: false,
My_cateList:[]//分类类型
}; };
}, },
created() { created() {
...@@ -1294,7 +1311,8 @@ ...@@ -1294,7 +1311,8 @@
this.getDistributor(); this.getDistributor();
this.gethuiyList(); this.gethuiyList();
this.getSupplierList() this.getSupplierList()
this.getFXDGradeList() this.getFXDGradeList();
this.getCateList();
}, },
mounted() { mounted() {
this.$refs.ue.loadUe(); this.$refs.ue.loadUe();
...@@ -2078,7 +2096,8 @@ ...@@ -2078,7 +2096,8 @@
Tier: 0, Tier: 0,
ParentId: 0, ParentId: 0,
Enabled: 1, Enabled: 1,
IsShow: 1 IsShow: 1,
CategoryPageType:this.addMsg.GoodsPageType
}; };
this.apipost("/api/product/GetProductCategoryTreeList", msg1, res => { this.apipost("/api/product/GetProductCategoryTreeList", msg1, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -2399,6 +2418,17 @@ ...@@ -2399,6 +2418,17 @@
// } // }
// } // }
// }) // })
},
//获取上架版面下拉
getCateList(){
this.apipost("/api/Product/GoodsPageTypeEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.My_cateList=res.data.data;
console.log(res,'热身赛所');
}else{
this.Error(res.data.message);
}
});
} }
} }
}; };
......
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