|
|
|
@ -73,9 +73,7 @@ interface OptionType {
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
export default class productCheckReceipt extends BasePage {
|
|
|
|
|
/**
|
|
|
|
|
* 表单引用
|
|
|
|
|
*/
|
|
|
|
|
//表单引用
|
|
|
|
|
@Ref('form') readonly $form!: VForm;
|
|
|
|
|
model = model;
|
|
|
|
|
form = {
|
|
|
|
@ -86,13 +84,9 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
cboPlaceSelect = false;
|
|
|
|
|
rules: VFormRules<any> = {
|
|
|
|
|
documentNo: [{ required: true, message: this.$t('message.Warehouse_Tip1') as string }],
|
|
|
|
|
// originWl: [{ required: true, message: '请选择库位地点' }],
|
|
|
|
|
aimWl: [{ required: true, message: this.$t('message.Warehouse_Tip3') as string }],
|
|
|
|
|
cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip4') as string }],
|
|
|
|
|
};
|
|
|
|
|
// back() {
|
|
|
|
|
// uni.navigateBack({ delta: 1 });
|
|
|
|
|
// }
|
|
|
|
|
value = '';
|
|
|
|
|
show = false;
|
|
|
|
|
//选择目标库位回调函数
|
|
|
|
@ -120,6 +114,7 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
onReady() {
|
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
|
this.model.queryLocation();
|
|
|
|
|
this.model.empty();
|
|
|
|
|
}
|
|
|
|
|
//点击生成随机移库码
|
|
|
|
|
async generate() {
|
|
|
|
@ -134,7 +129,7 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
//移库确认
|
|
|
|
|
onSubmit() {
|
|
|
|
|
this.$form.validate((valid: boolean) => {
|
|
|
|
|
this.$form.validate(async (valid: boolean) => {
|
|
|
|
|
if (!valid) return;
|
|
|
|
|
if (model.userDefined4 == ' ' || model.userDefined4.length == 0) {
|
|
|
|
|
uni.showToast({
|
|
|
|
@ -177,7 +172,18 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
userDefined4: model.userDefined4,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
this.model.onTakeoutConfirm(orderlist);
|
|
|
|
|
await this.model.onTakeoutConfirm(orderlist);
|
|
|
|
|
if (model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: this.$t('message.Warehouse_Tip9') as string,
|
|
|
|
|
});
|
|
|
|
|
this.form.productCode = '';
|
|
|
|
|
model.empty();
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.toPage(this.page.product.warehouse.wholeTransfer.index);
|
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|