| | |
| | | <li><el-button type="primary" icon="el-icon-plus" @click="$refs.operaGoodsWindow.open('新建商品', null, 0)" v-permissions="['business:goods:create']">新建</el-button></li> |
| | | <li><el-button type="primary" icon="el-icon-edit" @click="issued(0)">上架</el-button></li> |
| | | <li><el-button type="danger" icon="el-icon-edit" @click="issued(1)">下架</el-button></li> |
| | | <li><p class="tip-warn" style="width: 100%;margin-left: 20px;"><i class="el-icon-warning"></i>提示:【供货价设置】只统计启用状态的供销商设置数据</p></li> |
| | | <li><p class="tip-warn" style="width: 100%;margin-left: 20px;"><i class="el-icon-warning"></i>提示:【供货价设置】只统计启用状态的供销商设置数据,(已定价供销商数/全部供销商数)</p></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | export default { |
| | | name: 'Goods', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaGoodsWindow, OperaGoodsDetailWindow, OperaPlatformGoodsSkuWindow ,OperaShopGoodsWindow}, |
| | | components: { TableLayout, Pagination, OperaGoodsWindow, OperaGoodsDetailWindow, OperaPlatformGoodsSkuWindow, OperaShopGoodsWindow }, |
| | | data () { |
| | | return { |
| | | activeName: 'first', |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | priceSuccess(){ |
| | | priceSuccess () { |
| | | this.handlePageChange() |
| | | }, |
| | | goPriceSet(row){ |
| | | if(row.skuPrice == null){ |
| | | goPriceSet (row) { |
| | | if (row.skuPrice == null) { |
| | | this.$tip.warning('请先设置商品销售价!') |
| | | return |
| | | } |
| | | this.$refs.OperaShopGoodsWindow.open('设置供货价 - '+row.name, row ) |
| | | this.$refs.OperaShopGoodsWindow.open('设置供货价 - ' + row.name, row) |
| | | }, |
| | | handleClick (val) { |
| | | |
| | |
| | | const message = `确认${status === 0 ? '上架' : '下架'}选中的商品么?` |
| | | this.$dialog.messageWaring(message) |
| | | .then(() => { |
| | | var temp = [] |
| | | this.tableData.selectedRows.forEach(item => { |
| | | temp.push({ id: item.id, name: item.name, status: status }) |
| | | }) |
| | | this.statusChangeBiz(temp) |
| | | }) |
| | | }, |
| | | statusChange (row) { |