修改异常托盘处理页面判断逻辑

master
LAPTOP-R6EHHS26\86155 2 years ago
parent d918c3653d
commit ac431442f4

@ -31,14 +31,14 @@
<u-form-item label="规格:">
<u-input :disabled="true" v-model="orderNoItemList.productSpc" placeholder="" style="overflow: hidden" />
</u-form-item>
<u-form-item label="起始缓存区:">
<u-form-item label="起始域类型:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="productCodelocList.value" :options="model.locList" />
</u-form-item>
<u-form-item label="起始位置:">
<jPicker sureColor="#ff0000" :moren="morenStart" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
</u-form-item>
<u-form-item label="目的缓存区:">
<u-form-item label="目的域类型:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode2" showKey="label" valKey="value" :val="productDestinationList.value" :options="model.locList" />
</u-form-item>
<u-form-item label="目的地点:">
@ -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: '成功' });

@ -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 };
}

Loading…
Cancel
Save