Commit fcc5c96d authored by 黄奎's avatar 黄奎

页面修改

parent 5678ab8d
...@@ -128,9 +128,7 @@ ...@@ -128,9 +128,7 @@
<i class="elzk el-tooltip el-icon-info"></i> <i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip> </el-tooltip>
</template> </template>
<goodsSpe v-show="IsShowSpec" :SpecList="SpecificationList"> <goodsSpe v-show="IsShowSpec" :SpecList="SpecificationList" :SpecPriceList="SpecificationPriceList"></goodsSpe>
</goodsSpe>
</el-form-item> </el-form-item>
<el-form-item label="商品货号"> <el-form-item label="商品货号">
<el-input v-model="addMsg.Goods_no" size="small" placeholder="请输入内容" class="input-with-select"> <el-input v-model="addMsg.Goods_no" size="small" placeholder="请输入内容" class="input-with-select">
...@@ -435,6 +433,7 @@ ...@@ -435,6 +433,7 @@
}, },
IsShowSpec:false,//是否显示规格 IsShowSpec:false,//是否显示规格
SpecificationList:[],//规格列表 SpecificationList:[],//规格列表
SpecificationPriceList:[],//规格价格列表
rules: { rules: {
}, },
...@@ -483,6 +482,7 @@ ...@@ -483,6 +482,7 @@
this.addMsg.Goods_no=chooseGoods[0].GoodsNumbers; this.addMsg.Goods_no=chooseGoods[0].GoodsNumbers;
this.addMsg.Goods_weight=chooseGoods[0].GoodsWeight; this.addMsg.Goods_weight=chooseGoods[0].GoodsWeight;
this.SpecificationList=chooseGoods[0].SpecificationList; this.SpecificationList=chooseGoods[0].SpecificationList;
this.SpecificationPriceList=chooseGoods[0].SpecificationPriceList;
this.IsShowSpec=true; this.IsShowSpec=true;
} }
this.$refs.choiceGood.toggleSelection(); this.$refs.choiceGood.toggleSelection();
......
...@@ -125,9 +125,8 @@ ...@@ -125,9 +125,8 @@
<i @click="Deleteggz(item, index, index2)" class="el-icon-error close"></i> <i @click="Deleteggz(item, index, index2)" class="el-icon-error close"></i>
<div v-if="index == 0 && item.EnabledImage == 1" flex="cross:center main:center" class="img-box"> <div v-if="index == 0 && item.EnabledImage == 1" flex="cross:center main:center" class="img-box">
<div class="attr-jt"></div> <div class="attr-jt"></div>
<div v-if="item2.Image == ''" @click=" <div v-if="item2.Image == ''" @click=" openggImg(item, index, item2, index2) "
openggImg(item, index, item2, index2) class="app-attachment">
" class="app-attachment">
<div style="line-height: normal; display: inline-block;"> <div style="line-height: normal; display: inline-block;">
<span>+添加图片</span> <span>+添加图片</span>
</div> </div>
...@@ -135,14 +134,12 @@ ...@@ -135,14 +134,12 @@
<div v-if="item2.Image != ''" class="el-image" style="height: 88px; width: 88px;"> <div v-if="item2.Image != ''" class="el-image" style="height: 88px; width: 88px;">
<img :src="item2.Image" style="width:100%;height:100%" /> <img :src="item2.Image" style="width:100%;height:100%" />
</div> </div>
<span v-if="item2.Image != ''" @click=" <span v-if="item2.Image != ''" @click=" DeleteImageUrl(item, index, item2, index2) "
DeleteImageUrl(item, index, item2, index2) class="el-icon-error close"></span>
" class="el-icon-error close"></span>
<div v-if="item2.Image != ''" style="position: absolute;"> <div v-if="item2.Image != ''" style="position: absolute;">
<div class="app-attachment"> <div class="app-attachment">
<el-button @click=" <el-button @click="openggImg(item, index, item2, index2)" type="primary"
openggImg(item, index, item2, index2) size="small">替换</el-button>
" type="primary" size="small">替换</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -263,7 +260,7 @@ ...@@ -263,7 +260,7 @@
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
export default { export default {
props: ['SpecList'], props: ['SpecList',"SpecPriceList"],
components: { components: {
ChooseImg ChooseImg
}, },
...@@ -293,7 +290,19 @@ ...@@ -293,7 +290,19 @@
}; };
}, },
created() { created() {
console.log("SpecificationList",this.SpecificationList);
},
watch: {
'SpecList': {
handler: function (val, oldval) {
this.SpecificationList = JSON.parse(JSON.stringify(val));
},
},
'SpecPriceList': {
handler: function (val, oldval) {
this.SpecificationPriceList = JSON.parse(JSON.stringify(val));
},
},
}, },
methods: { methods: {
// 添加规格模板 // 添加规格模板
......
...@@ -92,10 +92,10 @@ ...@@ -92,10 +92,10 @@
</div> </div>
</div> </div>
</div> </div>
<div flex="cross:center" style="margin-top:20px;display:none"> <div flex="cross:center" style="margin-top:20px ">
<h3 class="plugin_ListTitle">营销工具</h3> <h3 class="plugin_ListTitle">营销工具</h3>
</div> </div>
<div flex="dir:left" style="display:none" class="plugin-list el-row"> <div flex="dir:left" class="plugin-list el-row">
<div class="el-col el-col-24 el-col-xs-24 el-col-sm-12 el-col-md-8 el-col-lg-6 el-col-xl-4" @click="goDiyCenter('pintuanMain')"> <div class="el-col el-col-24 el-col-xs-24 el-col-sm-12 el-col-md-8 el-col-lg-6 el-col-xl-4" @click="goDiyCenter('pintuanMain')">
<div flex="dir:left box:first" class="plugin-item"> <div flex="dir:left box:first" class="plugin-item">
<div style="padding-right: 12px;"> <div style="padding-right: 12px;">
......
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