diff --git a/src/api/ss/storeApply.js b/src/api/ss/storeApply.js index ca6f229..bf62a59 100644 --- a/src/api/ss/storeApply.js +++ b/src/api/ss/storeApply.js @@ -42,3 +42,12 @@ export function delStoreApply(id) { method: 'delete' }) } + +// 审核店铺申请 +export function approvalStoreApply(data) { + return request({ + url: '/ss/storeApply/approval', + method: 'put', + data + }) +} diff --git a/src/utils/constants.js b/src/utils/constants.js index c32f190..37811bf 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -1,7 +1,8 @@ // 视图 export const views = { user: 'user', // 用户 - device: 'device' // 设备 + device: 'device', // 设备 + store: 'store', // 店铺 } // 收款账户类型 diff --git a/src/views/ss/store/detail.vue b/src/views/ss/store/detail.vue index 572d0c0..884fc96 100644 --- a/src/views/ss/store/detail.vue +++ b/src/views/ss/store/detail.vue @@ -4,20 +4,28 @@
- + {{store.name | defaultValue}} - {{store.userName | defaultValue}} + + + + + {{store.enabled ? '已生效' : '未生效'}} + + {{store.createTime | defaultValue}} {{store.businessTimeStart | defaultValue}} 至 {{store.businessTimeEnd | defaultValue}} + + + + {{store.contactName | defaultValue}}({{store.contactMobile | defaultValue}}) {{store.province}}{{store.city}}{{store.county}}{{store.address}} - {{store.contactName | defaultValue}}({{store.contactMobile | defaultValue}}) - {{store.createTime | defaultValue}}
@@ -96,6 +104,9 @@ + + + @@ -109,11 +120,19 @@ import PlaceSearchMap from '@/components/Map/PlaceSearch/PlaceSearchMap.vue' import DeviceList from '@/views/ss/store/components/deviceList.vue' import RechargeList from '@/views/ss/store/components/rechargeList.vue' import StoreRechargeReport from '@/views/ss/store/components/storeRechargeReport.vue' +import UserLink from '@/components/Business/SmUser/UserLink.vue' +import StoreApply from '@/views/ss/storeApply/index.vue' +import { views } from '@/utils/constants' export default { name: 'storeDetail', - components: { StoreRechargeReport, RechargeList, DeviceList, PlaceSearchMap }, - dicts: ['ss_store_type'], + computed: { + views() { + return views + } + }, + components: { StoreApply, UserLink, StoreRechargeReport, RechargeList, DeviceList, PlaceSearchMap }, + dicts: ['ss_store_type', 'store_status'], data() { return { loading: false, diff --git a/src/views/ss/store/index.vue b/src/views/ss/store/index.vue index edda614..41b56e9 100644 --- a/src/views/ss/store/index.vue +++ b/src/views/ss/store/index.vue @@ -88,7 +88,7 @@ - + @@ -109,7 +109,7 @@ {{d.row.businessTimeStart}} 至 {{d.row.businessTimeEnd}} - + @@ -124,7 +124,16 @@ {{d.row.enabled ? '已生效' : '未生效'}} - + + + + + + + + + +