【类 型】:feat

【原  因】:根据学校要求 如站点改为地块管理 商铺改为单位
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
air 2025-06-25 12:16:44 +08:00
parent c52ee41e9b
commit f7a52217a0
30 changed files with 140 additions and 137 deletions

View File

@ -148,7 +148,7 @@
<el-form-item label="订单ID">
{{ executeOrder.id }}
</el-form-item>
<el-form-item label="收货站点">
<el-form-item label="收货地块">
{{ executeOrder.receive_site_name }}
</el-form-item>
<el-form-item label="联系电话">
@ -447,7 +447,7 @@ export default {
return this.$store.state.routeList
},
/**
* @description: 获取站点列表
* @description: 获取地块列表
*/
siteList () {
return this.$store.state.siteList
@ -645,9 +645,9 @@ export default {
return
}
//
//
if (checkOrder.bind_route === null) {
this.$message.error('此站点,未绑定任务航点')
this.$message.error('此地块,未绑定任务航点')
return
}
@ -682,12 +682,12 @@ export default {
}
})
//
//
const runningCheck = weightCheck.then(() => {
return new Promise((resolve, reject) => {
if ((checkOrder.runing ?? '').split(',').some(item => item !== '')) {
//
this.$confirm('此订单的目标站点,已经有飞机正在执行任务。请注意安全!', '检测订单', {
//
this.$confirm('此订单的目标地块,已经有飞机正在执行任务。请注意安全!', '检测订单', {
confirmButtonText: '继续',
cancelButtonText: '放弃',
type: 'warning'
@ -758,7 +758,7 @@ export default {
}
},
/**
* @description: 选择订单的 执行订单任务 ps:改变订单状态 站点runing状态 上传航线
* @description: 选择订单的 执行订单任务 ps:改变订单状态 地块runing状态 上传航线
*/
async runQuest () {
/* 插入日志 */
@ -767,7 +767,7 @@ export default {
let routeData // 线
let newRuning // running
try {
/* 站点正在执行任务runing 注册 */
/* 地块正在执行任务runing 注册 */
const runing = (this.currentOrder.runing ?? '').split(',')
let foundEmpty = false
let matchingIndex // 使线
@ -785,7 +785,7 @@ export default {
if (!foundEmpty) {
this.$message({
type: 'warning',
message: '此站点所有航线均被占用,等航线空闲再试!'
message: '此地块所有航线均被占用,等航线空闲再试!'
})
return // 退
}
@ -806,7 +806,7 @@ export default {
this.$message.error('操作失败,航线异常')
return
}
//
//
const res = await lockSite({
site_id: this.currentOrder.receive_site_id,
shop_id: this.plane.shop_id,
@ -879,7 +879,7 @@ export default {
}
//
const newRuning = runingArray.join(',')
//
//
const res = await lockSite({
site_id: this.executeOrder.receive_site_id,
shop_id: this.plane.shop_id,
@ -925,7 +925,7 @@ export default {
//
const newRuning = runingArray.join(',')
//
//
const res = await lockSite({
site_id: this.executeOrder.receive_site_id,
shop_id: this.plane.shop_id,
@ -957,21 +957,21 @@ export default {
if (index !== -1) {
found = true
//
if (item.bind_route !== null) { //
if (item.bind_route !== null) { //
bindRoute = (item.bind_route ?? '').split(',')
this.$store.dispatch('fetchRouteList').then(res => { //
routeData = res.find(element => element.id === bindRoute[index]).route_data
this.$emit('makeRoute', JSON.parse(routeData))
})
} else {
this.$message.error('此站点,未绑定任务航点')
this.$message.error('此地块,未绑定任务航点')
}
return true // 退
}
return false //
})
if (!found) {
this.$message.error('未找到匹配的站点')
this.$message.error('未找到匹配的地块')
}
},
/**
@ -991,7 +991,7 @@ export default {
const aIndex = this.waringTags.indexOf('已申请退款')
const bIndex = this.waringTags.indexOf('已退款')
const cIndex = this.waringTags.indexOf('超出飞机载重')
const dIndex = this.waringTags.indexOf('站点多架执行')
const dIndex = this.waringTags.indexOf('地块多架执行')
// 退
if (order.refund_status === '申请中') {
if (aIndex === -1) {
@ -1019,11 +1019,11 @@ export default {
this.waringTags.splice(cIndex, 1)
}
}
//
//
const splitArray = order.runing.split(',')// s
const nonEmptyArray = splitArray.filter(item => item.trim() !== '')//
if (nonEmptyArray.length > 1) { //
this.waringTags.push('站点多架执行')
this.waringTags.push('地块多架执行')
} else {
if (dIndex !== -1) {
this.waringTags.splice(dIndex, 1)

View File

@ -47,7 +47,7 @@
<el-descriptions-item label="取餐号">{{ item.food_sn }}</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.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_price }}</el-descriptions-item>
<el-descriptions-item label="货品总数">{{ item.total_num }}</el-descriptions-item>
@ -139,7 +139,7 @@ export default {
refundApply_price: null, // 退
refundPrice: null, // 退 ps: 退
refundOrder_sn: null, // 退
refundShop_id: null, // 退id
refundShop_id: null, // 退id
refundType: null // 退
}
},
@ -225,7 +225,7 @@ export default {
// this.btPrint(con, '31', '0')
// con = ''
// 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'
// if (this.list[index].remark !== '') {
// con += '------------------------\n'

View File

@ -26,7 +26,7 @@ export default {
name: 'SelectionPath',
props: {
value: String, // prop
allSel: { //
allSel: { //
type: Boolean,
default: false
},
@ -89,7 +89,7 @@ export default {
})
this.updatePath()
},
shop_id () { // selection selection"" ""
shop_id () { // selection selection"" ""
if (this.defaultPath !== '') {
this.form.path = this.defaultPath
}

View File

@ -1,9 +1,9 @@
<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">
<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>
<span class="rspan">所有商铺</span>
<span class="rspan">所有单位</span>
</el-option>
<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]">
@ -19,7 +19,7 @@ export default {
name: 'SelectionShopId',
props: {
value: String, // prop
allSel: { //
allSel: { //
type: Boolean,
default: false
}
@ -32,7 +32,7 @@ export default {
}
},
computed: {
//
//
shopList () {
return this.$store.state.shopList
},

View File

@ -39,7 +39,7 @@ export default {
value (val) {
this.updateValue(val)
},
// "" sku穿
// "" sku穿
shop_id () {
this.value = []
}

View File

@ -74,7 +74,7 @@ const routes = [
path: '/model/index',
component: () => import('@/views/layout/components/main/model/index'),
meta: {
title: '机型列表',
title: '机型管理',
icon: 'el-icon-tickets',
roles: ['master', 'admin'],
tapName: 'plane'
@ -119,7 +119,7 @@ const routes = [
path: '/register/index',
component: () => import('@/views/layout/components/main/register/index'),
meta: {
title: '飞机列表',
title: '飞机管理',
icon: 'el-icon-tickets',
roles: ['master', 'admin'],
tapName: 'plane'
@ -253,7 +253,7 @@ const routes = [
component: Layout,
redirect: '/site/index',
meta: {
title: '站点管理',
title: '地块管理',
icon: 'iconfont icon-zhandianguanli',
roles: ['master', 'admin'],
tapName: 'plane'
@ -263,7 +263,7 @@ const routes = [
path: '/site/index',
component: () => import('@/views/layout/components/main/site/index'),
meta: {
title: '站点列表',
title: '地块管理',
icon: 'el-icon-tickets',
roles: ['master', 'admin'],
tapName: 'plane'
@ -273,7 +273,7 @@ const routes = [
path: '/site/add',
component: () => import('@/views/layout/components/main/site/add'),
meta: {
title: '站点添加',
title: '地块添加',
icon: 'el-icon-plus',
roles: ['master', 'admin'],
tapName: 'plane',
@ -284,7 +284,7 @@ const routes = [
path: '/site/edit/:id',
component: () => import('@/views/layout/components/main/site/add'),
meta: {
title: '站点更新',
title: '地块更新',
icon: 'el-icon-edit',
roles: ['master', 'admin'],
tapName: 'plane',
@ -331,7 +331,7 @@ const routes = [
component: Layout,
redirect: '/shop/edit',
meta: {
title: '商铺管理',
title: '单位管理',
icon: 'iconfont icon-a-shanghu_choose2x1',
roles: ['master', 'admin'],
tapName: 'admin'
@ -341,7 +341,7 @@ const routes = [
path: '/shop/edit',
component: () => import('@/views/layout/components/main/shop/add'),
meta: {
title: '商铺设置',
title: '单位设置',
icon: 'iconfont icon-dianpuguanli',
roles: ['master', 'admin'],
tapName: 'admin'
@ -351,7 +351,7 @@ const routes = [
path: '/shop/add',
component: () => import('@/views/layout/components/main/shop/add'),
meta: {
title: '商铺添加',
title: '单位添加',
icon: 'iconfont icon-check',
roles: ['master'],
tapName: 'admin'
@ -374,7 +374,7 @@ const routes = [
path: '/admin/index',
component: () => import('@/views/layout/components/main/admin/index'),
meta: {
title: '账户列表',
title: '账户管理',
icon: 'iconfont icon-yonghuguanli',
roles: ['master', 'admin'],
tapName: 'admin'
@ -545,7 +545,8 @@ const routes = [
title: '广告管理',
icon: 'iconfont icon-guanggao',
roles: ['master', 'admin', 'editor'],
tapName: 'admin'
tapName: 'admin',
hidden: true
},
children: [
{
@ -555,7 +556,8 @@ const routes = [
title: 'banner设置',
icon: 'iconfont icon-banner',
roles: ['master', 'admin', 'editor'],
tapName: 'admin'
tapName: 'admin',
hidden: true
}
},
{
@ -565,7 +567,8 @@ const routes = [
title: '滚动通知设置',
icon: 'iconfont icon-m-gundongwenzi',
roles: ['master', 'admin', 'editor'],
tapName: 'admin'
tapName: 'admin',
hidden: true
}
}
]

View File

@ -3,7 +3,7 @@ const baseURL = host + '/flycube.php'
const listPath = host + '/Data/UploadFiles/category/'// 分类列表图标
const spuPath = host + '/Data/UploadFiles/spu/'// spu图
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 qrPath = host + '/Data/UploadFiles/qr/' // 菊花码 路径
const tempPath = host + '/Data/UploadFiles/temp/' // 临时图片路径
@ -21,7 +21,7 @@ export default {
* 分类图标 路径
* spu图 路径
* sku图 路径
* 商铺图标 路径
* 单位图标 路径
* 管理员头像 路径
* 菊花码图片 路径
* 临时图片 路径

View File

@ -13,11 +13,11 @@ Vue.use(Vuex)
const store = new Vuex.Store({
state: {
shopList: [], // 商铺列表
shopList: [], // 单位列表
adminList: [], // 管理员列表
airList: [], // 所有飞机列表
planeClassList: [], // 机型列表
siteList: [], // 站点列表
siteList: [], // 地块列表
routeList: [], // 航线列表
noflyData: [[], [], []], // [0]禁飞区数据 [1]限制飞区 [2]限飞区高度
categoryList: [], // 分类列表(小程序)
@ -46,7 +46,7 @@ const store = new Vuex.Store({
}
},
/**
* @description: 设置商铺列表
* @description: 设置单位列表
*/
setShopList (state, list) {
state.shopList = list
@ -73,7 +73,7 @@ const store = new Vuex.Store({
}
},
/**
* @description: 设置站点列表
* @description: 设置地块列表
*/
setSiteList (state, list) {
state.siteList = list
@ -179,7 +179,7 @@ const store = new Vuex.Store({
},
actions: {
/**
* @description: 获取商铺列表
* @description: 获取单位列表
*/
async fetchShopList ({ commit }) {
const res = await api.get('getShopList', 'Admin')
@ -199,8 +199,8 @@ const store = new Vuex.Store({
}
},
/**
* @description: 添加商铺
* @param {*} 商铺信息表单
* @description: 添加单位
* @param {*} 单位信息表单
* @return {*} 服务器返回值
*/
async fetchAddShop ({ dispatch }, form) {
@ -222,7 +222,7 @@ const store = new Vuex.Store({
params.append('closeing_time', form.closeing_time)
const res = await api.post('addShop', params, 'Admin')
if (res.data.status === 1) {
await dispatch('fetchShopList')// 刷新商铺列表
await dispatch('fetchShopList')// 刷新单位列表
Message.success(res.data.msg)
} else {
Message.error(res.data.msg)
@ -230,8 +230,8 @@ const store = new Vuex.Store({
return res
},
/**
* @description: 更新管商铺信息
* @param {*} 商铺信息表单
* @description: 更新管单位信息
* @param {*} 单位信息表单
* @return {*} 服务器返回值
*/
async fetchSaveShop ({ dispatch }, form) {
@ -255,7 +255,7 @@ const store = new Vuex.Store({
params.append('closeing_time', form.closeing_time)
const res = await api.post('saveShop', params, 'Admin')
if (res.data.status === 1) {
await dispatch('fetchShopList')// 刷新商铺列表
await dispatch('fetchShopList')// 刷新单位列表
Message.success(res.data.msg)
} else {
Message.error(res.data.msg)
@ -569,7 +569,7 @@ const store = new Vuex.Store({
}
},
/**
* @description: 获取站点列表
* @description: 获取地块列表
*/
async fetchSiteList ({ commit }) {
const res = await api.get('getSiteList')
@ -584,8 +584,8 @@ const store = new Vuex.Store({
}
},
/**
* @description: 创建新站点
* @param {*} form 表单.站点信息
* @description: 创建新地块
* @param {*} form 表单.地块信息
* @return {*} 服务器返回信息
*/
async fetchAddSite ({ dispatch }, form) {
@ -598,7 +598,7 @@ const store = new Vuex.Store({
params.append('bindroute', form.bindroute)
const res = await api.post('addSite', params)
if (res.data.status === 1) {
await dispatch('fetchSiteList')// 刷新站点列表
await dispatch('fetchSiteList')// 刷新地块列表
dispatch('fetchRouteList')// 刷新航线列表
dispatch('fetchPaidOrderList')// 刷订单点列表
Message.success(res.data.msg)
@ -608,8 +608,8 @@ const store = new Vuex.Store({
return res
},
/**
* @description: 创建新站点
* @param {*} form 表单.站点信息
* @description: 创建新地块
* @param {*} form 表单.地块信息
* @return {*} 服务器返回信息
*/
async fetchSaveSite ({ dispatch }, form) {
@ -623,7 +623,7 @@ const store = new Vuex.Store({
params.append('bindroute', form.bindroute)
const res = await api.post('saveSite', params)
if (res.data.status === 1) {
await dispatch('fetchSiteList')// 刷新站点列表
await dispatch('fetchSiteList')// 刷新地块列表
dispatch('fetchRouteList')// 刷新航线列表
dispatch('fetchPaidOrderList')// 刷订单点列表
Message.success(res.data.msg)
@ -633,8 +633,8 @@ const store = new Vuex.Store({
return res
},
/**
* @description: 删除指定序号站点
* @param {*} idArray 站点序号数组
* @description: 删除指定序号地块
* @param {*} idArray 地块序号数组
*/
fetchDelSite ({ dispatch }, idArr) {
if (idArr.length === 0) {
@ -650,7 +650,7 @@ const store = new Vuex.Store({
api.post('deleteSite', params).then(res => {
if (res.data.status === 1) {
Message.success(res.data.msg)
dispatch('fetchSiteList')// 刷新站点列表
dispatch('fetchSiteList')// 刷新地块列表
dispatch('fetchRouteList')// 刷新航线列表
dispatch('fetchPaidOrderList')// 刷订单点列表
} else {
@ -689,7 +689,7 @@ const store = new Vuex.Store({
const res = await api.post('addRoute', params)
if (res.data.status === 1) {
await dispatch('fetchRouteList')// 刷新航线列表
dispatch('fetchSiteList')// 刷新站点列表
dispatch('fetchSiteList')// 刷新地块列表
dispatch('fetchPaidOrderList')// 刷订单点列表
Message.success(res.data.msg)
} else {
@ -712,7 +712,7 @@ const store = new Vuex.Store({
const res = await api.post('saveRoute', params)
if (res.data.status === 1) {
await dispatch('fetchRouteList')// 刷新航线列表
dispatch('fetchSiteList')// 刷新站点列表
dispatch('fetchSiteList')// 刷新地块列表
dispatch('fetchPaidOrderList')// 刷订单点列表
Message.success(res.data.msg)
} else {
@ -739,7 +739,7 @@ const store = new Vuex.Store({
if (res.data.status === 1) {
Message.success(res.data.msg)
dispatch('fetchRouteList')// 刷新航线列表
dispatch('fetchSiteList')// 刷新站点列表
dispatch('fetchSiteList')// 刷新地块列表
dispatch('fetchPaidOrderList')// 刷订单点列表
} else {
Message.error(res.data.msg)
@ -752,7 +752,7 @@ const store = new Vuex.Store({
},
/**
* @description: 获取禁飞区数据
* @param {str} shopId 需要传shopId总管理员调用其他商铺禁飞区
* @param {str} shopId 需要传shopId总管理员调用其他单位禁飞区
*/
async fetchNoflyData ({ commit }, shopId) {
const params = new FormData()
@ -804,7 +804,7 @@ const store = new Vuex.Store({
params.append('upFile', form.upFile)
const res = await api.post('addCategory', params, 'Admin')
if (res.data.status === 1) {
await dispatch('fetchCategoryList')// 刷新商铺列表
await dispatch('fetchCategoryList')// 刷新单位列表
Message.success(res.data.msg)
} else {
Message.error(res.data.msg)
@ -828,7 +828,7 @@ const store = new Vuex.Store({
params.append('oldFile', form.oldFile)
const res = await api.post('saveCategory', params, 'Admin')
if (res.data.status === 1) {
await dispatch('fetchCategoryList')// 刷新商铺列表
await dispatch('fetchCategoryList')// 刷新单位列表
Message.success(res.data.msg)
} else {
Message.error(res.data.msg)

View File

@ -120,7 +120,7 @@ const getters = {
// 获取订单页面搜索条件
getOrderSerch (state) {
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点
end_time: Math.floor(new Date(new Date().setHours(23, 59, 59, 999)).getTime() / 1000), // 搜索条件 结束时间 默认为今天23点59分59秒
main_status: [], // 搜索条件 主状态

View File

@ -20,8 +20,8 @@ export async function apiCrosFrequency (params) {
return res
}
/**
* @description: 锁定站点 相关操作 同步操作订单表 和站点表接口
* @param {*} form 表单.站点信息
* @description: 锁定地块 相关操作 同步操作订单表 和地块表接口
* @param {*} form 表单.地块信息
* @return {*} 服务器返回信息
*/
export async function lockSite (form) {
@ -34,7 +34,7 @@ export async function lockSite (form) {
params.append('by_plane_id', form.by_plane_id)
const res = await api.post('lockSite', params)
if (res.data.status === 1) {
await store.dispatch('fetchSiteList')// 刷新站点列表
await store.dispatch('fetchSiteList')// 刷新地块列表
store.dispatch('fetchRouteList')// 刷新航线列表
store.dispatch('fetchPaidOrderList')// 刷订单点列表
Message.success(res.data.msg)
@ -109,7 +109,7 @@ export async function getOrderDetails (id) {
/**
* @description: 退款函数
* @param {*} orderSn 订单号
* @param {*} shopId 商铺id
* @param {*} shopId 单位id
* @param {*} refundPrice 退款金额 单位元
* @param {*} refundType 退款类型 'buyer'买家申请 'seller'卖家主动
*/
@ -146,7 +146,7 @@ export async function addLog (log) {
/**
* @description: 向管理员用户发布公告
* @param {*} shop_id 商铺 ID
* @param {*} shop_id 单位 ID
* @param {*} tit 公告标题
* @param {*} message 公告内容
* @param {*} idArr 接收公告的管理员ID数组
@ -234,7 +234,7 @@ export async function saveFlyData (data) {
/**
* @description: 保存禁飞区数据
* @param {string|number} shop_id 商铺ID
* @param {string|number} shop_id 单位ID
* @param {Array} nofly_data 禁飞区数据数组
* @param {Array} restrictfly_data 限制飞区数据数组
* @returns {Object|null} 返回接口响应数据 null 表示失败
@ -261,7 +261,7 @@ export async function setNoflyData (shopId, noflyData) {
/**
* @description: 保存限飞区数据
* @param {string|number} shop_id 商铺ID
* @param {string|number} shop_id 单位ID
* @param {Array} restrictfly_data 限制飞区数据数组
* @param {Array} restrictfly_height 限制飞区数据高度组
* @returns {Object|null} 返回接口响应数据 null 表示失败

View File

@ -123,7 +123,7 @@ export default {
name: 'Headbar',
data () {
return {
shop_id: this.$store.state.user.shop_id, // id()
shop_id: this.$store.state.user.shop_id, // id()
drawer: false,
getQuestInterval: null, //
animationTrumpet: true, //
@ -268,11 +268,11 @@ export default {
this.$store.commit('app/setIsMobile') //
this.$store.dispatch('fetchPlaneClassList')//
this.$store.dispatch('fetchAirList') //
this.$store.dispatch('fetchShopList') //
this.$store.dispatch('fetchShopList') //
this.$store.dispatch('fetchAdminList') //
this.$store.dispatch('fetchSiteList') //
this.$store.dispatch('fetchSiteList') //
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('fetchPaidOrderList') //
this.$store.dispatch('fetchMessageList')//

View File

@ -13,7 +13,7 @@
<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-item v-if="pageState === 'add'" label="所属商铺">
<el-form-item v-if="pageState === 'add'" label="所属单位">
<SelectionShopId v-model="form.shop_id" />
</el-form-item>
<el-form-item label="账号">

View File

@ -52,9 +52,9 @@ export default {
{ value: 'register', label: '飞机列表' },
{ value: 'nofly', label: '飞行限制' },
{ value: 'route', label: '航线管理' },
{ value: 'site', label: '站点管理' },
{ value: 'site', label: '地块管理' },
{ value: 'planes', label: '无人机' },
{ value: 'shop', label: '商铺管理' },
{ value: 'shop', label: '单位管理' },
{ value: 'admin', label: '账户列表' },
{ value: 'message', label: '公告管理' },
{ value: 'category', label: '分类管理' },

View File

@ -11,7 +11,7 @@
</el-header>
<el-main class="border p-20">
<el-form label-width="120px">
<el-form-item label="所属商铺">
<el-form-item label="所属单位">
<SelectionShopId v-model="form.shop_id" :allSel="true" />
</el-form-item>
@ -101,7 +101,7 @@ export default {
},
async submitMessage () {
if (!this.form.shop_id) {
this.$message.warning('请选择所属商铺')
this.$message.warning('请选择所属单位')
return
}
if (!this.form.idArr || this.form.idArr.length === 0) {

View File

@ -13,8 +13,8 @@
<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-item v-if="pageState === 'add'" label="所属商铺">
<!-- 单位选择 -->
<el-form-item v-if="pageState === 'add'" label="所属单位">
<SelectionShopId v-model="form.shop_id" />
</el-form-item>

View File

@ -11,7 +11,7 @@
<el-button-group class="m-l-20">
<SelectionShopId v-model="form.shop_id" :allSel="true" />
</el-button-group>
<!-- 站点表格 -->
<!-- 地块表格 -->
<el-table class="m-t-20 w-100" ref="myTable"
:data="classListArr.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border tooltip-effect="dark">
<el-table-column align="center" type="selection" width="40">
@ -67,8 +67,8 @@ export default {
return this.$store.state.planeClassList || []
},
/**
* @description: 过滤掉 不对应客户的 站点列表
* @return: 站点列表
* @description: 过滤掉 不对应客户的 地块列表
* @return: 地块列表
*/
classListArr () {
if (this.form.shop_id !== '') {

View File

@ -73,7 +73,7 @@ export default {
return {
pageSize: 50, //
currentPage: 1, //
shop_id: this.$store.state.user.shop_id, // id
shop_id: this.$store.state.user.shop_id, // id
orderList: [], //
loading: true//
}

View File

@ -126,7 +126,7 @@
<el-descriptions-item>
<template slot="label">
<i class="iconfont icon-jingqu"></i>
收获站点
收获地块
</template>
{{ orderDetails.receive_site_name }}
</el-descriptions-item>

View File

@ -137,7 +137,7 @@ export default {
name: 'Stat',
data () {
return {
shop_id: '', // id
shop_id: '', // id
dayOrderList: [], //
monthOrderList: [], //
yearOrderList: [], //
@ -271,7 +271,7 @@ export default {
//
dayOrderSerch () {
return {
shop_id: this.shop_id, // id
shop_id: this.shop_id, // id
start_time: Math.floor(this.dayTimestamps.start), //
end_time: Math.floor(this.dayTimestamps.end), //
main_status: ['已付款', '已退款', '已完成'], //
@ -316,7 +316,7 @@ export default {
//
monthOrderSerch () {
return {
shop_id: this.shop_id, // id
shop_id: this.shop_id, // id
start_time: Math.floor(this.monthTimestamps.start), //
end_time: Math.floor(this.monthTimestamps.end), //
main_status: ['已付款', '已退款', '已完成'], //
@ -362,7 +362,7 @@ export default {
//
yearOrderSerch () {
return {
shop_id: this.shop_id, // id
shop_id: this.shop_id, // id
start_time: Math.floor(this.yearTimestamps.start), //
end_time: Math.floor(this.yearTimestamps.end), //
main_status: ['已付款', '已退款', '已完成'], //

View File

@ -12,7 +12,7 @@
</el-header>
<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-item v-if="pageState === 'add'" label="所属商铺">
<el-form-item v-if="pageState === 'add'" label="所属单位">
<SelectionShopId v-model="form.shop_id" />
</el-form-item>
<el-form-item label="单品名称">

View File

@ -12,7 +12,7 @@
</el-header>
<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-item v-if="pageState === 'add'" label="所属商铺">
<el-form-item v-if="pageState === 'add'" label="所属单位">
<SelectionShopId v-model="form.shop_id" />
</el-form-item>
<el-form-item label="所属分类">
@ -275,7 +275,7 @@ export default {
if (oldval === '') { // shop_id
this.initPage()//
} else { // shop_id selection path"none"
this.form.path = 'none'// selection none
this.form.path = 'none'// selection none
}
}
},

View File

@ -100,9 +100,9 @@ export default {
* @return: 商品列表
*/
spuListArr () {
//
//
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)
}
//

View File

@ -18,8 +18,8 @@
<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" />
</el-form-item>

View File

@ -17,7 +17,7 @@
</el-tag>
</el-form-item>
<el-form-item label="商铺分配">
<el-form-item label="单位分配">
<span>{{ getShopName(shop_id) }}</span>
</el-form-item>
@ -72,11 +72,11 @@ export default {
},
methods: {
/**
* 获取商铺名称
* 获取单位名称
*/
getShopName (id) {
const shop = this.shopList.find(item => item.shop_id === id)
return shop ? shop.name : '未知商铺'
return shop ? shop.name : '未知单位'
},
/**
* 获取飞机名称和 mac 地址

View File

@ -14,7 +14,7 @@
</el-header>
<el-main class="border p-20 mainBox bg-white">
<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" />
</el-form-item>
<el-form-item label="航线标题">
@ -147,7 +147,7 @@ export default {
}
},
/**
* @description: 创建新站点
* @description: 创建新地块
*/
async addRoute () {
const res = await this.$store.dispatch('fetchAddRoute', this.form)
@ -156,7 +156,7 @@ export default {
}
},
/**
* @description: 更新站点
* @description: 更新地块
*/
async saveRoute () {
this.form.id = this.routeId

View File

@ -14,10 +14,10 @@
<el-form ref="form" :model="form" label-width="120px"
:label-position="$store.state.app.isWideScreen ? 'top' : 'right'">
<!-- 用户select选项 -->
<el-form-item v-if="pageState === 'edit'" label="商铺选择">
<el-form-item v-if="pageState === 'edit'" label="单位选择">
<SelectionShopId v-model="form.shop_id" />
</el-form-item>
<el-form-item label="店铺名称">
<el-form-item label="单位名称">
<el-input v-model="form.name" placeholder="推荐使用景区名称" />
</el-form-item>
<el-form-item label="负责人">
@ -83,7 +83,7 @@
end-placeholder="结束时间" placeholder="选择时间范围">
</el-time-picker>
</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"
:show-file-list="false" :on-success="handleUpSuccess" :on-error="handleUpErr"
:before-upload="beforeAvatarUpload">
@ -96,7 +96,7 @@
</el-upload>
</el-form-item>
<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 v-if="pageState == 'add' ? true : false">
<el-button type="primary" icon="el-icon-plus" @click="addShop">创建</el-button>
@ -155,7 +155,7 @@ export default {
},
computed: {
/**
* @description: 获取商铺列表
* @description: 获取单位列表
*/
shopList () {
return this.$store.state.shopList
@ -286,7 +286,7 @@ export default {
}
},
/**
* @description: 创建新商铺
* @description: 创建新单位
*/
async addShop () {
this.form.opening_time = this.formatDateToString(this.form.intervalTime[0])
@ -297,7 +297,7 @@ export default {
}
},
/**
* @description: 更新商铺
* @description: 更新单位
*/
async saveShop () {
this.form.opening_time = this.formatDateToString(this.form.intervalTime[0])

View File

@ -12,11 +12,11 @@
</el-header>
<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-item v-if="pageState === 'add'" label="所属商铺">
<el-form-item v-if="pageState === 'add'" label="所属单位">
<SelectionShopId v-model="form.shop_id" />
</el-form-item>
<el-form-item label="站点名称">
<el-input v-model="form.sitename" placeholder="取餐站点的名字" />
<el-form-item label="地块名称">
<el-input v-model="form.sitename" placeholder="取餐地块的名字" />
</el-form-item>
<el-form-item label="二维码尺寸">
<el-slider v-model="form.size" :format-tooltip="formatTooltip"></el-slider>
@ -36,7 +36,7 @@
<el-form-item label="绑定航线">
<el-transfer v-model="form.bindroute" :data="routeData" :titles="['可绑定航线', '已绑定航线']"></el-transfer>
</el-form-item>
<el-form-item label="站点描述">
<el-form-item label="地块描述">
<el-input v-model="form.desc" type="textarea" placeholder="非必填" />
</el-form-item>
<el-form-item v-if="pageState == 'add' ? true : false">
@ -87,7 +87,7 @@ export default {
return this.$store.state.adminList
},
/**
* @description: 获取站点列表
* @description: 获取地块列表
*/
siteList () {
return this.$store.state.siteList
@ -190,7 +190,7 @@ export default {
}
},
/**
* @description: 创建新站点
* @description: 创建新地块
*/
async addSite () {
const res = await this.$store.dispatch('fetchAddSite', this.form)
@ -199,7 +199,7 @@ export default {
}
},
/**
* @description: 更新站点
* @description: 更新地块
*/
async saveSite () {
this.form.id = this.siteId

View File

@ -11,14 +11,14 @@
<el-button-group class="m-l-20">
<SelectionShopId v-model="form.shop_id" :allSel="true" />
</el-button-group>
<!-- 站点表格 -->
<!-- 地块表格 -->
<el-table class="m-t-20 w-100" ref="myTable"
:data="siteListArr.slice((currentPage - 1) * pageSize, currentPage * pageSize)" border tooltip-effect="dark">
<el-table-column align="center" type="selection" width="40">
</el-table-column>
<el-table-column align="center" prop="id" label="id" width="50">
</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 label="菊花码缩率图" width="120" min-width="150">
<template slot-scope="scope">
@ -26,7 +26,7 @@
</el-image>
</template>
</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 align="center" label="已绑航线" width="200">
<template slot-scope="scope">
@ -73,14 +73,14 @@ export default {
},
computed: {
/**
* @description: 获取站点列表
* @description: 获取地块列表
*/
siteList () {
return this.$store.state.siteList
},
/**
* @description: 过滤掉 不对应客户的 站点列表
* @return: 站点列表
* @description: 过滤掉 不对应客户的 地块列表
* @return: 地块列表
*/
siteListArr () {
if (this.form.shop_id !== '') {
@ -109,7 +109,7 @@ export default {
}
},
/**
* @description: 删除站点
* @description: 删除地块
*/
deleteSite (idArr) {
this.$store.dispatch('fetchDelSite', idArr)

View File

@ -167,9 +167,9 @@ export default {
},
isTap (val) {
if (val) {
this.title = '无人机控制终端'
this.title = '控制终端'
} else {
this.title = '小程序后台管理'
this.title = '后台管理'
}
//
this.show = false

View File

@ -251,7 +251,7 @@ export default {
//
mqtt.doSubscribe(`refreshQuestList/${this.shop_id}`, (res) => {
if (res.topic.indexOf(`refreshQuestList/${this.shop_id}`) > -1) {
this.$store.dispatch('fetchSiteList')//
this.$store.dispatch('fetchSiteList')//
this.$store.dispatch('fetchPaidOrderList')// ps: 退
}
})