diff --git a/src/pages/mes/Pallethandling/index.vue b/src/pages/mes/Pallethandling/index.vue
index ad4ac92..d79d1e4 100644
--- a/src/pages/mes/Pallethandling/index.vue
+++ b/src/pages/mes/Pallethandling/index.vue
@@ -31,14 +31,14 @@
-
+
-
+
@@ -86,7 +86,7 @@ import jPicker from '@/components/J-Picker/jPicker.vue';
})
export default class ChangePalletNew extends BasePage {
model = model;
- moren = '选择缓存区';
+ moren = '选择区域类型';
morenStart = '选择起始位置';
Destination = '选择目的地点';
shouciFocus = true;
@@ -155,6 +155,7 @@ export default class ChangePalletNew extends BasePage {
});
}
async onsubmit() {
+ console.log(this.productCodeList.value == '' || this.productCodeList.value == undefined, this.productCodeList.value);
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入nficl',
@@ -169,9 +170,9 @@ export default class ChangePalletNew extends BasePage {
});
return;
}
- if (this.productCodelocList.value == '' || this.productCodelocList.value == undefined) {
+ if (this.productCodelocList.value < 0) {
(this.$refs.uToast as any).show({
- title: '请选择起始缓存区',
+ title: '请选择起始区域',
type: 'default',
});
return;
@@ -183,9 +184,9 @@ export default class ChangePalletNew extends BasePage {
});
return;
}
- if (this.productDestinationList.value == '' || this.productDestinationList.value == undefined) {
+ if (this.productCodelocList.value < 0) {
(this.$refs.uToast as any).show({
- title: '请选择目的缓存区',
+ title: '请选择目的区域',
type: 'default',
});
return;
@@ -220,6 +221,7 @@ export default class ChangePalletNew extends BasePage {
sourceAddress: this.productCodeList.value,
//productionState: this.productCodeList.value,
};
+
await this.model.palletInforUpdate(params);
if (model.SubmitCode == 200) {
this.uni.showToast({ title: '成功' });
diff --git a/src/pages/mes/Pallethandling/model.ts b/src/pages/mes/Pallethandling/model.ts
index 66a5dba..6a1c8f2 100644
--- a/src/pages/mes/Pallethandling/model.ts
+++ b/src/pages/mes/Pallethandling/model.ts
@@ -45,7 +45,7 @@ export class ChangePalletNew extends VuexModule {
if (DictListoild) {
const Destination = DictListoild.map((item: any) => ({
label: item.location,
- value: item.type,
+ value: item.location,
}));
return { Destination };
}
@@ -59,7 +59,7 @@ export class ChangePalletNew extends VuexModule {
if (DictListoild) {
const DictList = DictListoild.map((item: any) => ({
label: item.location,
- value: item.type,
+ value: item.location,
}));
return { DictList };
}