From f7a52217a028a568080c5832389c4ee078a5902d Mon Sep 17 00:00:00 2001
From: air <30444667+sszdot@users.noreply.github.com>
Date: Wed, 25 Jun 2025 12:16:44 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?=
=?UTF-8?q?=EF=BC=9Afeat=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?=
=?UTF-8?q?=EF=BC=9A=E6=A0=B9=E6=8D=AE=E5=AD=A6=E6=A0=A1=E8=A6=81=E6=B1=82?=
=?UTF-8?q?=20=E5=A6=82=E7=AB=99=E7=82=B9=E6=94=B9=E4=B8=BA=E5=9C=B0?=
=?UTF-8?q?=E5=9D=97=E7=AE=A1=E7=90=86=20=E5=95=86=E9=93=BA=E6=94=B9?=
=?UTF-8?q?=E4=B8=BA=E5=8D=95=E4=BD=8D=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B?=
=?UTF-8?q?=E3=80=91=EF=BC=9A=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91?=
=?UTF-8?q?=EF=BC=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
---
src/components/ControllerTabs.vue | 38 ++++++-------
src/components/QuestTabs.vue | 6 +--
src/components/SelectionPath.vue | 4 +-
src/components/SelectionShopId.vue | 10 ++--
src/components/SkuTransfer.vue | 2 +-
src/router/index.js | 29 +++++-----
src/settings.js | 4 +-
src/store/index.js | 54 +++++++++----------
src/store/modules/app.js | 2 +-
src/utils/api/table.js | 14 ++---
src/views/layout/components/headbar.vue | 8 +--
.../layout/components/main/admin/add.vue | 2 +-
src/views/layout/components/main/home/set.vue | 4 +-
.../layout/components/main/message/pub.vue | 4 +-
.../layout/components/main/model/add.vue | 4 +-
.../layout/components/main/model/index.vue | 6 +--
.../layout/components/main/order/index.vue | 2 +-
.../layout/components/main/order/show.vue | 2 +-
.../layout/components/main/order/stat.vue | 8 +--
.../components/main/product/sku/add.vue | 2 +-
.../components/main/product/spu/add.vue | 4 +-
.../components/main/product/spu/index.vue | 4 +-
.../layout/components/main/register/add.vue | 4 +-
.../main/register/crosFrequency.vue | 6 +--
.../layout/components/main/route/add.vue | 6 +--
src/views/layout/components/main/shop/add.vue | 14 ++---
src/views/layout/components/main/site/add.vue | 14 ++---
.../layout/components/main/site/index.vue | 14 ++---
src/views/layout/components/menubar.vue | 4 +-
src/views/layout/index.vue | 2 +-
30 files changed, 140 insertions(+), 137 deletions(-)
diff --git a/src/components/ControllerTabs.vue b/src/components/ControllerTabs.vue
index f96308e..5b49acd 100644
--- a/src/components/ControllerTabs.vue
+++ b/src/components/ControllerTabs.vue
@@ -148,7 +148,7 @@
{{ executeOrder.id }}
-
+
{{ executeOrder.receive_site_name }}
@@ -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)
diff --git a/src/components/QuestTabs.vue b/src/components/QuestTabs.vue
index a6d7bd1..755f1b8 100644
--- a/src/components/QuestTabs.vue
+++ b/src/components/QuestTabs.vue
@@ -47,7 +47,7 @@
{{ item.food_sn }}
{{ item.receiver }}
{{ item.tel }}
- {{ item.receive_site_name }}
+ {{ item.receive_site_name }}
{{ item.total_weight }}克
{{ item.total_price }}元
{{ item.total_num }}件
@@ -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'
diff --git a/src/components/SelectionPath.vue b/src/components/SelectionPath.vue
index b58066e..a528bec 100644
--- a/src/components/SelectionPath.vue
+++ b/src/components/SelectionPath.vue
@@ -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
}
diff --git a/src/components/SelectionShopId.vue b/src/components/SelectionShopId.vue
index 310dbe7..ea8c52e 100644
--- a/src/components/SelectionShopId.vue
+++ b/src/components/SelectionShopId.vue
@@ -1,9 +1,9 @@
-
-
+
all
- 所有商铺
+ 所有单位
@@ -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
},
diff --git a/src/components/SkuTransfer.vue b/src/components/SkuTransfer.vue
index 871c20c..1024050 100644
--- a/src/components/SkuTransfer.vue
+++ b/src/components/SkuTransfer.vue
@@ -39,7 +39,7 @@ export default {
value (val) {
this.updateValue(val)
},
- // 监听父级 "所属商铺"控件 更新时清除sku穿梭框已选值
+ // 监听父级 "所属单位"控件 更新时清除sku穿梭框已选值
shop_id () {
this.value = []
}
diff --git a/src/router/index.js b/src/router/index.js
index 9555023..a39ec25 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -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
}
}
]
diff --git a/src/settings.js b/src/settings.js
index c6b6c60..3b58728 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -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图 路径
- * 商铺图标 路径
+ * 单位图标 路径
* 管理员头像 路径
* 菊花码图片 路径
* 临时图片 路径
diff --git a/src/store/index.js b/src/store/index.js
index 085739c..b2410a2 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -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)
diff --git a/src/store/modules/app.js b/src/store/modules/app.js
index 2757f05..1ca43fb 100644
--- a/src/store/modules/app.js
+++ b/src/store/modules/app.js
@@ -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: [], // 搜索条件 主状态
diff --git a/src/utils/api/table.js b/src/utils/api/table.js
index 778918b..4fd4e9a 100644
--- a/src/utils/api/table.js
+++ b/src/utils/api/table.js
@@ -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 表示失败
diff --git a/src/views/layout/components/headbar.vue b/src/views/layout/components/headbar.vue
index ef8a760..503fe72 100644
--- a/src/views/layout/components/headbar.vue
+++ b/src/views/layout/components/headbar.vue
@@ -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')// 获取管理员公告列表 并弹出公告框
diff --git a/src/views/layout/components/main/admin/add.vue b/src/views/layout/components/main/admin/add.vue
index 75278b8..0768d9c 100644
--- a/src/views/layout/components/main/admin/add.vue
+++ b/src/views/layout/components/main/admin/add.vue
@@ -13,7 +13,7 @@
-
+
diff --git a/src/views/layout/components/main/home/set.vue b/src/views/layout/components/main/home/set.vue
index d3082d5..89975b9 100644
--- a/src/views/layout/components/main/home/set.vue
+++ b/src/views/layout/components/main/home/set.vue
@@ -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: '分类管理' },
diff --git a/src/views/layout/components/main/message/pub.vue b/src/views/layout/components/main/message/pub.vue
index 266d72a..21dab64 100644
--- a/src/views/layout/components/main/message/pub.vue
+++ b/src/views/layout/components/main/message/pub.vue
@@ -11,7 +11,7 @@
-
+
@@ -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) {
diff --git a/src/views/layout/components/main/model/add.vue b/src/views/layout/components/main/model/add.vue
index 55384fd..f23a74e 100644
--- a/src/views/layout/components/main/model/add.vue
+++ b/src/views/layout/components/main/model/add.vue
@@ -13,8 +13,8 @@
-
-
+
+
diff --git a/src/views/layout/components/main/model/index.vue b/src/views/layout/components/main/model/index.vue
index 395db0e..c92ce99 100644
--- a/src/views/layout/components/main/model/index.vue
+++ b/src/views/layout/components/main/model/index.vue
@@ -11,7 +11,7 @@
-
+
@@ -67,8 +67,8 @@ export default {
return this.$store.state.planeClassList || []
},
/**
- * @description: 过滤掉 不对应客户的 站点列表
- * @return: 站点列表
+ * @description: 过滤掉 不对应客户的 地块列表
+ * @return: 地块列表
*/
classListArr () {
if (this.form.shop_id !== '') {
diff --git a/src/views/layout/components/main/order/index.vue b/src/views/layout/components/main/order/index.vue
index 66ac4ff..20faddc 100644
--- a/src/views/layout/components/main/order/index.vue
+++ b/src/views/layout/components/main/order/index.vue
@@ -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// 表格加载动画
}
diff --git a/src/views/layout/components/main/order/show.vue b/src/views/layout/components/main/order/show.vue
index 33ceb1a..c07b32c 100644
--- a/src/views/layout/components/main/order/show.vue
+++ b/src/views/layout/components/main/order/show.vue
@@ -126,7 +126,7 @@
- 收获站点
+ 收获地块
{{ orderDetails.receive_site_name }}
diff --git a/src/views/layout/components/main/order/stat.vue b/src/views/layout/components/main/order/stat.vue
index 3806a9d..443e0a7 100644
--- a/src/views/layout/components/main/order/stat.vue
+++ b/src/views/layout/components/main/order/stat.vue
@@ -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: ['已付款', '已退款', '已完成'], // 搜索条件 主状态
diff --git a/src/views/layout/components/main/product/sku/add.vue b/src/views/layout/components/main/product/sku/add.vue
index 8aec61b..8619c5a 100644
--- a/src/views/layout/components/main/product/sku/add.vue
+++ b/src/views/layout/components/main/product/sku/add.vue
@@ -12,7 +12,7 @@
-
+
diff --git a/src/views/layout/components/main/product/spu/add.vue b/src/views/layout/components/main/product/spu/add.vue
index df88d86..0aa9e74 100644
--- a/src/views/layout/components/main/product/spu/add.vue
+++ b/src/views/layout/components/main/product/spu/add.vue
@@ -12,7 +12,7 @@
-
+
@@ -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”
}
}
},
diff --git a/src/views/layout/components/main/product/spu/index.vue b/src/views/layout/components/main/product/spu/index.vue
index 43495aa..2d8a2df 100644
--- a/src/views/layout/components/main/product/spu/index.vue
+++ b/src/views/layout/components/main/product/spu/index.vue
@@ -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)
}
// 过滤出 分类已经被删除的商品 (未分类)
diff --git a/src/views/layout/components/main/register/add.vue b/src/views/layout/components/main/register/add.vue
index 19631de..562151a 100644
--- a/src/views/layout/components/main/register/add.vue
+++ b/src/views/layout/components/main/register/add.vue
@@ -18,8 +18,8 @@
-
-
+
+
diff --git a/src/views/layout/components/main/register/crosFrequency.vue b/src/views/layout/components/main/register/crosFrequency.vue
index 22476eb..85b7a77 100644
--- a/src/views/layout/components/main/register/crosFrequency.vue
+++ b/src/views/layout/components/main/register/crosFrequency.vue
@@ -17,7 +17,7 @@
-
+
{{ getShopName(shop_id) }}
@@ -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 地址
diff --git a/src/views/layout/components/main/route/add.vue b/src/views/layout/components/main/route/add.vue
index 67e4f01..8a3fc8c 100644
--- a/src/views/layout/components/main/route/add.vue
+++ b/src/views/layout/components/main/route/add.vue
@@ -14,7 +14,7 @@
-
+
@@ -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
diff --git a/src/views/layout/components/main/shop/add.vue b/src/views/layout/components/main/shop/add.vue
index 3913b82..b05a50e 100644
--- a/src/views/layout/components/main/shop/add.vue
+++ b/src/views/layout/components/main/shop/add.vue
@@ -14,10 +14,10 @@
-
+
-
+
@@ -83,7 +83,7 @@
end-placeholder="结束时间" placeholder="选择时间范围">
-
+
@@ -96,7 +96,7 @@
-
+
创建
@@ -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])
diff --git a/src/views/layout/components/main/site/add.vue b/src/views/layout/components/main/site/add.vue
index d371f0d..53eb2ab 100644
--- a/src/views/layout/components/main/site/add.vue
+++ b/src/views/layout/components/main/site/add.vue
@@ -12,11 +12,11 @@
-
+
-
-
+
+
@@ -36,7 +36,7 @@
-
+
@@ -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
diff --git a/src/views/layout/components/main/site/index.vue b/src/views/layout/components/main/site/index.vue
index f1c6d86..c6192df 100644
--- a/src/views/layout/components/main/site/index.vue
+++ b/src/views/layout/components/main/site/index.vue
@@ -11,14 +11,14 @@
-
+
-
+
@@ -26,7 +26,7 @@
-
+
@@ -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)
diff --git a/src/views/layout/components/menubar.vue b/src/views/layout/components/menubar.vue
index b1f3caf..c9cdef7 100644
--- a/src/views/layout/components/menubar.vue
+++ b/src/views/layout/components/menubar.vue
@@ -167,9 +167,9 @@ export default {
},
isTap (val) {
if (val) {
- this.title = '无人机控制终端'
+ this.title = '控制终端'
} else {
- this.title = '小程序后台管理'
+ this.title = '后台管理'
}
// 给导航栏切换加个 动画过渡
this.show = false
diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue
index a9dcef4..ec78133 100644
--- a/src/views/layout/index.vue
+++ b/src/views/layout/index.vue
@@ -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:待发货及待收货 并且不是退款成功状态
}
})