【类 型】:feat
【原 因】:根据学校要求 如站点改为地块管理 商铺改为单位 【过 程】: 【影 响】: # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
c52ee41e9b
commit
f7a52217a0
@ -148,7 +148,7 @@
|
|||||||
<el-form-item label="订单ID">
|
<el-form-item label="订单ID">
|
||||||
{{ executeOrder.id }}
|
{{ executeOrder.id }}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="收货站点">
|
<el-form-item label="收货地块">
|
||||||
{{ executeOrder.receive_site_name }}
|
{{ executeOrder.receive_site_name }}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联系电话">
|
<el-form-item label="联系电话">
|
||||||
@ -447,7 +447,7 @@ export default {
|
|||||||
return this.$store.state.routeList
|
return this.$store.state.routeList
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 获取站点列表
|
* @description: 获取地块列表
|
||||||
*/
|
*/
|
||||||
siteList () {
|
siteList () {
|
||||||
return this.$store.state.siteList
|
return this.$store.state.siteList
|
||||||
@ -645,9 +645,9 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查站点是否已经绑定任务航点
|
// 检查地块是否已经绑定任务航点
|
||||||
if (checkOrder.bind_route === null) {
|
if (checkOrder.bind_route === null) {
|
||||||
this.$message.error('此站点,未绑定任务航点')
|
this.$message.error('此地块,未绑定任务航点')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -682,12 +682,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 检查站点是否有飞机正在执行
|
// 检查地块是否有飞机正在执行
|
||||||
const runningCheck = weightCheck.then(() => {
|
const runningCheck = weightCheck.then(() => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if ((checkOrder.runing ?? '').split(',').some(item => item !== '')) {
|
if ((checkOrder.runing ?? '').split(',').some(item => item !== '')) {
|
||||||
// 如果站点已经有飞机在执行任务,显示确认弹窗
|
// 如果地块已经有飞机在执行任务,显示确认弹窗
|
||||||
this.$confirm('此订单的目标站点,已经有飞机正在执行任务。请注意安全!', '检测订单', {
|
this.$confirm('此订单的目标地块,已经有飞机正在执行任务。请注意安全!', '检测订单', {
|
||||||
confirmButtonText: '继续',
|
confirmButtonText: '继续',
|
||||||
cancelButtonText: '放弃',
|
cancelButtonText: '放弃',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -758,7 +758,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 选择订单的 执行订单任务 ps:改变订单状态 站点runing状态 上传航线
|
* @description: 选择订单的 执行订单任务 ps:改变订单状态 地块runing状态 上传航线
|
||||||
*/
|
*/
|
||||||
async runQuest () {
|
async runQuest () {
|
||||||
/* 插入日志 */
|
/* 插入日志 */
|
||||||
@ -767,7 +767,7 @@ export default {
|
|||||||
let routeData // 航线数据内容
|
let routeData // 航线数据内容
|
||||||
let newRuning // 执行飞机注册后的 running字段信息
|
let newRuning // 执行飞机注册后的 running字段信息
|
||||||
try {
|
try {
|
||||||
/* 站点正在执行任务runing 注册 */
|
/* 地块正在执行任务runing 注册 */
|
||||||
const runing = (this.currentOrder.runing ?? '').split(',')
|
const runing = (this.currentOrder.runing ?? '').split(',')
|
||||||
let foundEmpty = false
|
let foundEmpty = false
|
||||||
let matchingIndex // 记录执行飞机注册的索引 此索引对应要使用的航线的索引
|
let matchingIndex // 记录执行飞机注册的索引 此索引对应要使用的航线的索引
|
||||||
@ -785,7 +785,7 @@ export default {
|
|||||||
if (!foundEmpty) {
|
if (!foundEmpty) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: '此站点所有航线均被占用,等航线空闲再试!'
|
message: '此地块所有航线均被占用,等航线空闲再试!'
|
||||||
})
|
})
|
||||||
return // 退出外层函数
|
return // 退出外层函数
|
||||||
}
|
}
|
||||||
@ -806,7 +806,7 @@ export default {
|
|||||||
this.$message.error('操作失败,航线异常')
|
this.$message.error('操作失败,航线异常')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 站点表 和 订单表 同时修改 没问题 向飞机提交航点
|
// 地块表 和 订单表 同时修改 没问题 向飞机提交航点
|
||||||
const res = await lockSite({
|
const res = await lockSite({
|
||||||
site_id: this.currentOrder.receive_site_id,
|
site_id: this.currentOrder.receive_site_id,
|
||||||
shop_id: this.plane.shop_id,
|
shop_id: this.plane.shop_id,
|
||||||
@ -879,7 +879,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 将数组重新组合成字符串
|
// 将数组重新组合成字符串
|
||||||
const newRuning = runingArray.join(',')
|
const newRuning = runingArray.join(',')
|
||||||
// 站点表 和 订单表 同时修改 没问题 让飞机状态复位
|
// 地块表 和 订单表 同时修改 没问题 让飞机状态复位
|
||||||
const res = await lockSite({
|
const res = await lockSite({
|
||||||
site_id: this.executeOrder.receive_site_id,
|
site_id: this.executeOrder.receive_site_id,
|
||||||
shop_id: this.plane.shop_id,
|
shop_id: this.plane.shop_id,
|
||||||
@ -925,7 +925,7 @@ export default {
|
|||||||
// 将数组重新组合成字符串
|
// 将数组重新组合成字符串
|
||||||
const newRuning = runingArray.join(',')
|
const newRuning = runingArray.join(',')
|
||||||
|
|
||||||
// 站点表 和 订单表 同时修改 没问题 让飞机状态复位
|
// 地块表 和 订单表 同时修改 没问题 让飞机状态复位
|
||||||
const res = await lockSite({
|
const res = await lockSite({
|
||||||
site_id: this.executeOrder.receive_site_id,
|
site_id: this.executeOrder.receive_site_id,
|
||||||
shop_id: this.plane.shop_id,
|
shop_id: this.plane.shop_id,
|
||||||
@ -957,21 +957,21 @@ export default {
|
|||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
found = true
|
found = true
|
||||||
// 获取航点信息
|
// 获取航点信息
|
||||||
if (item.bind_route !== null) { // 判断站点是否已经绑定站点
|
if (item.bind_route !== null) { // 判断地块是否已经绑定地块
|
||||||
bindRoute = (item.bind_route ?? '').split(',')
|
bindRoute = (item.bind_route ?? '').split(',')
|
||||||
this.$store.dispatch('fetchRouteList').then(res => { // 只能异步拿 虽然效率低一些
|
this.$store.dispatch('fetchRouteList').then(res => { // 只能异步拿 虽然效率低一些
|
||||||
routeData = res.find(element => element.id === bindRoute[index]).route_data
|
routeData = res.find(element => element.id === bindRoute[index]).route_data
|
||||||
this.$emit('makeRoute', JSON.parse(routeData))
|
this.$emit('makeRoute', JSON.parse(routeData))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('此站点,未绑定任务航点')
|
this.$message.error('此地块,未绑定任务航点')
|
||||||
}
|
}
|
||||||
return true // 找到匹配项后退出循环
|
return true // 找到匹配项后退出循环
|
||||||
}
|
}
|
||||||
return false // 继续循环
|
return false // 继续循环
|
||||||
})
|
})
|
||||||
if (!found) {
|
if (!found) {
|
||||||
this.$message.error('未找到匹配的站点')
|
this.$message.error('未找到匹配的地块')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -991,7 +991,7 @@ export default {
|
|||||||
const aIndex = this.waringTags.indexOf('已申请退款')
|
const aIndex = this.waringTags.indexOf('已申请退款')
|
||||||
const bIndex = this.waringTags.indexOf('已退款')
|
const bIndex = this.waringTags.indexOf('已退款')
|
||||||
const cIndex = this.waringTags.indexOf('超出飞机载重')
|
const cIndex = this.waringTags.indexOf('超出飞机载重')
|
||||||
const dIndex = this.waringTags.indexOf('站点多架执行')
|
const dIndex = this.waringTags.indexOf('地块多架执行')
|
||||||
// 退款提示
|
// 退款提示
|
||||||
if (order.refund_status === '申请中') {
|
if (order.refund_status === '申请中') {
|
||||||
if (aIndex === -1) {
|
if (aIndex === -1) {
|
||||||
@ -1019,11 +1019,11 @@ export default {
|
|||||||
this.waringTags.splice(cIndex, 1)
|
this.waringTags.splice(cIndex, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 站点多飞机执行 提示
|
// 地块多飞机执行 提示
|
||||||
const splitArray = order.runing.split(',')// 分割执行任务的飞机s
|
const splitArray = order.runing.split(',')// 分割执行任务的飞机s
|
||||||
const nonEmptyArray = splitArray.filter(item => item.trim() !== '')// 过滤掉空值
|
const nonEmptyArray = splitArray.filter(item => item.trim() !== '')// 过滤掉空值
|
||||||
if (nonEmptyArray.length > 1) { // 不止一架
|
if (nonEmptyArray.length > 1) { // 不止一架
|
||||||
this.waringTags.push('站点多架执行')
|
this.waringTags.push('地块多架执行')
|
||||||
} else {
|
} else {
|
||||||
if (dIndex !== -1) {
|
if (dIndex !== -1) {
|
||||||
this.waringTags.splice(dIndex, 1)
|
this.waringTags.splice(dIndex, 1)
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
<el-descriptions-item label="取餐号">{{ item.food_sn }}</el-descriptions-item>
|
<el-descriptions-item label="取餐号">{{ item.food_sn }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="收货人">{{ item.receiver }}</el-descriptions-item>
|
<el-descriptions-item label="收货人">{{ item.receiver }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="手机号">{{ item.tel }}</el-descriptions-item>
|
<el-descriptions-item label="手机号">{{ item.tel }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="收货站点">{{ item.receive_site_name }}</el-descriptions-item>
|
<el-descriptions-item label="收货地块">{{ item.receive_site_name }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="总重量">{{ item.total_weight }}克</el-descriptions-item>
|
<el-descriptions-item label="总重量">{{ item.total_weight }}克</el-descriptions-item>
|
||||||
<el-descriptions-item label="总价">{{ item.total_price }}元</el-descriptions-item>
|
<el-descriptions-item label="总价">{{ item.total_price }}元</el-descriptions-item>
|
||||||
<el-descriptions-item label="货品总数">{{ item.total_num }}件</el-descriptions-item>
|
<el-descriptions-item label="货品总数">{{ item.total_num }}件</el-descriptions-item>
|
||||||
@ -139,7 +139,7 @@ export default {
|
|||||||
refundApply_price: null, // 客户申请退款 的金额
|
refundApply_price: null, // 客户申请退款 的金额
|
||||||
refundPrice: null, // 退款额 ps:传订单总价 为退款的默认值
|
refundPrice: null, // 退款额 ps:传订单总价 为退款的默认值
|
||||||
refundOrder_sn: null, // 退款订单号
|
refundOrder_sn: null, // 退款订单号
|
||||||
refundShop_id: null, // 退款商铺id
|
refundShop_id: null, // 退款单位id
|
||||||
refundType: null // 退款类型
|
refundType: null // 退款类型
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -225,7 +225,7 @@ export default {
|
|||||||
// this.btPrint(con, '31', '0')
|
// this.btPrint(con, '31', '0')
|
||||||
// con = ''
|
// con = ''
|
||||||
// con += '单号:' + this.list[index].order_sn + '\n'
|
// con += '单号:' + this.list[index].order_sn + '\n'
|
||||||
// con += '收货站点:' + this.list[index].receive_site_name + '\n'
|
// con += '收货地块:' + this.list[index].receive_site_name + '\n'
|
||||||
// con += '下单时间:' + this.parseTime(this.list[index].addtime) + '\n\n'
|
// con += '下单时间:' + this.parseTime(this.list[index].addtime) + '\n\n'
|
||||||
// if (this.list[index].remark !== '') {
|
// if (this.list[index].remark !== '') {
|
||||||
// con += '------------客户备注------------\n'
|
// con += '------------客户备注------------\n'
|
||||||
|
|||||||
@ -26,7 +26,7 @@ export default {
|
|||||||
name: 'SelectionPath',
|
name: 'SelectionPath',
|
||||||
props: {
|
props: {
|
||||||
value: String, // 接收父级的值作为 prop
|
value: String, // 接收父级的值作为 prop
|
||||||
allSel: { // 是否显示 所有商铺选项
|
allSel: { // 是否显示 所有单位选项
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
@ -89,7 +89,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.updatePath()
|
this.updatePath()
|
||||||
},
|
},
|
||||||
shop_id () { // 商铺selection改变时 分类selection如果不是"全部分类" 则改成"未分类"
|
shop_id () { // 单位selection改变时 分类selection如果不是"全部分类" 则改成"未分类"
|
||||||
if (this.defaultPath !== '') {
|
if (this.defaultPath !== '') {
|
||||||
this.form.path = this.defaultPath
|
this.form.path = this.defaultPath
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-select v-model="form.shop_id" :filterable="isMobile" :placeholder="allSel === true ? '所有商铺' : '请选择,也可输入搜索'"
|
<el-select v-model="form.shop_id" :filterable="isMobile" :placeholder="allSel === true ? '所有单位' : '请选择,也可输入搜索'"
|
||||||
@input="updateShopId">
|
@input="updateShopId">
|
||||||
<el-option v-if="allSel === true && shopList.length > 1" label="所有商铺" value="">
|
<el-option v-if="allSel === true && shopList.length > 1" label="所有单位" value="">
|
||||||
<el-avatar class="vm f-s-12" shape="square" :size="25"> all </el-avatar>
|
<el-avatar class="vm f-s-12" shape="square" :size="25"> all </el-avatar>
|
||||||
<span class="rspan">所有商铺</span>
|
<span class="rspan">所有单位</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
<el-option v-for="item in shopList" :key="item.id" :label="item.name" :value="item.shop_id">
|
<el-option v-for="item in shopList" :key="item.id" :label="item.name" :value="item.shop_id">
|
||||||
<el-avatar v-if="item.logo != ''" class="vm" shape="square" :size="25" :src="item.logo[0]">
|
<el-avatar v-if="item.logo != ''" class="vm" shape="square" :size="25" :src="item.logo[0]">
|
||||||
@ -19,7 +19,7 @@ export default {
|
|||||||
name: 'SelectionShopId',
|
name: 'SelectionShopId',
|
||||||
props: {
|
props: {
|
||||||
value: String, // 接收父级的值作为 prop
|
value: String, // 接收父级的值作为 prop
|
||||||
allSel: { // 是否显示 所有商铺选项
|
allSel: { // 是否显示 所有单位选项
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// 获取商铺列表
|
// 获取单位列表
|
||||||
shopList () {
|
shopList () {
|
||||||
return this.$store.state.shopList
|
return this.$store.state.shopList
|
||||||
},
|
},
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export default {
|
|||||||
value (val) {
|
value (val) {
|
||||||
this.updateValue(val)
|
this.updateValue(val)
|
||||||
},
|
},
|
||||||
// 监听父级 "所属商铺"控件 更新时清除sku穿梭框已选值
|
// 监听父级 "所属单位"控件 更新时清除sku穿梭框已选值
|
||||||
shop_id () {
|
shop_id () {
|
||||||
this.value = []
|
this.value = []
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,7 +74,7 @@ const routes = [
|
|||||||
path: '/model/index',
|
path: '/model/index',
|
||||||
component: () => import('@/views/layout/components/main/model/index'),
|
component: () => import('@/views/layout/components/main/model/index'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '机型列表',
|
title: '机型管理',
|
||||||
icon: 'el-icon-tickets',
|
icon: 'el-icon-tickets',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'plane'
|
tapName: 'plane'
|
||||||
@ -119,7 +119,7 @@ const routes = [
|
|||||||
path: '/register/index',
|
path: '/register/index',
|
||||||
component: () => import('@/views/layout/components/main/register/index'),
|
component: () => import('@/views/layout/components/main/register/index'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '飞机列表',
|
title: '飞机管理',
|
||||||
icon: 'el-icon-tickets',
|
icon: 'el-icon-tickets',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'plane'
|
tapName: 'plane'
|
||||||
@ -253,7 +253,7 @@ const routes = [
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/site/index',
|
redirect: '/site/index',
|
||||||
meta: {
|
meta: {
|
||||||
title: '站点管理',
|
title: '地块管理',
|
||||||
icon: 'iconfont icon-zhandianguanli',
|
icon: 'iconfont icon-zhandianguanli',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'plane'
|
tapName: 'plane'
|
||||||
@ -263,7 +263,7 @@ const routes = [
|
|||||||
path: '/site/index',
|
path: '/site/index',
|
||||||
component: () => import('@/views/layout/components/main/site/index'),
|
component: () => import('@/views/layout/components/main/site/index'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '站点列表',
|
title: '地块管理',
|
||||||
icon: 'el-icon-tickets',
|
icon: 'el-icon-tickets',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'plane'
|
tapName: 'plane'
|
||||||
@ -273,7 +273,7 @@ const routes = [
|
|||||||
path: '/site/add',
|
path: '/site/add',
|
||||||
component: () => import('@/views/layout/components/main/site/add'),
|
component: () => import('@/views/layout/components/main/site/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '站点添加',
|
title: '地块添加',
|
||||||
icon: 'el-icon-plus',
|
icon: 'el-icon-plus',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'plane',
|
tapName: 'plane',
|
||||||
@ -284,7 +284,7 @@ const routes = [
|
|||||||
path: '/site/edit/:id',
|
path: '/site/edit/:id',
|
||||||
component: () => import('@/views/layout/components/main/site/add'),
|
component: () => import('@/views/layout/components/main/site/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '站点更新',
|
title: '地块更新',
|
||||||
icon: 'el-icon-edit',
|
icon: 'el-icon-edit',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'plane',
|
tapName: 'plane',
|
||||||
@ -331,7 +331,7 @@ const routes = [
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/shop/edit',
|
redirect: '/shop/edit',
|
||||||
meta: {
|
meta: {
|
||||||
title: '商铺管理',
|
title: '单位管理',
|
||||||
icon: 'iconfont icon-a-shanghu_choose2x1',
|
icon: 'iconfont icon-a-shanghu_choose2x1',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'admin'
|
tapName: 'admin'
|
||||||
@ -341,7 +341,7 @@ const routes = [
|
|||||||
path: '/shop/edit',
|
path: '/shop/edit',
|
||||||
component: () => import('@/views/layout/components/main/shop/add'),
|
component: () => import('@/views/layout/components/main/shop/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '商铺设置',
|
title: '单位设置',
|
||||||
icon: 'iconfont icon-dianpuguanli',
|
icon: 'iconfont icon-dianpuguanli',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'admin'
|
tapName: 'admin'
|
||||||
@ -351,7 +351,7 @@ const routes = [
|
|||||||
path: '/shop/add',
|
path: '/shop/add',
|
||||||
component: () => import('@/views/layout/components/main/shop/add'),
|
component: () => import('@/views/layout/components/main/shop/add'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '商铺添加',
|
title: '单位添加',
|
||||||
icon: 'iconfont icon-check',
|
icon: 'iconfont icon-check',
|
||||||
roles: ['master'],
|
roles: ['master'],
|
||||||
tapName: 'admin'
|
tapName: 'admin'
|
||||||
@ -374,7 +374,7 @@ const routes = [
|
|||||||
path: '/admin/index',
|
path: '/admin/index',
|
||||||
component: () => import('@/views/layout/components/main/admin/index'),
|
component: () => import('@/views/layout/components/main/admin/index'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '账户列表',
|
title: '账户管理',
|
||||||
icon: 'iconfont icon-yonghuguanli',
|
icon: 'iconfont icon-yonghuguanli',
|
||||||
roles: ['master', 'admin'],
|
roles: ['master', 'admin'],
|
||||||
tapName: 'admin'
|
tapName: 'admin'
|
||||||
@ -545,7 +545,8 @@ const routes = [
|
|||||||
title: '广告管理',
|
title: '广告管理',
|
||||||
icon: 'iconfont icon-guanggao',
|
icon: 'iconfont icon-guanggao',
|
||||||
roles: ['master', 'admin', 'editor'],
|
roles: ['master', 'admin', 'editor'],
|
||||||
tapName: 'admin'
|
tapName: 'admin',
|
||||||
|
hidden: true
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
@ -555,7 +556,8 @@ const routes = [
|
|||||||
title: 'banner设置',
|
title: 'banner设置',
|
||||||
icon: 'iconfont icon-banner',
|
icon: 'iconfont icon-banner',
|
||||||
roles: ['master', 'admin', 'editor'],
|
roles: ['master', 'admin', 'editor'],
|
||||||
tapName: 'admin'
|
tapName: 'admin',
|
||||||
|
hidden: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -565,7 +567,8 @@ const routes = [
|
|||||||
title: '滚动通知设置',
|
title: '滚动通知设置',
|
||||||
icon: 'iconfont icon-m-gundongwenzi',
|
icon: 'iconfont icon-m-gundongwenzi',
|
||||||
roles: ['master', 'admin', 'editor'],
|
roles: ['master', 'admin', 'editor'],
|
||||||
tapName: 'admin'
|
tapName: 'admin',
|
||||||
|
hidden: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -3,7 +3,7 @@ const baseURL = host + '/flycube.php'
|
|||||||
const listPath = host + '/Data/UploadFiles/category/'// 分类列表图标
|
const listPath = host + '/Data/UploadFiles/category/'// 分类列表图标
|
||||||
const spuPath = host + '/Data/UploadFiles/spu/'// spu图
|
const spuPath = host + '/Data/UploadFiles/spu/'// spu图
|
||||||
const skuPath = host + '/Data/UploadFiles/sku/' // sku图
|
const skuPath = host + '/Data/UploadFiles/sku/' // sku图
|
||||||
const logoPath = host + '/Data/UploadFiles/logo/' // 商铺图标
|
const logoPath = host + '/Data/UploadFiles/logo/' // 单位图标
|
||||||
const photoPath = host + '/Data/UploadFiles/photo/'// 管理员图标
|
const photoPath = host + '/Data/UploadFiles/photo/'// 管理员图标
|
||||||
const qrPath = host + '/Data/UploadFiles/qr/' // 菊花码 路径
|
const qrPath = host + '/Data/UploadFiles/qr/' // 菊花码 路径
|
||||||
const tempPath = host + '/Data/UploadFiles/temp/' // 临时图片路径
|
const tempPath = host + '/Data/UploadFiles/temp/' // 临时图片路径
|
||||||
@ -21,7 +21,7 @@ export default {
|
|||||||
* 分类图标 路径
|
* 分类图标 路径
|
||||||
* spu图 路径
|
* spu图 路径
|
||||||
* sku图 路径
|
* sku图 路径
|
||||||
* 商铺图标 路径
|
* 单位图标 路径
|
||||||
* 管理员头像 路径
|
* 管理员头像 路径
|
||||||
* 菊花码图片 路径
|
* 菊花码图片 路径
|
||||||
* 临时图片 路径
|
* 临时图片 路径
|
||||||
|
|||||||
@ -13,11 +13,11 @@ Vue.use(Vuex)
|
|||||||
|
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
state: {
|
state: {
|
||||||
shopList: [], // 商铺列表
|
shopList: [], // 单位列表
|
||||||
adminList: [], // 管理员列表
|
adminList: [], // 管理员列表
|
||||||
airList: [], // 所有飞机列表
|
airList: [], // 所有飞机列表
|
||||||
planeClassList: [], // 机型列表
|
planeClassList: [], // 机型列表
|
||||||
siteList: [], // 站点列表
|
siteList: [], // 地块列表
|
||||||
routeList: [], // 航线列表
|
routeList: [], // 航线列表
|
||||||
noflyData: [[], [], []], // [0]禁飞区数据 [1]限制飞区 [2]限飞区高度
|
noflyData: [[], [], []], // [0]禁飞区数据 [1]限制飞区 [2]限飞区高度
|
||||||
categoryList: [], // 分类列表(小程序)
|
categoryList: [], // 分类列表(小程序)
|
||||||
@ -46,7 +46,7 @@ const store = new Vuex.Store({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 设置商铺列表
|
* @description: 设置单位列表
|
||||||
*/
|
*/
|
||||||
setShopList (state, list) {
|
setShopList (state, list) {
|
||||||
state.shopList = list
|
state.shopList = list
|
||||||
@ -73,7 +73,7 @@ const store = new Vuex.Store({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 设置站点列表
|
* @description: 设置地块列表
|
||||||
*/
|
*/
|
||||||
setSiteList (state, list) {
|
setSiteList (state, list) {
|
||||||
state.siteList = list
|
state.siteList = list
|
||||||
@ -179,7 +179,7 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
/**
|
/**
|
||||||
* @description: 获取商铺列表
|
* @description: 获取单位列表
|
||||||
*/
|
*/
|
||||||
async fetchShopList ({ commit }) {
|
async fetchShopList ({ commit }) {
|
||||||
const res = await api.get('getShopList', 'Admin')
|
const res = await api.get('getShopList', 'Admin')
|
||||||
@ -199,8 +199,8 @@ const store = new Vuex.Store({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 添加商铺
|
* @description: 添加单位
|
||||||
* @param {*} 商铺信息表单
|
* @param {*} 单位信息表单
|
||||||
* @return {*} 服务器返回值
|
* @return {*} 服务器返回值
|
||||||
*/
|
*/
|
||||||
async fetchAddShop ({ dispatch }, form) {
|
async fetchAddShop ({ dispatch }, form) {
|
||||||
@ -222,7 +222,7 @@ const store = new Vuex.Store({
|
|||||||
params.append('closeing_time', form.closeing_time)
|
params.append('closeing_time', form.closeing_time)
|
||||||
const res = await api.post('addShop', params, 'Admin')
|
const res = await api.post('addShop', params, 'Admin')
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchShopList')// 刷新商铺列表
|
await dispatch('fetchShopList')// 刷新单位列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
} else {
|
} else {
|
||||||
Message.error(res.data.msg)
|
Message.error(res.data.msg)
|
||||||
@ -230,8 +230,8 @@ const store = new Vuex.Store({
|
|||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 更新管商铺信息
|
* @description: 更新管单位信息
|
||||||
* @param {*} 商铺信息表单
|
* @param {*} 单位信息表单
|
||||||
* @return {*} 服务器返回值
|
* @return {*} 服务器返回值
|
||||||
*/
|
*/
|
||||||
async fetchSaveShop ({ dispatch }, form) {
|
async fetchSaveShop ({ dispatch }, form) {
|
||||||
@ -255,7 +255,7 @@ const store = new Vuex.Store({
|
|||||||
params.append('closeing_time', form.closeing_time)
|
params.append('closeing_time', form.closeing_time)
|
||||||
const res = await api.post('saveShop', params, 'Admin')
|
const res = await api.post('saveShop', params, 'Admin')
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchShopList')// 刷新商铺列表
|
await dispatch('fetchShopList')// 刷新单位列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
} else {
|
} else {
|
||||||
Message.error(res.data.msg)
|
Message.error(res.data.msg)
|
||||||
@ -569,7 +569,7 @@ const store = new Vuex.Store({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 获取站点列表
|
* @description: 获取地块列表
|
||||||
*/
|
*/
|
||||||
async fetchSiteList ({ commit }) {
|
async fetchSiteList ({ commit }) {
|
||||||
const res = await api.get('getSiteList')
|
const res = await api.get('getSiteList')
|
||||||
@ -584,8 +584,8 @@ const store = new Vuex.Store({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 创建新站点
|
* @description: 创建新地块
|
||||||
* @param {*} form 表单.站点信息
|
* @param {*} form 表单.地块信息
|
||||||
* @return {*} 服务器返回信息
|
* @return {*} 服务器返回信息
|
||||||
*/
|
*/
|
||||||
async fetchAddSite ({ dispatch }, form) {
|
async fetchAddSite ({ dispatch }, form) {
|
||||||
@ -598,7 +598,7 @@ const store = new Vuex.Store({
|
|||||||
params.append('bindroute', form.bindroute)
|
params.append('bindroute', form.bindroute)
|
||||||
const res = await api.post('addSite', params)
|
const res = await api.post('addSite', params)
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchSiteList')// 刷新站点列表
|
await dispatch('fetchSiteList')// 刷新地块列表
|
||||||
dispatch('fetchRouteList')// 刷新航线列表
|
dispatch('fetchRouteList')// 刷新航线列表
|
||||||
dispatch('fetchPaidOrderList')// 刷订单点列表
|
dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
@ -608,8 +608,8 @@ const store = new Vuex.Store({
|
|||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 创建新站点
|
* @description: 创建新地块
|
||||||
* @param {*} form 表单.站点信息
|
* @param {*} form 表单.地块信息
|
||||||
* @return {*} 服务器返回信息
|
* @return {*} 服务器返回信息
|
||||||
*/
|
*/
|
||||||
async fetchSaveSite ({ dispatch }, form) {
|
async fetchSaveSite ({ dispatch }, form) {
|
||||||
@ -623,7 +623,7 @@ const store = new Vuex.Store({
|
|||||||
params.append('bindroute', form.bindroute)
|
params.append('bindroute', form.bindroute)
|
||||||
const res = await api.post('saveSite', params)
|
const res = await api.post('saveSite', params)
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchSiteList')// 刷新站点列表
|
await dispatch('fetchSiteList')// 刷新地块列表
|
||||||
dispatch('fetchRouteList')// 刷新航线列表
|
dispatch('fetchRouteList')// 刷新航线列表
|
||||||
dispatch('fetchPaidOrderList')// 刷订单点列表
|
dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
@ -633,8 +633,8 @@ const store = new Vuex.Store({
|
|||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 删除指定序号站点
|
* @description: 删除指定序号地块
|
||||||
* @param {*} idArray 站点序号数组
|
* @param {*} idArray 地块序号数组
|
||||||
*/
|
*/
|
||||||
fetchDelSite ({ dispatch }, idArr) {
|
fetchDelSite ({ dispatch }, idArr) {
|
||||||
if (idArr.length === 0) {
|
if (idArr.length === 0) {
|
||||||
@ -650,7 +650,7 @@ const store = new Vuex.Store({
|
|||||||
api.post('deleteSite', params).then(res => {
|
api.post('deleteSite', params).then(res => {
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
dispatch('fetchSiteList')// 刷新站点列表
|
dispatch('fetchSiteList')// 刷新地块列表
|
||||||
dispatch('fetchRouteList')// 刷新航线列表
|
dispatch('fetchRouteList')// 刷新航线列表
|
||||||
dispatch('fetchPaidOrderList')// 刷订单点列表
|
dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
} else {
|
} else {
|
||||||
@ -689,7 +689,7 @@ const store = new Vuex.Store({
|
|||||||
const res = await api.post('addRoute', params)
|
const res = await api.post('addRoute', params)
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchRouteList')// 刷新航线列表
|
await dispatch('fetchRouteList')// 刷新航线列表
|
||||||
dispatch('fetchSiteList')// 刷新站点列表
|
dispatch('fetchSiteList')// 刷新地块列表
|
||||||
dispatch('fetchPaidOrderList')// 刷订单点列表
|
dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
} else {
|
} else {
|
||||||
@ -712,7 +712,7 @@ const store = new Vuex.Store({
|
|||||||
const res = await api.post('saveRoute', params)
|
const res = await api.post('saveRoute', params)
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchRouteList')// 刷新航线列表
|
await dispatch('fetchRouteList')// 刷新航线列表
|
||||||
dispatch('fetchSiteList')// 刷新站点列表
|
dispatch('fetchSiteList')// 刷新地块列表
|
||||||
dispatch('fetchPaidOrderList')// 刷订单点列表
|
dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
} else {
|
} else {
|
||||||
@ -739,7 +739,7 @@ const store = new Vuex.Store({
|
|||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
dispatch('fetchRouteList')// 刷新航线列表
|
dispatch('fetchRouteList')// 刷新航线列表
|
||||||
dispatch('fetchSiteList')// 刷新站点列表
|
dispatch('fetchSiteList')// 刷新地块列表
|
||||||
dispatch('fetchPaidOrderList')// 刷订单点列表
|
dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
} else {
|
} else {
|
||||||
Message.error(res.data.msg)
|
Message.error(res.data.msg)
|
||||||
@ -752,7 +752,7 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 获取禁飞区数据
|
* @description: 获取禁飞区数据
|
||||||
* @param {str} shopId 需要传shopId(总管理员调用其他商铺禁飞区)
|
* @param {str} shopId 需要传shopId(总管理员调用其他单位禁飞区)
|
||||||
*/
|
*/
|
||||||
async fetchNoflyData ({ commit }, shopId) {
|
async fetchNoflyData ({ commit }, shopId) {
|
||||||
const params = new FormData()
|
const params = new FormData()
|
||||||
@ -804,7 +804,7 @@ const store = new Vuex.Store({
|
|||||||
params.append('upFile', form.upFile)
|
params.append('upFile', form.upFile)
|
||||||
const res = await api.post('addCategory', params, 'Admin')
|
const res = await api.post('addCategory', params, 'Admin')
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchCategoryList')// 刷新商铺列表
|
await dispatch('fetchCategoryList')// 刷新单位列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
} else {
|
} else {
|
||||||
Message.error(res.data.msg)
|
Message.error(res.data.msg)
|
||||||
@ -828,7 +828,7 @@ const store = new Vuex.Store({
|
|||||||
params.append('oldFile', form.oldFile)
|
params.append('oldFile', form.oldFile)
|
||||||
const res = await api.post('saveCategory', params, 'Admin')
|
const res = await api.post('saveCategory', params, 'Admin')
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await dispatch('fetchCategoryList')// 刷新商铺列表
|
await dispatch('fetchCategoryList')// 刷新单位列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
} else {
|
} else {
|
||||||
Message.error(res.data.msg)
|
Message.error(res.data.msg)
|
||||||
|
|||||||
@ -120,7 +120,7 @@ const getters = {
|
|||||||
// 获取订单页面搜索条件
|
// 获取订单页面搜索条件
|
||||||
getOrderSerch (state) {
|
getOrderSerch (state) {
|
||||||
const defaultValues = {
|
const defaultValues = {
|
||||||
shop_id: localStorage.getItem('shop_id'), // 搜索条件 商铺id
|
shop_id: localStorage.getItem('shop_id'), // 搜索条件 单位id
|
||||||
start_time: Math.floor(new Date(new Date().setHours(0, 0, 0, 0)).getTime() / 1000), // 搜索条件 起始时间 默认为今天凌晨0点
|
start_time: Math.floor(new Date(new Date().setHours(0, 0, 0, 0)).getTime() / 1000), // 搜索条件 起始时间 默认为今天凌晨0点
|
||||||
end_time: Math.floor(new Date(new Date().setHours(23, 59, 59, 999)).getTime() / 1000), // 搜索条件 结束时间 默认为今天23点59分59秒
|
end_time: Math.floor(new Date(new Date().setHours(23, 59, 59, 999)).getTime() / 1000), // 搜索条件 结束时间 默认为今天23点59分59秒
|
||||||
main_status: [], // 搜索条件 主状态
|
main_status: [], // 搜索条件 主状态
|
||||||
|
|||||||
@ -20,8 +20,8 @@ export async function apiCrosFrequency (params) {
|
|||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @description: 锁定站点 相关操作 同步操作订单表 和站点表接口
|
* @description: 锁定地块 相关操作 同步操作订单表 和地块表接口
|
||||||
* @param {*} form 表单.站点信息
|
* @param {*} form 表单.地块信息
|
||||||
* @return {*} 服务器返回信息
|
* @return {*} 服务器返回信息
|
||||||
*/
|
*/
|
||||||
export async function lockSite (form) {
|
export async function lockSite (form) {
|
||||||
@ -34,7 +34,7 @@ export async function lockSite (form) {
|
|||||||
params.append('by_plane_id', form.by_plane_id)
|
params.append('by_plane_id', form.by_plane_id)
|
||||||
const res = await api.post('lockSite', params)
|
const res = await api.post('lockSite', params)
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
await store.dispatch('fetchSiteList')// 刷新站点列表
|
await store.dispatch('fetchSiteList')// 刷新地块列表
|
||||||
store.dispatch('fetchRouteList')// 刷新航线列表
|
store.dispatch('fetchRouteList')// 刷新航线列表
|
||||||
store.dispatch('fetchPaidOrderList')// 刷订单点列表
|
store.dispatch('fetchPaidOrderList')// 刷订单点列表
|
||||||
Message.success(res.data.msg)
|
Message.success(res.data.msg)
|
||||||
@ -109,7 +109,7 @@ export async function getOrderDetails (id) {
|
|||||||
/**
|
/**
|
||||||
* @description: 退款函数
|
* @description: 退款函数
|
||||||
* @param {*} orderSn 订单号
|
* @param {*} orderSn 订单号
|
||||||
* @param {*} shopId 商铺id
|
* @param {*} shopId 单位id
|
||||||
* @param {*} refundPrice 退款金额 单位元
|
* @param {*} refundPrice 退款金额 单位元
|
||||||
* @param {*} refundType 退款类型 'buyer'买家申请 'seller'卖家主动
|
* @param {*} refundType 退款类型 'buyer'买家申请 'seller'卖家主动
|
||||||
*/
|
*/
|
||||||
@ -146,7 +146,7 @@ export async function addLog (log) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 向管理员用户发布公告
|
* @description: 向管理员用户发布公告
|
||||||
* @param {*} shop_id 商铺 ID
|
* @param {*} shop_id 单位 ID
|
||||||
* @param {*} tit 公告标题
|
* @param {*} tit 公告标题
|
||||||
* @param {*} message 公告内容
|
* @param {*} message 公告内容
|
||||||
* @param {*} idArr 接收公告的管理员ID数组
|
* @param {*} idArr 接收公告的管理员ID数组
|
||||||
@ -234,7 +234,7 @@ export async function saveFlyData (data) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 保存禁飞区数据
|
* @description: 保存禁飞区数据
|
||||||
* @param {string|number} shop_id 商铺ID
|
* @param {string|number} shop_id 单位ID
|
||||||
* @param {Array} nofly_data 禁飞区数据数组
|
* @param {Array} nofly_data 禁飞区数据数组
|
||||||
* @param {Array} restrictfly_data 限制飞区数据数组
|
* @param {Array} restrictfly_data 限制飞区数据数组
|
||||||
* @returns {Object|null} 返回接口响应数据 或 null 表示失败
|
* @returns {Object|null} 返回接口响应数据 或 null 表示失败
|
||||||
@ -261,7 +261,7 @@ export async function setNoflyData (shopId, noflyData) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 保存限飞区数据
|
* @description: 保存限飞区数据
|
||||||
* @param {string|number} shop_id 商铺ID
|
* @param {string|number} shop_id 单位ID
|
||||||
* @param {Array} restrictfly_data 限制飞区数据数组
|
* @param {Array} restrictfly_data 限制飞区数据数组
|
||||||
* @param {Array} restrictfly_height 限制飞区数据高度组
|
* @param {Array} restrictfly_height 限制飞区数据高度组
|
||||||
* @returns {Object|null} 返回接口响应数据 或 null 表示失败
|
* @returns {Object|null} 返回接口响应数据 或 null 表示失败
|
||||||
|
|||||||
@ -123,7 +123,7 @@ export default {
|
|||||||
name: 'Headbar',
|
name: 'Headbar',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
shop_id: this.$store.state.user.shop_id, // 商铺id(默认为本店) 过滤条件
|
shop_id: this.$store.state.user.shop_id, // 单位id(默认为本店) 过滤条件
|
||||||
drawer: false,
|
drawer: false,
|
||||||
getQuestInterval: null, // 用于销毁时间轴
|
getQuestInterval: null, // 用于销毁时间轴
|
||||||
animationTrumpet: true, // 喇叭动画
|
animationTrumpet: true, // 喇叭动画
|
||||||
@ -268,11 +268,11 @@ export default {
|
|||||||
this.$store.commit('app/setIsMobile') // 获取客户端平台类型
|
this.$store.commit('app/setIsMobile') // 获取客户端平台类型
|
||||||
this.$store.dispatch('fetchPlaneClassList')// 获取机型列表
|
this.$store.dispatch('fetchPlaneClassList')// 获取机型列表
|
||||||
this.$store.dispatch('fetchAirList') // 获取飞机列表
|
this.$store.dispatch('fetchAirList') // 获取飞机列表
|
||||||
this.$store.dispatch('fetchShopList') // 获取商铺列表
|
this.$store.dispatch('fetchShopList') // 获取单位列表
|
||||||
this.$store.dispatch('fetchAdminList') // 获取管理员列表
|
this.$store.dispatch('fetchAdminList') // 获取管理员列表
|
||||||
this.$store.dispatch('fetchSiteList') // 获取站点列表
|
this.$store.dispatch('fetchSiteList') // 获取地块列表
|
||||||
this.$store.dispatch('fetchRouteList') // 获取航线列表
|
this.$store.dispatch('fetchRouteList') // 获取航线列表
|
||||||
this.$store.dispatch('fetchNoflyData', this.$store.state.user.shop_id)// 获取禁飞区数据 注意这里要有shopid 总管理员再操作其他商铺飞机时 要刷新此缓存 需要对应商铺的禁飞区数据
|
this.$store.dispatch('fetchNoflyData', this.$store.state.user.shop_id)// 获取禁飞区数据 注意这里要有shopid 总管理员再操作其他单位飞机时 要刷新此缓存 需要对应单位的禁飞区数据
|
||||||
this.$store.dispatch('fetchCategoryList') // 获取分类列表(小程序)
|
this.$store.dispatch('fetchCategoryList') // 获取分类列表(小程序)
|
||||||
this.$store.dispatch('fetchPaidOrderList') // 获取订单列表
|
this.$store.dispatch('fetchPaidOrderList') // 获取订单列表
|
||||||
this.$store.dispatch('fetchMessageList')// 获取管理员公告列表 并弹出公告框
|
this.$store.dispatch('fetchMessageList')// 获取管理员公告列表 并弹出公告框
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<el-main class="border p-20 m-b-20">
|
<el-main class="border p-20 m-b-20">
|
||||||
<el-form ref="form" :model="form" label-width="120px"
|
<el-form ref="form" :model="form" label-width="120px"
|
||||||
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="账号">
|
<el-form-item label="账号">
|
||||||
|
|||||||
@ -52,9 +52,9 @@ export default {
|
|||||||
{ value: 'register', label: '飞机列表' },
|
{ value: 'register', label: '飞机列表' },
|
||||||
{ value: 'nofly', label: '飞行限制' },
|
{ value: 'nofly', label: '飞行限制' },
|
||||||
{ value: 'route', label: '航线管理' },
|
{ value: 'route', label: '航线管理' },
|
||||||
{ value: 'site', label: '站点管理' },
|
{ value: 'site', label: '地块管理' },
|
||||||
{ value: 'planes', label: '无人机' },
|
{ value: 'planes', label: '无人机' },
|
||||||
{ value: 'shop', label: '商铺管理' },
|
{ value: 'shop', label: '单位管理' },
|
||||||
{ value: 'admin', label: '账户列表' },
|
{ value: 'admin', label: '账户列表' },
|
||||||
{ value: 'message', label: '公告管理' },
|
{ value: 'message', label: '公告管理' },
|
||||||
{ value: 'category', label: '分类管理' },
|
{ value: 'category', label: '分类管理' },
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="border p-20">
|
<el-main class="border p-20">
|
||||||
<el-form label-width="120px">
|
<el-form label-width="120px">
|
||||||
<el-form-item label="所属商铺">
|
<el-form-item label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" :allSel="true" />
|
<SelectionShopId v-model="form.shop_id" :allSel="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async submitMessage () {
|
async submitMessage () {
|
||||||
if (!this.form.shop_id) {
|
if (!this.form.shop_id) {
|
||||||
this.$message.warning('请选择所属商铺')
|
this.$message.warning('请选择所属单位')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.form.idArr || this.form.idArr.length === 0) {
|
if (!this.form.idArr || this.form.idArr.length === 0) {
|
||||||
|
|||||||
@ -13,8 +13,8 @@
|
|||||||
<el-main class="border p-20 m-b-20">
|
<el-main class="border p-20 m-b-20">
|
||||||
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
||||||
|
|
||||||
<!-- 商铺选择 -->
|
<!-- 单位选择 -->
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<el-button-group class="m-l-20">
|
<el-button-group class="m-l-20">
|
||||||
<SelectionShopId v-model="form.shop_id" :allSel="true" />
|
<SelectionShopId v-model="form.shop_id" :allSel="true" />
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<!-- 站点表格 -->
|
<!-- 地块表格 -->
|
||||||
<el-table class="m-t-20 w-100" ref="myTable"
|
<el-table class="m-t-20 w-100" ref="myTable"
|
||||||
:data="classListArr.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border tooltip-effect="dark">
|
:data="classListArr.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border tooltip-effect="dark">
|
||||||
<el-table-column align="center" type="selection" width="40">
|
<el-table-column align="center" type="selection" width="40">
|
||||||
@ -67,8 +67,8 @@ export default {
|
|||||||
return this.$store.state.planeClassList || []
|
return this.$store.state.planeClassList || []
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 过滤掉 不对应客户的 站点列表
|
* @description: 过滤掉 不对应客户的 地块列表
|
||||||
* @return: 站点列表
|
* @return: 地块列表
|
||||||
*/
|
*/
|
||||||
classListArr () {
|
classListArr () {
|
||||||
if (this.form.shop_id !== '') {
|
if (this.form.shop_id !== '') {
|
||||||
|
|||||||
@ -73,7 +73,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
pageSize: 50, // 每页显示记录条数
|
pageSize: 50, // 每页显示记录条数
|
||||||
currentPage: 1, // 当前页
|
currentPage: 1, // 当前页
|
||||||
shop_id: this.$store.state.user.shop_id, // 搜索条件 商铺id
|
shop_id: this.$store.state.user.shop_id, // 搜索条件 单位id
|
||||||
orderList: [], // 订单列表
|
orderList: [], // 订单列表
|
||||||
loading: true// 表格加载动画
|
loading: true// 表格加载动画
|
||||||
}
|
}
|
||||||
|
|||||||
@ -126,7 +126,7 @@
|
|||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
<i class="iconfont icon-jingqu"></i>
|
<i class="iconfont icon-jingqu"></i>
|
||||||
收获站点
|
收获地块
|
||||||
</template>
|
</template>
|
||||||
{{ orderDetails.receive_site_name }}
|
{{ orderDetails.receive_site_name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|||||||
@ -137,7 +137,7 @@ export default {
|
|||||||
name: 'Stat',
|
name: 'Stat',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
shop_id: '', // 搜索条件 商铺id
|
shop_id: '', // 搜索条件 单位id
|
||||||
dayOrderList: [], // 日统计 订单列表
|
dayOrderList: [], // 日统计 订单列表
|
||||||
monthOrderList: [], // 月统计 订单列表
|
monthOrderList: [], // 月统计 订单列表
|
||||||
yearOrderList: [], // 年统计 订单列表
|
yearOrderList: [], // 年统计 订单列表
|
||||||
@ -271,7 +271,7 @@ export default {
|
|||||||
// 日搜索条件 集合
|
// 日搜索条件 集合
|
||||||
dayOrderSerch () {
|
dayOrderSerch () {
|
||||||
return {
|
return {
|
||||||
shop_id: this.shop_id, // 搜索条件 商铺id
|
shop_id: this.shop_id, // 搜索条件 单位id
|
||||||
start_time: Math.floor(this.dayTimestamps.start), // 搜索条件 起始时间
|
start_time: Math.floor(this.dayTimestamps.start), // 搜索条件 起始时间
|
||||||
end_time: Math.floor(this.dayTimestamps.end), // 搜索条件 结束时间
|
end_time: Math.floor(this.dayTimestamps.end), // 搜索条件 结束时间
|
||||||
main_status: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
|
main_status: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
|
||||||
@ -316,7 +316,7 @@ export default {
|
|||||||
// 月搜索条件 集合
|
// 月搜索条件 集合
|
||||||
monthOrderSerch () {
|
monthOrderSerch () {
|
||||||
return {
|
return {
|
||||||
shop_id: this.shop_id, // 搜索条件 商铺id
|
shop_id: this.shop_id, // 搜索条件 单位id
|
||||||
start_time: Math.floor(this.monthTimestamps.start), // 搜索条件 起始时间
|
start_time: Math.floor(this.monthTimestamps.start), // 搜索条件 起始时间
|
||||||
end_time: Math.floor(this.monthTimestamps.end), // 搜索条件 结束时间
|
end_time: Math.floor(this.monthTimestamps.end), // 搜索条件 结束时间
|
||||||
main_status: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
|
main_status: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
|
||||||
@ -362,7 +362,7 @@ export default {
|
|||||||
// 年搜索条件 集合
|
// 年搜索条件 集合
|
||||||
yearOrderSerch () {
|
yearOrderSerch () {
|
||||||
return {
|
return {
|
||||||
shop_id: this.shop_id, // 搜索条件 商铺id
|
shop_id: this.shop_id, // 搜索条件 单位id
|
||||||
start_time: Math.floor(this.yearTimestamps.start), // 搜索条件 起始时间
|
start_time: Math.floor(this.yearTimestamps.start), // 搜索条件 起始时间
|
||||||
end_time: Math.floor(this.yearTimestamps.end), // 搜索条件 结束时间
|
end_time: Math.floor(this.yearTimestamps.end), // 搜索条件 结束时间
|
||||||
main_status: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
|
main_status: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="border p-20 m-b-20">
|
<el-main class="border p-20 m-b-20">
|
||||||
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen?'top':'right'">
|
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen?'top':'right'">
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="单品名称">
|
<el-form-item label="单品名称">
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="border p-20 m-b-20">
|
<el-main class="border p-20 m-b-20">
|
||||||
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen?'top':'right'">
|
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen?'top':'right'">
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属分类">
|
<el-form-item label="所属分类">
|
||||||
@ -275,7 +275,7 @@ export default {
|
|||||||
if (oldval === '') { // shop_id从空值到得到值 既为刷新页面 此时初始化 编辑页面的表单
|
if (oldval === '') { // shop_id从空值到得到值 既为刷新页面 此时初始化 编辑页面的表单
|
||||||
this.initPage()// 初始化页面
|
this.initPage()// 初始化页面
|
||||||
} else { // shop_id不是从空值得到值而是从一个值 变化成另外一个值 既为selection控件变动 此时给path一个未分类"none"
|
} else { // shop_id不是从空值得到值而是从一个值 变化成另外一个值 既为selection控件变动 此时给path一个未分类"none"
|
||||||
this.form.path = 'none'// 所属商铺selection 更新时 所属分类改成未分类“none”
|
this.form.path = 'none'// 所属单位selection 更新时 所属分类改成未分类“none”
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -100,9 +100,9 @@ export default {
|
|||||||
* @return: 商品列表
|
* @return: 商品列表
|
||||||
*/
|
*/
|
||||||
spuListArr () {
|
spuListArr () {
|
||||||
// 过滤出对应商铺的商品
|
// 过滤出对应单位的商品
|
||||||
let pList = this.spuList
|
let pList = this.spuList
|
||||||
if (this.form.shop_id !== '') { // 如果不是"所有商铺" 则按shop_id过滤
|
if (this.form.shop_id !== '') { // 如果不是"所有单位" 则按shop_id过滤
|
||||||
pList = pList.filter((item) => item.shop_id === this.form.shop_id)
|
pList = pList.filter((item) => item.shop_id === this.form.shop_id)
|
||||||
}
|
}
|
||||||
// 过滤出 分类已经被删除的商品 (未分类)
|
// 过滤出 分类已经被删除的商品 (未分类)
|
||||||
|
|||||||
@ -18,8 +18,8 @@
|
|||||||
<el-form ref="form" :model="form" label-width="120px"
|
<el-form ref="form" :model="form" label-width="120px"
|
||||||
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
||||||
|
|
||||||
<!-- 只有添加模式下显示选择商铺组件 -->
|
<!-- 只有添加模式下显示选择单位组件 -->
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="商铺分配">
|
<el-form-item label="单位分配">
|
||||||
<span>{{ getShopName(shop_id) }}</span>
|
<span>{{ getShopName(shop_id) }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@ -72,11 +72,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 获取商铺名称
|
* 获取单位名称
|
||||||
*/
|
*/
|
||||||
getShopName (id) {
|
getShopName (id) {
|
||||||
const shop = this.shopList.find(item => item.shop_id === id)
|
const shop = this.shopList.find(item => item.shop_id === id)
|
||||||
return shop ? shop.name : '未知商铺'
|
return shop ? shop.name : '未知单位'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取飞机名称和 mac 地址
|
* 获取飞机名称和 mac 地址
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="border p-20 mainBox bg-white">
|
<el-main class="border p-20 mainBox bg-white">
|
||||||
<el-form ref="form" :model="form" label-width="120px">
|
<el-form ref="form" :model="form" label-width="120px">
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="航线标题">
|
<el-form-item label="航线标题">
|
||||||
@ -147,7 +147,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 创建新站点
|
* @description: 创建新地块
|
||||||
*/
|
*/
|
||||||
async addRoute () {
|
async addRoute () {
|
||||||
const res = await this.$store.dispatch('fetchAddRoute', this.form)
|
const res = await this.$store.dispatch('fetchAddRoute', this.form)
|
||||||
@ -156,7 +156,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 更新站点
|
* @description: 更新地块
|
||||||
*/
|
*/
|
||||||
async saveRoute () {
|
async saveRoute () {
|
||||||
this.form.id = this.routeId
|
this.form.id = this.routeId
|
||||||
|
|||||||
@ -14,10 +14,10 @@
|
|||||||
<el-form ref="form" :model="form" label-width="120px"
|
<el-form ref="form" :model="form" label-width="120px"
|
||||||
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
|
||||||
<!-- 用户select选项 -->
|
<!-- 用户select选项 -->
|
||||||
<el-form-item v-if="pageState === 'edit'" label="商铺选择">
|
<el-form-item v-if="pageState === 'edit'" label="单位选择">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="店铺名称">
|
<el-form-item label="单位名称">
|
||||||
<el-input v-model="form.name" placeholder="推荐使用景区名称" />
|
<el-input v-model="form.name" placeholder="推荐使用景区名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="负责人">
|
<el-form-item label="负责人">
|
||||||
@ -83,7 +83,7 @@
|
|||||||
end-placeholder="结束时间" placeholder="选择时间范围">
|
end-placeholder="结束时间" placeholder="选择时间范围">
|
||||||
</el-time-picker>
|
</el-time-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商铺LOGO">
|
<el-form-item label="单位LOGO">
|
||||||
<el-upload class="avatar-uploader" drag name="file" :action="action" :headers="myheader"
|
<el-upload class="avatar-uploader" drag name="file" :action="action" :headers="myheader"
|
||||||
:show-file-list="false" :on-success="handleUpSuccess" :on-error="handleUpErr"
|
:show-file-list="false" :on-success="handleUpSuccess" :on-error="handleUpErr"
|
||||||
:before-upload="beforeAvatarUpload">
|
:before-upload="beforeAvatarUpload">
|
||||||
@ -96,7 +96,7 @@
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述">
|
<el-form-item label="描述">
|
||||||
<el-input v-model="form.desc" type="textarea" placeholder="商铺小程序介绍说明或景区的描述等,会显示在小程序的介绍里面" />
|
<el-input v-model="form.desc" type="textarea" placeholder="单位小程序介绍说明或景区的描述等,会显示在小程序的介绍里面" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="pageState == 'add' ? true : false">
|
<el-form-item v-if="pageState == 'add' ? true : false">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="addShop">创建</el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="addShop">创建</el-button>
|
||||||
@ -155,7 +155,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
/**
|
/**
|
||||||
* @description: 获取商铺列表
|
* @description: 获取单位列表
|
||||||
*/
|
*/
|
||||||
shopList () {
|
shopList () {
|
||||||
return this.$store.state.shopList
|
return this.$store.state.shopList
|
||||||
@ -286,7 +286,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 创建新商铺
|
* @description: 创建新单位
|
||||||
*/
|
*/
|
||||||
async addShop () {
|
async addShop () {
|
||||||
this.form.opening_time = this.formatDateToString(this.form.intervalTime[0])
|
this.form.opening_time = this.formatDateToString(this.form.intervalTime[0])
|
||||||
@ -297,7 +297,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 更新商铺
|
* @description: 更新单位
|
||||||
*/
|
*/
|
||||||
async saveShop () {
|
async saveShop () {
|
||||||
this.form.opening_time = this.formatDateToString(this.form.intervalTime[0])
|
this.form.opening_time = this.formatDateToString(this.form.intervalTime[0])
|
||||||
|
|||||||
@ -12,11 +12,11 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="border p-20 m-b-20">
|
<el-main class="border p-20 m-b-20">
|
||||||
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen?'top':'right'">
|
<el-form ref="form" :model="form" label-width="120px" :label-position="$store.state.app.isWideScreen?'top':'right'">
|
||||||
<el-form-item v-if="pageState === 'add'" label="所属商铺">
|
<el-form-item v-if="pageState === 'add'" label="所属单位">
|
||||||
<SelectionShopId v-model="form.shop_id" />
|
<SelectionShopId v-model="form.shop_id" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="站点名称">
|
<el-form-item label="地块名称">
|
||||||
<el-input v-model="form.sitename" placeholder="取餐站点的名字" />
|
<el-input v-model="form.sitename" placeholder="取餐地块的名字" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="二维码尺寸">
|
<el-form-item label="二维码尺寸">
|
||||||
<el-slider v-model="form.size" :format-tooltip="formatTooltip"></el-slider>
|
<el-slider v-model="form.size" :format-tooltip="formatTooltip"></el-slider>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<el-form-item label="绑定航线">
|
<el-form-item label="绑定航线">
|
||||||
<el-transfer v-model="form.bindroute" :data="routeData" :titles="['可绑定航线', '已绑定航线']"></el-transfer>
|
<el-transfer v-model="form.bindroute" :data="routeData" :titles="['可绑定航线', '已绑定航线']"></el-transfer>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="站点描述">
|
<el-form-item label="地块描述">
|
||||||
<el-input v-model="form.desc" type="textarea" placeholder="非必填" />
|
<el-input v-model="form.desc" type="textarea" placeholder="非必填" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="pageState == 'add' ? true : false">
|
<el-form-item v-if="pageState == 'add' ? true : false">
|
||||||
@ -87,7 +87,7 @@ export default {
|
|||||||
return this.$store.state.adminList
|
return this.$store.state.adminList
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 获取站点列表
|
* @description: 获取地块列表
|
||||||
*/
|
*/
|
||||||
siteList () {
|
siteList () {
|
||||||
return this.$store.state.siteList
|
return this.$store.state.siteList
|
||||||
@ -190,7 +190,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 创建新站点
|
* @description: 创建新地块
|
||||||
*/
|
*/
|
||||||
async addSite () {
|
async addSite () {
|
||||||
const res = await this.$store.dispatch('fetchAddSite', this.form)
|
const res = await this.$store.dispatch('fetchAddSite', this.form)
|
||||||
@ -199,7 +199,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 更新站点
|
* @description: 更新地块
|
||||||
*/
|
*/
|
||||||
async saveSite () {
|
async saveSite () {
|
||||||
this.form.id = this.siteId
|
this.form.id = this.siteId
|
||||||
|
|||||||
@ -11,14 +11,14 @@
|
|||||||
<el-button-group class="m-l-20">
|
<el-button-group class="m-l-20">
|
||||||
<SelectionShopId v-model="form.shop_id" :allSel="true" />
|
<SelectionShopId v-model="form.shop_id" :allSel="true" />
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<!-- 站点表格 -->
|
<!-- 地块表格 -->
|
||||||
<el-table class="m-t-20 w-100" ref="myTable"
|
<el-table class="m-t-20 w-100" ref="myTable"
|
||||||
:data="siteListArr.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border tooltip-effect="dark">
|
:data="siteListArr.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border tooltip-effect="dark">
|
||||||
<el-table-column align="center" type="selection" width="40">
|
<el-table-column align="center" type="selection" width="40">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="id" label="id" width="50">
|
<el-table-column align="center" prop="id" label="id" width="50">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="sitename" label="站点名称" width="120" min-width="100">
|
<el-table-column prop="sitename" label="地块名称" width="120" min-width="100">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="菊花码缩率图" width="120" min-width="150">
|
<el-table-column label="菊花码缩率图" width="120" min-width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</el-image>
|
</el-image>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="describe" label="站点描述" min-width="80" show-overflow-tooltip>
|
<el-table-column prop="describe" label="地块描述" min-width="80" show-overflow-tooltip>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="已绑航线" width="200">
|
<el-table-column align="center" label="已绑航线" width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -73,14 +73,14 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
/**
|
/**
|
||||||
* @description: 获取站点列表
|
* @description: 获取地块列表
|
||||||
*/
|
*/
|
||||||
siteList () {
|
siteList () {
|
||||||
return this.$store.state.siteList
|
return this.$store.state.siteList
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 过滤掉 不对应客户的 站点列表
|
* @description: 过滤掉 不对应客户的 地块列表
|
||||||
* @return: 站点列表
|
* @return: 地块列表
|
||||||
*/
|
*/
|
||||||
siteListArr () {
|
siteListArr () {
|
||||||
if (this.form.shop_id !== '') {
|
if (this.form.shop_id !== '') {
|
||||||
@ -109,7 +109,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 删除站点
|
* @description: 删除地块
|
||||||
*/
|
*/
|
||||||
deleteSite (idArr) {
|
deleteSite (idArr) {
|
||||||
this.$store.dispatch('fetchDelSite', idArr)
|
this.$store.dispatch('fetchDelSite', idArr)
|
||||||
|
|||||||
@ -167,9 +167,9 @@ export default {
|
|||||||
},
|
},
|
||||||
isTap (val) {
|
isTap (val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.title = '无人机控制终端'
|
this.title = '控制终端'
|
||||||
} else {
|
} else {
|
||||||
this.title = '小程序后台管理'
|
this.title = '后台管理'
|
||||||
}
|
}
|
||||||
// 给导航栏切换加个 动画过渡
|
// 给导航栏切换加个 动画过渡
|
||||||
this.show = false
|
this.show = false
|
||||||
|
|||||||
@ -251,7 +251,7 @@ export default {
|
|||||||
// 订阅游客下单频道
|
// 订阅游客下单频道
|
||||||
mqtt.doSubscribe(`refreshQuestList/${this.shop_id}`, (res) => {
|
mqtt.doSubscribe(`refreshQuestList/${this.shop_id}`, (res) => {
|
||||||
if (res.topic.indexOf(`refreshQuestList/${this.shop_id}`) > -1) {
|
if (res.topic.indexOf(`refreshQuestList/${this.shop_id}`) > -1) {
|
||||||
this.$store.dispatch('fetchSiteList')// 刷新站点列表
|
this.$store.dispatch('fetchSiteList')// 刷新地块列表
|
||||||
this.$store.dispatch('fetchPaidOrderList')// 刷新订单列表 ps:待发货及待收货 并且不是退款成功状态
|
this.$store.dispatch('fetchPaidOrderList')// 刷新订单列表 ps:待发货及待收货 并且不是退款成功状态
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user