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);