diff --git a/src/pages/login/area/model.ts b/src/pages/login/area/model.ts
index 457333f..6e408ae 100644
--- a/src/pages/login/area/model.ts
+++ b/src/pages/login/area/model.ts
@@ -20,6 +20,7 @@ export interface Factory {
factoryname: string;
value: string;
label: string;
+ poolName: string;
}
@Module({ dynamic: true, store, namespaced: true, name: 'area' })
diff --git a/src/pages/mes/ChangePalletNew/index.vue b/src/pages/mes/ChangePalletNew/index.vue
index cb41751..4a6902c 100644
--- a/src/pages/mes/ChangePalletNew/index.vue
+++ b/src/pages/mes/ChangePalletNew/index.vue
@@ -82,11 +82,11 @@ export default class ChangePalletNew extends BasePage {
zaiciFocus = false;
switchListText = [
{
- title: '是',
+ title: '人工',
value: 0,
},
{
- title: '否',
+ title: 'AGV',
value: 1,
},
];
@@ -131,6 +131,18 @@ export default class ChangePalletNew extends BasePage {
this.customToast('请输入nficl');
return;
}
+ if (Object.keys(this.orderNoItemList).length === 0) {
+ this.customToast('请先查询出nficl数据');
+ return;
+ }
+ if (this.productCodelocList.value == '' || this.productCodelocList.value == undefined) {
+ this.customToast('请选择缓存区');
+ return;
+ }
+ if (this.productCodeList.value == '' || this.productCodeList.value == undefined) {
+ this.customToast('请选择库位');
+ return;
+ }
var currentDate = new Date();
// 获取年份、月份、日期、小时、分钟和秒
@@ -156,7 +168,7 @@ export default class ChangePalletNew extends BasePage {
//productionState: this.productCodeList.value,
};
await this.model.palletInforUpdate(params);
- if (model.SubmitCode == 10) {
+ if (model.SubmitCode == 200) {
this.uni.showToast({ title: '成功' });
this.Clear();
}
diff --git a/src/pages/mes/ChangePalletNew/model.ts b/src/pages/mes/ChangePalletNew/model.ts
index bc9ef01..ed6344c 100644
--- a/src/pages/mes/ChangePalletNew/model.ts
+++ b/src/pages/mes/ChangePalletNew/model.ts
@@ -7,7 +7,7 @@ import { session } from '@/store/modules/session';
namespaced: true,
dynamic: true,
store,
- name: 'page.mes.PalletChange',
+ name: 'page.mes.PalletChangeNew',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
diff --git a/src/pages/mes/PalletChange/index.vue b/src/pages/mes/PalletChange/index.vue
index 956a959..54fc0d6 100644
--- a/src/pages/mes/PalletChange/index.vue
+++ b/src/pages/mes/PalletChange/index.vue
@@ -29,13 +29,13 @@
-->
-
+
-
+
@@ -119,21 +119,25 @@ export default class PalletChange extends BasePage {
this.isshow = true;
});
await this.model.requestDestinationStation(this.orderNo);
- const stationNos = model.orderNoItemList.stationNos;
- for (let i = 0; i < stationNos.length; i++) {
- for (let j = 0; j < this.DictList.length; j++) {
- if (stationNos[i].stationNo === this.DictList[j].equipmentCode) {
- stationNos[i].equipmentName = this.DictList[j].equipmentName;
- break;
- }
- }
- }
- console.log('111', stationNos);
- this.oldstationNos = stationNos.map((item) => ({
- label: item.equipmentName,
- value: item.stationNo,
- ...item,
- }));
+ // const stationNos = model.orderNoItemList.stationNos;
+ // for (let i = 0; i < stationNos.length; i++) {
+ // for (let j = 0; j < this.DictList.length; j++) {
+ // if (stationNos[i].stationNo === this.DictList[j].equipmentCode) {
+ // stationNos[i].equipmentName = this.DictList[j].equipmentName;
+ // break;
+ // }
+ // }
+ // }
+ // this.oldstationNos = stationNos.map((item) => ({
+ // label: item.equipmentName,
+ // value: item.stationNo,
+ // ...item,
+ // }));
+ // console.log('111', stationNos);
+ // if (this.oldstationNos.some((item) => !item.label || item.label == undefined)) {
+ // this.oldstationNo = [];
+ // }
+ // console.log('fffff',this.oldstationNos)
}
generateGUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
diff --git a/src/pages/mes/ProductionQtyInsp/index.vue b/src/pages/mes/ProductionQtyInsp/index.vue
index e54bcb7..53f5315 100644
--- a/src/pages/mes/ProductionQtyInsp/index.vue
+++ b/src/pages/mes/ProductionQtyInsp/index.vue
@@ -262,7 +262,11 @@ export default class productCheckReceipt extends BasePage {
this.customToast('该rfid不可用,不可质检');
return;
}
- if (this.productCodeList.value == '') {
+ if (this.productLocList.value == '' || this.productLocList.value == undefined) {
+ this.customToast('请选择缓存区');
+ return;
+ }
+ if (this.productCodeList.value == '' || this.productCodeList.value == undefined) {
this.customToast('请选择是否合格');
return;
}
diff --git a/src/pages/shouye/index.vue b/src/pages/shouye/index.vue
index 817343b..56d44e8 100644
--- a/src/pages/shouye/index.vue
+++ b/src/pages/shouye/index.vue
@@ -76,6 +76,14 @@ export default class RawHome extends BasePage {
onReady() {
if (session.FactoryCode != undefined) {
this.factoryList.value = session.FactoryCode;
+ } else {
+ this.factoryList.value = this.areas[0].factory;
+ const factory: string = this.areas[0].factory;
+ const poolName: string = this.areas[0].poolName;
+ session.setFactory({
+ factoryCode: factory,
+ poolName: poolName,
+ });
}
this.newmenuList = this.menuList.filter((item) => item.perms == 'wms' || item.perms == 'mes' || item.perms == 'equipment');
console.log('1234', this.menuList);
diff --git a/src/pages/shouye/me.vue b/src/pages/shouye/me.vue
index d780140..5e6d181 100644
--- a/src/pages/shouye/me.vue
+++ b/src/pages/shouye/me.vue
@@ -34,7 +34,7 @@
- 检查更新
+ 检查更新