经销商管理-经销商列表

master
panqihua 2 years ago
parent 6cda8efd23
commit 89389d529b
  1. 23
      src/views/platform/manufacturer/index.vue

@ -2,10 +2,10 @@
<div class="app-container"> <div class="app-container">
<el-form :inline="true"> <el-form :inline="true">
<el-form-item> <el-form-item>
<el-input placeholder="请输入厂商名称"></el-input> <el-input :placeholder="'请输入' + (manufacturerType === 1 ? '厂商' : '经销商') + '名称'"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input placeholder="请输入厂商ID"></el-input> <el-input :placeholder="'请输入' + (manufacturerType === 1 ? '厂商' : '经销商') + 'ID'"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input placeholder="请输入联系人"></el-input> <el-input placeholder="请输入联系人"></el-input>
@ -14,7 +14,7 @@
<el-form-item> <el-form-item>
<el-input placeholder="请输入电话"></el-input> <el-input placeholder="请输入电话"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item v-if="manufacturerType === 1">
<el-select v-model="queryParams.type" placeholder="请选择类型"></el-select> <el-select v-model="queryParams.type" placeholder="请选择类型"></el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -31,7 +31,7 @@
</el-form-item> </el-form-item>
<br /> <br />
<el-form-item v-if="type === 1"> <el-form-item v-if="type === '1'">
<el-button>批量锁定</el-button> <el-button>批量锁定</el-button>
<el-button>批量开启</el-button> <el-button>批量开启</el-button>
</el-form-item> </el-form-item>
@ -47,12 +47,17 @@
<el-table-column align="center" label="ID"> <el-table-column align="center" label="ID">
CS000001 CS000001
</el-table-column> </el-table-column>
<template v-if="manufacturerType === 1">
<el-table-column align="center" label="厂商名称"> <el-table-column align="center" label="厂商名称">
联想厂商 联想厂商
</el-table-column> </el-table-column>
<el-table-column align="center" label="类型"> <el-table-column align="center" label="类型">
电子产品 电子产品
</el-table-column> </el-table-column>
</template>
<el-table-column align="center" label="经销商名称" v-else>
联想经销商
</el-table-column>
<el-table-column align="center" label="联系人"> <el-table-column align="center" label="联系人">
张三 张三
</el-table-column> </el-table-column>
@ -60,12 +65,17 @@
18888888888 18888888888
</el-table-column> </el-table-column>
<template v-if="type === '1'"> <template v-if="type === '1'">
<template v-if="manufacturerType === 1">
<el-table-column align="center" label="经销商"> <el-table-column align="center" label="经销商">
125 125
</el-table-column> </el-table-column>
<el-table-column align="center" label="直营门店"> <el-table-column align="center" label="直营门店">
1 1
</el-table-column> </el-table-column>
</template>
<el-table-column align="center" label="门店" v-else>
1125
</el-table-column>
<el-table-column align="center" label="商品数量"> <el-table-column align="center" label="商品数量">
1125 1125
</el-table-column> </el-table-column>
@ -143,8 +153,13 @@ export default {
} }
}, },
computed: { computed: {
// 12
type() { type() {
return this.$route.fullPath.split('/').at(-1) return this.$route.fullPath.split('/').at(-1)
},
// 1:2
manufacturerType() {
return this.$route.fullPath.includes('manufacturer') ? 1 : 2
} }
} }
} }

Loading…
Cancel
Save