|
@ -60,7 +60,7 @@ |
|
|
<el-dialog |
|
|
<el-dialog |
|
|
:title="visitDetail ? '查看商品' : '选择商品'" |
|
|
:title="visitDetail ? '查看商品' : '选择商品'" |
|
|
:visible.sync="isVisible" |
|
|
:visible.sync="isVisible" |
|
|
width="55%" |
|
|
|
|
|
|
|
|
width="75%" |
|
|
top="50px" |
|
|
top="50px" |
|
|
class="group-dialog" |
|
|
class="group-dialog" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
@ -69,6 +69,12 @@ |
|
|
> |
|
|
> |
|
|
<!-- 表格 --> |
|
|
<!-- 表格 --> |
|
|
<div class="tableBox"> |
|
|
<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 |
|
|
<el-table |
|
|
ref="multipleTable" |
|
|
ref="multipleTable" |
|
|
:data="tableData" |
|
|
:data="tableData" |
|
@ -86,12 +92,12 @@ |
|
|
:reserve-selection="true" |
|
|
:reserve-selection="true" |
|
|
width="55" |
|
|
width="55" |
|
|
/> |
|
|
/> |
|
|
<el-table-column label="商品信息" width="150" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column label="商品图片" width="150" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<img height="80" width="80" :src="scope.row.image " alt srcset> |
|
|
<img height="80" width="80" :src="scope.row.image " alt srcset> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</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="originalPrice" label="原价(元)" width="120" /> |
|
|
<el-table-column prop="value" label="规格" width="120" /> |
|
|
<el-table-column prop="value" label="规格" width="120" /> |
|
|
<el-table-column label="折扣" width="155"> |
|
|
<el-table-column label="折扣" width="155"> |
|
@ -105,6 +111,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="stockNumber" label="库存" width="120" show-overflow-tooltip /> |
|
|
<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>--> |
|
|
<!-- <el-table-column width="80" :label="$t('common.operate')" show-overflow-tooltip>--> |
|
|
<!-- <template slot-scope="scope">--> |
|
|
<!-- <template slot-scope="scope">--> |
|
|
<!-- <div class="btnList">--> |
|
|
<!-- <div class="btnList">--> |
|
@ -193,6 +200,7 @@ export default { |
|
|
isVisible: false, // 选择商品弹窗 |
|
|
isVisible: false, // 选择商品弹窗 |
|
|
inputDiscountTableData: [], |
|
|
inputDiscountTableData: [], |
|
|
selectionKeys: [], |
|
|
selectionKeys: [], |
|
|
|
|
|
prodSearch: undefined |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
@ -401,6 +409,12 @@ export default { |
|
|
numFilter(value) { |
|
|
numFilter(value) { |
|
|
const realVal = parseFloat(value).toFixed(2) |
|
|
const realVal = parseFloat(value).toFixed(2) |
|
|
return realVal |
|
|
return realVal |
|
|
|
|
|
}, |
|
|
|
|
|
searchProd() { |
|
|
|
|
|
this.proOption.page = 1 |
|
|
|
|
|
this.proOption.pageSize = 10 |
|
|
|
|
|
this.proOption.searchContent = this.prodSearch |
|
|
|
|
|
this.getProList() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -410,7 +424,7 @@ export default { |
|
|
@import url("../../../styles/elDialog.scss"); |
|
|
@import url("../../../styles/elDialog.scss"); |
|
|
.addGroupBuy { |
|
|
.addGroupBuy { |
|
|
background: #FFFFFF; |
|
|
background: #FFFFFF; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.formBox { |
|
|
.formBox { |
|
|
margin-top: 20px; |
|
|
margin-top: 20px; |
|
|
.flexBox { |
|
|
.flexBox { |
|
|