Browse Source

1.商家端定价捆绑模块商品列表获取异常修复、售价区间显示异常修复、库存显示异常修复 2.商家端定价捆绑选择商品新增所属店铺显示业务

master
dy-hu 1 year ago
parent
commit
3bffb1909c
  1. 11
      src/views/marketing/compose/add.vue
  2. 20
      src/views/marketing/discount/add.vue
  3. 12
      src/views/marketing/price/add.vue
  4. 7
      src/views/marketing/spike/add.vue

11
src/views/marketing/compose/add.vue

@ -158,7 +158,7 @@
<el-dialog
title="选择商品"
:visible.sync="isVisible"
width="55%"
width="70%"
top="50px"
class="group-dialog"
:close-on-click-modal="false"
@ -198,11 +198,11 @@
:reserve-selection="true"
width="55"
/>
<el-table-column
<!-- <el-table-column
prop="productId"
label="商品id"
show-overflow-tooltip
/>
/>-->
<el-table-column label="商品主图" width="150" align="center">
<template slot-scope="scope">
<img
@ -226,6 +226,11 @@
width="120"
show-overflow-tooltip
/>
<el-table-column
prop="shopName"
label="所属店铺"
show-overflow-tooltip
/>
</el-table>
<div class="fenye">
<el-pagination

20
src/views/marketing/discount/add.vue

@ -60,7 +60,7 @@
<el-dialog
:title="visitDetail ? '查看商品' : '选择商品'"
:visible.sync="isVisible"
width="55%"
width="75%"
top="50px"
class="group-dialog"
:close-on-click-modal="false"
@ -69,6 +69,12 @@
>
<!-- 表格 -->
<div class="tableBox">
<div style="margin-bottom: 15px">
<el-input v-model="prodSearch" :placeholder="$t('product.productname_hint')" style="width: 360px"/>
<el-button type="primary" style="margin-left: 8px" @click="searchProd">{{$t('common.query')}}</el-button>
</div>
<el-table
ref="multipleTable"
:data="tableData"
@ -86,12 +92,12 @@
:reserve-selection="true"
width="55"
/>
<el-table-column label="商品信息" width="150" align="center">
<el-table-column label="商品图片" width="150" align="center">
<template slot-scope="scope">
<img height="80" width="80" :src="scope.row.image " alt srcset>
</template>
</el-table-column>
<el-table-column prop="productName" label="" />
<el-table-column prop="productName" label="商品名称" show-overflow-tooltip/>
<el-table-column prop="originalPrice" label="原价(元)" width="120" />
<el-table-column prop="value" label="规格" width="120" />
<el-table-column label="折扣" width="155">
@ -105,6 +111,7 @@
</template>
</el-table-column>
<el-table-column prop="stockNumber" label="库存" width="120" show-overflow-tooltip />
<el-table-column prop="shopName" label="所属店铺" show-overflow-tooltip />
<!-- <el-table-column width="80" :label="$t('common.operate')" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- <div class="btnList">-->
@ -193,6 +200,7 @@ export default {
isVisible: false, //
inputDiscountTableData: [],
selectionKeys: [],
prodSearch: undefined
}
},
watch: {
@ -401,6 +409,12 @@ export default {
numFilter(value) {
const realVal = parseFloat(value).toFixed(2)
return realVal
},
searchProd() {
this.proOption.page = 1
this.proOption.pageSize = 10
this.proOption.searchContent = this.prodSearch
this.getProList()
}
}
}

12
src/views/marketing/price/add.vue

@ -147,7 +147,7 @@
<el-dialog
title="选择商品"
:visible.sync="isVisible"
width="55%"
width="70%"
top="50px"
class="group-dialog"
:close-on-click-modal="false"
@ -183,11 +183,11 @@
:reserve-selection="true"
width="55"
/>
<el-table-column
<!-- <el-table-column
prop="productId"
label="商品id"
show-overflow-tooltip
/>
/>-->
<el-table-column label="商品主图" width="150" align="center">
<template slot-scope="scope">
<img
@ -211,6 +211,12 @@
width="120"
show-overflow-tooltip
/>
/>
<el-table-column
prop="shopName"
label="所属店铺"
show-overflow-tooltip
/>
</el-table>
<div class="fenye">
<el-pagination

7
src/views/marketing/spike/add.vue

@ -60,7 +60,7 @@
<el-dialog
:title="visitDetail ? '查看商品' : '选择商品'"
:visible.sync="isVisible"
width="58%"
width="75%"
top="50px"
class="group-dialog"
:close-on-click-modal="false"
@ -93,12 +93,12 @@
:reserve-selection="true"
width="55"
/>
<el-table-column label="商品信息" width="150" align="center">
<el-table-column label="商品图片" width="150" align="center">
<template slot-scope="scope">
<img height="80" width="80" :src="scope.row.image " alt srcset>
</template>
</el-table-column>
<el-table-column prop="productName" label="" />
<el-table-column prop="productName" label="商品名称" show-overflow-tooltip/>
<el-table-column prop="originalPrice" label="原价(元)" width="120" />
<el-table-column prop="value" label="规格" width="120" />
<el-table-column label="直降(元)" width="153">
@ -112,6 +112,7 @@
</template>
</el-table-column>
<el-table-column prop="stockNumber" label="库存" width="120" show-overflow-tooltip />
<el-table-column prop="shopName" label="所属店铺" show-overflow-tooltip />
<!-- <el-table-column width="80" :label="$t('common.operate')" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- <div class="btnList">-->

Loading…
Cancel
Save