提交 428411d9 authored 作者: huaxinzhu's avatar huaxinzhu

样式;路由调整

上级 ea451cb6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="goods-after-sale"> <div class="goods-after-sale">
<el-card class="box-card" ref="paramsvalue"> <el-card class="box-card" ref="paramsvalue">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>商品参数</span> <span style="font-size:13px;padding-left:20px;">参数名称/参数值</span> <span>商品参数</span> <span style="font-size:13px;padding-left:20px;font-weight: 400;">参数名称/参数值</span>
</div> </div>
<draggable :list="goodsAfterSaleForm.params" group="article" class="dragArea"> <draggable :list="goodsAfterSaleForm.params" group="article" class="dragArea">
<div v-for="(element,index) in goodsAfterSaleForm.params" :key="index" class="list-complete-item"> <div v-for="(element,index) in goodsAfterSaleForm.params" :key="index" class="list-complete-item">
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
v-model="element.title" v-model="element.title"
maxlength="15" maxlength="15"
show-word-limit show-word-limit
size="small"
></el-input> ></el-input>
</el-col> </el-col>
<el-col :span="12" style="height:50px;"> <el-col :span="12" style="height:50px;">
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
v-model="element.value" v-model="element.value"
maxlength="60" maxlength="60"
show-word-limit show-word-limit
size="small"
></el-input> ></el-input>
</el-col> </el-col>
<el-col :span="4" style="height:50px;"> <el-col :span="4" style="height:50px;">
...@@ -37,7 +39,7 @@ ...@@ -37,7 +39,7 @@
</div> </div>
</draggable> </draggable>
<el-button style="margin-left:50px;margin-bottom:30px;" type="primary" @click="addparameter">添加参数</el-button> <el-button style="margin-left:50px;margin-bottom:30px;" type="primary" size="small" @click="addparameter">添加参数</el-button>
</el-card> </el-card>
<el-form ref="goodsAfterSaleForm" :model="goodsAfterSaleForm" :rules="goodsAfterSaleRules" label-width="150px" size="small"> <el-form ref="goodsAfterSaleForm" :model="goodsAfterSaleForm" :rules="goodsAfterSaleRules" label-width="150px" size="small">
<el-card class="box-card" ref="salesvalue"> <el-card class="box-card" ref="salesvalue">
...@@ -282,9 +284,13 @@ ...@@ -282,9 +284,13 @@
} }
.box-card{ .box-card{
margin-bottom: 20px; margin-bottom: 20px;
//padding: 10px;
} }
.box-card /deep/ .el-card__header{ ::v-deep .box-card .el-card__header{
background: #F1F1F6; border-bottom: none;
font-size: 18px;
font-weight: 500;
padding-left: 20px;
} }
.curspor{ .curspor{
font-size: 16px; font-size: 16px;
......
...@@ -116,11 +116,12 @@ export default { ...@@ -116,11 +116,12 @@ export default {
<style scoped> <style scoped>
.goods-img { .goods-img {
padding: 20px; padding: 20px;
background-color: #fff;
} }
/deep/ .w-e-text-container { ::v-deep .w-e-text-container {
z-index: 1000 !important; z-index: 1000 !important;
} }
/deep/ .w-e-toolbar { ::v-deep .w-e-toolbar {
z-index: 1001 !important; z-index: 1001 !important;
} }
</style> </style>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</el-select> </el-select>
<el-link class="edit-type-span el-icon-plus" type="primary" :underline="false" @click="toPage('brand')">新增品牌</el-link> <el-link class="edit-type-span el-icon-plus" type="primary" :underline="false" @click="toPage('brand')">新增品牌</el-link>
</el-form-item> </el-form-item>
<el-form-item label="计量单位:" prop="metering_unit"> <el-form-item label="计量单位:">
<el-select v-model.trim="goodsInfoForm.metering_unit" placeholder="请选择商品计量单位" style="width: 420px;"> <el-select v-model.trim="goodsInfoForm.metering_unit" placeholder="请选择商品计量单位" style="width: 420px;">
<el-option v-for="item in unitList" :key="item.id" :label="item.title" :value="item.id"></el-option> <el-option v-for="item in unitList" :key="item.id" :label="item.title" :value="item.id"></el-option>
</el-select> </el-select>
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
// goods_des: [{required: true, validator: goodsDecCheck, trigger: 'blur'}], // goods_des: [{required: true, validator: goodsDecCheck, trigger: 'blur'}],
producing_area_id:[{required: true, message: '请选择商品产地', trigger: 'change'}], producing_area_id:[{required: true, message: '请选择商品产地', trigger: 'change'}],
deliver_area_id: [{ required: true, message: '请选择商品发货地', trigger: 'change' }], deliver_area_id: [{ required: true, message: '请选择商品发货地', trigger: 'change' }],
metering_unit: [{ required: true, message: '商品单位不能为空', trigger: 'blur' }], // metering_unit: [{ required: true, message: '商品单位不能为空', trigger: 'change' }],
goods_brand: [{ required: true, message: '请选择商品品牌', trigger: 'change' }], goods_brand: [{ required: true, message: '请选择商品品牌', trigger: 'change' }],
imgs: [{ required: true, message: '请上传商品图片', validator: categoryIdCheck }] imgs: [{ required: true, message: '请上传商品图片', validator: categoryIdCheck }]
}, },
...@@ -868,15 +868,15 @@ ...@@ -868,15 +868,15 @@
break; break;
} }
case 'group' : { case 'group' : {
this.$router.push({ path: '/system/setup/commodityGroup' }); this.$router.push({ path: '/system/settings/commodityGroup' });
break; break;
} }
case 'supplier' : { case 'supplier' : {
this.$router.push({ path: '/system/supplier' }); this.$router.push({ path: '/system/supplier/supplier' });
break; break;
} }
case 'warehouse' : { case 'warehouse' : {
this.$router.push({ path: '/system/warehouse' }); this.$router.push({ path: '/system/warehouse/wareHouse' });
break; break;
} }
} }
...@@ -928,7 +928,8 @@ ...@@ -928,7 +928,8 @@
} }
.goods-info { .goods-info {
padding: 20px; padding: 20px 0;
background-color: #fff;
/*margin-top: 18px;*/ /*margin-top: 18px;*/
} }
......
...@@ -860,6 +860,7 @@ p { ...@@ -860,6 +860,7 @@ p {
} }
.goods-parameter { .goods-parameter {
padding: 20px; padding: 20px;
background-color: #fff;
} }
.goods-parameter-spe { .goods-parameter-spe {
......
...@@ -331,7 +331,7 @@ export default { ...@@ -331,7 +331,7 @@ export default {
/** 规格参数 变化时,对数据进行处理后,再进行笛卡尔积算法,最终计算出商品售价的数据 */ /** 规格参数 变化时,对数据进行处理后,再进行笛卡尔积算法,最终计算出商品售价的数据 */
specCalcResult() { specCalcResult() {
debugger // debugger
// 商品规格原始数据 // 商品规格原始数据
let specs_group = [] let specs_group = []
let orgSpeData = this.deepClone(this.speData); let orgSpeData = this.deepClone(this.speData);
...@@ -508,6 +508,7 @@ export default { ...@@ -508,6 +508,7 @@ export default {
<style scoped> <style scoped>
.goods-specifications { .goods-specifications {
padding: 20px; padding: 20px;
background-color: #fff;
/*margin-top: 18px;*/ /*margin-top: 18px;*/
} }
.spe-con { .spe-con {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</el-card> </el-card>
<!-- 选择商品类目 end --> <!-- 选择商品类目 end -->
<!-- 添加商品 start --> <!-- 添加商品 start -->
<el-card class="box-card good-details-body" v-if="isShowGoodsDetails" v-loading="goodsLoading"> <div class="box-card good-details-body" v-if="isShowGoodsDetails" v-loading="goodsLoading">
<div class="floor-nav" id="floorNavList"> <div class="floor-nav" id="floorNavList">
<ul class="nav-list"> <ul class="nav-list">
<li class="nav-list-item" :class="{'floor-item-active': isFIActive === index}" v-for="(item, index) in floorNav" :key="item.id" @click="setFloorNavMountClick(index)">{{ item.name }}</li> <li class="nav-list-item" :class="{'floor-item-active': isFIActive === index}" v-for="(item, index) in floorNav" :key="item.id" @click="setFloorNavMountClick(index)">{{ item.name }}</li>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<div class="submit-cont"> <div class="submit-cont">
<el-button type="primary" style="padding: 10px 30px;" @click="save" v-preventReClick>提 交</el-button> <el-button type="primary" style="padding: 10px 30px;" @click="save" v-preventReClick>提 交</el-button>
</div> </div>
</el-card> </div>
<!-- 添加商品 end --> <!-- 添加商品 end -->
<!-- 查看各类价格说明 --> <!-- 查看各类价格说明 -->
<el-dialog <el-dialog
...@@ -257,6 +257,8 @@ ...@@ -257,6 +257,8 @@
}); });
} }
// console.log(260,this.goodsinfodata.producing_area_id,this.goodsinfodata.deliver_area_id)
// 商品规格, 售价由规格决定 // 商品规格, 售价由规格决定
if(res.data.specs && res.data.specs.length > 0) { if(res.data.specs && res.data.specs.length > 0) {
this.specificationsdata = res.data.specs; this.specificationsdata = res.data.specs;
...@@ -991,7 +993,6 @@ ...@@ -991,7 +993,6 @@
</script> </script>
<style scoped lang="scss" type="text/css"> <style scoped lang="scss" type="text/css">
.goods-all { .goods-all {
height: 100%; height: 100%;
padding: 20px; padding: 20px;
...@@ -1002,7 +1003,7 @@ ...@@ -1002,7 +1003,7 @@
overflow: auto; overflow: auto;
} }
/deep/.goods-all .el-card .el-card__body{ ::v-deep .goods-all .el-card .el-card__body{
height:100%; height:100%;
overflow: auto; overflow: auto;
} }
...@@ -1011,15 +1012,15 @@ ...@@ -1011,15 +1012,15 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
/* el-card title hxz 样式统一 */ /* el-card title 样式统一 */
.card-header-title { .card-header-title {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: start; justify-content: start;
align-items: center; align-items: center;
font-size: 16px; font-size: 18px;
color: #333; color: #333;
font-weight: 400; font-weight: 500;
height: 24px; height: 24px;
} }
.blue-block-goods { .blue-block-goods {
...@@ -1044,24 +1045,24 @@ ...@@ -1044,24 +1045,24 @@
margin: 25px 0; margin: 25px 0;
} }
/*------------ 联级面板样式重置 start ------------*/ /*------------ 联级面板样式重置 start ------------*/
/deep/.el-cascader-panel.is-bordered { ::v-deep .el-cascader-panel.is-bordered {
border: none; border: none;
} }
/deep/.el-cascader-menu { ::v-deep .el-cascader-menu {
min-width: 280px; min-width: 280px;
border: none; border: none;
box-shadow: 0px 4px 9px 1px rgba(51, 51, 51, 0.09); box-shadow: 0px 4px 9px 1px rgba(51, 51, 51, 0.09);
border-radius: 2px; border-radius: 2px;
overflow: hidden; overflow: hidden;
} }
/deep/.el-cascader-menu__wrap { ::v-deep .el-cascader-menu__wrap {
width: 280px; width: 280px;
height: 500px; height: 500px;
overflow: auto; overflow: auto;
margin: 5px 0!important; margin: 5px 0!important;
} }
/* 很重要,不要问我为什么 */ /* 很重要,不要问我为什么 */
/deep/.el-scrollbar:hover>.el-scrollbar__bar, /deep/.el-scrollbar:active>.el-scrollbar__bar, /deep/.el-scrollbar:focus>.el-scrollbar__bar { ::v-deep .el-scrollbar:hover>.el-scrollbar__bar, ::v-deep .el-scrollbar:active>.el-scrollbar__bar, ::v-deep .el-scrollbar:focus>.el-scrollbar__bar {
opacity: 0; opacity: 0;
} }
/*------------ 联级面板样式重置 end ---------------*/ /*------------ 联级面板样式重置 end ---------------*/
...@@ -1074,6 +1075,7 @@ ...@@ -1074,6 +1075,7 @@
/* 电梯效果 样式 */ /* 电梯效果 样式 */
.floor-nav { .floor-nav {
width: 100%; width: 100%;
background-color: #fff;
} }
.floor-nav .nav-list { .floor-nav .nav-list {
padding: 0; padding: 0;
...@@ -1087,7 +1089,8 @@ ...@@ -1087,7 +1089,8 @@
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
padding: 0 25px 15px; padding: 15px 25px 15px;
//margin: 0 5px;
list-style: none; list-style: none;
vertical-align: middle; vertical-align: middle;
align-self: center; align-self: center;
...@@ -1102,7 +1105,7 @@ ...@@ -1102,7 +1105,7 @@
} }
.floor-item-box-title { .floor-item-box-title {
background: #F1F1F6; background-color: #fff;
height: 45px; height: 45px;
} }
.blue-block-goods-title { .blue-block-goods-title {
...@@ -1111,9 +1114,9 @@ ...@@ -1111,9 +1114,9 @@
.good-details-body { .good-details-body {
height: 100%; height: 100%;
} }
/deep/.good-details-body .el-card__body { ::v-deep .good-details-body .el-card__body {
height: 100%; height: 100%;
padding: 15px 20px 0px 20px; padding: 15px 0;
overflow: hidden; overflow: hidden;
} }
...@@ -1124,24 +1127,33 @@ ...@@ -1124,24 +1127,33 @@
.floor-item { .floor-item {
padding: 0; padding: 0;
margin: 20px; margin: 20px 15px 0 0;
color: #333; color: #333;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0 ,0.1); box-shadow: 0 2px 12px 0 rgba(0, 0, 0 ,0.1);
} }
.submit-type-con { .submit-type-con {
width: 236px; height: 60px;
margin: 0 auto 20px; width: calc(100% - 15px);
padding: 0 0 20px; background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
margin-bottom: 20px;
border-radius: 4px;
} }
.submit-cont { .submit-cont {
width: calc(100% + 40px); //width: calc(100% + 40px);
width: calc(100% - 27px);
background-color: #fff;
padding: 12px 0 8px; padding: 12px 0 8px;
margin-left: -20px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
/*align-content: center;*/ margin-left: 0;
border-radius: 4px;
box-shadow: 0 -8px 9px 1px rgba(51, 51, 51, 0.06); box-shadow: 0 -8px 9px 1px rgba(51, 51, 51, 0.06);
} }
.edit-type-span { .edit-type-span {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论