|
@@ -2,11 +2,21 @@
|
|
|
<div class="app-container">
|
|
|
<!-- 供应商基本信息 -->
|
|
|
<div class="info">
|
|
|
- <div class="row"><span>供应商名称:</span><span>{{ supplierInfo.shopName }}</span></div>
|
|
|
- <div class="row"><span>供应商类型:</span><span>{{ supplierInfo.shopType === 1 ? '品牌方':'代理商' }}</span></div>
|
|
|
- <div class="row"><span>登录账号:</span><span>{{ supplierInfo.loginAccount || '--' }}</span></div>
|
|
|
- <div class="row"><span>手机号:</span><span>{{ supplierInfo.mobile }}</span></div>
|
|
|
- <div class="row"><span>联系人:</span><span>{{ supplierInfo.linkMan }}</span></div>
|
|
|
+ <div class="row">
|
|
|
+ <span>供应商名称:</span><span>{{ supplierInfo.shopName }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <span>供应商类型:</span><span>{{ supplierInfo.shopType === 1 ? '品牌方' : '代理商' }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <span>登录账号:</span><span>{{ supplierInfo.loginAccount || '--' }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <span>手机号:</span><span>{{ supplierInfo.mobile }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <span>联系人:</span><span>{{ supplierInfo.linkMan }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-divider />
|
|
|
<!-- 搜索区域 -->
|
|
@@ -154,12 +164,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.listQuery.authUserId = this.$route.query.id
|
|
|
- this.fetchVipRecord()
|
|
|
- this.fetchConfigureList()
|
|
|
- this.fetchSupplierInfo()
|
|
|
+ this.initPage()
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ this.initPage()
|
|
|
},
|
|
|
methods: {
|
|
|
+ initPage() {
|
|
|
+ this.listQuery.authUserId = this.$route.query.id
|
|
|
+ this.fetchVipRecord()
|
|
|
+ this.fetchConfigureList()
|
|
|
+ this.fetchSupplierInfo()
|
|
|
+ },
|
|
|
indexMethod(index) {
|
|
|
return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1
|
|
|
},
|
|
@@ -187,7 +203,7 @@ export default {
|
|
|
},
|
|
|
fetchVipRecord() {
|
|
|
console.log(this.listQuery)
|
|
|
- fetchVipRecord(this.listQuery).then(res => {
|
|
|
+ fetchVipRecord(this.listQuery).then((res) => {
|
|
|
console.log(res)
|
|
|
this.list = [...this.list, ...res.data.list]
|
|
|
})
|
|
@@ -195,7 +211,7 @@ export default {
|
|
|
handleShowDemand(row) {
|
|
|
this.dialogTableVisible = true
|
|
|
if (row.services) {
|
|
|
- this.demandList = row.services.split(',').map(item => ({
|
|
|
+ this.demandList = row.services.split(',').map((item) => ({
|
|
|
demand: item
|
|
|
}))
|
|
|
} else {
|
|
@@ -204,7 +220,7 @@ export default {
|
|
|
},
|
|
|
// 获取套餐列表
|
|
|
fetchConfigureList() {
|
|
|
- fetchConfigureList().then(res => {
|
|
|
+ fetchConfigureList().then((res) => {
|
|
|
this.packageList = res.data.packageList.map((item, index) => {
|
|
|
item.name = `套餐${index + 1}`
|
|
|
// item.originalPrice = `${item.originalPrice.toFixed(2)}`
|
|
@@ -215,7 +231,7 @@ export default {
|
|
|
},
|
|
|
// 获取供应商信息
|
|
|
fetchSupplierInfo() {
|
|
|
- getSupplierById({ authUserId: this.listQuery.authUserId }).then(res => {
|
|
|
+ getSupplierById({ authUserId: this.listQuery.authUserId }).then((res) => {
|
|
|
console.log(res)
|
|
|
this.supplierInfo = res.data
|
|
|
})
|