update 修复已知道BUG,审核BUG
This commit is contained in:
parent
dee55721bb
commit
c709db096c
29
src/api/orderPush/orderPush.js
Normal file
29
src/api/orderPush/orderPush.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
import { URL } from '@/config'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 个推测试接口
|
||||||
|
* @author Seven
|
||||||
|
* @data 2025-1-6
|
||||||
|
* @param {
|
||||||
|
*
|
||||||
|
* "cid": "13128997057", // 终端id
|
||||||
|
"title": "小发同城", // 标题
|
||||||
|
"message": "尊敬的商家,你有一条新的订单,请及时处理!", // 推送内容
|
||||||
|
"clickType":"url", // 点击类型
|
||||||
|
"clickContent":"https://mall.gpxscs.cn"// 跳转地址
|
||||||
|
* }
|
||||||
|
* @returns { }
|
||||||
|
* @see https://mall.gpxscs.cn/mobile/account/login/push/testcase
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function orderPushTest(params) {
|
||||||
|
return request({
|
||||||
|
url: URL.orderPush.orderPushTest,
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -29,6 +29,9 @@ let url = {
|
|||||||
disableUpdateShopApp:
|
disableUpdateShopApp:
|
||||||
api_url + '/admin/admin/app-market-update/enable-or-disable',
|
api_url + '/admin/admin/app-market-update/enable-or-disable',
|
||||||
},
|
},
|
||||||
|
orderPush: {
|
||||||
|
orderPushTest: api_url + '/mobile/account/login/push/testcase',
|
||||||
|
},
|
||||||
city: {
|
city: {
|
||||||
user: {
|
user: {
|
||||||
paotuier: {
|
paotuier: {
|
||||||
|
|||||||
@ -15,6 +15,7 @@ const state = () => ({
|
|||||||
avatar: 'https://i.gtimg.cn/club/item/face/img/2/15922_100.gif',
|
avatar: 'https://i.gtimg.cn/club/item/face/img/2/15922_100.gif',
|
||||||
rid: 0,
|
rid: 0,
|
||||||
site_id: 0,
|
site_id: 0,
|
||||||
|
isAdmin: localStorage.getItem('isAdmin') || 0,
|
||||||
})
|
})
|
||||||
const getters = {
|
const getters = {
|
||||||
token: (state) => state.token,
|
token: (state) => state.token,
|
||||||
@ -61,6 +62,9 @@ const mutations = {
|
|||||||
setSiteId(state, site_id) {
|
setSiteId(state, site_id) {
|
||||||
state.site_id = site_id
|
state.site_id = site_id
|
||||||
},
|
},
|
||||||
|
setIsAdmin(state, isAdmin) {
|
||||||
|
state.isAdmin = isAdmin
|
||||||
|
},
|
||||||
}
|
}
|
||||||
const actions = {
|
const actions = {
|
||||||
/**
|
/**
|
||||||
@ -79,6 +83,13 @@ const actions = {
|
|||||||
*/
|
*/
|
||||||
async login({ commit }, userInfo) {
|
async login({ commit }, userInfo) {
|
||||||
const { data, msg, status, code } = await login(userInfo)
|
const { data, msg, status, code } = await login(userInfo)
|
||||||
|
if (data && data.user_account == 'admin') {
|
||||||
|
commit('setIsAdmin', 1)
|
||||||
|
localStorage.setItem('isAdmin', 1)
|
||||||
|
} else {
|
||||||
|
commit('setIsAdmin', 0)
|
||||||
|
localStorage.setItem('isAdmin', 0)
|
||||||
|
}
|
||||||
|
|
||||||
if (status != 200) {
|
if (status != 200) {
|
||||||
Vue.prototype.$baseMessage(msg, 'error', 'vab-hey-message-error')
|
Vue.prototype.$baseMessage(msg, 'error', 'vab-hey-message-error')
|
||||||
@ -199,6 +210,7 @@ const actions = {
|
|||||||
* @param {*} { dispatch }
|
* @param {*} { dispatch }
|
||||||
*/
|
*/
|
||||||
async logout({ dispatch }) {
|
async logout({ dispatch }) {
|
||||||
|
localStorage.setItem('isAdmin', 0)
|
||||||
await logout()
|
await logout()
|
||||||
await dispatch('resetAll')
|
await dispatch('resetAll')
|
||||||
},
|
},
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { isExternal } from 'vue-plugin-utils'
|
|||||||
import { recordRoute } from '@/config'
|
import { recordRoute } from '@/config'
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
|
|
||||||
import icon from "../views/403.vue"
|
import icon from '../views/403.vue'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description all模式渲染后端返回路由,支持包含views路径的所有页面
|
* @description all模式渲染后端返回路由,支持包含views路径的所有页面
|
||||||
@ -13,267 +13,281 @@ import icon from "../views/403.vue"
|
|||||||
*/
|
*/
|
||||||
export function convertRouter(asyncRoutes) {
|
export function convertRouter(asyncRoutes) {
|
||||||
return asyncRoutes.map((route) => {
|
return asyncRoutes.map((route) => {
|
||||||
|
if (route.meta.title == '店铺' && route.name == 'Vab330') {
|
||||||
|
|
||||||
if(route.meta.title == '店铺' && route.name == 'Vab330'){
|
|
||||||
const obj = {
|
const obj = {
|
||||||
path:"/shopAudit",
|
path: '/shopAudit',
|
||||||
"component":"@/views/store/shopAudit/shopAudit",
|
component: '@/views/store/shopAudit/shopAudit',
|
||||||
name: "Vab83000",
|
name: 'Vab83000',
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: "商家入驻审批",
|
title: '商家入驻审批',
|
||||||
icon: "",
|
icon: '',
|
||||||
noClosable: 0,
|
noClosable: 0,
|
||||||
hidden: null
|
hidden: null,
|
||||||
},
|
},
|
||||||
menuHidden: false
|
menuHidden: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
route.children.splice(0,0,obj)
|
route.children.splice(0, 0, obj)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(route.meta.title == '设置'){
|
if (route.meta.title == '设置') {
|
||||||
|
const obj = {
|
||||||
const obj = {
|
path: '/receiptMachine',
|
||||||
path: "/receiptMachine",
|
component: '@/views/settings/config/receiptMachine',
|
||||||
"component":"@/views/settings/config/receiptMachine",
|
name: 'Vab86001',
|
||||||
name: "Vab86001",
|
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: "小票机品牌",
|
title: '小票机品牌',
|
||||||
icon: "",
|
icon: '',
|
||||||
noClosable: 0,
|
noClosable: 0,
|
||||||
hidden: null
|
hidden: null,
|
||||||
},
|
},
|
||||||
menuHidden: false
|
menuHidden: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
route.children.push(obj);
|
route.children.push(obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(route.meta.title == "基础"){
|
|
||||||
|
|
||||||
|
if (route.meta.title == '基础') {
|
||||||
const cloudPrintRoute = {
|
const cloudPrintRoute = {
|
||||||
path: "/cloudPrint",
|
path: '/cloudPrint',
|
||||||
name: "Vab81000",
|
name: 'Vab81000',
|
||||||
"component":"@/views/vab/icon",
|
component: '@/views/vab/icon',
|
||||||
redirect: null,
|
redirect: null,
|
||||||
|
|
||||||
meta: {
|
meta: {
|
||||||
"title": "云打印",
|
title: '云打印',
|
||||||
"icon": "",
|
icon: '',
|
||||||
"noClosable": 0,
|
noClosable: 0,
|
||||||
"hidden": null
|
hidden: null,
|
||||||
},
|
},
|
||||||
menuHidden: false,
|
menuHidden: false,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/plotterManager",
|
path: '/plotterManager',
|
||||||
"component":"@/views/store/base/cloudPrint/plotterManager",
|
component: '@/views/store/base/cloudPrint/plotterManager',
|
||||||
name: "Vab81001",
|
name: 'Vab81001',
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: "打印机管理",
|
title: '打印机管理',
|
||||||
icon: "",
|
icon: '',
|
||||||
noClosable: 0,
|
noClosable: 0,
|
||||||
hidden: null
|
hidden: null,
|
||||||
},
|
|
||||||
menuHidden: false
|
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/addCloudPrint",
|
},
|
||||||
"component":"@/views/store/base/cloudPrint/editCloudPrint",
|
{
|
||||||
name: "Vab81002",
|
path: '/addCloudPrint',
|
||||||
redirect: null,
|
component: '@/views/store/base/cloudPrint/editCloudPrint',
|
||||||
meta: {
|
name: 'Vab81002',
|
||||||
title: "添加打印机",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '添加打印机',
|
||||||
hidden: true
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/editCloudPrint",
|
},
|
||||||
"component":"@/views/store/base/cloudPrint/editCloudPrint",
|
{
|
||||||
name: "Vab81003",
|
path: '/editCloudPrint',
|
||||||
redirect: null,
|
component: '@/views/store/base/cloudPrint/editCloudPrint',
|
||||||
meta: {
|
name: 'Vab81003',
|
||||||
title: "编辑打印机",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '编辑打印机',
|
||||||
hidden: true
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/templateManagement",
|
},
|
||||||
"component":"@/views/store/base/cloudPrint/templateManagement",
|
{
|
||||||
name: "Vab81004",
|
path: '/templateManagement',
|
||||||
redirect: null,
|
component: '@/views/store/base/cloudPrint/templateManagement',
|
||||||
meta: {
|
name: 'Vab81004',
|
||||||
title: "模板管理",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '模板管理',
|
||||||
hidden: null
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: null,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/templateManagementAdd",
|
},
|
||||||
"component":"@/views/store/base/cloudPrint/editTemplateManagement",
|
{
|
||||||
name: "Vab81005",
|
path: '/templateManagementAdd',
|
||||||
redirect: null,
|
component: '@/views/store/base/cloudPrint/editTemplateManagement',
|
||||||
meta: {
|
name: 'Vab81005',
|
||||||
title: "添加模板",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '添加模板',
|
||||||
hidden: true
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/templateManagementEdit",
|
},
|
||||||
"component":"@/views/store/base/cloudPrint/editTemplateManagement",
|
{
|
||||||
name: "Vab81006",
|
path: '/templateManagementEdit',
|
||||||
redirect: null,
|
component: '@/views/store/base/cloudPrint/editTemplateManagement',
|
||||||
meta: {
|
name: 'Vab81006',
|
||||||
title: "编辑模板",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '编辑模板',
|
||||||
hidden: true
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: true,
|
||||||
}
|
},
|
||||||
]
|
menuHidden: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
const distributionSetup = {
|
const distributionSetup = {
|
||||||
path: "/distributionSetup",
|
path: '/distributionSetup',
|
||||||
name: "Vab82000",
|
name: 'Vab82000',
|
||||||
"component":"@/views/vab/icon",
|
component: '@/views/vab/icon',
|
||||||
redirect: null,
|
redirect: null,
|
||||||
|
|
||||||
meta: {
|
meta: {
|
||||||
"title": "配送设置",
|
title: '配送设置',
|
||||||
"icon": "",
|
icon: '',
|
||||||
"noClosable": 0,
|
noClosable: 0,
|
||||||
"hidden": null
|
hidden: null,
|
||||||
},
|
},
|
||||||
menuHidden: false,
|
menuHidden: false,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/distributionMode",
|
path: '/distributionMode',
|
||||||
"component":"@/views/store/base/distributionSetup/distributionMode",
|
component: '@/views/store/base/distributionSetup/distributionMode',
|
||||||
name: "Vab82001",
|
name: 'Vab82001',
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: "配送方式",
|
title: '配送方式',
|
||||||
icon: "",
|
icon: '',
|
||||||
noClosable: 0,
|
noClosable: 0,
|
||||||
hidden: null
|
hidden: null,
|
||||||
},
|
|
||||||
menuHidden: false
|
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/logisticsInterface",
|
},
|
||||||
"component":"@/views/store/base/distributionSetup/logisticsInterface",
|
{
|
||||||
name: "Vab82002",
|
path: '/logisticsInterface',
|
||||||
redirect: null,
|
component:
|
||||||
meta: {
|
'@/views/store/base/distributionSetup/logisticsInterface',
|
||||||
title: "物流接口",
|
name: 'Vab82002',
|
||||||
icon: "",
|
redirect: null,
|
||||||
noClosable: 0,
|
meta: {
|
||||||
hidden: null
|
title: '物流接口',
|
||||||
},
|
icon: '',
|
||||||
menuHidden: false
|
noClosable: 0,
|
||||||
|
hidden: null,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/localDelivery",
|
},
|
||||||
"component":"@/views/store/base/distributionSetup/localDelivery",
|
{
|
||||||
name: "Vab82003",
|
path: '/localDelivery',
|
||||||
redirect: null,
|
component: '@/views/store/base/distributionSetup/localDelivery',
|
||||||
meta: {
|
name: 'Vab82003',
|
||||||
title: "同城配送",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '同城配送',
|
||||||
hidden: true
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/selfPickUpSite",
|
},
|
||||||
"component":"@/views/store/base/distributionSetup/selfPickUpSite",
|
{
|
||||||
name: "Vab82004",
|
path: '/selfPickUpSite',
|
||||||
redirect: null,
|
component: '@/views/store/base/distributionSetup/selfPickUpSite',
|
||||||
meta: {
|
name: 'Vab82004',
|
||||||
title: "自提点列表",
|
redirect: null,
|
||||||
icon: "",
|
meta: {
|
||||||
noClosable: 0,
|
title: '自提点列表',
|
||||||
hidden: true
|
icon: '',
|
||||||
},
|
noClosable: 0,
|
||||||
menuHidden: false
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/selfPickUpSiteAdd",
|
},
|
||||||
"component":"@/views/store/base/distributionSetup/editSelfPickUpSite",
|
{
|
||||||
name: "Vab82005",
|
path: '/selfPickUpSiteAdd',
|
||||||
redirect: null,
|
component:
|
||||||
meta: {
|
'@/views/store/base/distributionSetup/editSelfPickUpSite',
|
||||||
title: "编辑自提点",
|
name: 'Vab82005',
|
||||||
icon: "",
|
redirect: null,
|
||||||
noClosable: 0,
|
meta: {
|
||||||
hidden: true
|
title: '编辑自提点',
|
||||||
},
|
icon: '',
|
||||||
menuHidden: false
|
noClosable: 0,
|
||||||
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
menuHidden: false,
|
||||||
path: "/selfPickUpSiteEdit",
|
},
|
||||||
"component":"@/views/store/base/distributionSetup/editSelfPickUpSite",
|
{
|
||||||
name: "Vab82006",
|
path: '/selfPickUpSiteEdit',
|
||||||
redirect: null,
|
component:
|
||||||
meta: {
|
'@/views/store/base/distributionSetup/editSelfPickUpSite',
|
||||||
title: "编辑自提点",
|
name: 'Vab82006',
|
||||||
icon: "",
|
redirect: null,
|
||||||
noClosable: 0,
|
meta: {
|
||||||
hidden: true
|
title: '编辑自提点',
|
||||||
},
|
icon: '',
|
||||||
menuHidden: false
|
noClosable: 0,
|
||||||
|
hidden: true,
|
||||||
},
|
},
|
||||||
]
|
menuHidden: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
route.children.push(...[cloudPrintRoute,distributionSetup]);
|
route.children.push(...[cloudPrintRoute, distributionSetup])
|
||||||
route.children = route.children.filter(item=>item.name != 'Vab8083')
|
route.children = route.children.filter((item) => item.name != 'Vab8083')
|
||||||
}
|
}
|
||||||
|
|
||||||
if(route.meta.title == '设置' && route.name == 'Settings'){
|
if (route.meta.title == '设置' && route.name == 'Settings') {
|
||||||
const obj = {
|
const obj = {
|
||||||
path: "/appVersion",
|
path: '/appVersion',
|
||||||
"component":"@/views/settings/config/appVersion",
|
component: '@/views/settings/config/appVersion',
|
||||||
name: "Vab9019",
|
name: 'Vab9019',
|
||||||
redirect: null,
|
redirect: null,
|
||||||
meta: {
|
meta: {
|
||||||
title: "商家APP设置",
|
title: '商家APP设置',
|
||||||
icon: "",
|
icon: '',
|
||||||
noClosable: 0,
|
noClosable: 0,
|
||||||
hidden: null
|
hidden: null,
|
||||||
},
|
},
|
||||||
menuHidden: false
|
menuHidden: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
route.children.splice(0,0,obj)
|
route.children.splice(0, 0, obj)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (route.meta.title == '订单' && route.name == 'Vab350') {
|
||||||
|
const obj = {
|
||||||
|
path: '/orderPush',
|
||||||
|
component: '@/views/order/orderPush/orderPush',
|
||||||
|
name: 'Vab8088',
|
||||||
|
redirect: null,
|
||||||
|
meta: {
|
||||||
|
title: '个推订单测试',
|
||||||
|
icon: '',
|
||||||
|
noClosable: 0,
|
||||||
|
hidden: null,
|
||||||
|
},
|
||||||
|
menuHidden: false,
|
||||||
|
}
|
||||||
|
route.children.splice(0, 0, obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (route.component) {
|
if (route.component) {
|
||||||
if (route.component === 'Layout') {
|
if (route.component === 'Layout') {
|
||||||
route.component = (resolve) => require(['@/vab/layouts'], resolve);
|
route.component = (resolve) => require(['@/vab/layouts'], resolve)
|
||||||
} else {
|
} else {
|
||||||
const index = route.component.indexOf('views')
|
const index = route.component.indexOf('views')
|
||||||
const path = index > 0 ? route.component.slice(index) : `views/${route.component}`;
|
const path =
|
||||||
|
index > 0 ? route.component.slice(index) : `views/${route.component}`
|
||||||
route.component = (resolve) => require([`@/${path}`], resolve)
|
route.component = (resolve) => require([`@/${path}`], resolve)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -313,7 +313,7 @@
|
|||||||
&-horizontal {
|
&-horizontal {
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
width: $base-left-menu-width-min * 1.3;
|
width: $base-left-menu-width-min * 1.3;
|
||||||
height: #{math.div($base-left-menu-width-min, 1.3)};
|
height: calc(#{math.div($base-left-menu-width-min, 1.3)});
|
||||||
padding-left: #{math.div($base-padding, 2)};
|
padding-left: #{math.div($base-padding, 2)};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,6 +60,15 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="isAdmin"
|
||||||
|
align="center"
|
||||||
|
label="店铺名称"
|
||||||
|
prop="store_name"
|
||||||
|
show-overflow-tooltip
|
||||||
|
width="200"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="__('品牌编号')"
|
:label="__('品牌编号')"
|
||||||
@ -195,7 +204,7 @@
|
|||||||
import { getTree } from '@/api/base/product/category'
|
import { getTree } from '@/api/base/product/category'
|
||||||
import Edit from './components/brandManagementEdit'
|
import Edit from './components/brandManagementEdit'
|
||||||
import { translateTitle as __ } from '@/utils/i18n'
|
import { translateTitle as __ } from '@/utils/i18n'
|
||||||
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: 'BrandManagement',
|
name: 'BrandManagement',
|
||||||
components: { Edit },
|
components: { Edit },
|
||||||
@ -218,6 +227,9 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
...mapState('user',['isAdmin'])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
this.getTree()
|
this.getTree()
|
||||||
|
|||||||
@ -128,6 +128,13 @@
|
|||||||
prop="category_order"
|
prop="category_order"
|
||||||
width="100"
|
width="100"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
v-if="isAdmin"
|
||||||
|
align="center"
|
||||||
|
label="店铺名称"
|
||||||
|
prop="store_name"
|
||||||
|
width="200"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="__('移动专题')"
|
:label="__('移动专题')"
|
||||||
@ -143,7 +150,7 @@
|
|||||||
import { doDelete, doEdit, getList } from '@/api/base/product/category'
|
import { doDelete, doEdit, getList } from '@/api/base/product/category'
|
||||||
import Edit from './components/categoryManagementEdit'
|
import Edit from './components/categoryManagementEdit'
|
||||||
import { translateTitle as __ } from '@/utils/i18n'
|
import { translateTitle as __ } from '@/utils/i18n'
|
||||||
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: 'CategoryManagement',
|
name: 'CategoryManagement',
|
||||||
// eslint-disable-next-line vue/no-unused-components
|
// eslint-disable-next-line vue/no-unused-components
|
||||||
@ -154,6 +161,9 @@
|
|||||||
listLoading: true,
|
listLoading: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
...mapState('user',['isAdmin'])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
|
|||||||
@ -55,6 +55,14 @@
|
|||||||
prop="spec_id"
|
prop="spec_id"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
v-if="isAdmin"
|
||||||
|
align="center"
|
||||||
|
label="店铺名称"
|
||||||
|
prop="store_name"
|
||||||
|
width="200"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="__('规格类别名称')"
|
:label="__('规格类别名称')"
|
||||||
@ -110,7 +118,7 @@
|
|||||||
import { doDelete, getList } from '@/api/base/product/spec'
|
import { doDelete, getList } from '@/api/base/product/spec'
|
||||||
import Edit from './components/specManagementEdit'
|
import Edit from './components/specManagementEdit'
|
||||||
import { translateTitle as __ } from '@/utils/i18n'
|
import { translateTitle as __ } from '@/utils/i18n'
|
||||||
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: 'SpecManagement',
|
name: 'SpecManagement',
|
||||||
components: { Edit },
|
components: { Edit },
|
||||||
@ -131,6 +139,9 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
...mapState('user',['isAdmin'])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
@ -198,8 +209,11 @@
|
|||||||
async fetchData() {
|
async fetchData() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
const { data } = await getList(this.queryForm)
|
const { data } = await getList(this.queryForm)
|
||||||
this.list = data.items
|
if(data && data.items.length > 0){
|
||||||
this.total = data.records
|
this.list = data.items
|
||||||
|
this.total = data.records
|
||||||
|
}
|
||||||
|
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -51,6 +51,14 @@
|
|||||||
prop="type_id"
|
prop="type_id"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
v-if="isAdmin"
|
||||||
|
align="center"
|
||||||
|
label="店铺名称"
|
||||||
|
prop="store_name"
|
||||||
|
width="200"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="__('类型名称')"
|
:label="__('类型名称')"
|
||||||
@ -90,7 +98,7 @@
|
|||||||
|
|
||||||
import { doDelete, getList } from '@/api/base/product/type'
|
import { doDelete, getList } from '@/api/base/product/type'
|
||||||
import Edit from './components/BaseProductTypeEdit'
|
import Edit from './components/BaseProductTypeEdit'
|
||||||
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseProductType',
|
name: 'BaseProductType',
|
||||||
components: { Edit },
|
components: { Edit },
|
||||||
@ -111,6 +119,9 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
...mapState('user',['isAdmin'])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1164,7 +1164,10 @@ export default {
|
|||||||
async statisticCount(days) {
|
async statisticCount(days) {
|
||||||
this.polylineLoading = true
|
this.polylineLoading = true
|
||||||
const { data } = await statisticCount({ days: days })
|
const { data } = await statisticCount({ days: days })
|
||||||
if (!data) return
|
if (!data){
|
||||||
|
this.polylineLoading = false
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.polylineOption.xAxis.data = data.map((item) => item.curr_date)
|
this.polylineOption.xAxis.data = data.map((item) => item.curr_date)
|
||||||
this.polylineOption.series[0].data = data.map(
|
this.polylineOption.series[0].data = data.map(
|
||||||
(item) => item.effective_count
|
(item) => item.effective_count
|
||||||
|
|||||||
76
src/views/order/orderPush/orderPush.vue
Normal file
76
src/views/order/orderPush/orderPush.vue
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
<template>
|
||||||
|
<div class="orderPush-container">
|
||||||
|
<div class="cid-content">
|
||||||
|
<div class="cid-lable">CID:</div>
|
||||||
|
<el-input style="width: 400px;" v-model="cid" placeholder="请输入内容"></el-input>
|
||||||
|
</div>
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:autosize="{ minRows: 10, maxRows: 10}"
|
||||||
|
placeholder="请输入内容"
|
||||||
|
v-model="textarea">
|
||||||
|
</el-input>
|
||||||
|
<div class="btn-order-push" >
|
||||||
|
<el-button type="primary" @click="testOrderPush">测试推送</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { orderPushTest } from '@/api/orderPush/orderPush'
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
textarea:"测试推送到手机",
|
||||||
|
cid:'e39150691541a18fd86ef4cf08415bc4'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
async testOrderPush(){
|
||||||
|
|
||||||
|
let pamres = {
|
||||||
|
cid: this.cid, // 终端id
|
||||||
|
title: "小发同城", // 标题
|
||||||
|
message: this.textarea,
|
||||||
|
"clickType":"url", // 点击类型
|
||||||
|
"clickContent":"https://mall.gpxscs.cn"// 跳转地址
|
||||||
|
}
|
||||||
|
|
||||||
|
let res = await orderPushTest(pamres)
|
||||||
|
if(res && res.second == '推送成功'){
|
||||||
|
this.$message({
|
||||||
|
message: '推送成功',
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
this.$message({
|
||||||
|
message: res.msg || res.second,
|
||||||
|
type: 'error'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.orderPush-container{
|
||||||
|
|
||||||
|
|
||||||
|
.cid-content{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin: 20px 0;
|
||||||
|
|
||||||
|
.cid-lable{
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-order-push{
|
||||||
|
margin: 20px auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
@ -86,7 +86,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<div class="grid-content bg-purple">
|
||||||
|
<el-form-item
|
||||||
|
label="营业状态"
|
||||||
|
label-width="150px"
|
||||||
|
prop="store_district_id"
|
||||||
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="storeForm.store_biz_state"
|
||||||
|
active-color="#13ce66"
|
||||||
|
:active-value="1"
|
||||||
|
:inactive-value="2"
|
||||||
|
inactive-color="#ff4949"
|
||||||
|
active-text="营业中"
|
||||||
|
@change="handleStoreStatus"
|
||||||
|
inactive-text="已打烊">
|
||||||
|
</el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<div class="grid-content bg-purple">
|
<div class="grid-content bg-purple">
|
||||||
@ -431,6 +452,7 @@ import tree from '@/components/universalTreeSelect.vue'
|
|||||||
import keyword from '@/components/baiduMap/keyword'
|
import keyword from '@/components/baiduMap/keyword'
|
||||||
import { get, storeSetUp } from '@/api/store/base'
|
import { get, storeSetUp } from '@/api/store/base'
|
||||||
import { getTree } from '@/api/base/market/category'
|
import { getTree } from '@/api/base/market/category'
|
||||||
|
import { handleMatched } from '@/utils/routes'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SetUpShop',
|
name: 'SetUpShop',
|
||||||
@ -483,6 +505,7 @@ export default {
|
|||||||
},
|
},
|
||||||
placeholder: '',
|
placeholder: '',
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
|
isRest:false
|
||||||
},
|
},
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
label: 'category_name',
|
label: 'category_name',
|
||||||
@ -570,6 +593,7 @@ export default {
|
|||||||
store_qq: form.store_qq,
|
store_qq: form.store_qq,
|
||||||
store_ww: form.store_ww,
|
store_ww: form.store_ww,
|
||||||
company_description: form.company_description,
|
company_description: form.company_description,
|
||||||
|
store_biz_state:form.store_biz_state
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.queryArea.province.name) {
|
if (this.queryArea.province.name) {
|
||||||
@ -594,6 +618,9 @@ export default {
|
|||||||
|
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
|
handleStoreStatus(e){
|
||||||
|
this.storeForm.store_biz_state = e;
|
||||||
|
},
|
||||||
getSlideShowForm() {
|
getSlideShowForm() {
|
||||||
const form = this.slideShowForm
|
const form = this.slideShowForm
|
||||||
let params = {
|
let params = {
|
||||||
@ -671,6 +698,7 @@ export default {
|
|||||||
store_ww: data.info.store_ww,
|
store_ww: data.info.store_ww,
|
||||||
company_description: data.company.company_description,
|
company_description: data.company.company_description,
|
||||||
wx_qrcode: data.wx_qrcode,
|
wx_qrcode: data.wx_qrcode,
|
||||||
|
store_biz_state:data.store_biz_state
|
||||||
}
|
}
|
||||||
|
|
||||||
this.srcList.push(data.wx_qrcode)
|
this.srcList.push(data.wx_qrcode)
|
||||||
|
|||||||
@ -597,7 +597,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
class="btn"
|
class="btn"
|
||||||
type="danger"
|
type="danger"
|
||||||
v-if="form.signed_status <= 0 && form.approval_status !=5"
|
v-if="form.signed_status <= 0"
|
||||||
@click="getMerchApproval(2)"
|
@click="getMerchApproval(2)"
|
||||||
>
|
>
|
||||||
驳回审核
|
驳回审核
|
||||||
@ -1010,7 +1010,7 @@ export default {
|
|||||||
handlecheckbox(e) {
|
handlecheckbox(e) {
|
||||||
|
|
||||||
// 企业身份证驳回 <!-- 身份证号码,身份证正面图片,身份证反面图片--!>
|
// 企业身份证驳回 <!-- 身份证号码,身份证正面图片,身份证反面图片--!>
|
||||||
if(e.includes('legalPersonOCR')){
|
if(e.includes('legalPersonOCR') && !this.checkboxList.some(item => item === 'legal_person_id_number')){
|
||||||
|
|
||||||
let arr = [
|
let arr = [
|
||||||
'legal_person_id_number',
|
'legal_person_id_number',
|
||||||
@ -1024,7 +1024,7 @@ export default {
|
|||||||
this.checkboxList = [...arr,...this.checkboxList ]
|
this.checkboxList = [...arr,...this.checkboxList ]
|
||||||
}
|
}
|
||||||
// 个人身份证驳回 <!-- 身份证号码,身份证正面图片,身份证反面图片--!>
|
// 个人身份证驳回 <!-- 身份证号码,身份证正面图片,身份证反面图片--!>
|
||||||
if(e.includes('personOCR')){
|
if(e.includes('personOCR')&& !this.checkboxList.some(item => item === 'individual_id_number')){
|
||||||
|
|
||||||
let arr = [
|
let arr = [
|
||||||
'individual_id_number',
|
'individual_id_number',
|
||||||
@ -1039,7 +1039,7 @@ export default {
|
|||||||
this.checkboxList = [...arr,...this.checkboxList]
|
this.checkboxList = [...arr,...this.checkboxList]
|
||||||
}
|
}
|
||||||
//银行卡驳回 <!-- 银行卡上传图片,开户名称,银行卡号,开户银行 --!>
|
//银行卡驳回 <!-- 银行卡上传图片,开户名称,银行卡号,开户银行 --!>
|
||||||
if(e.includes('bankOCR')){
|
if(e.includes('bankOCR')&& !this.checkboxList.some(item => item === 'bankcard_item')){
|
||||||
|
|
||||||
let arr = [
|
let arr = [
|
||||||
'bankcard_item',
|
'bankcard_item',
|
||||||
@ -1051,7 +1051,7 @@ export default {
|
|||||||
this.checkboxList = [...arr,...this.checkboxList]
|
this.checkboxList = [...arr,...this.checkboxList]
|
||||||
}
|
}
|
||||||
// 企业营业执照驳回
|
// 企业营业执照驳回
|
||||||
if(e.includes('businessLicenseOCR')){
|
if(e.includes('businessLicenseOCR')&& !this.checkboxList.some(item => item === 'biz_license_image')){
|
||||||
|
|
||||||
let arr = [
|
let arr = [
|
||||||
'biz_license_image',
|
'biz_license_image',
|
||||||
@ -1065,10 +1065,12 @@ export default {
|
|||||||
this.checkboxList = [...arr,...this.checkboxList]
|
this.checkboxList = [...arr,...this.checkboxList]
|
||||||
}
|
}
|
||||||
|
|
||||||
if(e.includes("mapAddress")){
|
if(e.includes("mapAddress") && !this.checkboxList.some(item => item === 'store_address')){
|
||||||
this.checkboxList = ['store_address',...this.checkboxList];
|
this.checkboxList = ['store_address',...this.checkboxList];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(this.checkboxList)
|
||||||
},
|
},
|
||||||
handleCheckAllChange(val) {
|
handleCheckAllChange(val) {
|
||||||
if (this.form.entity_type == 1) {
|
if (this.form.entity_type == 1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user