Commit d8e5fa34 by chenwq

商品编辑,bug修复

1 parent d5635299
...@@ -168,6 +168,15 @@ html { ...@@ -168,6 +168,15 @@ html {
border: 0; border: 0;
} }
.marketing .table-show-img {
width: 160px;
height: 160px;
}
.marketing .img-w-100 {
width: 100%;
}
.marketing .img-60 { .marketing .img-60 {
width: 60px; width: 60px;
height: 60px; height: 60px;
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <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"> <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>
<div slot="showImageUrl" class="table-image" slot-scope="scope"> <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>
<!-- <div class="table-btns" slot="auth-button" slot-scope="scope"> <!-- <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLButton type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton> <GLButton type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
......
...@@ -499,7 +499,7 @@ export default { ...@@ -499,7 +499,7 @@ export default {
// specificationDetailList: [], // specificationDetailList: [],
retailPrice: '', retailPrice: '',
originalPrice: '', originalPrice: '',
takeType: '1', takeType: '0',
takeFee: '', takeFee: '',
supplyPrice: '', supplyPrice: '',
memberPrice: '', memberPrice: '',
...@@ -672,8 +672,8 @@ export default { ...@@ -672,8 +672,8 @@ export default {
editRule: { editRule: {
retailPrice: [{ required: true, message: '请输入零售价', trigger: 'change' }], retailPrice: [{ required: true, message: '请输入零售价', trigger: 'change' }],
originalPrice: [{ required: true, message: '请输入划线价', trigger: 'change' }], originalPrice: [{ required: true, message: '请输入划线价', trigger: 'change' }],
takeFee: [{ required: false, message: '请输入分润比例', trigger: 'change' }], takeFee: [{ required: true, message: '请输入分润比例', trigger: 'change' }],
supplyPrice: [{ required: true, message: '请输入供货价', trigger: 'change' }], supplyPrice: [{ required: false, message: '请输入供货价', trigger: 'change' }],
goodsStock: [{ required: true, message: '请输入库存', trigger: 'change' }] goodsStock: [{ required: true, message: '请输入库存', trigger: 'change' }]
}, },
editFormData: [ editFormData: [
...@@ -1382,6 +1382,7 @@ export default { ...@@ -1382,6 +1382,7 @@ export default {
this.editForm.goodsDescList.length && this.recoveryDescribe() this.editForm.goodsDescList.length && this.recoveryDescribe()
this.editForm.supplyMerchantList.length && this.recoveryMerchantList() this.editForm.supplyMerchantList.length && this.recoveryMerchantList()
this.handleTypeChange(this.editForm.deliveryType) this.handleTypeChange(this.editForm.deliveryType)
this.handleTakeTypeChange(this.editForm.takeType)
this.getWechatImgList() this.getWechatImgList()
// console.log(this.editForm) // console.log(this.editForm)
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -15,8 +15,13 @@ ...@@ -15,8 +15,13 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="takeGoodRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <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"> <div slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goods.goodsImage" /> <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>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <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> <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!