| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:shop:create', 'business:shop:delete']"> |
| | | <ul class="toolbar" > |
| | | <li><el-button type="primary" @click="$refs.operaShopWindow.open('新建经销商')" icon="el-icon-plus" v-permissions="['business:shop:create']">新建</el-button></li> |
| | | <!-- <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:shop:delete']">删除</el-button></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" |
| | |
| | | {{ row.saleType == 1?'自主采购':'平台铺货'}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="shopPrice" label="供货价设置" min-width="100px" align="center"> |
| | | <template slot-scope="{row}" > |
| | | <div title="针对上架商品价格设置统计" @click="goPriceSet(row)" style="cursor:pointer;"><span class="red"> {{row.pricedGoodsNum||0}}</span> / <span class="green"> {{row.goodsNum||0}}</span> </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="创建时间" align="center" min-width="140px"></el-table-column> |
| | | <el-table-column prop="status" label="状态" align="center" min-width="100px" fixed="right"> |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column |
| | | v-if="containPermissions(['business:shop:update', 'business:shop:delete'])" |
| | | label="操作" |
| | | min-width="200" |
| | | min-width="280" |
| | | fixed="right" |
| | | align="center" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaShopWindow.open('编辑经销商', row)" icon="el-icon-edit" v-permissions="['business:shop:update']">编辑</el-button> |
| | | <el-button type="text" v-permissions="['business:shop:update']" icon="el-icon-edit" @click="goPriceSet(row)">供货价</el-button> |
| | | <el-button type="text" @click="resetPwd(row)" icon="el-icon-edit" v-permissions="['business:shop:update']">重置密码</el-button> |
| | | <el-button type="text" style="color: red" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:shop:delete']">删除</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <OperaShopWindow ref="operaShopWindow" @success="handlePageChange"/> |
| | | <OperaShopInfoWindow ref="OperaShopInfoWindow" /> |
| | | <ResetPwdShopWindow ref="resetPwdWindow"/> |
| | | <OperaGoodsShopWindow ref="OperaGoodsShopWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaShopWindow from '@/components/business/OperaShopWindow' |
| | | import OperaShopInfoWindow from '@/components/business/OperaShopInfoWindow' |
| | | import OperaGoodsShopWindow from '@/components/business/OperaGoodsShopWindow' |
| | | import { resetPwd, updateIsRecById } from '@/api/business/shop' |
| | | import ResetPwdShopWindow from '@/components/business/ResetPwdShopWindow' |
| | | export default { |
| | | name: 'Shop', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaShopWindow, OperaShopInfoWindow, ResetPwdShopWindow }, |
| | | components: { TableLayout, Pagination, OperaShopWindow, OperaShopInfoWindow, ResetPwdShopWindow,OperaGoodsShopWindow }, |
| | | data () { |
| | | return { |
| | | |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | goPriceSet(row){ |
| | | this.$refs.OperaGoodsShopWindow.open('设置供货价 - '+row.name, row ) |
| | | }, |
| | | resetPwd (row) { |
| | | this.$dialog.messageWaring('确认重置该经销商【' + row.name + '】的登录密码吗?') |
| | | .then(() => { |