diff --git a/src/pages.json b/src/pages.json index cff6d7f..0e0e3fd 100644 --- a/src/pages.json +++ b/src/pages.json @@ -178,6 +178,14 @@ }, { "path": "pages/mes/PalletChange/index", + "style": { + "navigationBarTitleText": "下机台设置", + "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一 + } + }, + { + "path": "pages/mes/ChangePalletNew/index", "style": { "navigationBarTitleText": "托盘变更", "navigationStyle": "custom", // 隐藏系统导航栏 diff --git a/src/pages/mes/ChangePalletNew/index.vue b/src/pages/mes/ChangePalletNew/index.vue new file mode 100644 index 0000000..c6277e9 --- /dev/null +++ b/src/pages/mes/ChangePalletNew/index.vue @@ -0,0 +1,288 @@ + + + diff --git a/src/pages/mes/ChangePalletNew/model.ts b/src/pages/mes/ChangePalletNew/model.ts new file mode 100644 index 0000000..7f6c361 --- /dev/null +++ b/src/pages/mes/ChangePalletNew/model.ts @@ -0,0 +1,71 @@ +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.PalletChange', +}) +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 = ''; + //托盘信息变更x + @MutationAction + async palletInforUpdate(params: any) { + const result: any = await http.post(url.lanjumes.product.palletInforUpdate, params); + const SubmitCode = result.code; + return { SubmitCode }; + } + //库位下拉列表 + DictList: any = []; + @MutationAction + async getpalletLocation(params) { + const result: any = await http.post(url.lanjumes.product.getpalletLocation, { + productionState: params, + }); + const DictListoild: [] = result.data; + const DictList = DictListoild.map((item: any) => ({ + label: item.itemName, + value: item.itemCode, + })); + return { DictList }; + } + //库位下拉列表 + locList: any = []; + @MutationAction + async getDictList() { + const result: any = await http.get(url.lanjumes.product.getDictList, { + params: { + productionState: 'cache', + }, + }); + const DictListoild: [] = result.data; + const locList = DictListoild.map((item: any) => ({ + label: item.itemName, + value: item.itemCode, + })); + return { locList }; + } +} + +export default getModule(ChangePalletNew); diff --git a/src/pages/mes/ProductionQtyInsp/index.vue b/src/pages/mes/ProductionQtyInsp/index.vue index 5d254f7..e54bcb7 100644 --- a/src/pages/mes/ProductionQtyInsp/index.vue +++ b/src/pages/mes/ProductionQtyInsp/index.vue @@ -266,10 +266,10 @@ export default class productCheckReceipt extends BasePage { this.customToast('请选择是否合格'); return; } - if (this.badMeg == '') { - this.customToast('请输入不良描述'); - return; - } + // if (this.badMeg == '') { + // this.customToast('请输入不良描述'); + // return; + // } console.log('tupian', this.imgList.join(',')); let params = { diff --git a/src/utils/page.ts b/src/utils/page.ts index 1f493ca..dd2aa49 100644 --- a/src/utils/page.ts +++ b/src/utils/page.ts @@ -8,12 +8,13 @@ export const page = { login: { login: '/pages/login/login/index', server: '/pages/login/server/index', - // area: '/pages/login/area/index', + // area: '/pages/login/area/index', }, mes: { ProductionQtyInsp: '/pages/mes/ProductionQtyInsp/index', ProductionQtyInsplist: '/pages/mes/ProductionQtyInsp/listdata', ProductionQtyInspDetail: '/pages/mes/ProductionQtyInsp/detail', + ChangePalletNew: '/pages/mes/ChangePalletNew/index', }, shouye: '/pages/shouye/index', me: '/pages/shouye/me', diff --git a/src/utils/url.ts b/src/utils/url.ts index 0618ec2..054ccb6 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -25,6 +25,7 @@ export const url = { requestDestinationStation: qianzhuione + '/mes/wcsInterface/pdaRequestDestinationStations', getAllEquipments: qianzhuione + '/mes/pda/getAllEquipments', saveRfidWithEquip: qianzhuione + '/mes/pda/saveRfidWithEquip', + getpalletLocation: '/api/ReceivingAndFeedingMaterials/getpalletLocation', }, }, lanjuwms: {