From cf0a26a671f61da526e1462bca51dc862786bb04 Mon Sep 17 00:00:00 2001
From: "LAPTOP-R6EHHS26\\86155" <2217640373@qq.com>
Date: Mon, 30 Oct 2023 19:08:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2=E5=BC=82?=
=?UTF-8?q?=E5=B8=B8=E6=89=98=E7=9B=98=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 8 +
src/pages/equipment/Inspection/details.vue | 5 +-
src/pages/mes/Pallethandling/index.vue | 414 +++++++++++++++++++++
src/pages/mes/Pallethandling/model.ts | 94 +++++
4 files changed, 519 insertions(+), 2 deletions(-)
create mode 100644 src/pages/mes/Pallethandling/index.vue
create mode 100644 src/pages/mes/Pallethandling/model.ts
diff --git a/src/pages.json b/src/pages.json
index bae1b96..5c16e24 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -255,6 +255,14 @@
"navigationStyle": "custom", // 隐藏系统导航栏
"navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一
}
+ },
+ {
+ "path": "pages/mes/Pallethandling/index",
+ "style": {
+ "navigationBarTitleText": "异常托盘处理",
+ "navigationStyle": "custom", // 隐藏系统导航栏
+ "navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一
+ }
}
],
"globalStyle": {
diff --git a/src/pages/equipment/Inspection/details.vue b/src/pages/equipment/Inspection/details.vue
index b4bfb5e..b6e67db 100644
--- a/src/pages/equipment/Inspection/details.vue
+++ b/src/pages/equipment/Inspection/details.vue
@@ -86,6 +86,7 @@
+
+
diff --git a/src/pages/mes/Pallethandling/model.ts b/src/pages/mes/Pallethandling/model.ts
new file mode 100644
index 0000000..66a5dba
--- /dev/null
+++ b/src/pages/mes/Pallethandling/model.ts
@@ -0,0 +1,94 @@
+import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
+import store from '@/store';
+import http from '@/utils/request';
+import { url } from '@/utils/url';
+import { session } from '@/store/modules/session';
+@Module({
+ namespaced: true,
+ dynamic: true,
+ store,
+ name: 'page.mes.PalletChangeNew',
+})
+export class ChangePalletNew extends VuexModule {
+ orderNoItemList: any = [];
+ @MutationAction
+ async queryOrderNo(orderNo: any) {
+ const result: any = await http.get(url.lanjumes.product.getInfoByRfid, {
+ //loginName: session.loginName,
+ params: {
+ factoryCode: session.FactoryCode,
+ rfid: orderNo,
+ },
+ });
+ const orderNoItemList = result.data;
+ return { orderNoItemList };
+ }
+ @MutationAction
+ async empty() {
+ const orderNoItemList = [];
+ return { orderNoItemList };
+ }
+ SubmitCode: any = '';
+ //托盘异常处理
+ @MutationAction
+ async palletInforUpdate(params: any) {
+ const result: any = await http.post(url.lanjumes.product.GetBufferLoc, params);
+ const SubmitCode = result.code;
+ return { SubmitCode };
+ }
+ //目的地点下拉列表
+ Destination: any = [];
+ @MutationAction
+ async getpalletDestination(params) {
+ const result: any = await http.post(url.lanjumes.product.getDestination, params);
+ const DictListoild: [] = result;
+ if (DictListoild) {
+ const Destination = DictListoild.map((item: any) => ({
+ label: item.location,
+ value: item.type,
+ }));
+ return { Destination };
+ }
+ }
+ //起始位置下拉列表
+ DictList: any = [];
+ @MutationAction
+ async getpalletLocation(params) {
+ const result: any = await http.post(url.lanjumes.product.getDestination, params);
+ const DictListoild: [] = result;
+ if (DictListoild) {
+ const DictList = DictListoild.map((item: any) => ({
+ label: item.location,
+ value: item.type,
+ }));
+ return { DictList };
+ }
+ }
+ //缓存区下拉列表
+ locList: any = [];
+ @MutationAction
+ async getDictList() {
+ const result: any = await http.post(url.lanjumes.product.GetBufferLoc, {
+ factoryCode: session.FactoryCode,
+ });
+ const DictListoild: [] = result;
+ const locList = DictListoild.map((item: any) => ({
+ label: item.location,
+ value: item.bufferType,
+ }));
+ return { locList };
+ }
+ // bind绑定接口
+ @MutationAction
+ async bindOrderNo(orderNo: any) {
+ const result: any = await http.post(url.lanjumes.product.BindOrderByRFID, {
+ //loginName: session.loginName,
+ factoryCode: session.FactoryCode,
+ rfid: orderNo,
+ });
+ const SubmitCode = result;
+ return { SubmitCode };
+ }
+}
+
+export default getModule(ChangePalletNew);