Commit d8e5fa34 by chenwq

商品编辑,bug修复

1 parent d5635299
......@@ -168,6 +168,15 @@ html {
border: 0;
}
.marketing .table-show-img {
width: 160px;
height: 160px;
}
.marketing .img-w-100 {
width: 100%;
}
.marketing .img-60 {
width: 60px;
height: 60px;
......
......@@ -17,10 +17,10 @@
<!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="logoUrl" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
<img class="img-60" :src="scope.scope.logoUrl" />
</div>
<div slot="showImageUrl" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
<img class="img-60" :src="scope.scope.showImageUrl" />
</div>
<!-- <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLButton type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
......
......@@ -499,7 +499,7 @@ export default {
// specificationDetailList: [],
retailPrice: '',
originalPrice: '',
takeType: '1',
takeType: '0',
takeFee: '',
supplyPrice: '',
memberPrice: '',
......@@ -672,8 +672,8 @@ export default {
editRule: {
retailPrice: [{ required: true, message: '请输入零售价', trigger: 'change' }],
originalPrice: [{ required: true, message: '请输入划线价', trigger: 'change' }],
takeFee: [{ required: false, message: '请输入分润比例', trigger: 'change' }],
supplyPrice: [{ required: true, message: '请输入供货价', trigger: 'change' }],
takeFee: [{ required: true, message: '请输入分润比例', trigger: 'change' }],
supplyPrice: [{ required: false, message: '请输入供货价', trigger: 'change' }],
goodsStock: [{ required: true, message: '请输入库存', trigger: 'change' }]
},
editFormData: [
......@@ -1382,6 +1382,7 @@ export default {
this.editForm.goodsDescList.length && this.recoveryDescribe()
this.editForm.supplyMerchantList.length && this.recoveryMerchantList()
this.handleTypeChange(this.editForm.deliveryType)
this.handleTakeTypeChange(this.editForm.takeType)
this.getWechatImgList()
// console.log(this.editForm)
this.$nextTick(() => {
......
......@@ -15,8 +15,13 @@
<!-- 表格区域 开始 -->
<GLTable ref="takeGoodRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="goodsImage" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goods.goodsImage" />
<div slot="goodsImage" slot-scope="scope">
<el-tooltip placement="top" trigger="hover" popper-class="table-show-img" effect="light" :visible-arrow="false">
<div slot="content" class="table-show-img">
<img class="img-w-100" :src="scope.scope.goods.goodsImage" />
</div>
<img class="img-60" :src="scope.scope.goods.goodsImage" />
</el-tooltip>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="!scope.scope.taked" type="text" @click="handleSingleTakeGood(scope.scope)">带货</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!