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 @@